joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45561f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044c5d2
xor ebx, ebx
cmp dword [0x5a0fe8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4556f5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4557d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46f5d0
push edi
call esi
cmp eax, ebx
je 0x4557d5
push eax
call fcn.0044c564
mov dword [esp], 0x46f5c0
push edi
mov dword [0x5a0fe8], eax
call esi
push eax
call fcn.0044c564
mov dword [esp], 0x46f5ac
push edi
mov dword [0x5a0fec], eax
call esi
push eax
call fcn.0044c564
mov dword [0x5a0ff0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00448c23
test eax, eax
pop ecx
pop ecx
je 0x4556c3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00445cbe
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4556f5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044c564
cmp eax, ebx
pop ecx
mov dword [0x5a0ff8], eax
je 0x4556f5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044c564
pop ecx
mov dword [0x5a0ff4], eax
mov eax, dword [0x5a0ff4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45577a
cmp dword [0x5a0ff8], ecx
je 0x45577a
push eax
call fcn.0044c5db
push dword [0x5a0ff8]
mov esi, eax
call fcn.0044c5db
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45577a
cmp edi, ebx
je 0x45577a
call esi
cmp eax, ebx
je 0x455747
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x455747
test byte [ebp - 0x18], 1
jne 0x45577a
lea eax, [ebp - 0x10]
push eax
call fcn.00448c5a
test eax, eax
pop ecx
je 0x455762
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00445cbe
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x455771
or dword [ebp + 0x10], 0x200000
jmp 0x4557b5
or dword [ebp + 0x10], 0x40000
jmp 0x4557b5
mov eax, dword [0x5a0fec]
cmp eax, dword [ebp - 8]
je 0x4557b5
push eax
call fcn.0044c5db
cmp eax, ebx
pop ecx
je 0x4557b5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4557b5
mov eax, dword [0x5a0ff0]
cmp eax, dword [ebp - 8]
je 0x4557b5
push eax
call fcn.0044c5db
cmp eax, ebx
pop ecx
je 0x4557b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a0fe8]
call fcn.0044c5db
cmp eax, ebx
pop ecx
je 0x4557d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4557d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45655d
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x456598
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x45657f
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x456590
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x45659a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x456575
xor eax, eax
pop edi
pop esi
ret
Function at 0x456c35
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x456bf4
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x456c12
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x456c70
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x456c57
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x456c60
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x456c6a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x456c4c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x456bd6
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x456cbd
dec eax
je 0x456cb4
sub eax, 3
je 0x456cab
mov dword [ebp - 4], 0x40
jmp 0x456cda
mov dword [ebp - 4], 4
jmp 0x456cc0
mov dword [ebp - 4], 0x20
jmp 0x456cc0
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x456d0c
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x456c8c
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0045651d
jae 0x456cf8
and eax, edi
invalid
fimul word [ecx - 1]
jne 0x456d17
push 1
push esi
call edi
mov eax, esi
jmp 0x456d18
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456e3d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [edx]
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0045652d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004564e2
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0045652d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004564e2
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0045651d
outsb dx, byte [esi]
cwde
mov esi, 0xcca580d3
cli
invalid

Function at 0x45d412
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x480208]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045d3a7
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00442640
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45d461
cmp dword [ebp - 0x1c], 5
jb 0x45d479
jmp 0x45d475
cmp dword [ebp - 0x10], 1
jne 0x45d479
cmp dword [ebp - 0x1c], 4
ja 0x45d475
jne 0x45d479
cmp dword [ebp - 0x18], 0
jbe 0x45d479
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x470ffc
call fcn.0045d27b
test eax, eax
jge 0x45d49a
mov byte [0x481ab4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00441a71
add ebp, 0x78
leave
ret
Function at 0x401590
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4015d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 8], edi
call fcn.00544730
mov dword [esp + 0xc], eax
test edi, edi
je 0x4015d0
lea eax, [esp + 8]
push eax
mov ecx, 0x586c58
call fcn.00401410
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401ed0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x5ae8e0]
xor eax, esp
mov dword [esp + 0x19c], eax
push 0x5b83a8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x401f13
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x5b83ac
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 0xc], 0
je 0x401f44
push 0
push 0x5b83ac
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x401f44
mov dword [esp], eax
call fcn.00544730
lea ecx, [esp]
push ecx
mov ecx, str.winsock
mov dword [esp + 8], eax
call fcn.00401410
mov ecx, dword [esp + 0x19c]
mov eax, dword [ebp + 8]
xor ecx, esp
call fcn.00524074
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553ffb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00543f7e
push 4
mov dword [ebp - 4], 0
call fcn.004308c3
mov edi, eax
add esp, 4
test edi, edi
je 0x4036fc
call fcn.00544294
mov dword [edi], eax
call fcn.00544053
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00543da2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4036f2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00543dca
jmp 0x4036fe
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404d40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555440
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005241cf
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00406810
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x404dcc
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x405710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5557f8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.005241cf
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00406810
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407872
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x407841
cmp eax, 2
jne 0x40785c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x40786c
test eax, eax
je 0x407867
test al, 1
jne 0x40785c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40786c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x407cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407ceb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407d22
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x407d1e
jmp 0x407d10
cmp esi, eax
jae 0x407d22
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407d10
cmp esi, eax
jb 0x407d29
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408b40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554beb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00432b40
test eax, eax
jne 0x408b9f
push 0x5870d8
call fcn.0052534c
add esp, 4
mov esi, 1
jmp 0x408ce7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0052a4d0
lea ecx, [ebp - 0x23c]
add esp, 0xc
mov dword [0x5b8494], ecx
mov dword [ebp - method.CService.virtual_0], 0x58712c
cmp dword [ebp + 8], 2
mov dword [ebp - 4], 0
jne 0x408ccb
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 4]
mov ecx, 0x587110
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408c16
test dx, dx
je 0x408c12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408c16
add eax, 4
add ecx, 4
test dx, dx
jne 0x408bf0
xor eax, eax
jmp 0x408c1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408c33
call fcn.0041cd20
call fcn.0041ce10
mov eax, 1
jmp 0x408ce9
mov ecx, 0x587118
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408c66
test dx, dx
je 0x408c62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408c66
add eax, 4
add ecx, 4
test dx, dx
jne 0x408c40
xor eax, eax
jmp 0x408c6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408c85
call fcn.0041cea0
push str.SHAREBOX_LAUNCHER
call fcn.0041cf40
mov eax, 1
jmp 0x408ce9
mov ecx, 0x587120
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408cb6
test dx, dx
je 0x408cb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408cb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408c90
xor eax, eax
jmp 0x408cbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408cc4
call fcn.0041ce10
mov eax, 1
jmp 0x408ce9
lea ecx, [ebp - 0x23c]
call fcn.0041cfc0
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 8]
lea ecx, [ebp - 0x23c]
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00524074
mov esp, ebp
pop ebp
ret
Function at 0x4094a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x5ae8e0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4094d5
mov eax, dword [esp + 0x10]
add eax, 0x50e6
cmp eax, 0x10000
jg 0x409570
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
mov ecx, 2
mov dword [esp + 0x14], eax
push str.127.0.0.1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x18], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x40951f
push 0x50e6
call dword [sym.imp.WS2_32.dll_htons]
jmp 0x409538
mov edi, dword [esp + 0x10]
lea edx, [edi + 0x50e6]
movzx eax, dx
push eax
call dword [sym.imp.WS2_32.dll_htons]
inc edi
mov dword [esp + 0x10], edi
mov word [esp + 0x16], ax
push 0x10
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
js 0x409584
test ebx, ebx
jne 0x4094c1
mov ebx, 1
jmp 0x4094bd
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00524074
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x16]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
movzx eax, ax
call fcn.00524074
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1084]
mov dword [ebp - 4], 0
mov ebx, 1
lea ecx, [ecx]
push 0x50
call fcn.0042b310
xor edx, edx
add esp, 4
cmp eax, edx
je 0x409877
mov dword [eax], edx
cmp dword [esi + 8], edx
je 0x4097ef
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x74]
or ecx, 0x20002
mov dword [eax + 0x14], ecx
jmp 0x4097f6
mov dword [eax + 0x14], 0x20102
push edx
push eax
lea ecx, [eax + 0x1c]
mov dword [eax + 0x20], edi
mov dword [eax + 0x18], esi
mov dword [ecx], 0x1000
mov dword [ebp - 0xc], edx
lea edx, [ebp - 8]
push edx
add eax, 0x24
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x10]
push edx
push ebx
push ecx
push eax
mov dword [ebp - 8], 0x10
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x409846
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x409846
cmp eax, 0x2736
jne 0x40987c
mov eax, dword [esi + 4]
add dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
add dword [eax + 0xc4], ebx
mov eax, dword [ebp - 4]
add eax, ebx
add edi, 0x1000
mov dword [ebp - 4], eax
cmp eax, 4
jb 0x4097c0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 4], edx
jmp 0x409880
cmp dword [esi + 4], 0
je 0x409889
mov eax, esi
call fcn.0042f2f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b190
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5b898c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b1c5
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40b1c5
mov eax, dword [ecx]
test eax, eax
je 0x40b1c5
mov dword [ecx], 0
mov cl, byte [eax]
movzx edx, cl
cmp edx, ebx
jae 0x40b1e2
push eax
call fcn.004308fd
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.004308c3
add esp, 4
cmp ebx, 0xff
ja 0x40b1e0
movzx ecx, bl
mov byte [eax + ebx], cl
ret
xor ecx, ecx
mov byte [eax + ebx], cl
ret

Function at 0x40b3a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
jne 0x40b3f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x10], ebx
call fcn.00544730
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x40b3f7
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread.entry_event
call fcn.00401410
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [esi + 8], eax
cmp dword [ebx + 8], 0
jne 0x40b449
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x10], ebx
call fcn.00544730
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x40b446
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread.exit_event
call fcn.00401410
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x40b4f0
push eax
push 0
mov dword [esp + 0x24], 0
call fcn.005254b8
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x40b4c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test edi, edi
je 0x40b492
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b4a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.00544730
mov dword [esp + 0x14], eax
test esi, esi
je 0x40b4c4
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread
call fcn.00401410
test edi, edi
je 0x40b4d8
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8