joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x42c9e0
mov esi, eax
push 0x83
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402c63
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, edi
and esi, 0x1ff
neg esi
sbb esi, esi
mov ecx, edi
neg esi
shr ecx, 9
add esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
shl esi, 9
push esi
mov dword [eax], edi
call fcn.004130df
push esi
mov ebx, eax
push 0
push ebx
call fcn.00414250
mov edx, dword [esp + 0x20]
push edi
push edx
push ebx
call fcn.00413c20
add esp, 0x1c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x402fe0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x42f094]
xor eax, esp
mov dword [esp + 0x230], eax
push ebp
push esi
push edi
xor edi, edi
push edi
push 2
mov esi, ecx
mov dword [esp + 0x14], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40308c
push 0x22c
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00414250
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push ebp
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
je 0x403041
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403085
push ebx
xor edi, edi
cmp dword [esi], edi
jle 0x40306a
lea ebx, [esi + 4]
jmp 0x403050
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.004132de
add esp, 8
test eax, eax
je 0x4030a6
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x403050
lea eax, [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x403042
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x10]
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00411ee8
add esp, 0x234
ret
lea ecx, [esp + 0x38]
push ecx
lea edx, [esi + 0xa14]
push 0x40
push edx
mov dword [esp + 0x1c], 1
mov dword [esi + 0xa0c], edi
call fcn.004125cc
mov ecx, dword [esi + 0xa0c]
mov eax, dword [esp + 0x28]
shl ecx, 7
lea edx, [ecx + esi + 0x504]
push edx
mov dword [esi + 0xa10], eax
push 0x40
add esi, 0xa98
push esi
call fcn.004125cc
add esp, 0x18
jmp 0x403080
Function at 0x403370
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ebx, eax
test esi, esi
je 0x4034c1
test ebx, ebx
je 0x4034c1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403390
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x4034c1
push edi
push esi
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4033ce
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
call esi
jmp 0x4034a1
push 4
push 0x3000
push 0x104
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x4033fa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x4034a1
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403400
sub eax, edx
push 0
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x403431
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x4034a1
push 0x42c328
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40344e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x4034a1
push 0x42c39c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40346c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x4034a1
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x4034b3
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x403496
or ebp, eax
test esi, esi
je 0x4034a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4034ac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
call ebx
mov ebp, eax
jmp 0x403496
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x403d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403d27
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403d58
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403d54
cmp esi, eax
jae 0x403d58
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403d44
cmp esi, eax
jb 0x403d5e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403db0
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
xor eax, eax
push 0x10000
push edi
push 0x4522ee
mov dword [0x4522d0], eax
mov dword [0x4522d4], eax
mov dword [0x4522d8], eax
mov dword [0x4522dc], eax
mov word [0x4522e0], ax
mov dword [0x4522e2], edi
mov dword [0x4522e6], 1
mov dword [0x4522ea], edi
call fcn.00414250
push 0x10000
push edi
push 0x4622f2
mov dword [0x4622ee], edi
call fcn.00414250
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x18
push edi
push edi
push 0x4522d0
push 0x403d90
push edi
push edi
mov dword [0x472af2], edi
call esi
push edi
push edi
push 0x4522d0
push 0x403da0
push edi
push edi
call esi
pop edi
mov eax, 0x4522d0
pop esi
ret
Function at 0x4040f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x810
mov eax, dword [0x42f094]
xor eax, esp
mov dword [esp + 0x80c], eax
mov eax, dword [esp + 0x814]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x818]
push ebp
push edi
lea ebp, [esp + 0x14]
test eax, eax
je 0x404122
mov ebp, eax
xor ecx, ecx
mov word [ebp], cx
mov dword [esp + 0xc], ecx
cmp dword [esi], ecx
je 0x4041b6
push ebx
call fcn.004130df
mov edx, dword [esp + 0x14]
push ebx
mov edi, eax
push edx
push edi
call fcn.00413c20
add esp, 0x10
mov eax, ebx
shr eax, 0x18
push 0
mov ecx, ebx
sar ecx, 0x10
mov byte [esp + 0xc], al
push 4
lea eax, [esp + 0x10]
mov byte [esp + 0x11], cl
mov ecx, dword [esi]
mov edx, ebx
push eax
sar edx, 8
push ecx
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], bl
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [esi]
push 0
push ebx
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40419c
cmp eax, ebx
jne 0x40419c
mov dword [esp + 0xc], 1
jmp 0x4041ba
mov eax, 0x42ba14
mov edx, ebp
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4041a5
jmp 0x4041ba
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4041c7
push edi
call fcn.00411edd
add esp, 4
mov ecx, dword [esp + 0x814]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
xor ecx, esp
call fcn.00411ee8
add esp, 0x810
ret 8
Function at 0x4041f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x818
mov eax, dword [0x42f094]
xor eax, esp
mov dword [esp + 0x814], eax
mov eax, dword [esp + 0x81c]
push ebp
push esi
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
test eax, eax
je 0x404223
mov dword [esp + 0x10], eax
mov esi, eax
xor eax, eax
mov word [esi], ax
mov eax, dword [ebx]
xor ebp, ebp
mov dword [esp + 0x18], ebp
test eax, eax
je 0x40427f
test ecx, ecx
je 0x40427f
push ebp
push 4
lea ecx, [esp + 0x10]
push ecx
push eax
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40429a
mov eax, 0x42ba38
mov edx, esi
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404270
mov eax, ebp
mov ecx, dword [esp + 0x81c]
pop esi
pop ebp
xor ecx, esp
call fcn.00411ee8
add esp, 0x818
ret 4
test eax, eax
jne 0x4042a5
mov eax, 1
jmp 0x404281
movzx ebp, byte [esp + 8]
movzx edx, byte [esp + 9]
movzx eax, byte [esp + 0xa]
movzx ecx, byte [esp + 0xb]
shl ebp, 8
add ebp, edx
mov edx, dword [edi]
shl ebp, 8
add ebp, eax
shl ebp, 8
push edx
add ebp, ecx
xor esi, esi
call fcn.004130df
add esp, 4
cmp dword [edi], esi
mov dword [esp + 0xc], eax
jle 0x40430b
lea ecx, [ecx]
cmp esi, ebp
jae 0x40430b
mov ecx, dword [edi]
push 0
sub ecx, esi
push ecx
lea edx, [esi + eax]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404321
test eax, eax
je 0x404321
add esi, eax
cmp dword [edi], esi
mov eax, dword [esp + 0xc]
jg 0x4042e0
mov ecx, dword [edi]
cmp ecx, esi
jl 0x404345
mov ecx, dword [esp + 0x14]
push esi
push eax
push ecx
call fcn.00413c20
mov dword [edi], esi
jmp 0x404351
mov edx, dword [esp + 0x10]
mov eax, 0x42ba98
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404330
mov esi, dword [esp + 0x18]
jmp 0x404359
mov edx, dword [esp + 0x14]
push ecx
push eax
push edx
call fcn.00413c20
add esp, 0xc
mov esi, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40436a
push eax
call fcn.00411edd
add esp, 4
mov eax, esi
jmp 0x404281
Function at 0x4047b0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
push edi
mov edi, eax
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0x4048a1
cmp edi, 0xa
jb 0x4048a1
lea eax, [edi*4]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.00411f46
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.00404630
add esp, 8
test eax, eax
je 0x40489a
mov eax, dword [esp + 0x1c]
push 0x42b804
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00412164
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x404825
lea ebp, [eax - 2]
jmp 0x404850
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push esi
call fcn.00412319
add esp, 0x10
cmp eax, edi
je 0x404867
mov ebp, 0xfffffffe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404850
push eax
call fcn.00412412
add esp, 4
test esi, esi
je 0x40485d
push esi
call fcn.00412010
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [esp + 0x10]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.00412319
add esp, 0x10
jmp 0x40483f
mov ebp, 0xfffffffd
jmp 0x40483f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x406620
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x406627
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x406704
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42ab48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42ab48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42ab48]
inc ecx
sub edx, 8
sub esi, 1
jne 0x406640
pop edi
test edx, edx
je 0x40672b
jmp 0x406710
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42ab48]
inc ecx
sub edx, 1
jne 0x406710
not eax
pop esi
ret

Function at 0x406730
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42ab48]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42ab48]
mov dword [edx + 8], ecx
ret

Function at 0x406780
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x42ab48]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x42ab48]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x406e90
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x406ec2
mov ecx, dword [edi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406eb8
mov byte [edi + 6], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x406ed5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
push esi
add eax, ecx
push eax
push edx
call fcn.00413c20
add dword [edi + 0x14], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x406ef0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x406f23
mov edx, dword [esi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406f1d
mov byte [esi + 6], 1
mov edi, dword [esp + 8]
jmp 0x406f4f
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x406f35
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0xc]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00413c20
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x406f66
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x406f60
cmp byte [esi + 6], 0
je 0x406f60
or eax, 0xffffffff
add esp, 8
ret
Function at 0x407000
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x407045
cmp byte [esi + 1], 0
je 0x40704d
mov eax, dword [esi + 2]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x407062
cmp byte [esi + 1], 0
je 0x407054
mov edx, dword [esi + 2]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 7]
mov dword [esp + 4], ebp
jmp 0x40706b
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x40701e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40706b
mov eax, dword [esi + 0x14]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40707f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00411f46
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40709d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x4071b1
jmp 0x4070c0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x4070d1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x4070ea
mov ebp, 0x404
cmp byte [esi], 0
je 0x40710f
cmp byte [esi + 1], 0
je 0x4071b1
mov ecx, dword [esi + 7]
mov edx, dword [esi + 2]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407112
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40713a
mov ecx, dword [esi + 2]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407134
mov byte [esi + 6], 1
mov eax, dword [esp + 0x1c]
jmp 0x407160
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40714b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00413c20
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x4071b1
lea eax, [ebp - 3]
test eax, eax
jl 0x40719c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40718c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40718c
cmp byte [eax + ebx + 2], 5
jne 0x40718c
cmp byte [eax + ebx + 3], 6
je 0x407192
test eax, eax
jge 0x407170
jmp 0x40719c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x4071b1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4070b4
push ebx
call fcn.00412010
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x407b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x407b9e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x407b92
cmp dword [edi + 0x7c], ebx
je 0x407bad
call fcn.00407f60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004078f0
add esp, 0xc
test eax, eax
je 0x407bd4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.00411f46
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407c12
push 0x4000
call fcn.00411f46
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x407c1f
push esi
call fcn.00412010
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x407c67
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00406a40
test eax, eax
jne 0x407c67
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x407c8e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x407c94
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x407cd1
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x407cd1
call fcn.00406730
add ebp, 1
jne 0x407cc0
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4080c0
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x408173
cmp dword [esi + 4], 0xffffffff
jne 0x408173
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x4080f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4080f0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x408129
cmp ax, 0x2f
je 0x408129
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408116
mov eax, dword [0x42afe0]
mov dword [edi], eax
push 0x18
call fcn.004134f5
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.004071d0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x411ee8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f094]
jne 0x411ef2
repz ret
jmp fcn.00414e07

Function at 0x41dd8e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00417237
and dword [ebp - 4], 0
cmp dword [0x431b20], 0
mov ebx, eax
jne 0x41de3f
push 0x4277a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41def0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42779c
push edi
call esi
test eax, eax
je 0x41def0
push eax
call fcn.004171c5
mov dword [esp], 0x42778c
push edi
mov dword [0x431b20], eax
call esi
push eax
call fcn.004171c5
mov dword [esp], 0x427778
push edi
mov dword [0x431b24], eax
call esi
push eax
call fcn.004171c5
mov dword [esp], 0x42775c
push edi
mov dword [0x431b28], eax
call esi
push eax
call fcn.004171c5
pop ecx
mov dword [0x431b30], eax
test eax, eax
je 0x41de3f
push 0x427744
push edi
call esi
push eax
call fcn.004171c5
pop ecx
mov dword [0x431b2c], eax
mov eax, dword [0x431b2c]
cmp eax, ebx
je 0x41de97
cmp dword [0x431b30], ebx
je 0x41de97
push eax
call fcn.00417240
push dword [0x431b30]
mov esi, eax
call fcn.00417240
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41de97
test edi, edi
je 0x41de97
call esi
test eax, eax
je 0x41de8e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41de8e
test byte [ebp - 0xc], 1
jne 0x41de97
or dword [ebp + 0x10], 0x200000
jmp 0x41ded0
mov eax, dword [0x431b24]
cmp eax, ebx
je 0x41ded0
push eax
call fcn.00417240
pop ecx
test eax, eax
je 0x41ded0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ded0
mov eax, dword [0x431b28]
cmp eax, ebx
je 0x41ded0
push eax
call fcn.00417240
pop ecx
test eax, eax
je 0x41ded0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431b20]
call fcn.00417240
pop ecx
test eax, eax
je 0x41def0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41def2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret