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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x57c54c]
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 0x477eb3
mov ecx, dword [ecx]
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x477f22
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0xffffffff
je 0x477f22
xor eax, eax
add ecx, 1
setb al
neg eax
or eax, ecx
push eax
call fcn.0050bcd4
mov esi, eax
add esp, 4
test esi, esi
je 0x477f2f
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 0x477f3d
test esi, esi
je 0x477f2f
push esi
call fcn.00506c3f
add esp, 4
xor esi, esi
cmp edi, 0xffffffff
je 0x477f3d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
je 0x477f62
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477f47
sub ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.0040add0
push esi
call fcn.00506c3f
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.00500b45
mov esp, ebp
pop ebp
ret
Function at 0x4781f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537f73
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x57c54c]
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.00408360
push 0x104
push 0
push 0x105
mov dword [ebp - 4], 0
push ebx
mov dword [esi], 0
call fcn.0051a364
push 0x105
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00503920
add esp, 0x1c
call fcn.00407620
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x478298
movaps xmm0, xmmword [0x564790]
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 0x4782bf
mov dword [esi], 3
jmp 0x4783c4
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4782c8
sub ecx, edx
lea eax, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.0040add0
push str.GlobalMgr.db
lea edx, [ebp - 0x148]
lea ecx, [ebp - 0x28]
call fcn.0047a340
add esp, 4
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 1
call fcn.0041d810
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00408260
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 0x478354
mov dword [esi], 0x50
jmp 0x47838f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4783be
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 0x4783be
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.0050c67f
add esp, 0x10
jmp 0x4783c4
mov dword [esi], 0x65f
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], 0xffffffff
call fcn.00408260
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.00500b45
mov esp, ebp
pop ebp
ret 0x10
Function at 0x478c50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x57c54c]
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 0x478cd3
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0xa8]
push eax
call fcn.00477ca0
add esp, 4
lea ecx, [ebp - 0xa8]
mov edx, ebx
call fcn.00477d80
xor esi, esi
movzx eax, byte [ebx + esi]
push eax
push str._02x
push 2
push 3
push edi
call fcn.0041ff50
inc esi
add esp, 0x14
add edi, 2
cmp esi, 0x10
jb 0x478cf3
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.00500b45
mov esp, ebp
pop ebp
ret
Function at 0x4794a0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5381d0
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x57c54c]
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.004797a0
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 bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4795ce
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.004797a0
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 0x479543
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x47959a
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 0x47959a
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 0x47959a
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 bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00407f80
cmp esi, 0xffffffff
je 0x479611
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x47960a
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x10
push 0x580644
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47960a
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.00407f80
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.00500b45
mov esp, ebp
pop ebp
ret 4
Function at 0x479640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538210
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x57c54c]
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.004797a0
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 0x4796e6
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.004797a0
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.00407f80
cmp esi, 0xffffffff
je 0x479714
push 0
lea eax, [ebp - 0x18]
push eax
push 0x10
push 0x580644
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47970d
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.00407f80
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.00500b45
mov esp, ebp
pop ebp
ret 4
Function at 0x4797a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53826a
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x57c54c]
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.004080d0
push 0x208
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x234], 1
call fcn.00503920
add esp, 0xc
call fcn.00407620
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x479850
movaps xmm0, xmmword [0x5648a0]
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 0x4798e5
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408080
mov dword [ebp - 4], 1
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x479895
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0040ac90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00407f80
mov ecx, esi
push 7
test bl, bl
je 0x4798bb
push str.PHXDU
jmp 0x4798c0
push str.PHXDT
call fcn.0040ac90
mov ecx, esi
call fcn.00479910
test al, al
jne 0x4798d7
mov ecx, esi
call fcn.00479a70
push 0xa
push str.Global.db
mov ecx, esi
call fcn.0040ac90
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.00500b45
mov esp, ebp
pop ebp
ret
Function at 0x47ac70
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x57c54c]
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 0x47aec0
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push 0x5643f0
push 0xffffffffffffffff
push 0xff
push eax
call fcn.004195b0
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 0x47aeb6
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.00503920
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 0x47aea9
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.00503920
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.0047a690
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.0047a690
mov edx, dword [ebp - 0xcf4]
lea eax, [ebp - 0x10c]
push eax
push 1
lea ecx, [ebp - 0xd0c]
call fcn.0047a690
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.00518325
add esp, 0x1c
test eax, eax
jne 0x47ae2a
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.00518325
add esp, 4
test eax, eax
je 0x47aeaf
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd40]
call fcn.00408320
mov ecx, dword [ebp - 0xd20]
push eax
call fcn.0041d810
lea ecx, [ebp - 0xd40]
call fcn.00408260
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd40]
call fcn.00408320
mov ecx, dword [ebp - 0xd24]
push eax
call fcn.0041d810
lea ecx, [ebp - 0xd40]
call fcn.00408260
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd40]
call fcn.00408320
mov ecx, dword [ebp - 0xd28]
push eax
call fcn.0041d810
lea ecx, [ebp - 0xd40]
call fcn.00408260
mov bl, 1
jmp 0x47aeaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x47aca0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500b45
mov esp, ebp
pop ebp
ret
Function at 0x47b1f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aac
call fcn.00501720
mov eax, dword [0x57c54c]
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.00503920
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.004074f0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x47b267
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 0x47b3b2
push str.GetAdaptersInfo
push eax
call edi
test eax, eax
je 0x47b384
lea ecx, [ebp - 0x2a9c]
mov dword [ebp - 0x2a9c], 0x2880
push ecx
lea ecx, [ebp - 0x2a98]
push ecx
call eax
test eax, eax
jne 0x47b384
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.0047b3e0
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 0x47b31b
inc ecx
cmp ecx, 6
jb 0x47b301
mov ecx, dword [ebp - 0x2aa0]
jmp 0x47b339
mov eax, dword [edi + 0x1a0]
cmp eax, 6
je 0x47b32b
cmp eax, 0x17
jne 0x47b37a
mov ecx, dword [ebp - 0x2aa0]
cmp dword [ebp - 0x2aa4], ecx
jle 0x47b37a
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 0x47b2e2
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 0x47b3c5
inc edx
cmp edx, 6
jb 0x47b3a0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500b45
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.00500b45
mov esp, ebp
pop ebp
ret
Function at 0x47b8a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53852b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x580a84]
xchg dword [ebp - 0x2c], eax
test ecx, ecx
jne 0x47ba0b
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x580bc0]
cmp eax, dword [ecx + 4]
jle 0x47b935
push 0x580bc0
call fcn.00500d13
add esp, 4
cmp dword [0x580bc0], 0xffffffff
jne 0x47b935
push 0x580bc4
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x53a530
call fcn.0050109f
push 0x580bc0
mov dword [ebp - 4], 0xffffffff
call fcn.00500cc9
add esp, 8
push 0x580bc4
mov dword [ebp - 0x34], 0x580bc4
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov esi, dword [0x580a84]
test esi, esi
jne 0x47b9f5
push 0xc
call fcn.00500e07
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 0x47b9e8
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 [0x580a84], esi
push 0x580bc4
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x47ba0d
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.00500b45
mov esp, ebp
pop ebp
ret
Function at 0x47de20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x57c54c]
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 0x47de54
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47de54
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x47df1c
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x47de73
cmp dx, 0x5c
jne 0x47de75
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x47de67
cmp esi, ebx
je 0x47dec3
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.00503a80
add esp, 0xc
cmp esi, 0x208
jae 0x47df2c
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0047de20
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x47dee6
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005088b8
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0050891c
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47df1c
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.00500b45
mov esp, ebp
pop ebp
ret
call fcn.00501272
int3
Function at 0x47e9a0
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 0x47eb44
cmp dword [ebx + 4], 0xffffffff
jne 0x47eb44
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 0x47e9d7
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x47ea0b
cmp eax, 0x2f
je 0x47ea0b
push 0x55eb5c
push 0x104
push esi
call fcn.0050891c
add esp, 0xc
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x47ea36
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47ea51
pop edi
pop esi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x47ea4e
cmp edi, 3
je 0x47ea4e
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 0x47ea97
cmp edi, 2
jne 0x47eab3
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47ea91
pop edi
pop esi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x47ea9d
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.00500e07
add esp, 4
mov esi, eax
cmp edi, 1
je 0x47eaee
cmp edi, 2
je 0x47eaee
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 0x47eb1f
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 0x47eb1f
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.00481b30
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 0x47f230
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 + 0x53dca0]
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 + 0x53dca0]
mov dword [edx + 8], ecx
pop ebp
ret