joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015b40
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x27d8
call fcn.1000e2f0
mov eax, dword [0x100213d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
movsx eax, word [0x1002154c]
cmp eax, 0x2b10
jl 0x10015b76
mov eax, 0x40a
mov word [0x1002154c], ax
push 0x2710
lea eax, [ebp - 0x2730]
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x2730]
push eax
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10015ba3
xor eax, eax
jmp 0x10015cef
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x1c]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov cx, word [eax + 8]
mov word [ebp - 0x18], cx
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x54], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x54], 0xffffffff
jne 0x10015bfc
xor eax, eax
jmp 0x10015cef
mov ax, word [0x1002154c]
mov word [ebp - 0x20], ax
mov cx, word [0x1002154c]
add cx, 1
mov word [0x1002154c], cx
movzx eax, word [ebp - 0x20]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
mov ax, word [0x1002154c]
add ax, 1
mov word [0x1002154c], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x54]
push edx
call sub.WS2_32.dll_bind
mov dword [ebp - 0x2734], eax
cmp dword [ebp - 0x2734], 0
je 0x10015c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
je 0x10015bfc
cmp dword [ebp - 0x2734], 0
je 0x10015c71
xor eax, eax
jmp 0x10015cef
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
call sub.WS2_32.dll_listen
movsx eax, word [ebp - 0x20]
and eax, 0xff
push eax
movsx ecx, word [ebp - 0x20]
shr ecx, 8
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx + 3]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx eax, byte [edx + 2]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 1]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx]
push edx
push str._d__d__d__d__d__d
lea eax, [ebp - 0x2798]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x20
lea eax, [ebp - 0x2798]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x4c
call fcn.10001567
mov ax, word [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000dd44
mov esp, ebp
pop ebp
ret
Function at 0x10015e00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x100213d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xc], ecx
push 0x2c
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10015e44
mov eax, 9
jmp 0x10015faa
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax - 1]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10015fc0
test eax, eax
je 0x10015e1f
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 1]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10015fc0
test eax, eax
je 0x10015e1f
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
push edx
mov ecx, dword [ebp - 8]
call fcn.10015fc0
test eax, eax
je 0x10015e8a
jmp 0x10015e6c
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
push 0x10
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, 2
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x28], 0
jmp 0x10015ebe
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 6
jge 0x10015f40
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov ecx, dword [ebp - 0x28]
mov byte [ebp + ecx - 0x24], al
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x30
jl 0x10015ef9
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x39
jg 0x10015ef9
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x10015ed8
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10015f24
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x30
jl 0x10015f19
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x39
jle 0x10015f24
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x10015ef9
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10015f3b
cmp dword [ebp - 0x28], 5
je 0x10015f3b
mov eax, 9
jmp 0x10015faa
jmp 0x10015eb5
mov al, byte [ebp - 0x24]
mov byte [ebp - 0x18], al
mov al, byte [ebp - 0x23]
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x22]
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0x21]
mov byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x1f]
shl eax, 8
movzx ecx, byte [ebp - 0x20]
or eax, ecx
mov word [ebp - 0x1a], ax
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x50], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x50], 0xffffffff
jne 0x10015f8a
call fcn.10014c80
jmp 0x10015faa
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
push edx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x10015fa8
call fcn.10014c80
jmp 0x10015faa
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000dd44
mov esp, ebp
pop ebp
ret
Function at 0x10016bf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b352
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x100213d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x50], 0xffffffff
jne 0x10016c2f
mov eax, 4
jmp 0x10016c94
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x50]
push eax
call sub.WS2_32.dll_send
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x10016c6d
mov dword [ebp - 4], 0xffffffff
jmp 0x10016c7b
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x10016c8b
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0xffffffff
jne 0x10016c92
call fcn.10014c80
jmp 0x10016c94
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10017020
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x10017045
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 4
jmp 0x1001706b
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10017069
call fcn.10013fe0
jmp 0x1001706b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10018ce0
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b4cc
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x100213d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
jne 0x10018d2d
cmp dword [ebp + 0x10], 0
je 0x10018d23
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 4
jmp 0x10018e71
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x58]
or eax, dword [edx + 0x5c]
jne 0x10018d4b
mov eax, 1
jmp 0x10018e71
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
je 0x10018d75
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x18], 0
jne 0x10018d85
call fcn.10013fe0
jmp 0x10018e71
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov esi, dword [edx + 0x58]
sub esi, eax
mov eax, dword [edx + 0x5c]
sbb eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], esi
mov dword [ecx + 0x5c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x58]
or eax, dword [edx + 0x5c]
jne 0x10018e6f
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x50], 0
je 0x10018e4c
push 0x1001cbc0
lea ecx, [ebp - 0x1c]
call fcn.10001f97
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.10001609
push eax
lea ecx, [ebp - 0x1c]
call fcn.100015ac
push str.___r_n
lea ecx, [ebp - 0x1c]
call fcn.100015ac
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000160c
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001609
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x10018e3d
call fcn.10013fe0
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001559
mov eax, dword [ebp - 0x64]
jmp 0x10018e71
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001559
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_HttpEndRequestA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10018e6f
call fcn.10013fe0
jmp 0x10018e71
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100190e0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x100190ff
mov eax, 4
jmp 0x10019183
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
call fcn.1000edc0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001911a
mov eax, 4
jmp 0x10019183
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x10019130
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 0
push 3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, word [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
jne 0x10019167
call fcn.10013fe0
jmp 0x10019183
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.10001567
mov eax, dword [ebp - 4]
mov cx, word [ebp + 0x14]
mov word [eax + 0x14], cx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100192a0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x100192bf
mov eax, 4
jmp 0x10019379
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
call fcn.1000edc0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100192dd
mov eax, 4
jmp 0x10019379
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x100192f3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0x8000000
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
jne 0x10019355
call fcn.10013fe0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
call fcn.10019710
cmp dword [ebp - 8], 0x13
jne 0x10019350
mov ecx, dword [ebp - 4]
call fcn.100193b0
mov eax, dword [ebp - 8]
jmp 0x10019379
mov ecx, dword [ebp - 4]
call fcn.10019710
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.10001567
mov eax, dword [ebp - 4]
mov cx, word [ebp + 0x14]
mov word [eax + 0x14], cx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401000
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
mov ebx, ecx
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4010d7
push 4
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4010e7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x4010d6
push 0xf01ff
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4010d3
lea eax, [ebp - 0x220]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4010d0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call edi
push ebx
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401311
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401311
mov esp, ebp
pop ebp
ret

Function at 0x401240
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
push 0xc0
movaps xmmword [esp + 0x14], xmm0
call fcn.0040131f
mov dword [esp + 0x14], eax
mov edi, eax
add esp, 4
mov dword [esp + 0x24], 0x5f
mov dword [esp + 0x20], 0x5a
mov ecx, 0x2d
mov esi, 0x4031c8
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov word [eax + 0xb4], cx
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
push 0x40
cmovae eax, dword [esp + 0x14]
push 0x40317c
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jb 0x4012f5
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4012eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4012eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040134f
add esp, 8
mov ecx, 0x403280
call fcn.00401000
mov ecx, 0x403284
call fcn.00401000
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401bd4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c13
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c13
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c13
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c13
cmp dword [ecx + 0x74], 0xe
jbe 0x401c13
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x24]
push esi
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_CClientDC::CClientDC
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x48], 1
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x6e0032
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPen::CPen
lea edx, [esp + 0xc]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CDC::SelectObject_1
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CBrush::CBrush
lea ecx, [esp + 4]
mov byte [esp + 0x40], 3
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
push 1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [ecx + 5]
lea ecx, [edx + 0xa]
mov edx, dword [esp + 0x50]
mov esi, dword [edx - 8]
push esi
push edx
push eax
mov eax, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x34]
call dword [eax + 0x64]
mov dword [esp + 4], 0x4045c0
lea ecx, [esp + 4]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x4045ac
mov dword [esp + 0xc], 0x4045c0
mov dword [esp + 4], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], esi
mov byte [esp + 0x40], 0
call fcn.00402f92
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], 0xffffffff
call fcn.00402f3e
mov ecx, dword [esp + 0x38]
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x51297405
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2e7e44e1
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10008ec6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000bb8b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000bb9a
pop dword [ebp - 0x2c]
mov eax, 0x39e97c84
add eax, 0xd6173f16
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x35a9a
push 0
mov eax, 0x84bd4c48
sub eax, 0x74bc7b40
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0xf8a45a50
sub ecx, 0xf8a4192a
mov edi, eax
mov edx, 0xdbad162
add edx, 0x247429e
add edx, dword [ebp - 0x2c]
mov esi, 0xa04e46c8
add esi, 0xd463684a
mov ebx, dword [edx]
sub ebx, esi
xor dword [ebp - 0x10], eax
mov dword [edi], ebx
sub dword [ebp - 4], ecx
add edi, 0x3e35f5be
sub edi, 0x3e35f5ba
add edx, 0xd43e80b5
sub edx, 0xd43e80b1
loop 0x1000bbf9
add eax, 0xf76b
xor ebx, ebx
add ebx, eax
add eax, 0xeb1f2df5
sub eax, 0xeb1f2df0
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10001066
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x40
push 0x3000
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10001086
xor al, al
jmp 0x100010a7
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
call esi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
pop esi
pop ebp
ret

Function at 0x10001366
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], ebx
jb 0x1000137b
mov eax, dword [eax]
push 0x10003150
push eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x100013f0
cmp dword [ebp + 0xc], ebx
je 0x100013f0
push esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fseek]
push 2
push ebx
push dword [ebp + 0xc]
call edi
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_ftell]
mov esi, dword [ebp + 0x10]
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [esi], eax
call edi
push dword [esi]
call fcn.100018af
push dword [ebp + 0xc]
mov edi, eax
push dword [esi]
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_fclose]
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 0x38
pop edi
mov eax, esi
pop esi
jmp 0x100013fa
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ebx
pop ebx
leave
ret

Function at 0x1000193c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10006050]
jne 0x10001946
repz ret
jmp fcn.10001e2c
Function at 0x403830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x42700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x408]
push esi
mov esi, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x408], 0x400
push ecx
push 0
push 0
push eax
push dword [0x4909d0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x403881
push 0
push 0x421511
jmp 0x4038a1
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403890
sub ecx, edx
lea eax, [ebp - 0x404]
push ecx
push eax
mov ecx, esi
call fcn.004039e0
mov ecx, 0x400
lea eax, [ebp - 0x404]
pop esi
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4038b4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041dbde
mov esp, ebp
pop ebp
ret 8