joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4332ab
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push 0x1bc
mov eax, 0x4e0495
call fcn.004c1130
mov esi, ecx
mov edi, 0x104
lea eax, [ebp - 0x193]
xor ebx, ebx
push edi
push ebx
push eax
mov byte [ebp - 0x194], bl
call fcn.004be330
add esp, 0xc
mov dword [ebp - 0x198], 0x42054e5e
mov ecx, ebx
mov al, byte [ebp + ecx - 0x198]
sub al, 3
xor al, 0x3f
mov byte [ebp + ecx - 0x198], al
inc ecx
cmp ecx, 4
jl 0x4332e6
mov dword [ebp - 0x1b], 0x425e1d4f
mov ecx, ebx
mov byte [ebp - 0x1c], 0x1d
mov al, byte [ebp + ecx - 0x1c]
sub al, 3
xor al, 0x3f
mov byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jl 0x43330b
push esi
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x194]
push edi
push eax
call fcn.00405487
add esp, 0x14
lea eax, [ebp - 0x194]
lea ecx, [ebp - 0x1c8]
push eax
call fcn.004018ec
mov dword [ebp - 4], ebx
mov ecx, ebx
mov dword [ebp - 0x70], 0x42424255
mov dword [ebp - 0x74], 0x4253425f
mov dword [ebp - 0x78], 0x4214424d
mov dword [ebp - 0x7c], 0x42594251
mov dword [ebp - 0x80], 0x4254425d
mov dword [ebp - 0x84], 0x424e4214
mov dword [ebp - 0x88], 0x4254425e
mov al, byte [ebp + ecx - 0x88]
sub al, 3
xor al, 0x3f
mov byte [ebp + ecx - 0x88], al
inc ecx
cmp ecx, 0x1c
jl 0x433387
mov dword [ebp - 0x3a], 0x42424252
mov ecx, ebx
mov dword [ebp - 0x3e], 0x425a4252
mov dword [ebp - 0x42], 0x4214425d
mov dword [ebp - 0x46], 0x42524261
mov dword [ebp - 0x4a], 0x4250425b
mov dword [ebp - 0x4e], 0x4252424d
mov word [ebp - 0x50], 0x4213
mov al, byte [ebp + ecx - 0x50]
sub al, 3
xor al, 0x3f
mov byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, 0x1a
jl 0x4333d1
push ebx
push ebx
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x19c], ebx
call fcn.004019c4
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c8]
push eax
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x88]
call fcn.004341b6
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], bl
call fcn.004019c4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c8]
push ebx
push 1
call fcn.004019c4
call fcn.004c10df
ret
Function at 0x433447
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x513720]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0x32], 0x42424256
push edi
mov dword [ebp - 0x36], 0x4256425e
mov edx, ecx
mov dword [ebp - 0x3a], 0x42144210
mov dword [ebp - 0x3e], 0x420f4256
mov dword [ebp - 0x42], 0x425d4254
mov dword [ebp - 0x46], 0x4250425d
mov word [ebp - 0x48], 0x4277
mov al, byte [ebp + edx - 0x48]
sub al, 3
xor al, 0x3f
mov byte [ebp + edx - 0x48], al
inc edx
cmp edx, 0x1a
jl 0x43348c
mov dword [ebp - 0xb], 0x425d5559
mov dword [ebp - 0xf], 0x6e56615f
mov dword [ebp - 0x13], 0x53764e5d
mov byte [ebp - 0x14], 0x7b
mov al, byte [ebp + ecx - 0x14]
sub al, 3
xor al, 0x3f
mov byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 0xd
jl 0x4334b7
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x433519
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x433519
xor eax, eax
lea edi, [ebp - 0x56]
mov word [ebp - 0x58], ax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x58]
push eax
call ecx
mov eax, 0x7e1
cmp word [ebp - 0x58], ax
jne 0x433519
cmp word [ebp - 0x56], 9
jne 0x433519
cmp word [ebp - 0x52], 0x12
ja 0x433519
xor eax, eax
jmp 0x43351c
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004b923d
mov esp, ebp
pop ebp
ret
Function at 0x433ce4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x513720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x518530], eax
je 0x433d0f
mov eax, 0x10dd
jmp 0x433e05
mov eax, dword [0x518534]
test eax, eax
jne 0x433e05
mov eax, 0x40b616
test eax, eax
jne 0x433d2d
push 0x57
pop eax
jmp 0x433e05
test ebx, ebx
jne 0x433d35
push 6
jmp 0x433d27
cmp dword [ebx], 0
jne 0x433d4d
push 6
pop eax
mov dword [0x518534], eax
mov dword [0x518518], ebx
jmp 0x433e05
push esi
push edi
push 0x18
call fcn.004b9c5d
mov esi, eax
pop ecx
test esi, esi
jne 0x433d65
push 8
pop edi
jmp 0x433dea
mov ecx, dword [ebx]
call fcn.00430959
mov ecx, 0x40b616
mov edi, eax
call fcn.00430959
movzx ecx, byte [edi + 0x36]
mov edx, eax
mov eax, dword [edi + 0x40]
sub eax, ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x433dde
cmp ecx, 0x1e
ja 0x433dde
cmp dword [edi + 0x44], edx
jne 0x433dde
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x433db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x433dea
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
mov dword [esi + 8], ebx
mov dword [esi + 0x10], edi
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov eax, dword [0x518528]
mov dword [esi], eax
xor eax, eax
mov dword [0x518528], esi
jmp 0x433e03
cmp dword [0x518538], 0
push 9
pop edi
jne 0x433df0
mov dword [0x518534], edi
test esi, esi
je 0x433dfb
push esi
call fcn.004b9238
pop ecx
mov dword [0x518518], ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b923d
mov esp, ebp
pop ebp
ret
Function at 0x435270
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0676
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x513720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
or esi, 0xffffffff
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
push 0x104
push 0
push 0x105
mov dword [ebp - 4], 0
push eax
mov dword [edi], 0
call fcn.004c0fc9
push 0x104
lea eax, [ebp - 0x117]
mov byte [ebp - 0x118], 0
push 0
push eax
call fcn.004be330
add esp, 0x1c
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x43533e
mov dword [edi], 3
jmp 0x4354bd
cmp byte [ebp - 0x118], 0
jne 0x43534b
xor ecx, ecx
jmp 0x43535d
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435354
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x130]
call fcn.00401a20
push str.GlobalMgr.db
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x14c]
call fcn.00436c20
add esp, 4
mov esi, eax
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 1
cmp eax, esi
je 0x4353d7
cmp dword [ebp - 0x11c], 0x10
jb 0x4353b0
push dword [ebp - 0x130]
call fcn.004b9238
add esp, 4
push esi
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.004098f0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x138], 0x10
jb 0x4353f2
push dword [ebp - 0x14c]
call fcn.004b9238
add esp, 4
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push 0
cmovae eax, dword [ebp - 0x130]
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x435449
mov dword [edi], 0x50
jmp 0x435488
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4354b7
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push 0
cmovae eax, dword [ebp - 0x130]
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4354b7
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push 0x104
cmovae eax, dword [ebp - 0x130]
push eax
push 0x105
push dword [ebp - 0x134]
call fcn.004bb5cc
add esp, 0x10
jmp 0x4354bd
mov dword [edi], 0x65f
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], 0x10
jb 0x4354db
push dword [ebp - 0x130]
call fcn.004b9238
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov eax, esi
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b923d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x436000
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x513720]
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 - 0xa4], edi
mov dword [ebp - 0xa0], 0x67452301
mov dword [ebp - 0x9c], 0xefcdab89
movdqu xmmword [ebx], xmm0
mov dword [ebp - 0x98], 0x98badcfe
movdqu xmmword [edi], xmm0
mov dword [ebp - 0x94], 0x10325476
movdqu xmmword [edi + 0x10], xmm0
mov byte [edi + 0x20], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
jb 0x436086
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0xa0]
push eax
call fcn.00424070
add esp, 4
lea ecx, [ebp - 0xa0]
mov edx, ebx
call fcn.00424150
xor esi, esi
movzx eax, byte [ebx + esi]
push eax
push str._02x
push 2
push 3
push edi
call fcn.004bb7ea
inc esi
add esp, 0x14
add edi, 2
cmp esi, 0x10
jb 0x4360a6
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov byte [eax + 0x20], 0
pop ebx
call fcn.004b923d
mov esp, ebp
pop ebp
ret
Function at 0x436f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.004be980
mov eax, dword [0x513720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004be330
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5016b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa8], eax
test eax, eax
jne 0x437014
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b923d
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43711d
lea ecx, [ebp - 0x2a90]
mov dword [ebp - 0x2a90], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x43711d
mov eax, ebx
mov dword [ebp - 0x2aa0], 3
lea ecx, [ebp - 0x2a98]
push esi
sub eax, ecx
push edi
lea edi, [ebp - 0x2a8c]
mov dword [ebp - 0x2aa4], eax
lea esp, [esp]
lea ecx, [edi + 8]
call fcn.00437180
mov dword [ebp - 0x2a9c], eax
xor eax, eax
mov dword [ebp - 0x2a98], eax
xor ecx, ecx
mov word [ebp - 0x2a94], ax
mov eax, dword [ebp - 0x2aa4]
lea esi, [ebp - 0x2a98]
add esi, ecx
mov dl, byte [eax + esi]
cmp dl, byte [esi]
jne 0x4370b2
inc ecx
cmp ecx, 6
jb 0x437095
mov ecx, dword [ebp - 0x2a9c]
jmp 0x4370d0
mov eax, dword [edi + 0x1a0]
cmp eax, 6
je 0x4370c2
cmp eax, 0x17
jne 0x437111
mov ecx, dword [ebp - 0x2a9c]
cmp dword [ebp - 0x2aa0], ecx
jle 0x437111
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 - 0x2aa0], ecx
mov edi, dword [edi]
test edi, edi
jne 0x437070
pop edi
pop esi
push dword [ebp - 0x2aa8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2a98], eax
mov word [ebp - 0x2a94], ax
lea eax, [ebp - 0x2a98]
sub ebx, eax
lea ecx, [ebp - 0x2a98]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x43715b
inc edx
cmp edx, 6
jb 0x437142
mov cl, 1
jmp 0x43715d
xor cl, cl
xor eax, eax
test cl, cl
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop ebx
call fcn.004b923d
mov esp, ebp
pop ebp
ret
Function at 0x437180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x513720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x11c]
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
mov edi, ecx
mov dword [ebp - 0x114], 0x104
mov ebx, 3
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x10c], 0
call esi
test eax, eax
jne 0x43734e
push edi
push str._sConnection
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.004bb7ea
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x437346
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 4
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], 4
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x118]
call edi
test eax, eax
jne 0x43733e
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x114], 0x103
call fcn.004be330
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x118]
call edi
test eax, eax
jne 0x43733e
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x43732f
push ebx
lea eax, [ebp - 0x108]
push 0x501750
push eax
call fcn.004beeb0
add esp, 0xc
test eax, eax
jne 0x4372fd
xor ebx, ebx
jmp 0x43733e
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x43732f
push 3
lea eax, [ebp - 0x108]
push 0x501750
push eax
call fcn.004beeb0
add esp, 0xc
test eax, eax
je 0x437329
mov ebx, 2
jmp 0x43733e
mov eax, dword [ebp - 0x10c]
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx*2 + 1]
push dword [ebp - 0x118]
call esi
push dword [ebp - 0x11c]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b923d
mov esp, ebp
pop ebp
ret
Function at 0x438b00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x513720]
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 0x438b34
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x438b34
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x438bf8
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x438b51
cmp ax, 0x5c
jne 0x438b53
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x438b45
cmp esi, ebx
je 0x438b9f
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.004bdce0
add esp, 0xc
cmp esi, 0x208
jae 0x438c08
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.00438b00
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x438bc2
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004bc30a
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004bc23f
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x438bf8
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.004b923d
mov esp, ebp
pop ebp
ret
call fcn.004bb4f0
int3

Function at 0x439460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x43952a
cmp dword [esi + 4], 0xffffffff
jne 0x43952a
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439491
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4394c5
cmp eax, 0x2f
je 0x4394c5
push 0x4fe494
push 0x104
push edi
call fcn.004bc23f
add esp, 0xc
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x4394eb
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4394eb
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043c080
add esp, 0x10
test eax, eax
jne 0x43950b
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.0043c7b0
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x439bb0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x4e4cd8]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e4cd8]
mov dword [edx + 8], eax
pop ebp
ret
Function at 0x43c1b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x43c1ee
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43c1e2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x43c1ff
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004bdce0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43c280
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43c28e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x43c363
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e4cd8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e4cd8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e4cd8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e4cd8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e4cd8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e4cd8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e4cd8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e4cd8]
dec edi
jne 0x43c2a6
pop edi
test esi, esi
je 0x43c382
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4e4cd8]
dec esi
jne 0x43c367
not eax
pop esi
pop ebp
ret
Function at 0x43d0d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x18
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x43d106
cmp byte [edi + 1], 0
je 0x43d0fe
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43d10c
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x43d131
cmp byte [edi + 1], 0
je 0x43d12a
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x43d134
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x43d143
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
jae 0x43d146
mov dword [ebp - 4], ebx
push esi
push 0x404
call fcn.004bb8a9
mov esi, eax
add esp, 4
test esi, esi
jne 0x43d164
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
mov dword [ebp + 8], 0xffffffff
cmp ecx, eax
jbe 0x43d268
jmp 0x43d180
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x18], edx
sub ebx, ecx
mov dword [ebp - 0x14], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x43d1ca
cmp byte [edi + 1], 0
je 0x43d268
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43d1cd
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x43d1f5
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43d1f0
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x10]
jmp 0x43d21e
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x43d208
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.004bdce0
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x43d268
lea eax, [ebx - 3]
test eax, eax
js 0x43d250
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x43d24c
cmp byte [eax + esi + 1], 0x4b
jne 0x43d24c
cmp byte [eax + esi + 2], 5
jne 0x43d24c
cmp byte [eax + esi + 3], 6
je 0x43d27b
test eax, eax
jns 0x43d230
mov eax, dword [ebp + 8]
test eax, eax
jne 0x43d268
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
cmp eax, ecx
jb 0x43d180
push esi
call fcn.004b9894
mov eax, dword [ebp + 8]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
jmp 0x43d253