joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebp
mov ebp, dword [esp + 0x9b8]
push esi
push edi
xor eax, eax
push 0x7fe
mov edi, ecx
push eax
lea ecx, [esp + 0x1ba]
push ecx
mov word [esp + 0x1bc], ax
call fcn.0040f900
add esp, 0xc
lea esi, [esp + 0x1b0]
test edi, edi
je 0x4052fd
mov esi, edi
lea eax, [esp + 0x20]
xor edx, edx
push eax
push 0x101
mov word [esi], dx
mov dword [esp + 0x14], edx
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x405369
push 0x41de54
push 0x3ff
push esi
call fcn.0040a794
push 0x41de74
push 0x3ff
push esi
call fcn.0040a6eb
push 0x41de78
push 0x3ff
push esi
call fcn.0040a6eb
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x9b0
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x40531c
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x405401
push ebp
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x405401
push 0x41de54
push 0x3ff
push esi
call fcn.0040a794
push 0x41de74
push 0x3ff
push esi
call fcn.0040a6eb
push 0x41de78
push 0x3ff
push esi
call fcn.0040a6eb
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x4053e7
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], edi
mov ecx, dword [esp + 0x9b4]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040a6dc
add esp, 0x9b0
ret
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, dword [esp + 0x9c4]
mov edx, 2
push eax
mov dword [esp + 0x18], ecx
mov word [esp + 0x14], dx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebx]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x405447
push 0x41deb8
jmp 0x4053aa
mov edi, 1
jmp 0x4053e7
Function at 0x405450
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x4054d2
cmp edi, eax
jle 0x40547d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x405470
lea ebx, [edi + 7]
push ebx
call fcn.0040a902
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x4230e4]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00410490
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4054d6
cmp eax, ebx
jne 0x4054d6
mov dword [esp + 0xc], 1
jmp 0x4054d6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4054e3
push esi
call fcn.0040a967
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405630
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8dc
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x8d8], eax
mov eax, dword [esp + 0x8e4]
push ebx
push ebp
mov ebp, dword [esp + 0x8e8]
push esi
push edi
mov esi, edx
xor edx, edx
push 0x7fe
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0xf2]
push eax
mov dword [esp + 0x28], ecx
mov word [esp + 0xf4], dx
call fcn.0040f900
add esp, 0xc
lea edi, [esp + 0xe8]
mov dword [esp + 0x10], edi
test esi, esi
je 0x405695
mov dword [esp + 0x10], esi
mov edi, esi
xor ecx, ecx
mov word [edi], cx
mov esi, dword [ebp]
xor ebx, ebx
mov dword [esp + 0x14], ebx
test esi, esi
je 0x40580d
cmp dword [esp + 0x18], ecx
je 0x40580d
push 0xc7
lea edx, [esp + 0x25]
push ebx
push edx
mov byte [esp + 0x2c], cl
call fcn.0040f900
add esp, 0xc
push ebx
push 2
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4057fa
test eax, eax
je 0x4057fa
movzx edi, word [esp + 0x20]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040a902
add esp, 4
mov ebx, eax
test edi, edi
jle 0x4057b2
lea esp, [esp]
mov ecx, dword [ebp]
push 0
mov edx, edi
sub edx, esi
push edx
lea eax, [esi + ebx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x405795
test eax, eax
je 0x405795
add esi, eax
cmp edi, esi
jg 0x405710
cmp esi, 5
jl 0x4057b2
mov eax, dword [str.AS101]
sub esi, 5
cmp eax, dword [ebx]
jne 0x4057e1
mov cl, byte [ebx + 4]
cmp cl, byte [0x4230e4]
jne 0x4057e1
test esi, esi
jle 0x40576d
lea eax, [ebx + 5]
mov edi, esi
mov dl, byte [eax]
not dl
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x405761
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
cmp eax, esi
jl 0x4057c5
mov ecx, dword [esp + 0x18]
push esi
lea eax, [ebx + 5]
push eax
push ecx
call fcn.00410490
mov dword [edi], esi
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x4057b2
mov edx, dword [esp + 0x10]
push 0x41ded8
push 0x3ff
push edx
call fcn.0040a794
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x4057bf
push ebx
call fcn.0040a967
add esp, 4
mov eax, dword [esp + 0x14]
jmp 0x40580f
push eax
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 5]
push edx
push eax
call fcn.00410490
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x4057b2
mov ecx, dword [esp + 0x10]
push 0x41ded8
push 0x3ff
push ecx
call fcn.0040a794
add esp, 0xc
jmp 0x4057b2
push 0x41ded8
push 0x3ff
push edi
call fcn.0040a794
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x8e8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a6dc
add esp, 0x8dc
ret
Function at 0x4059f0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00415880
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x405a48
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x405a8d
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x405a8c
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.0040b45e
add edi, esi
add esp, 0x10
mov dword [0x424718], edi
cmp edi, dword [esp + 0xc]
jb 0x405a50
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0040b280
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
inc eax
call fcn.0040a6dc
add esp, 0x100c
ret

Function at 0x405f50
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.0040f900
add esp, 0xc
cmp edi, esi
je 0x406038
mov eax, 0x41ddb0
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405f95
sub eax, edx
sar eax, 1
je 0x405fbf
push 0x41dda8
lea edx, [esp + 8]
push 0x41ddb0
push edx
call fcn.0040abdf
add esp, 0xc
jmp 0x405ffa
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.golfinfo.ini
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040a6eb
push 0x41dda8
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040abdf
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40601d
push eax
push 1
push 0x200
push edi
call fcn.0040b45e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040b280
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040a6dc
add esp, 0x214
ret
Function at 0x406050
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040f900
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x406155
mov eax, str.golfset.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406095
sub eax, edx
sar eax, 1
je 0x406155
cmp dword [0x423060], 3
jne 0x4060dc
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x41dc50
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040a6eb
add esp, 0xc
jmp 0x4060ec
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.golfset.ini
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040a6eb
push 0x41dda0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040abdf
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x406155
push eax
push 1
push 0x200
push esi
call fcn.0040b1ec
mov edx, dword [esp + 0x14]
push edx
call fcn.0040b280
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040a6dc
add esp, 0x214
ret

Function at 0x406170
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040f900
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x40623f
mov eax, str.golfinfo.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4061b5
sub eax, edx
sar eax, 1
je 0x40623f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.golfinfo.ini
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040a6eb
push 0x41dda0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040abdf
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40623f
push eax
push 1
push 0x200
push esi
call fcn.0040b1ec
mov eax, dword [esp + 0x14]
push eax
call fcn.0040b280
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a6dc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040a6dc
add esp, 0x214
ret
Function at 0x4063a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x4063f3
push esi
call edi
cmp eax, 0xffffffff
je 0x4063ee
test al, 1
je 0x4063be
xor eax, 1
test al, 4
je 0x4063c5
xor eax, 4
test al, 2
je 0x4063cc
xor eax, 2
test al, 0x20
je 0x4063d3
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test edi, edi
jne 0x4063f3
or eax, 0xffffffff
pop edi
ret
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
pop edi
ret
Function at 0x408300
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x408307
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4083e4
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 + 0x41f950]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x41f950]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x41f950]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f950]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f950]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f950]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f950]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f950]
inc ecx
sub edx, 8
sub esi, 1
jne 0x408320
pop edi
test edx, edx
je 0x40840b
jmp 0x4083f0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41f950]
inc ecx
sub edx, 1
jne 0x4083f0
not eax
pop esi
ret

Function at 0x408410
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 + 0x41f950]
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 + 0x41f950]
mov dword [edx + 8], ecx
ret

Function at 0x408460
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 + 0x41f950]
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 + 0x41f950]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x408b70
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x408ba2
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 0x408b98
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 0x408bb5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
push esi
add eax, ecx
push eax
push edx
call fcn.00410490
add dword [edi + 0x14], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x408bd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x408c03
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 0x408bfd
mov byte [esi + 6], 1
mov edi, dword [esp + 8]
jmp 0x408c2f
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x408c15
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.00410490
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x408c46
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 0x408c40
cmp byte [esi + 6], 0
je 0x408c40
or eax, 0xffffffff
add esp, 8
ret
Function at 0x408ce0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x408d25
cmp byte [esi + 1], 0
je 0x408d2d
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 0x408d42
cmp byte [esi + 1], 0
je 0x408d34
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 0x408d4b
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x408cfe
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x408d4b
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 0x408d5f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0040a9c1
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x408d7d
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 0x408e91
jmp 0x408da0
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 0x408db1
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 0x408dca
mov ebp, 0x404
cmp byte [esi], 0
je 0x408def
cmp byte [esi + 1], 0
je 0x408e91
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 0x408df2
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebp
je 0x408e1a
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 0x408e14
mov byte [esi + 6], 1
mov eax, dword [esp + 0x1c]
jmp 0x408e40
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x408e2b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00410490
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x408e91
lea eax, [ebp - 3]
test eax, eax
jl 0x408e7c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x408e6c
cmp byte [eax + ebx + 1], 0x4b
jne 0x408e6c
cmp byte [eax + ebx + 2], 5
jne 0x408e6c
cmp byte [eax + ebx + 3], 6
je 0x408e72
test eax, eax
jge 0x408e50
jmp 0x408e7c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x408e91
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x408d94
push ebx
call fcn.0040aa8b
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x409860
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 0x40987e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x409872
cmp dword [edi + 0x7c], ebx
je 0x40988d
call fcn.00409c40
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004095d0
add esp, 0xc
test eax, eax
je 0x4098b4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.0040a9c1
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4098f2
push 0x4000
call fcn.0040a9c1
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 0x4098ff
push esi
call fcn.0040aa8b
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 0x409947
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00408720
test eax, eax
jne 0x409947
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 0x40996e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x409974
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 0x4099b1
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x4099b1
call fcn.00408410
add ebp, 1
jne 0x4099a0
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 0x409da0
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x409e53
cmp dword [esi + 4], 0xffffffff
jne 0x409e53
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x409dd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409dd0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x409e09
cmp ax, 0x2f
je 0x409e09
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409df6
mov eax, dword [0x41dc50]
mov dword [edi], eax
push 0x18
call fcn.0040a902
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.00408eb0
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 0x40a6dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422044]
jne 0x40a6e6
repz ret
jmp fcn.0040c544

Function at 0x414063
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.0040c8a4
and dword [ebp - 4], 0
cmp dword [0x424454], 0
mov ebx, eax
jne 0x414114
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4141c5
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4141c5
push eax
call fcn.0040c832
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424454], eax
call esi
push eax
call fcn.0040c832
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424458], eax
call esi
push eax
call fcn.0040c832
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42445c], eax
call esi
push eax
call fcn.0040c832
pop ecx
mov dword [0x424464], eax
test eax, eax
je 0x414114
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c832
pop ecx
mov dword [0x424460], eax
mov eax, dword [0x424460]
cmp eax, ebx
je 0x41416c
cmp dword [0x424464], ebx
je 0x41416c
push eax
call fcn.0040c8ad
push dword [0x424464]
mov esi, eax
call fcn.0040c8ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41416c
test edi, edi
je 0x41416c
call esi
test eax, eax
je 0x414163
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414163
test byte [ebp - 0xc], 1
jne 0x41416c
or dword [ebp + 0x10], 0x200000
jmp 0x4141a5
mov eax, dword [0x424458]
cmp eax, ebx
je 0x4141a5
push eax
call fcn.0040c8ad
pop ecx
test eax, eax
je 0x4141a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4141a5
mov eax, dword [0x42445c]
cmp eax, ebx
je 0x4141a5
push eax
call fcn.0040c8ad
pop ecx
test eax, eax
je 0x4141a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424454]
call fcn.0040c8ad
pop ecx
test eax, eax
je 0x4141c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4141c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret