joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d3e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x804
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x80c]
push esi
push edi
mov edi, dword [esp + 0x810]
push 0x51878c
push eax
call fcn.004c20fd
mov esi, eax
add esp, 8
test esi, esi
je 0x48d489
push 0x518790
push edi
call fcn.004c20fd
mov edi, eax
add esp, 8
test edi, edi
je 0x48d480
push esi
call fcn.004c2845
add esp, 4
test eax, eax
jne 0x48d477
lea esp, [esp]
push esi
push 0x800
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004c1e2a
add esp, 0x10
test eax, eax
jle 0x48d46a
push edi
push eax
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004c2a02
add esp, 0x10
push esi
call fcn.004c2845
add esp, 4
test eax, eax
je 0x48d440
push edi
call fcn.004c1af7
add esp, 4
push esi
call fcn.004c1af7
add esp, 4
mov ecx, dword [esp + 0x808]
pop edi
pop esi
xor ecx, esp
call fcn.004c118f
add esp, 0x804
ret

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

Disassembly:
push ecx
mov eax, dword [ecx + 0xf0]
mov dl, byte [esp + 0xb]
push ebx
mov bl, byte [esp + 0xe]
xor eax, ecx
push esi
lea esi, [ecx + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], eax
or eax, 0xffffffff
test ecx, ecx
je 0x48f11f
movzx eax, cl
not eax
and eax, 0xff
mov eax, dword [eax*4 + 0x53a208]
xor eax, 0xffffff
movzx ebx, ch
xor ebx, eax
sar eax, 8
and ebx, 0xff
and eax, 0xffffff
xor eax, dword [ebx*4 + 0x53a208]
movzx ebx, byte [esp + 0x12]
xor ebx, eax
sar eax, 8
and ebx, 0xff
and eax, 0xffffff
xor eax, dword [ebx*4 + 0x53a208]
movzx ebx, dl
xor ebx, eax
sar eax, 8
and ebx, 0xff
and eax, 0xffffff
xor eax, dword [ebx*4 + 0x53a208]
mov bl, byte [esp + 0x12]
push edi
lea edi, [esi + 0xe8]
cmp esi, edi
jae 0x48f155
lea ebx, [ebx]
movzx ebx, byte [esi]
xor ebx, eax
sar eax, 8
and ebx, 0xff
and eax, 0xffffff
xor eax, dword [ebx*4 + 0x53a208]
add esi, 1
cmp esi, edi
jb 0x48f130
mov bl, byte [esp + 0x16]
not eax
mov esi, eax
or eax, 0xffffffff
test ecx, ecx
pop edi
je 0x48f1bf
movzx eax, cl
not eax
and eax, 0xff
mov eax, dword [eax*4 + 0x53a208]
xor eax, 0xffffff
movzx ecx, ch
xor ecx, eax
sar eax, 8
and eax, 0xffffff
and ecx, 0xff
xor eax, dword [ecx*4 + 0x53a208]
xor ebx, eax
sar eax, 8
and eax, 0xffffff
and ebx, 0xff
xor eax, dword [ebx*4 + 0x53a208]
xor edx, eax
sar eax, 8
and edx, 0xff
and eax, 0xffffff
xor eax, dword [edx*4 + 0x53a208]
lea ecx, [esp + 8]
movzx edx, byte [ecx]
xor edx, eax
sar eax, 8
and edx, 0xff
and eax, 0xffffff
xor eax, dword [edx*4 + 0x53a208]
add ecx, 1
lea edx, [esp + 0xc]
cmp ecx, edx
jb 0x48f1c3
not eax
add eax, esi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x48f960
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
mov edx, ecx
push edi
lea esi, [edx + 0x120]
mov ecx, 0x45
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
or esi, 0xffffffff
test ecx, ecx
je 0x48fa02
movzx eax, cl
not eax
and eax, 0xff
mov eax, dword [eax*4 + 0x53a208]
xor eax, 0xffffff
movzx ebx, ch
xor ebx, eax
sar eax, 8
and ebx, 0xff
and eax, 0xffffff
xor eax, dword [ebx*4 + 0x53a208]
movzx ebx, byte [ebp + 0xa]
xor ebx, eax
sar eax, 8
and ebx, 0xff
and eax, 0xffffff
xor eax, dword [ebx*4 + 0x53a208]
movzx ebx, byte [ebp + 0xb]
xor ebx, eax
sar eax, 8
and ebx, 0xff
and eax, 0xffffff
xor eax, dword [ebx*4 + 0x53a208]
mov esi, eax
lea eax, [esp + 0x10]
movzx ebx, byte [eax]
xor ebx, esi
sar esi, 8
and ebx, 0xff
and esi, 0xffffff
xor esi, dword [ebx*4 + 0x53a208]
add eax, 1
lea edi, [esp + 0x124]
cmp eax, edi
jb 0x48fa06
push ecx
mov ecx, edx
call fcn.0048f090
mov ecx, dword [esp + 0x12c]
not esi
pop edi
add eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004c118f
mov esp, ebp
pop ebp
ret 4

Function at 0x494310
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 8]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x494330
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
mov edx, dword [esi + 8]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push edi
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x494380
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
push 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ecx
ret 8

Function at 0x494390
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x4943a0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4943a0
mov ecx, dword [ecx + 8]
sub eax, edi
add eax, 1
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8
Function at 0x4943d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push esi
push 0
push 0
mov ebx, ecx
mov ecx, dword [ebx + 8]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x494430
mov edx, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push edx
push edi
push esi
call fcn.004c0c10
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x494410
sub eax, edx
add eax, 1
push eax
mov eax, dword [ebx + 8]
push edi
push 1
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x494440
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
push 0
push esi
mov edi, ecx
call fcn.004c14b0
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 8]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
mov eax, esi
pop esi
ret 0xc

Function at 0x494480
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 8]
push eax
mov eax, dword [esp + 8]
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc
Function at 0x4944a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
mov ebx, dword [esp + 0x41c]
push esi
mov esi, dword [esp + 0x41c]
push edi
push 3
push 0x518fe4
push esi
mov edi, reloc.WSOCK32.dll_bind
call fcn.004c50c4
add esp, 0xc
test eax, eax
jne 0x4944e3
add esi, 4
jmp 0x49453b
push 3
push 0x518fe8
push esi
call fcn.004c50c4
add esp, 0xc
test eax, eax
jne 0x494501
mov edi, reloc.DSOUND.dll_DirectSoundCreate
add esi, 4
jmp 0x49453b
push 3
push 0x518fec
push esi
call fcn.004c50c4
add esp, 0xc
test eax, eax
jne 0x49451f
mov edi, getsockopt
add esi, 4
jmp 0x49453b
push 2
push 0x518ff0
push esi
call fcn.004c50c4
add esp, 0xc
test eax, eax
jne 0x49453b
mov edi, reloc.WSOCK32.dll_closesocket
add esi, 3
lea edx, [esp + 0x18]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x494543
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.004c0af0
mov esi, eax
add esp, 8
test esi, esi
je 0x49456a
mov byte [esi], 0
add esi, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x428]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4945d5
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov byte [ebx], 0
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004c118f
add esp, 0x410
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], 1
je 0x4945f8
mov eax, dword [ebx]
push eax
push 0x518ff4
push ebx
call fcn.004c1313
add esp, 0xc
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004c118f
add esp, 0x410
ret
Function at 0x494760
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x408], eax
push esi
mov esi, dword [esp + 0x414]
push edi
push 3
push 0x519008
push esi
mov edi, reloc.WSOCK32.dll_bind
call fcn.004c50c4
add esp, 0xc
test eax, eax
jne 0x49479b
add esi, 4
jmp 0x4947f3
push 3
push 0x51900c
push esi
call fcn.004c50c4
add esp, 0xc
test eax, eax
jne 0x4947b9
mov edi, reloc.DSOUND.dll_DirectSoundCreate
add esi, 4
jmp 0x4947f3
push 3
push 0x519010
push esi
call fcn.004c50c4
add esp, 0xc
test eax, eax
jne 0x4947d7
mov edi, getsockopt
add esi, 4
jmp 0x4947f3
push 2
push 0x519014
push esi
call fcn.004c50c4
add esp, 0xc
test eax, eax
jne 0x4947f3
mov edi, reloc.WSOCK32.dll_closesocket
add esi, 3
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x494800
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x494800
lea eax, [esp + 0x10]
push 0x5c
push eax
call fcn.004c0af0
mov esi, eax
add esp, 8
test esi, esi
je 0x494827
mov byte [esi], 0
add esi, 1
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x420]
push ecx
push 4
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x410]
pop edi
pop esi
xor ecx, esp
call fcn.004c118f
add esp, 0x40c
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
or esi, 0xffffffff
test ebx, ebx
push edi
je 0x494a38
movzx edx, byte [esp + 0x12]
movzx eax, bl
not eax
and eax, 0xff
mov eax, dword [eax*4 + 0x53a208]
xor eax, 0xffffff
movzx ecx, bh
xor ecx, eax
sar eax, 8
and eax, 0xffffff
and ecx, 0xff
xor eax, dword [ecx*4 + 0x53a208]
movzx ecx, byte [esp + 0x13]
xor edx, eax
sar eax, 8
and eax, 0xffffff
and edx, 0xff
xor eax, dword [edx*4 + 0x53a208]
xor ecx, eax
sar eax, 8
and ecx, 0xff
and eax, 0xffffff
xor eax, dword [ecx*4 + 0x53a208]
mov esi, eax
mov eax, dword [esp + 0x14]
lea edi, [eax + 0x16046]
cmp eax, edi
jae 0x494a68
movzx edx, byte [eax]
xor edx, esi
sar esi, 8
and edx, 0xff
and esi, 0xffffff
xor esi, dword [edx*4 + 0x53a208]
add eax, 1
cmp eax, edi
jb 0x494a46
mov ecx, dword [esp + 0x18]
push ebx
call fcn.00491990
mov ecx, dword [esp + 0x1c]
add eax, ebx
not esi
push ebx
add esi, eax
call fcn.004b2c80
mov ecx, dword [esp + 0x20]
push ebx
add esi, eax
call fcn.004afa40
mov ecx, dword [esp + 0x24]
push ebx
add esi, eax
call fcn.0048e6a0
pop edi
add eax, esi
pop esi
pop ebx
ret
Function at 0x49d560
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x50ccfa
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov eax, dword [0x53bbf0]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.WindowPrimarySurface.0
xor edi, edi
cmp dword [esi + 0xd0], edi
mov dword [esp + 0x11c], edi
je 0x49d607
mov eax, dword [esi + 0xdc]
cmp eax, edi
je 0x49d607
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80000
push eax
mov eax, dword [esi + 0xdc]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esi + 0xdc]
push 0x100
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esi + 0xdc]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [esi + 0xc4]
cmp ecx, edi
je 0x49d61f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0xc4], edi
mov ecx, dword [esi + 0xc0]
cmp ecx, edi
je 0x49d637
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0xc0], edi
mov eax, dword [esi + 0xa8]
cmp eax, edi
je 0x49d64f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0xa8], edi
mov eax, dword [esi + 0xa4]
cmp eax, edi
je 0x49d667
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0xa4], edi
mov eax, dword [esi + 0xd4]
cmp eax, edi
je 0x49d67f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0xd4], edi
mov eax, dword [esi + 0xd8]
cmp eax, edi
je 0x49d697
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0xd8], edi
mov eax, dword [esi + 0xac]
cmp eax, edi
je 0x49d6af
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0xac], edi
mov dword [esi], vtable.Surface.0
mov dword [esi + 0x14], edi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004c118f
add esp, 0x114
ret
Function at 0x49fbc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50cdbc
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x53bbf0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
or eax, 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi + 0xa4], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov ecx, esi
mov dword [esp + 0x28], edi
mov dword [esi], vtable.MemorySurface.0
mov dword [esi + 8], edx
mov dword [esi + 0xc8], eax
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xa8], edi
call fcn.0049db30
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call edx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0x10
Function at 0x49fca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50cddf
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x53bbf0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi + 0xa4], eax
mov eax, dword [esp + 0x48]
cmp eax, edi
mov dword [esp + 0x28], edi
mov dword [esi], vtable.MemorySurface.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xac], ecx
mov dword [esi + 0xb0], edx
mov dword [esi + 0xc4], edi
je 0x49fd6d
mov ecx, dword [eax]
mov dword [esi + 0xb4], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xb8], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0xbc], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc0], edx
mov dword [esi + 0xc4], 1
mov eax, dword [esp + 0x4c]
mov dword [esi + 0xc8], eax
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov dword [esi + 0xa8], edi
je 0x49fd94
push eax
call fcn.0040284c
add esp, 4
mov dword [esi + 0xa8], eax
mov ecx, esi
call fcn.0049db30
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call edx
mov eax, dword [esp + 0x40]
cmp eax, edi
jl 0x49fdfd
mov ecx, dword [esp + 0x44]
cmp ecx, edi
jl 0x49fdfd
push ecx
push eax
mov ecx, esi
call fcn.0049b870
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
je 0x49fdfd
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 8
push eax
mov eax, dword [ecx + 0x74]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0x20
Function at 0x4a3500
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov esi, ecx
push 0xb6
lea edi, [esi + 0xa4]
push 0
push edi
call fcn.004c14b0
mov eax, dword [esp + 0x18]
movzx ecx, word [eax]
mov word [esi + 0xa8], cx
movzx edx, word [eax + 2]
mov word [esi + 0xaa], dx
movzx ecx, word [eax + 4]
mov word [esi + 0xac], cx
movzx edx, word [eax + 6]
mov word [esi + 0xae], dx
movzx ecx, word [eax + 8]
mov word [esi + 0xb0], cx
movzx edx, word [eax + 0xa]
mov word [esi + 0xb2], dx
movzx ecx, word [eax + 0xc]
mov word [esi + 0xb4], cx
movzx edx, word [eax + 0xe]
mov word [esi + 0xb6], dx
movzx ecx, word [eax + 0x10]
mov word [esi + 0xb8], cx
movzx edx, byte [eax + 0x12]
mov dword [esi + 0xbc], edx
mov cl, byte [eax + 0x13]
mov byte [esi + 0xc6], cl
mov edx, dword [eax + 0x14]
mov dword [edi], edx
lea ecx, [eax + 0x18]
lea edi, [esi + 0xca]
add esp, 0xc
sub edi, ecx
mov dl, byte [ecx]
mov byte [edi + ecx], dl
add ecx, 1
test dl, dl
jne 0x4a35a3
movzx ecx, byte [eax + 0x28]
mov word [esi + 0xc0], cx
movzx dx, byte [eax + 0x29]
mov word [esi + 0xc2], dx
movzx ecx, word [eax + 0x2a]
mov word [esi + 0xba], cx
movzx edx, byte [eax + 0x2c]
mov byte [esi + 0xc7], dl
mov cl, byte [eax + 0x2d]
mov byte [esi + 0xc8], cl
movzx edx, byte [eax + 0x2e]
pop edi
mov byte [esi + 0xc9], dl
pop esi
ret 4

Function at 0x4a3600
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov esi, ecx
push 0xb6
lea edi, [esi + 0xa4]
push 0
push edi
call fcn.004c14b0
mov eax, dword [esp + 0x18]
movzx ecx, word [eax]
mov word [esi + 0xa8], cx
movzx edx, word [eax + 2]
mov word [esi + 0xaa], dx
movzx ecx, word [eax + 4]
mov word [esi + 0xac], cx
movzx edx, word [eax + 6]
mov word [esi + 0xae], dx
movzx ecx, word [eax + 8]
mov word [esi + 0xb0], cx
movzx edx, word [eax + 0xa]
mov word [esi + 0xb2], dx
movzx ecx, word [eax + 0xc]
mov word [esi + 0xb4], cx
movzx edx, word [eax + 0xe]
mov word [esi + 0xb6], dx
movzx ecx, word [eax + 0x10]
mov word [esi + 0xb8], cx
movzx edx, byte [eax + 0x12]
mov dword [esi + 0xbc], edx
mov cl, byte [eax + 0x13]
mov byte [esi + 0xc6], cl
mov edx, dword [eax + 0x14]
mov dword [edi], edx
lea ecx, [eax + 0x18]
lea edi, [esi + 0xca]
add esp, 0xc
sub edi, ecx
mov dl, byte [ecx]
mov byte [edi + ecx], dl
add ecx, 1
test dl, dl
jne 0x4a36a3
movzx ecx, byte [eax + 0x28]
mov word [esi + 0xc0], cx
movzx dx, byte [eax + 0x29]
mov word [esi + 0xc2], dx
movzx ecx, word [eax + 0x2a]
mov word [esi + 0xba], cx
movzx edx, byte [eax + 0x2c]
mov byte [esi + 0xc7], dl
mov cl, byte [eax + 0x2d]
mov byte [esi + 0xc8], cl
movzx edx, byte [eax + 0x2e]
mov byte [esi + 0xc9], dl
add eax, 0x2f
lea edx, [esi + 0xea]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4a3700
pop edi
mov word [esi + 0xc4], 0
pop esi
ret 4
Function at 0x4a49d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4c0
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x4bc], eax
push esi
push edi
mov edi, dword [esp + 0x4cc]
push edi
push 2
lea eax, [esp + 0x10]
push 1
push eax
mov esi, ecx
call fcn.004c1e2a
mov ax, word [esp + 0x18]
add esp, 0x10
cmp ax, 2
push edi
push 1
jg 0x4a4a32
lea ecx, [esp + 0x414]
push 0x1e
push ecx
call fcn.004c1e2a
add esp, 0x10
lea edx, [esp + 0x40c]
push edx
mov ecx, esi
call fcn.004a3460
jmp 0x4a4a98
cmp ax, 3
jg 0x4a4a5b
lea eax, [esp + 0x414]
push 0x38
push eax
call fcn.004c1e2a
add esp, 0x10
lea ecx, [esp + 0x40c]
push ecx
mov ecx, esi
call fcn.004a3500
jmp 0x4a4a98
cmp ax, 4
jg 0x4a4a84
lea edx, [esp + 0x44c]
push 0x7f
push edx
call fcn.004c1e2a
add esp, 0x10
lea eax, [esp + 0x444]
push eax
mov ecx, esi
call fcn.004a3600
jmp 0x4a4a98
lea ecx, [esi + 0xa4]
push 0xb6
push ecx
call fcn.004c1e2a
add esp, 0x10
push edi
push 0x100
lea edx, [esp + 0x14]
push 4
push edx
call fcn.004c1e2a
movzx eax, word [esi + 0xb8]
add esp, 0x10
test ax, ax
jle 0x4a4adc
movsx eax, ax
push eax
call fcn.004c2308
movsx ecx, word [esi + 0xb8]
push edi
push 1
push ecx
push eax
mov dword [esi + 0x15a], eax
call fcn.004c1e2a
add esp, 0x14
movsx eax, word [esi + 0xa8]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c538d
movsx ecx, word [esi + 0xa8]
push edi
push ecx
push 0xc
push eax
mov dword [esi + 0x168], eax
call fcn.004c1e2a
mov edx, dword [esi + 0xa4]
push edx
call fcn.004c2308
mov ecx, dword [esi + 0xa4]
push edi
push ecx
push 1
push eax
mov dword [esi + 0x164], eax
call fcn.004c1e2a
mov dx, 0x100
sub dx, word [esi + 0xb6]
lea eax, [esp + 0x34]
sub dx, word [esi + 0xb4]
push 0
push eax
mov word [esi + 0x162], dx
call fcn.004a4770
mov edi, dword [esi + 0x15e]
add esp, 0x30
test edi, edi
mov dword [esi + 0x178], eax
je 0x4a4b75
mov ecx, 0x100
lea esi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x4c4]
pop edi
pop esi
xor ecx, esp
call fcn.004c118f
add esp, 0x4c0
ret 4
Function at 0x4a61a0
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x98]
test ecx, ecx
je 0x4a61ec
lea eax, [esp + 8]
push eax
add edi, 0x54
push edi
call fcn.004b88c0
mov esi, eax
test esi, esi
je 0x4a62b2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push ecx
push edx
push esi
call fcn.004a5b70
push esi
mov edi, eax
call fcn.004c21b6
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ecx
ret 8
cmp byte [edi + 0x54], 0
lea esi, [edi + 0x54]
je 0x4a6265
push 0
push esi
call fcn.004c4420
add esp, 8
test eax, eax
jne 0x4a6265
push 0x51dc04
push esi
call fcn.004c20fd
mov esi, eax
add esp, 8
test esi, esi
je 0x4a6265
push ebx
push esi
call fcn.004c200c
push eax
call fcn.004c1f0d
mov ebx, eax
push ebx
call fcn.004c2308
push esi
push ebx
mov edi, eax
push 1
push edi
call fcn.004c1e2a
push esi
call fcn.004c1af7
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0
push eax
push ecx
push edi
call fcn.004a5b70
push edi
mov esi, eax
call fcn.004c21b6
add esp, 0x34
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret 8
movzx edx, word [edi + 0x40]
mov eax, dword [edi + 0x44]
push 0x51dc08
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4a62b2
mov ecx, dword [edi + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a62b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4a62b2
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push edx
push ecx
push eax
call fcn.004a5b70
add esp, 0x10
pop edi
pop esi
pop ecx
ret 8
pop edi
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x4a74a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004c118f
add esp, 0x194
ret