joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419f52
Capabilities:
Terminate process

Disassembly:
push 8
push 0x46eae8
call fcn.0041aab0
push 8
call fcn.0041b9e8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x471ce0], esi
jne 0x419f86
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x471cdc], esi
mov al, byte [ebp + 0x10]
mov byte [0x471cd8], al
cmp dword [ebp + 0xc], edi
jne 0x419fd0
cmp dword [0x4724a8], edi
je 0x419fc0
mov eax, dword [0x4724a4]
sub eax, 4
mov dword [0x4724a4], eax
cmp eax, dword [0x4724a8]
jb 0x419fc0
mov eax, dword [eax]
cmp eax, edi
je 0x419fa1
call eax
jmp 0x419fa1
push 0x471020
mov eax, 0x47101c
call fcn.00419ed0
pop ecx
push 0x471028
mov eax, 0x471024
call fcn.00419ed0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41a001
cmp dword [ebp + 0x10], edi
jne 0x41a00f
mov dword [0x471ce0], esi
push dword [ebp + 8]
call fcn.00419e8e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41a00e
push 8
call fcn.0041b933
pop ecx
ret
call fcn.0041aaeb
ret

Function at 0x41a055
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x471210]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x471080]
je 0x41a08a
inc eax
cmp eax, 0x13
jb 0x41a07b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x471080]
jne 0x41a1b0
mov eax, dword [0x471c88]
cmp eax, 1
je 0x41a188
cmp eax, edx
jne 0x41a0ba
cmp dword [0x471054], 1
je 0x41a188
cmp ecx, 0xfc
je 0x41a1b0
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41a0f0
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041b450
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00419020
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41a124
mov eax, edi
push eax
call fcn.00419020
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x46eee0
push edi
call fcn.0041c3e0
add esp, 0x10
push edi
call fcn.00419020
push dword [esi + 0x471084]
mov ebx, eax
call fcn.00419020
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041ac10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041b450
push edi
push ebx
call fcn.0041b460
push 0x46eec0
push ebx
call fcn.0041b460
push dword [esi + 0x471084]
push ebx
call fcn.0041b460
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041c2e5
add esp, 0x2c
jmp 0x41a1b0
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x471084]
push dword [esi]
call fcn.00419020
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041b716
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41c2e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x471f58], ebx
push esi
push edi
jne 0x41c365
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c3a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x471f58], eax
je 0x41c3a0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x471f5c], eax
call esi
cmp dword [0x471ca0], 2
mov dword [0x471f60], eax
jne 0x41c365
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x471f68], eax
je 0x41c365
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x471f64], eax
mov eax, dword [0x471f64]
test eax, eax
je 0x41c3aa
call eax
test eax, eax
je 0x41c391
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x471f68]
test eax, eax
je 0x41c391
test byte [ebp - 8], 1
jne 0x41c3aa
cmp dword [0x471cac], 4
jb 0x41c3a4
or byte [ebp + 0x12], 0x20
jmp 0x41c3c9
xor eax, eax
jmp 0x41c3d9
or byte [ebp + 0x12], 4
jmp 0x41c3c9
mov eax, dword [0x471f5c]
test eax, eax
je 0x41c3c9
call eax
mov ebx, eax
test ebx, ebx
je 0x41c3c9
mov eax, dword [0x471f60]
test eax, eax
je 0x41c3c9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x471f58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d2ae
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41d2dc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41d2e3
cmp ebx, dword [eax + 4]
jae 0x41d2e3
xor eax, eax
jmp 0x41d4d3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41d2f4
xor eax, eax
inc eax
jmp 0x41d4d2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41d30a
cmp ecx, edx
jae 0x41d44f
cmp dword [eax + 4], 0
je 0x41d313
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41d2fb
cmp dword [ebp + 8], 0
je 0x41d335
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41d44f
cmp eax, esi
jae 0x41d44f
mov eax, dword [0x471f70]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41d35a
cmp dword [esi*4 + 0x471f78], edi
je 0x41d453
inc esi
cmp esi, eax
jl 0x41d348
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d4cf
cmp dword [ebp - 8], 0x1000000
jne 0x41d4cf
test byte [ebp - 0xc], 0xcc
je 0x41d3d8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41d4cf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d4cf
cmp word [eax + 0x18], 0x10b
jne 0x41d4cf
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41d4cf
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41d3d8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41d3d8
test byte [ecx + 0x27], 0x80
jne 0x41d44f
push 1
push 0x471fb8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41d2ec
mov ecx, dword [0x471f70]
test ecx, ecx
mov edx, ecx
jle 0x41d40c
lea eax, [ecx*4 + 0x471f74]
cmp dword [eax], edi
je 0x41d40c
dec edx
sub eax, 4
test edx, edx
jg 0x41d400
test edx, edx
jne 0x41d43d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41d419
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41d431
lea eax, [edx*4 + 0x471f78]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41d41f
cmp ecx, 0x10
jge 0x41d43d
inc ecx
mov dword [0x471f70], ecx
push 0
push 0x471fb8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41d2ec
xor eax, eax
jmp 0x41d4d2
test esi, esi
jle 0x41d2ec
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x471fb8
call ebx
test eax, eax
jne 0x41d2ec
cmp dword [esi*4 + 0x471f78], edi
je 0x41d4a9
mov eax, dword [0x471f70]
lea esi, [eax - 1]
test esi, esi
jl 0x41d497
cmp dword [esi*4 + 0x471f78], edi
je 0x41d493
dec esi
jns 0x41d487
test esi, esi
jge 0x41d4a7
cmp eax, 0x10
jge 0x41d4a2
inc eax
mov dword [0x471f70], eax
lea esi, [eax - 1]
jmp 0x41d4a9
je 0x41d4c1
xor ecx, ecx
test esi, esi
jl 0x41d4c1
lea eax, [ecx*4 + 0x471f78]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41d4af
push 0
push 0x471fb8
call ebx
jmp 0x41d2ec
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ee2f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041ac10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41eeca
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x471ca0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41eeca
cmp eax, 1
je 0x41eeeb
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41eeca
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41ee97
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41eec6
xor eax, eax
inc eax
jmp 0x41ef0a
cmp edi, eax
jae 0x41eece
xor eax, eax
jmp 0x41ef0a
cmp eax, esi
jae 0x41eed5
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x471ca0]
jmp 0x41eeee
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x405e3d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ac4], 0
push esi
jne 0x405e74
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405e4e
mov dword [ecx*4 + 0x422ac0], eax
inc ecx
cmp ecx, 0x100
jl 0x405e49
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ea5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ac0]
xor eax, esi
inc ecx
dec edx
jne 0x405e87
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x421740
Capabilities:
Encode data using xor

Disassembly:
xor dl, dl
mov dl, byte [edi]
xor dl, bl
mov byte [edi], dl
inc edi
cmp edi, ecx
jne fcn.00421740
ret
Function at 0x4015f0
Capabilities:
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x13c
mov eax, dword [0x41405c]
xor eax, esp
mov dword [esp + 0x138], eax
push edi
push 0
push 1
push 2
mov dword [esp + 0x18], 0x10
call sub.WSOCK32.dll_socket
push 1
mov edi, eax
lea eax, [esp + 0xb]
push eax
push 4
push 0xffff
push edi
mov byte [esp + 0x1b], 1
call sub.WSOCK32.dll_setsockopt
xor eax, eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
push 0x58c3
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov word [esp + 0x120], 2
mov dword [esp + 0x124], eax
call sub.WSOCK32.dll_htons
push 0x10
lea ecx, [esp + 0x120]
push ecx
push edi
mov word [esp + 0x12a], ax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4016a4
mov eax, 1
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00403591
add esp, 0x13c
ret
push ebx
push esi
lea ebx, [edi + 1]
lea esp, [esp]
push 0x100
push edi
call sub.WSOCK32.dll_listen
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x2710
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 1
call sub.WSOCK32.dll_select
cmp eax, 1
jne 0x40182a
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x138]
push edx
push edi
call sub.WSOCK32.dll_accept
push 0
mov esi, eax
push 4
lea eax, [esp + 0x18]
push eax
push esi
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x401824
mov ecx, dword [esp + 0x10]
push ecx
call sub.WSOCK32.dll_ntohl
cmp eax, 1
mov dword [esp + 0x10], eax
je 0x401834
cmp eax, 2
je 0x401824
cmp eax, 3
jne 0x40175e
push esi
call fcn.00402b30
add esp, 4
push esi
call sub.WSOCK32.dll_closesocket
call fcn.004029e0
jmp 0x4016b0
cmp eax, 4
jne 0x401778
call fcn.00401cf0
push esi
call sub.WSOCK32.dll_closesocket
call fcn.004029e0
jmp 0x4016b0
cmp eax, 0x696e6974
jne 0x4017a8
mov edx, dword [esp + 0x138]
push edx
call sub.WSOCK32.dll_ntohl
push 0
push eax
push esi
call fcn.004023b0
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
call fcn.004029e0
jmp 0x4016b0
cmp eax, 0x696e696e
jne 0x4017d8
mov eax, dword [esp + 0x138]
push eax
call sub.WSOCK32.dll_ntohl
push 1
push eax
push esi
call fcn.004023b0
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
call fcn.004029e0
jmp 0x4016b0
cmp eax, 0x66696e69
jne 0x401806
mov ecx, dword [esp + 0x138]
push ecx
call sub.WSOCK32.dll_ntohl
push eax
push esi
call fcn.00402830
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
call fcn.004029e0
jmp 0x4016b0
cmp eax, 0x3f3f2020
jne 0x401824
mov edx, dword [esp + 0x138]
push edx
call sub.WSOCK32.dll_ntohl
push eax
push esi
call fcn.00402720
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
call fcn.004029e0
jmp 0x4016b0
call fcn.00401cd0
push esi
call sub.WSOCK32.dll_closesocket
push edi
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esp + 0x144]
pop esi
pop ebx
pop edi
xor ecx, esp
xor eax, eax
call fcn.00403591
add esp, 0x13c
ret
Function at 0x401860
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x298
mov eax, dword [0x41405c]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
lea eax, [esp + 8]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0x100
lea ecx, [esp + 0x19c]
push ecx
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 0x198]
push edx
call sub.WSOCK32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov cl, byte [eax + 1]
mov dl, byte [eax + 2]
mov bl, byte [eax]
mov al, byte [eax + 3]
mov byte [esp + 5], cl
mov byte [esp + 6], dl
mov byte [esp + 7], al
call sub.WSOCK32.dll_WSACleanup
movzx edx, byte [esp + 5]
movzx eax, byte [esp + 6]
xor ecx, ecx
mov ch, bl
pop ebx
or ecx, edx
movzx edx, byte [esp + 3]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
xor eax, eax
cmp ecx, dword [esp + 0x29c]
mov ecx, dword [esp + 0x294]
setne al
xor ecx, esp
call fcn.00403591
add esp, 0x298
ret
Function at 0x401910
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x38
mov eax, dword [0x41405c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push 0
mov dword [esp + 0x14], 0
call fcn.004035a0
add esp, 4
push 0
push 0x15180
push edx
push eax
call fcn.004035e0
mov cl, 0xc5
mov dword [esp + 4], eax
mov al, 0xc2
mov bl, 0xbc
mov byte [esp + 0x22], cl
mov byte [esp + 0x28], cl
mov dl, 0xc6
mov byte [esp + 0x34], cl
mov cl, 0x53
mov byte [esp + 0x1d], al
mov byte [esp + 0x26], bl
mov byte [esp + 0x29], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x31], bl
mov byte [esp + 0x15], al
mov byte [esp + 0x1c], 0xa6
mov byte [esp + 0x1e], 0xb9
mov byte [esp + 0x1f], 0xc7
mov byte [esp + 0x20], 0xca
mov byte [esp + 0x21], 0xb4
mov byte [esp + 0x23], 0xb8
mov byte [esp + 0x24], 0xaf
mov byte [esp + 0x25], 0xa0
mov byte [esp + 0x27], 0xb6
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2c], 0xb9
mov byte [esp + 0x2d], 0xc7
mov byte [esp + 0x2e], 0xaf
mov byte [esp + 0x2f], 0xa0
mov byte [esp + 0x30], 0xbb
mov byte [esp + 0x32], 0xbe
mov byte [esp + 0x33], dl
mov byte [esp + 0x35], cl
mov byte [esp + 0x14], 0xc0
mov byte [esp + 0x16], 0xb7
mov byte [esp + 0x17], 0xc8
mov byte [esp + 0x18], 0xbf
mov byte [esp + 0x19], 0xb8
mov byte [esp + 0x1a], 0xcb
mov byte [esp + 0x1b], cl
xor eax, eax
mov bl, 0xad
mov edi, edi
add byte [esp + eax + 0x1c], bl
add eax, 1
cmp eax, 0x1a
jb 0x4019f0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0x4111f0
push 0
lea edx, [esp + 0x38]
push edx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov al, byte [esp + 0x44]
add byte [esp + 0x14], bl
add byte [esp + 0x15], bl
add byte [esp + 0x16], bl
add byte [esp + 0x17], bl
add byte [esp + 0x18], bl
add byte [esp + 0x19], bl
add byte [esp + 0x1b], bl
add al, 0x30
cmp dword [esp + 0xc], 2
mov byte [esp + 0x1a], al
pop ebx
jne 0x401a97
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push 0
push 0
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
cmp edx, dword [esp + 0xc]
jge 0x401a97
mov eax, 3
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00403591
add esp, 0x38
ret
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 4]
push eax
push 3
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp]
mov ecx, dword [esp + 0x34]
sbb eax, eax
xor ecx, esp
and eax, 4
call fcn.00403591
add esp, 0x38
ret
Function at 0x402720
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 0
push 4
lea eax, [esp + 0x18]
push eax
push ebx
call sub.WSOCK32.dll_recv
push 0
push 4
lea ecx, [esp + 0x20]
push ecx
push ebx
call sub.WSOCK32.dll_recv
mov edx, dword [esp + 0x10]
push edx
call sub.WSOCK32.dll_ntohl
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [esp + 0x18], eax
xor edi, edi
mov edx, 0x415508
lea esp, [esp]
cmp dword [edx - 0x410], 0
je 0x4027b3
xor esi, esi
mov ecx, edx
lea ecx, [ecx]
cmp dword [ecx - 0x400], 0
je 0x4027a5
mov ebp, dword [ecx]
cmp ebp, dword [esp + 0x10]
jne 0x4027a5
mov ebp, dword [esp + 0x24]
cmp dword [ecx + 0x800], ebp
jne 0x4027a5
cmp dword [ecx + 0x400], eax
je 0x4027e9
add esi, 1
add ecx, 4
cmp esi, 0x100
jl 0x402780
add edx, 0x3020
add edi, 1
cmp edx, 0x433648
jl 0x402770
push 0x6e6f2020
call sub.WSOCK32.dll_htonl
push 0
push 4
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x24], eax
call sub.WSOCK32.dll_send
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x6f6b2020
call sub.WSOCK32.dll_htonl
push 0
push 4
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov dword [esp + 0x24], eax
call sub.WSOCK32.dll_send
push 0
call fcn.004035a0
imul edi, edi, 0xc08
add esp, 4
add edi, esi
mov dword [edi*4 + 0x415108], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402830
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push 0
push 4
lea eax, [esp + 0x14]
push eax
push esi
call sub.WSOCK32.dll_recv
push 0
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.WSOCK32.dll_recv
mov edx, dword [esp + 0xc]
push edx
call sub.WSOCK32.dll_ntohl
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.dll_ntohl
mov esi, eax
mov dword [esp + 0x10], esi
xor ebx, ebx
mov ecx, 0x415508
lea ecx, [ecx]
cmp dword [ecx - 0x410], 0
je 0x4028c3
xor ebp, ebp
mov eax, ecx
lea ecx, [ecx]
cmp dword [eax - 0x400], 0
je 0x4028b5
mov edx, dword [esp + 0xc]
cmp dword [eax], edx
jne 0x4028b5
mov edx, dword [esp + 0x1c]
cmp dword [eax + 0x800], edx
jne 0x4028b5
cmp dword [eax + 0x400], esi
je 0x4028db
add ebp, 1
add eax, 4
cmp ebp, 0x100
jl 0x402890
add ecx, 0x3020
add ebx, 1
cmp ecx, 0x433648
jl 0x402880
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov esi, ebx
xor eax, eax
imul esi, esi, 0x3020
push edi
lea ecx, [esi + 0x415d0c]
mov edi, 0x40
cmp dword [ecx - 4], edx
jne 0x4028f9
add eax, 1
cmp dword [ecx], edx
jne 0x402900
add eax, 1
cmp dword [ecx + 4], edx
jne 0x402908
add eax, 1
cmp dword [ecx + 8], edx
jne 0x402910
add eax, 1
add ecx, 0x10
sub edi, 1
jne 0x4028f1
xor edx, edx
div dword [esi + 0x415104]
cmp edx, 1
je 0x402963
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, ebx
imul eax, eax, 0x181
add eax, ebp
push ecx
mov ecx, dword [esp + 0x14]
shl eax, 5
lea edi, [eax + 0x416108]
mov eax, dword [esi + 0x4150f8]
push edx
push edi
and eax, 0xffff
push eax
push ecx
push str.2back
call fcn.00401bd0
add esp, 0x18
jmp 0x4029a7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, ebx
imul edx, edx, 0x181
add edx, ebp
push eax
mov eax, dword [esp + 0x14]
shl edx, 5
lea edi, [edx + 0x416108]
mov edx, dword [esi + 0x4150f8]
push ecx
push edi
and edx, 0xffff
push edx
push eax
push str.back
call fcn.00401bd0
add esp, 0x18
add dword [esi + 0x415100], 0xffffffff
imul ebx, ebx, 0xc08
add ebx, ebp
add ebx, ebx
add ebx, ebx
mov eax, ebx
xor ecx, ecx
mov dword [eax + 0x415108], ecx
mov dword [eax + 0x415508], ecx
mov dword [eax + 0x415908], ecx
mov dword [eax + 0x415d08], ecx
mov byte [edi], cl
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x402b30
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, 0x415d08
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
lea ebx, [ebx]
cmp dword [eax - 0xc10], 0
je 0x402bf4
xor ebx, ebx
mov edi, eax
cmp dword [edi], 0
je 0x402be2
push ebp
mov dword [esp + 0x14], ebp
call sub.WSOCK32.dll_htonl
push 0
mov dword [esp + 0x14], eax
push 4
lea eax, [esp + 0x18]
push eax
push esi
call sub.WSOCK32.dll_send
mov eax, dword [edi]
push eax
mov dword [esp + 0x14], eax
call sub.WSOCK32.dll_htonl
push 0
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], eax
call sub.WSOCK32.dll_send
mov eax, dword [edi - 0x400]
push eax
mov dword [esp + 0x14], eax
call sub.WSOCK32.dll_htonl
push 0
push 4
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x20], eax
call sub.WSOCK32.dll_send
mov eax, dword [esp + 0x14]
add eax, ebx
push 0
shl eax, 5
push 0x20
add eax, 0x416108
push eax
push esi
call sub.WSOCK32.dll_send
mov eax, dword [esp + 0x18]
add ebx, 1
add edi, 4
cmp ebx, 0x100
jl 0x402b61
add dword [esp + 0x14], 0x181
add eax, 0x3020
add ebp, 1
cmp eax, 0x433e48
mov dword [esp + 0x18], eax
jl 0x402b50
push 0x100
mov dword [esp + 0x14], 0x100
call sub.WSOCK32.dll_htonl
push 0
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], eax
call sub.WSOCK32.dll_send
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret