joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b150
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 8], 0
jb 0x47b173
mov ecx, dword [ecx]
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47b1e2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0xffffffff
je 0x47b1e2
xor eax, eax
add ecx, 1
setb al
neg eax
or eax, ecx
push eax
call fcn.0050d024
mov esi, eax
add esp, 4
test esi, esi
je 0x47b1ef
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov byte [esi + eax], 0
jmp 0x47b1fd
test esi, esi
je 0x47b1ef
push esi
call fcn.00507f8f
add esp, 4
xor esi, esi
cmp edi, 0xffffffff
je 0x47b1fd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
je 0x47b222
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b207
sub ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.0040ad60
push esi
call fcn.00507f8f
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx + 0x10], eax
pop esi
setne al
xor ecx, ebp
pop ebx
call fcn.00501e95
mov esp, ebp
pop ebp
ret
Function at 0x47b4b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5397f3
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x148]
mov esi, dword [ebp + 0x14]
or edi, 0xffffffff
mov dword [ebp - 0x14c], ebx
call fcn.004082f0
push 0x104
push 0
push 0x105
mov dword [ebp - 4], 0
push ebx
mov dword [esi], 0
call fcn.0051b6b4
push 0x105
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00504c70
add esp, 0x1c
call fcn.00407680
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x47b558
movaps xmm0, xmmword [0x5659b0]
lea ecx, [ebp - 0x24]
push ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x47b57f
mov dword [esi], 3
jmp 0x47b684
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b588
sub ecx, edx
lea eax, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.0040ad60
push str.GlobalMgr.db
lea edx, [ebp - 0x148]
lea ecx, [ebp - 0x28]
call fcn.0047d600
add esp, 4
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 1
call fcn.0041e1f0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004081f0
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmovae eax, dword [ebp - 0x148]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x47b614
mov dword [esi], 0x50
jmp 0x47b64f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x47b67e
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
push 0
cmovae eax, dword [ebp - 0x148]
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x47b67e
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
push 0x104
cmovae eax, dword [ebp - 0x148]
push eax
push 0x105
push dword [ebp - 0x14c]
call fcn.0050d9cf
add esp, 0x10
jmp 0x47b684
mov dword [esi], 0x65f
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], 0xffffffff
call fcn.004081f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47bf10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
xorps xmm0, xmm0
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], 0x67452301
mov dword [ebp - 0xa4], 0xefcdab89
movups xmmword [ebx], xmm0
mov dword [ebp - 0xa0], 0x98badcfe
movups xmmword [edi], xmm0
mov dword [ebp - 0x9c], 0x10325476
movups xmmword [edi + 0x10], xmm0
mov byte [edi + 0x20], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
jb 0x47bf93
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0xa8]
push eax
call fcn.0047af60
add esp, 4
lea ecx, [ebp - 0xa8]
mov edx, ebx
call fcn.0047b040
xor esi, esi
movzx eax, byte [ebx + esi]
push eax
push str._02x
push 2
push 3
push edi
call fcn.004208d0
inc esi
add esp, 0x14
add edi, 2
cmp esi, 0x10
jb 0x47bfb3
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov byte [eax + 0x20], 0
pop ebx
call fcn.00501e95
mov esp, ebp
pop ebp
ret
Function at 0x47c760
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539a50
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor dl, dl
lea ecx, [ebp - 0x48]
xor bl, bl
call fcn.0047ca60
push 0
push 0
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push 1
cmovae eax, dword [ebp - 0x48]
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47c88e
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.0047ca60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x29c]
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmovae eax, dword [ebp - 0x48]
push ecx
push eax
call esi
cmp eax, 0xffffffff
je 0x47c803
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x47c85a
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x29c]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push ecx
push eax
call esi
cmp eax, 0xffffffff
je 0x47c85a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x48]
push 0
cmovae ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push ecx
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x47c85a
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00407f10
cmp esi, 0xffffffff
je 0x47c8d1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x47c8ca
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x10
push 0x5816b8
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47c8ca
cmp dword [ebp - 0x18], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00407f10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret 4
Function at 0x47c900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539a90
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor dl, dl
lea ecx, [ebp - 0x48]
xor bl, bl
call fcn.0047ca60
push 0
push 0
push 2
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push 1
cmovae eax, dword [ebp - 0x48]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47c9a6
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.0047ca60
push 0
push 0
push 2
push 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push 1
cmovae eax, dword [ebp - 0x30]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.00407f10
cmp esi, 0xffffffff
je 0x47c9d4
push 0
lea eax, [ebp - 0x18]
push eax
push 0x10
push 0x5816b8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47c9cd
cmp dword [ebp - 0x18], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00407f10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret 4
Function at 0x47ca60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539aea
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0
call fcn.00408060
push 0x208
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x234], 1
call fcn.00504c70
add esp, 0xc
call fcn.00407680
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x47cb10
movaps xmm0, xmmword [0x565ac0]
lea ecx, [ebp - 0x28]
push ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x61507265
mov dword [ebp - 0x14], 0x576874
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x20], eax
push 1
mov ecx, 0x1a
test bl, bl
mov eax, 0x23
cmovne eax, ecx
push eax
lea eax, [ebp - 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47cba5
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408010
mov dword [ebp - 4], 1
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x47cb55
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0040ac20
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00407f10
mov ecx, esi
push 7
test bl, bl
je 0x47cb7b
push 0x565734
jmp 0x47cb80
push str.PHXDT
call fcn.0040ac20
mov ecx, esi
call fcn.0047cbd0
test al, al
jne 0x47cb97
mov ecx, esi
call fcn.0047cd30
push 0xa
push str.Global.db
mov ecx, esi
call fcn.0040ac20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret
Function at 0x47de70
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd24], edx
push edi
mov dword [ebp - 0xd20], ecx
xor esi, esi
mov dword [ebp - 0xd28], eax
nop
test bl, bl
jne 0x47e0c0
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.00504c70
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push 0x565784
push 0xffffffffffffffff
push 0xff
push eax
call fcn.004195e0
add esp, 0x14
lea eax, [ebp - 0x50c]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47e0b6
push 0x800
lea eax, [ebp - 0xd0c]
mov dword [ebp - 0xd10], 0
push 0
push eax
mov dword [ebp - 0xd14], 0
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd18], 0
call fcn.00504c70
add esp, 0xc
lea eax, [ebp - 0xd10]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd1c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x47e0a9
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00504c70
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.00504c70
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.00504c70
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.0047d890
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.0047d890
mov edx, dword [ebp - 0xcf4]
lea eax, [ebp - 0x10c]
push eax
push 1
lea ecx, [ebp - 0xd0c]
call fcn.0047d890
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.00519675
add esp, 0x1c
test eax, eax
jne 0x47e02a
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.00519675
add esp, 4
test eax, eax
je 0x47e0af
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd40]
call fcn.004082b0
mov ecx, dword [ebp - 0xd20]
push eax
call fcn.0041e1f0
lea ecx, [ebp - 0xd40]
call fcn.004081f0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd40]
call fcn.004082b0
mov ecx, dword [ebp - 0xd24]
push eax
call fcn.0041e1f0
lea ecx, [ebp - 0xd40]
call fcn.004081f0
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd40]
call fcn.004082b0
mov ecx, dword [ebp - 0xd28]
push eax
call fcn.0041e1f0
lea ecx, [ebp - 0xd40]
call fcn.004081f0
mov bl, 1
jmp 0x47e0af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x47dea0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501e95
mov esp, ebp
pop ebp
ret
Function at 0x47e3f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aac
call fcn.00502a70
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x218]
mov ebx, ecx
push 0
push eax
call fcn.00504c70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.00407550
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x47e467
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x68746150
push ecx
push eax
mov dword [ebp - 0xc], 0x65707041
mov dword [ebp - 8], 0x57646e
call edi
mov dword [esi + 0x10], eax
push str.iphlpapi.dll
lea eax, [ebp - 0x218]
push eax
mov eax, dword [esi + 0x10]
call eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aac], eax
test eax, eax
je 0x47e5b2
push str.GetAdaptersInfo
push eax
call edi
test eax, eax
je 0x47e584
lea ecx, [ebp - 0x2a9c]
mov dword [ebp - 0x2a9c], 0x2880
push ecx
lea ecx, [ebp - 0x2a98]
push ecx
call eax
test eax, eax
jne 0x47e584
mov eax, ebx
mov dword [ebp - 0x2aa4], 3
lea ecx, [ebp - 0xc]
sub eax, ecx
lea edi, [ebp - 0x2a98]
mov dword [ebp - 0x2aa8], eax
lea ecx, [edi + 8]
call fcn.0047e5e0
mov dword [ebp - 0x2aa0], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x2aa8]
lea esi, [ebp - 0xc]
add esi, ecx
mov dl, byte [eax + esi]
cmp dl, byte [esi]
jne 0x47e51b
inc ecx
cmp ecx, 6
jb 0x47e501
mov ecx, dword [ebp - 0x2aa0]
jmp 0x47e539
mov eax, dword [edi + 0x1a0]
cmp eax, 6
je 0x47e52b
cmp eax, 0x17
jne 0x47e57a
mov ecx, dword [ebp - 0x2aa0]
cmp dword [ebp - 0x2aa4], ecx
jle 0x47e57a
movzx eax, byte [edi + 0x194]
mov byte [ebx], al
movzx eax, byte [edi + 0x195]
mov byte [ebx + 1], al
movzx eax, byte [edi + 0x196]
mov byte [ebx + 2], al
movzx eax, byte [edi + 0x197]
mov byte [ebx + 3], al
movzx eax, byte [edi + 0x198]
mov byte [ebx + 4], al
movzx eax, byte [edi + 0x199]
mov byte [ebx + 5], al
mov dword [ebp - 0x2aa4], ecx
mov edi, dword [edi]
test edi, edi
jne 0x47e4e2
push dword [ebp - 0x2aac]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
sub ebx, eax
lea ecx, [ebp - 0xc]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x47e5c5
inc edx
cmp edx, 6
jb 0x47e5a0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501e95
mov esp, ebp
pop ebp
ret
Function at 0x47eaa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x581b2c]
xchg dword [ebp - 0x2c], eax
test ecx, ecx
jne 0x47ec0b
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x581c4c]
cmp eax, dword [ecx + 4]
jle 0x47eb35
push 0x581c4c
call fcn.00502063
add esp, 4
cmp dword [0x581c4c], 0xffffffff
jne 0x47eb35
push 0x581c50
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x53bbc0
call fcn.005023ef
push 0x581c4c
mov dword [ebp - 4], 0xffffffff
call fcn.00502019
add esp, 8
push 0x581c50
mov dword [ebp - 0x34], 0x581c50
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov esi, dword [0x581b2c]
test esi, esi
jne 0x47ebf5
push 0xc
call fcn.00502157
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], vtable.NSstc::CStc_class_CNetapi32_.0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
mov dword [esi], vtable.CNetapi32.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x28], 0x6174656e
mov dword [ebp - 0x24], 0x32336970
mov dword [ebp - 0x20], 0x6c6c642e
mov byte [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
test eax, eax
je 0x47ebe8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x6274654e
push ecx
push eax
mov dword [ebp - 0x14], 0x736f69
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
xchg dword [ebp - 0x2c], eax
mov dword [0x581b2c], esi
push 0x581c50
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x47ec0d
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret
Function at 0x47f170
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x47f1a4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47f1a4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x47f26c
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x47f1c3
cmp dx, 0x5c
jne 0x47f1c5
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x47f1b7
cmp esi, ebx
je 0x47f213
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.00504dd0
add esp, 0xc
cmp esi, 0x208
jae 0x47f27c
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0047f170
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x47f236
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00509c08
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00509c6c
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47f26c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00501e95
mov esp, ebp
pop ebp
ret
call fcn.005025c2
int3
Function at 0x47fcf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x47fe94
cmp dword [ebx + 4], 0xffffffff
jne 0x47fe94
push esi
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47fd27
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x47fd5b
cmp eax, 0x2f
je 0x47fd5b
push 0x55fb5c
push 0x104
push esi
call fcn.00509c6c
add esp, 0xc
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x47fd86
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47fda1
pop edi
pop esi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x47fd9e
cmp edi, 3
je 0x47fd9e
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x47fde7
cmp edi, 2
jne 0x47fe03
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47fde1
pop edi
pop esi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x47fded
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.00502157
add esp, 4
mov esi, eax
cmp edi, 1
je 0x47fe3e
cmp edi, 2
je 0x47fe3e
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x47fe6f
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x47fe6f
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.00482e80
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop edi
cmove ecx, edx
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x480580
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x53eca0]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x53eca0]
mov dword [edx + 8], ecx
pop ebp
ret