joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004c59e
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5db5
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100b7bfc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xc0]
call fcn.1002506a
lea ecx, [esi + 0x44]
call fcn.1002506a
and dword [ebp - 4], 0
lea ecx, [esi + 0x40]
call fcn.10006c2b
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], 1
call fcn.10006c2b
lea ecx, [esi + 0x38]
mov dword [ebp - 4], 2
call fcn.10006c2b
lea ecx, [esi + 0x34]
call fcn.1002506a
lea ecx, [esi + 0x30]
call fcn.1002506a
lea ecx, [esi + 0x2c]
call fcn.1002506a
lea ecx, [esi + 0x28]
call fcn.1002506a
lea ecx, [esi + 0x24]
call fcn.1002506a
lea ecx, [esi + 0x20]
mov dword [ebp - 4], 3
call fcn.10006c2b
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 4
call fcn.10006c2b
lea ecx, [esi + 0x18]
call fcn.1002506a
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 9
call fcn.10026969
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004c66d
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5e06
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100b7bfc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x48]
mov dword [ebp - 4], 2
call fcn.10026969
lea ecx, [esi + 0x30]
call fcn.10026365
lea ecx, [esi + 0x1c]
call fcn.10026365
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 3
call fcn.10006c2b
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 8
call fcn.10026969
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10061301
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4

Function at 0x100646ac
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100b7bfc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp dword [ebp - 0x18], 0x800000
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.10001550
mov esp, ebp
pop ebp
ret
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xc663872
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x648a06fe
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434004]
jne 0x40100a
repz ret
jmp fcn.00401424

Function at 0x406ecc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404a1c
and dword [ebp - 0x14], 0
cmp dword [0x436d78], 0
mov dword [ebp - 0x18], eax
jne 0x406f7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407027
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407027
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x436d78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x436d7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x436d80], eax
call edi
push eax
call esi
mov dword [0x436d88], eax
test eax, eax
je 0x406f7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x436d84], eax
mov eax, dword [0x436d84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406fd8
cmp dword [0x436d88], ecx
je 0x406fd8
push eax
call esi
push dword [0x436d88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406fd8
test ebx, ebx
je 0x406fd8
call edi
test eax, eax
je 0x406fcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406fcf
test byte [ebp - 8], 1
jne 0x406fd8
or dword [ebp + 0x10], 0x200000
jmp 0x40700b
mov eax, dword [0x436d7c]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40700b
mov eax, dword [0x436d80]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x436d78]
call esi
test eax, eax
je 0x407027
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407029
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x420530
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x42054a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x420551
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x420540
mov eax, 1
add ebx, ebx
jne 0x420563
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x420558
jne 0x420574
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420558
xor ecx, ecx
sub eax, 3
jb 0x420588
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4205fa
mov ebp, eax
add ebx, ebx
jne 0x420593
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4205a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4205c4
inc ecx
add ebx, ebx
jne 0x4205b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4205a5
jne 0x4205c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4205a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4205e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4205d5
jmp 0x420546
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4205e4
add edi, ecx
jmp 0x420546
pop esi
mov edi, esi
mov ecx, 0x16
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x420602
cmp byte [edi], 3
jne 0x420602
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x420607
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x42067f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x256c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25704]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x420634
mov ecx, edi
jns 0x420663
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2570c]
or eax, eax
je 0x420679
mov dword [ebx], eax
add ebx, 4
jmp 0x420651
call dword [esi + 0x25708]
mov ebp, dword [esi + 0x25710]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4206b3
sub esp, 0xffffff80
jmp 0x401130
Function at 0x403e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441c89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x28]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push ecx
xor eax, eax
push eax
push esi
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], 1
mov byte [esp + 0x3c], bl
call fcn.00403300
mov eax, dword [esi + 4]
shr ebx, 8
mov byte [esp + 0x2c], bl
cmp eax, edi
jne 0x403ef9
xor edx, edx
jmp 0x403efe
mov edx, dword [esi + 8]
sub edx, eax
cmp eax, edi
je 0x403f28
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x403f28
mov eax, dword [esi + 8]
mov byte [eax], bl
inc eax
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x403f35
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x2c]
push eax
push edi
push esi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00403300
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x403f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441cb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 8], ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
push ecx
xor eax, eax
push eax
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], 1
mov byte [esp + 0x40], bl
call fcn.00403300
mov eax, dword [esi + 4]
mov edx, ebx
shr edx, 8
mov byte [esp + 0x30], dl
cmp eax, ebp
jne 0x403fcc
xor edi, edi
jmp 0x403fd1
mov edi, dword [esi + 8]
sub edi, eax
cmp eax, ebp
je 0x403fe9
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edi, ecx
jae 0x403fe9
mov eax, dword [esi + 8]
mov byte [eax], dl
inc eax
mov dword [esi + 8], eax
jmp 0x404009
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x403ff6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x30]
push ecx
push edi
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00403300
mov eax, dword [esi + 4]
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x30], dl
cmp eax, ebp
jne 0x40401d
xor edi, edi
jmp 0x404022
mov edi, dword [esi + 8]
sub edi, eax
cmp eax, ebp
je 0x40403a
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edi, ecx
jae 0x40403a
mov eax, dword [esi + 8]
mov byte [eax], dl
inc eax
mov dword [esi + 8], eax
jmp 0x40405a
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x404047
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x30]
push ecx
push edi
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00403300
mov eax, dword [esi + 4]
shr ebx, 0x18
mov byte [esp + 0x30], bl
cmp eax, ebp
jne 0x40406c
xor edx, edx
jmp 0x404071
mov edx, dword [esi + 8]
sub edx, eax
cmp eax, ebp
je 0x40409c
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x40409c
mov eax, dword [esi + 8]
mov byte [eax], bl
inc eax
pop edi
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x4040a9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x30]
push eax
push edi
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00403300
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x408ee0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, ecx
call fcn.00408be0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x408f08
mov byte [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
lea ecx, [esi + 0x24]
mov word [esi + 0x20], 0
mov byte [esi + 0x22], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
lea ecx, [esi + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov eax, dword [0x453568]
mov dword [esi + 0x5c], eax
pop esi
ret

Function at 0x408f40
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44248c
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x408fa9
cmp byte [esi + 0x18], 0
jne 0x408fa9
cmp byte [esi + 0x20], 0
je 0x408fa9
cmp byte [esi + 0x22], 0
je 0x408fa9
push 0
push 0x400
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x408fbf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x2733
je 0x408fa8
mov byte [esi + 0x18], 1
call edi
mov dword [esi + 0x1c], eax
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
add esp, 0x428
ret
test eax, eax
jne 0x408fe0
mov byte [esi + 0x20], al
mov byte [esi + 0x18], 1
pop esi
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
add esp, 0x428
ret
jle 0x408fa9
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push eax
lea ecx, [esi + 0x24]
mov dword [esp + 0x42c], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 4]
mov dword [esp + 0x428], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [0x453568]
mov ecx, dword [esp + 0x420]
mov dword [esi + 0x5c], eax
pop esi
mov dword fs:[0], ecx
add esp, 0x428
ret
Function at 0x409040
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4424a9
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
mov edx, dword [esi]
cmp edx, 0xffffffff
je 0x40912d
cmp byte [esi + 0x18], 0
jne 0x40912d
cmp byte [esi + 0x20], 0
je 0x40912d
cmp byte [esi + 0x21], 0
je 0x40912d
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x40912d
cmp dword [esi + 0x58], 0x10
push edi
jb 0x40909b
mov eax, dword [esi + 0x44]
jmp 0x40909e
lea eax, [esi + 0x44]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4090ec
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x2733
jne 0x4090d2
pop edi
mov byte [esi + 0x21], 0
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov byte [esi + 0x18], 1
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
test eax, eax
jle 0x40912c
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
push edx
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esi + 0x40]
mov dword [esp + 0x30], 0
call dword [0x451204]
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x409210
Capabilities:
Connect socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x409298
cmp byte [esi + 0x18], 0
jne 0x409298
cmp byte [esi + 0x20], 0
jne 0x409298
mov ecx, dword [esi + 4]
push 0x23
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x409249
mov byte [esi + 0x18], 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x1c], eax
pop esi
ret 8
mov ecx, dword [esp + 8]
lea eax, [esi + 8]
mov edx, 2
push 0x10
mov word [eax], dx
mov dx, word [esp + 0x10]
push eax
mov eax, dword [esi]
push eax
mov dword [esi + 0xc], ecx
mov word [esi + 0xa], dx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x409298
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x2734
je 0x409297
call edi
cmp eax, 0x2733
je 0x409297
mov byte [esi + 0x18], 1
call edi
mov dword [esi + 0x1c], eax
pop edi
pop esi
ret 8
Function at 0x409340
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x409409
cmp byte [esi + 0x18], 0
jne 0x409409
push edi
mov eax, 2
lea edi, [esi + 8]
push str.127.0.0.1
mov word [edi], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
mov dword [esi + 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi]
push 0x10
push edi
push ecx
mov word [esi + 0xa], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4093c5
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 8
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x4093b5
mov byte [esi + 0x18], 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x1c], eax
pop edi
xor al, al
pop esi
pop ecx
ret
mov ecx, dword [esi]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4093d8
mov byte [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
pop edi
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push edi
push eax
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4093af
mov edx, dword [0x45356c]
mov cx, word [esi + 0xa]
add edx, 6
xchg word [edx], cx
pop edi
mov al, 1
pop esi
pop ecx
ret
xor al, al
pop esi
pop ecx
ret
Function at 0x40b244
Capabilities:
Terminate process

Disassembly:
call 0x40b581
push 0x58
push 0x450c18
call fcn.0040b740
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x4538bc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x40b2a9
cmp eax, esi
jne 0x40b29c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x40b2ac
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b283
xor esi, esi
inc esi
mov eax, dword [0x4538c0]
cmp eax, esi
jne 0x40b2bf
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40b2ee
mov eax, dword [0x4538c0]
test eax, eax
jne 0x40b2e8
mov dword [0x4538c0], esi
push 0x450d30
push 0x450d2c
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40b2ee
jmp 0x40b416
mov dword [0x453510], esi
mov eax, dword [0x4538c0]
cmp eax, esi
jne 0x40b312
push 0x450d1c
push 0x450d18
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x4538c0], 2
test ebx, ebx
jne 0x40b31e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4461b4], 0
je 0x40b342
push 0x4461b4
call fcn.0040b832
pop ecx
test eax, eax
je 0x40b342
push 0
push 2
push 0
call dword [0x4461b4]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40b39e
test al, al
je 0x40b35c
cmp dword [ebp - 0x1c], 0
jne 0x40b39e
mov al, byte [esi]
test al, al
je 0x40b36c
cmp al, 0x20
ja 0x40b36c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40b35c
test byte [ebp - 0x3c], 1
je 0x40b378
movzx eax, word [ebp - 0x38]
jmp 0x40b37b
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call fcn.00401000
mov dword [0x45350c], eax
cmp dword [0x453500], 0
jne 0x40b3f2
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x40b3ad
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x40b3c0
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x40b349
cmp dword [0x453510], 0
jne 0x40b401
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x45350c]
jmp 0x40b422
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0040b785
ret

Function at 0x40b98f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4534e4]
jne 0x40b999
repz ret
jmp fcn.0040b9e8
Function at 0x42097c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
fld dword [ebp + 4]
mov esi, dword [ebp]
test esi, esi
jle 0x4209c2
mov edi, dword [ebp + 0x2c]
xor edx, edx
fld dword [ecx + edx*8 + 4]
movsx eax, word [edi + edx*2]
add eax, eax
add eax, eax
add eax, eax
add eax, ebx
fld dword [ecx + edx*8]
fmul st(2)
fstp dword [eax]
fmul st(1)
fstp dword [eax + 4]
add edx, 1
cmp edx, esi
jne 0x42099b
fstp st(0)
jmp 0x4209c4
fstp st(0)
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004209e0
Function at 0x442fd1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, dword [0x453390]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
push 0x453108
push 0x40
push edi
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
cmp eax, 1
jb 0x443021
push 0
push edi
push ebp
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
cmp eax, 1
jb 0x443021
push 0x45310c
push dword [0x453108]
push edi
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
cmp eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret 0xc