joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
movaps xmmword [ebp - 0x30], xmm0
push str.9871
push str.127.0.0.1
movaps xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4010a6
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x4010a6
nop
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x40109f
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4010bc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x401070
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401323
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00401323
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4010e0
Capabilities:
Accept command line arguments
Get common file path
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x430]
push ebx
push esi
push edi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
xor esi, esi
mov edi, eax
mov dword [ebp - 0x5cc], ebx
cmp dword [ebp - 0x430], ebx
jle 0x401161
nop dword [eax + eax]
push dword [edi + esi*4]
push str._bind
call fcn.0040290a
add esp, 8
test eax, eax
jne 0x401138
xor ebx, ebx
jmp 0x401152
push dword [edi + esi*4]
push str._download
call fcn.0040290a
add esp, 8
test eax, eax
mov eax, 1
cmove ebx, eax
inc esi
cmp esi, dword [ebp - 0x430]
jl 0x401120
mov dword [ebp - 0x5cc], ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub eax, 1
je 0x401191
cmp word [ebp + eax*2 - 0x218], 0x5c
je 0x401191
sub eax, 1
jne 0x401181
test eax, eax
jne 0x4011bf
push eax
push str.PATH_ODD
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401323
mov esp, ebp
pop ebp
ret 0x10
add eax, eax
cmp eax, 0x20a
jae 0x40131d
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x5d0], eax
lea eax, [ebp - 0x5c8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401206
push 0x30
push str.FAILED
push 0x410c10
jmp 0x4011a2
lea eax, [ebp - 0x428]
push eax
push 0x20a
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
push 0
push 0
push 0
push 0
push ebx
lea eax, [ebp - 0x428]
push eax
push 0
push 0xfde9
call edi
mov esi, eax
lea ecx, [esi + 1]
push ecx
push 8
push dword [ebp - 0x5d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
push esi
push eax
push ebx
mov dword [ebp - 0x5d0], eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0xfde9
call edi
mov dword [ebp - 0x434], esi
call section..text
mov esi, eax
cmp esi, 0xffffffff
jne 0x40128d
push 0x30
push str.FAILED
push 0x410c34
jmp 0x4011a2
mov eax, dword [ebp - 0x5cc]
sub eax, 0
je 0x4012a6
sub eax, 1
jne 0x4012ad
mov byte [ebp - 0x429], 0xa2
jmp 0x4012ad
mov byte [ebp - 0x429], 0xa0
mov edi, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x429]
push 0
push 1
push eax
push esi
call edi
cmp eax, 0xffffffff
je 0x401306
push 0
push 4
lea eax, [ebp - 0x434]
push eax
push esi
call edi
cmp eax, 0xffffffff
je 0x401306
push 0
push dword [ebp - 0x434]
push dword [ebp - 0x5d0]
push esi
call edi
cmp eax, 0xffffffff
je 0x401306
push 0
push 1
lea eax, [ebp - 0x42a]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4011aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x30
push str.FAILED
push 0x410c6c
jmp 0x4011a2
call fcn.00401457
int3
Function at 0x10005620
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ecx, dword [edi]
cmp ecx, ebx
jae 0x10005688
mov esi, dword [esp + 0x14]
lea ebp, [esi + 0x34]
nop dword [eax]
cmp dword [esi + 0x4c], 0
lea eax, [esp + 0x20]
mov edx, dword [esi + 0x48]
jne 0x10005664
push ebp
push eax
mov eax, ebx
sub eax, ecx
push eax
mov eax, dword [esp + 0x24]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1000566f
push 0
push eax
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [esp + 0x20]
add dword [edi], eax
test ecx, ecx
je 0x10005695
mov dword [esi + 0x4c], 0
mov ecx, dword [edi]
cmp ecx, ebx
jb 0x10005640
mov dword [edi], 0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x4c], 0
jne 0x100056b0
cmp eax, 0x3e5
je 0x100056b7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
cmp eax, 0x3e4
jne 0x100056a8
pop edi
mov dword [esi + 0x4c], 1
mov eax, 0xffffffdb
pop esi
pop ebp
pop ebx
ret

Function at 0x100056d0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ecx, dword [edi]
cmp ecx, ebx
jae 0x10005738
mov esi, dword [esp + 0x14]
lea ebp, [esi + 0x34]
nop dword [eax]
cmp dword [esi + 0x4c], 0
lea eax, [esp + 0x20]
mov edx, dword [esi + 0x48]
jne 0x10005714
push ebp
push eax
mov eax, ebx
sub eax, ecx
push eax
mov eax, dword [esp + 0x24]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1000571f
push 0
push eax
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [esp + 0x20]
add dword [edi], eax
test ecx, ecx
je 0x10005745
mov dword [esi + 0x4c], 0
mov ecx, dword [edi]
cmp ecx, ebx
jb 0x100056f0
mov dword [edi], 0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x4c], 0
jne 0x10005760
cmp eax, 0x3e5
je 0x10005767
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
cmp eax, 0x3e4
jne 0x10005758
pop edi
mov dword [esi + 0x4c], 1
mov eax, 0xffffffdb
pop esi
pop ebp
pop ebx
ret
Function at 0x10006100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
xor eax, eax
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea ebp, [eax + 0x12]
add edi, 0x1000
nop word [eax + eax]
xor edx, edx
movzx ecx, ax
lea esi, [edx + 4]
nop dword [eax + eax]
cmp cx, word [esp + 0x24]
sbb eax, eax
shl edx, 8
and eax, ecx
movzx ecx, ax
movzx eax, byte [ecx + ebx]
or edx, eax
lea eax, [ecx + 1]
movzx ecx, ax
sub esi, 1
jne 0x10006130
xor dword [edi], edx
mov eax, ecx
add edi, 4
sub ebp, 1
jne 0x10006120
mov ebx, dword [esp + 0x1c]
lea edi, [ebp + 9]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
lea esi, [ebx + 0x1004]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10005cf0
mov eax, dword [esp + 0x1c]
lea esi, [esi + 8]
mov dword [esi - 0xc], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esi - 8], eax
sub edi, 1
jne 0x10006171
mov esi, ebx
lea ebp, [edi + 4]
nop
mov edi, 0x80
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10005cf0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
add esi, 8
sub edi, 1
jne 0x100061a5
sub ebp, 1
jne 0x100061a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x100063c0
Capabilities:
Encrypt data using blowfish

Disassembly:
push 0x1048
push 0x10024c70
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
ret
Function at 0x10012c60
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.100227f0
mov eax, dword [0x1002f104]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esp + 0x1010]
push ebx
xor ebx, ebx
cmp dword [esp + 0x1018], 1
push ebp
mov ebp, dword [esp + 0x1014]
je 0x10012cbd
push str.Unsupported_type_of_known_host_information_store
push 0xffffffffffffffdf
push dword [ebp]
call fcn.10013940
add esp, 0xc
pop ebp
pop ebx
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.100227df
add esp, 0x1008
ret
push esi
push 0x1002858c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
test esi, esi
jne 0x10012d01
push str.Failed_to_open_file
push 0xfffffffffffffff0
push dword [ebp]
call fcn.10013940
add esp, 0xc
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.100227df
add esp, 0x1008
ret
lea eax, [ebp + 4]
push edi
push eax
call fcn.10013dc0
mov edi, eax
add esp, 4
test edi, edi
je 0x10012d90
nop dword [eax]
nop dword [eax + eax]
push 1
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0xffc
lea eax, [esp + 0x24]
push eax
push edi
push ebp
call fcn.100122b0
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x10012d90
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x10012d78
push edi
call fcn.10013df0
mov esi, dword [esp + 0x14]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10012d20
jmp 0x10012d90
push str.Write_failed
push 0xfffffffffffffff0
push dword [ebp]
call fcn.10013940
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov ebx, eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [esp + 0x1018]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100227df
add esp, 0x1008
ret
Function at 0x10018ed0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1002f104]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov esi, dword [esp + 0x224]
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esi + 0x158], 0
call sym.libssh2.dll_libssh2_keepalive_send
add esp, 8
test eax, eax
jne 0x10019092
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x14c]
imul ecx, edx, 0x3e8
test eax, eax
push ebx
push edi
mov edi, 0x3e8
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x54]
cmove ecx, edi
test eax, eax
jle 0x10018fa4
test edx, edx
je 0x10018f3b
cmp ecx, eax
jle 0x10018fa4
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push dword [esp + 0x238]
push dword [esp + 0x238]
push edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__difftime64]
fmul qword [0x1002a048]
add esp, 0x14
mov ecx, dword [esi + 0x54]
fstp qword [esp + 0xc]
cvttsd2si eax, qword [esp + 0xc]
cmp eax, ecx
jle 0x10018f9b
push str.API_timeout_expired
push 0xfffffffffffffff7
push esi
call fcn.10013940
add esp, 0xc
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.100227df
add esp, 0x21c
ret
sub ecx, eax
mov ebx, 1
jmp 0x10018fab
xor ebx, ebx
test ecx, ecx
setg bl
mov eax, 0x10624dd3
xor edi, edi
imul ecx
push ebp
sar edx, 6
xor ebp, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test cl, 1
je 0x10018ff6
mov eax, dword [esi + 0x144]
lea ebp, [esp + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
test cl, 2
je 0x1001901a
mov eax, dword [esi + 0x144]
lea edi, [esp + 0x124]
mov dword [esp + 0x128], eax
mov dword [esp + 0x124], 1
xor ecx, ecx
lea eax, [esp + 0x10]
test ebx, ebx
cmove eax, ecx
push eax
mov eax, dword [esi + 0x144]
push ecx
push edi
push ebp
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop ebp
test eax, eax
jne 0x10019064
push str.Timed_out_waiting_on_socket
push 0xfffffffffffffff7
push esi
call fcn.10013940
add esp, 0xc
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.100227df
add esp, 0x21c
ret
jns 0x1001908e
push str.Error_waiting_on_socket
push 0xfffffffffffffff7
push esi
call fcn.10013940
add esp, 0xc
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.100227df
add esp, 0x21c
ret
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x21c]
pop esi
xor ecx, esp
call fcn.100227df
add esp, 0x21c
ret
Function at 0x100023a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x10002360
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
push 0x1388
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x401308
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4013a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x401380
xor eax, eax
push ebp
push 0x401379
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4013bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401380
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x401a58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x401ab9
cmp word [0x406208], 0xd7b2
jne 0x401a81
cmp dword [0x406210], 0
jbe 0x401a81
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405040
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x401ae0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405018], 0
jne 0x401ad5
push 0
push 0x405060
push 0x405040
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40254c
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov ebx, edx
mov esi, eax
xor edi, edi
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov dword [esp], 0x128
push esp
push ebp
call sub.kernel32.dll_Process32First
jmp 0x402595
lea eax, [esp + 0x24]
push eax
push esi
call sub.kernel32.dll_lstrcmpiA_1
test eax, eax
jne 0x40258e
mov edi, dword [esp + 8]
test bl, bl
je 0x40259f
push esp
push ebp
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x402577
push ebp
call sub.kernel32.dll_CloseHandle
mov eax, edi
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4025b4
Capabilities:
Enumerate process modules

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffddc
mov edi, ecx
mov ebx, edx
mov esi, eax
xor ebp, ebp
test edi, edi
je 0x4025d5
push 0x104
push edi
call sub.kernel32.dll_RtlZeroMemory
push esi
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp], 0x224
push esp
push esi
call sub.kernel32.dll_Module32First
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x402633
test ebx, ebx
je 0x40260a
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA_1
test eax, eax
jne 0x402622
test edi, edi
je 0x40261c
lea eax, [esp + 0x120]
push eax
push edi
call sub.kernel32.dll_lstrcpyA_1
mov ebp, dword [esp + 0x14]
jmp 0x402633
push esp
push esi
call sub.kernel32.dll_Module32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x4025f7
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
add esp, 0x224
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402704
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, esi
call fcn.004026d4
test al, al
jne 0x402728
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x402730
Capabilities:
Create process on windows
Get common file path
Self delete
Set file attributes

Disassembly:
push ebx
push esi
add esp, 0xfffff9f8
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.004026d4
cmp al, 1
jne 0x40289b
lea eax, [esp + 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
push 0x4028a8
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcatA_1
call sub.kernel32.dll_GetTickCount
mov dword [esp], eax
push esp
push 0x4028b0
lea eax, [esp + 0xc]
push eax
call sub.user32.dll_wvsprintfA_1
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4028b4
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [esp + 0x104]
call fcn.00402704
cmp al, 1
jne 0x40289b
push 0x4028bc
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 0x4028c8
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4028d0
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA_1
push esi
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4028d8
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4028dc
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA_1
push esi
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4028e8
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4028f8
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push 0
push 1
lea eax, [esp + 0x210]
push eax
call sub.kernel32.dll_lstrlenA_1
mov ecx, eax
lea edx, [esp + 0x210]
lea eax, [esp + 0x10c]
call fcn.00402964
push 0
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_WinExec
mov bl, 1
mov eax, ebx
add esp, 0x608
pop esi
pop ebx
ret

Function at 0x40292c
Capabilities:
Get file size

Disassembly:
push ebx
push esi
xor esi, esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402959
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, esi
pop esi
pop ebx
ret
Function at 0x402964
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push ebx
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4029d2
cmp byte [ebp + 8], 1
jne 0x4029b6
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
jmp 0x4029c4
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4029e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
mov dword [ebp - 4], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a45
cmp byte [ebp + 8], 1
jne 0x402a29
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
jmp 0x402a37
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x402a58
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call sub.advapi32.dll_RegCreateKeyA
push ebx
call sub.kernel32.dll_lstrlenA_1
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x402cf8
Capabilities:
Resolve dns

Disassembly:
push ebx
xor ebx, ebx
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x402d0c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, ebx
pop ebx
ret