joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46fff7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov dword [edi], 0x47cf4c
mov dword [esp + 0x18], edi
mov dword [edi + 0x60], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esp + 0x28], 0
mov eax, dword [edi]
mov dword [esp + 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ebp, dword [eax + 4]
add ebp, edi
mov ecx, ebp
call fcn.0040d6b0
lea eax, [esp + 0x14]
lea ebx, [edi + 0x10]
push eax
mov ecx, ebp
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], 0
call fcn.0040d690
push eax
mov dword [esp + 0x2c], 2
call fcn.0040fda0
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x28], 1
call fcn.00406ee0
mov edx, dword [esi]
push 0x20
mov ecx, esi
call dword [edx + 0x30]
cmp dword [ebp + 0x38], 0
mov word [ebp + 0x40], ax
jne 0x423cc3
push 0
push 4
mov ecx, ebp
call fcn.00409a50
mov dword [esp + 0x28], 3
mov eax, dword [edi]
mov dword [esp + 0x1c], ebx
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.0040f730
mov byte [esp + 0x28], 4
lea ecx, [ebx + 0x40]
mov dword [ebx], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.004030b0
mov ecx, dword [esp + 0x30]
call fcn.00407940
mov ecx, dword [esp + 0x30]
mov ebp, eax
call fcn.0040a2b0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 2
test ebp, ebp
je 0x423d30
push ebp
push eax
mov ecx, ebx
call fcn.0040f8c0
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x429250
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4292c4
push esi
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x42929f
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x4292a1
xor esi, esi
push esi
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 0x194]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 4]
add eax, 0x194
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x429ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470383
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebx, ecx
push esi
mov eax, dword [ebx]
push edi
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.004066e0
mov eax, dword [ebx + 4]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.004066e0
mov edi, dword [esp + 0x10]
cmp edi, dword [esp + 0x14]
je 0x429fb2
mov ebp, dword [esp + 0x44]
cmp byte [edi + 4], 0
je 0x429f7e
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x429f48
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], esi
test eax, eax
je 0x429f31
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x429f33
xor esi, esi
push esi
mov dword [esp + 0x40], 0xffffffff
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esp + 0x18]
push ebp
push eax
mov eax, dword [edi]
add esi, 0x318
call eax
add esp, 8
push esi
mov ecx, eax
mov dword [esp + 0x40], 1
call fcn.0041b2a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00407890
jmp 0x429f88
mov eax, dword [edi]
push ebp
call eax
add esp, 4
mov esi, eax
cmp dword [esi + 0x10], 0
jne 0x429fcc
mov eax, dword [ebx + 4]
add dword [esp + 0x10], 8
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.004066e0
mov edi, dword [esp + 0x10]
cmp edi, dword [esp + 0x14]
jne 0x429ef1
mov eax, 0x4902ac
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 4

Function at 0x42a630
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42a6a4
push esi
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x42a67f
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x42a681
xor esi, esi
push esi
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 0x148]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 4]
add eax, 0x148
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x42ae80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4705c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 8]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [eax + 4]
mov dword [eax + 0x30], 0x2710
mov dword [esp + 8], vtable.log4cplus::Logger.0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x42aef4
mov eax, dword [ecx + 0x14]
lea edx, [ecx + 0x14]
mov eax, dword [eax + 4]
add edx, eax
or ecx, 0xffffffff
lea eax, [edx + 8]
lock xadd dword [eax], ecx
cmp ecx, 1
sete al
test al, al
je 0x42aef4
test edx, edx
je 0x42aef4
mov eax, dword [edx]
push 1
mov ecx, edx
call dword [eax]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x24], 0xffffffff
call dword [eax + 0x44]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 8]
call fcn.004066e0
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.004066e0
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
je 0x42af86
lea esp, [esp]
mov ecx, dword [eax + 4]
mov dword [ecx + 0x30], 0xffffffff
mov eax, dword [eax + 4]
lea ecx, [esp + 8]
mov byte [eax + 0x38], 1
mov eax, dword [esp + 0x14]
add dword [esp + 4], 8
mov dword [esp + 8], eax
lea eax, [esp + 0x10]
push eax
call fcn.004066e0
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
jne 0x42af50
mov esi, dword [esp + 0x10]
test esi, esi
je 0x42afb5
push edi
mov edi, dword [esp + 0x18]
cmp esi, edi
je 0x42afab
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x18]
add esi, 8
cmp esi, edi
jne 0x42af97
mov esi, dword [esp + 0x14]
push esi
call fcn.0044e3fd
add esp, 4
pop edi
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x430660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4306d4
push esi
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x4306af
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x4306b1
xor esi, esi
push esi
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 0x15c]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 4]
add eax, 0x15c
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4318c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x470e39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov dword [esp + 0x48], 0
push ebx
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x54]
push ebp
push esi
lea ebp, [ebx + 4]
mov esi, ecx
mov dword [ebx], vtable.log4cplus::helpers::Properties.0
push edi
mov dword [esp + 0x24], esi
mov dword [ebp], 0
mov dword [ebp + 4], 0
call fcn.0040fcf0
mov dword [ebp], eax
mov dword [ebx + 0xc], 0
mov dword [esp + 0x58], 0
mov ebx, dword [esp + 0x64]
mov ecx, ebx
mov dword [esp + 0x1c], 1
call fcn.00407940
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00431680
mov dword [esp + 0x58], 1
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.004066e0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004066e0
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
je 0x431a85
lea esp, [esp]
mov ecx, ebx
or esi, 0xffffffff
call fcn.00407940
cmp dword [ebx + 0x10], 0xffffffff
mov ecx, ebx
cmovb esi, dword [ebx + 0x10]
push esi
call fcn.00407a90
mov esi, dword [esp + 0x24]
push eax
push esi
push 0
mov ecx, edi
call fcn.00416160
test eax, eax
jne 0x431a5c
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x40]
push eax
call fcn.00414f90
mov edi, eax
mov esi, dword [esp + 0x24]
mov byte [esp + 0x58], 2
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
add esi, 4
push eax
mov ecx, esi
call fcn.0042bac0
mov eax, dword [esi]
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.004066e0
mov eax, dword [esp + 0x28]
mov esi, 0x490320
cmp eax, dword [esp + 0x18]
je 0x431a12
lea esi, [eax + 0x28]
push edi
mov ecx, ebp
call fcn.004306f0
mov edi, eax
cmp edi, esi
je 0x431a4e
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.004037a0
push eax
lea eax, [esp + 0x17]
push eax
mov ecx, edi
call fcn.004037a0
push eax
call fcn.004074a0
add esp, 8
mov ecx, edi
push 0xffffffffffffffff
push 0
push esi
call fcn.00407ad0
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 1
call fcn.00407890
mov eax, dword [esp + 0x30]
add dword [esp + 0x14], 0x18
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004066e0
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
jne 0x431990
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x431ab0
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x431aa7
mov ecx, esi
call fcn.00407890
add esi, 0x18
cmp esi, edi
jne 0x431a95
mov esi, dword [esp + 0x2c]
push esi
call fcn.0044e3fd
add esp, 4
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
Function at 0x4327a0
Capabilities:
Initialize winsock library

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0040dcb0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
push 1
push 0x490048
mov edi, eax
call esi
sub eax, 0
je 0x432855
dec eax
je 0x4327fb
dec eax
je 0x4328a4
push 1
lea eax, [esp + 0x14]
push eax
push str.log4cplus:ERROR
push 0x40c990
push 0x48ffe8
mov ecx, edi
mov dword [esp + 0x24], str.Unknown_WinSock_state.
call fcn.0040cce0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
push 0
push 0x490048
call ebp
dec eax
je 0x43284a
dec eax
je 0x4328a4
push 1
lea eax, [esp + 0x14]
push eax
push str.log4cplus:ERROR
push 0x40c990
push 0x48ffe8
mov ecx, edi
mov dword [esp + 0x24], str.Unknown_WinSock_state.
call fcn.0040cce0
jmp 0x432810
call ebx
test eax, eax
jne 0x432810
push eax
call esi
jmp 0x432810
push 0x490380
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x432899
push 1
push 0
push 0x490048
call esi
push 1
lea eax, [esp + 0x14]
push eax
push str.log4cplus:ERROR
push 0x40c990
push 0x48ffe8
mov ecx, edi
mov dword [esp + 0x24], 0x47d998
call fcn.0040cce0
push 1
push 2
push 0x490048
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4328b0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
cmp dword [0x490048], 2
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
je 0x4328d4
call fcn.004327a0
xor eax, eax
cmp byte [ebp + 8], al
push 0x80
setne al
push 0
push 0
push 0
inc eax
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0xffffffff
je 0x4329cd
mov edx, ebx
lea ecx, [esp + 0x28]
call fcn.004220b0
mov ecx, eax
call fcn.00407770
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.00408290
mov eax, 2
test ebx, ebx
je 0x432942
cmp word [ebx + 8], ax
jne 0x432942
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
jmp 0x432979
mov ecx, dword [esp + 0x10]
mov word [esp + 0x18], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 2
mov dword [esp + 0x1c], 0x10
call fcn.0040a2b0
push eax
call dword [sym.imp.WS2_32.dll_WSAStringToAddressW]
cmp eax, 0xffffffff
je 0x4329c4
cmp dword [esp + 0xc], 0x10
jne 0x4329c4
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_connect]
mov word [esp + 0x1a], ax
mov eax, 2
mov word [esp + 0x18], ax
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
cmp eax, 0xffffffff
jne 0x4329b2
call edi
cmp eax, 0x2714
je 0x432998
jmp 0x4329cd
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
call edi
mov edi, eax
cmp esi, 0xffffffff
je 0x4329dd
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.004521b2
mov dword [eax], edi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x10]
push 0
sub eax, esi
push eax
lea eax, [ecx + esi]
push eax
push ebx
call ebp
cmp eax, 0xffffffff
je 0x432a29
test eax, eax
je 0x432a22
add esi, eax
cmp esi, dword [edi + 4]
jl 0x432a00
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.004521b2
pop edi
mov dword [eax], esi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x432a40
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x470ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
cmp dword [0x490048], 2
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x16], dl
mov ebp, ecx
mov dword [esp + 0x28], 0
je 0x432a78
call fcn.004327a0
lea ecx, [esp + 0x19]
mov ebx, str.unknown
mov byte [esp + 0x14], 0
call fcn.004030b0
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call fcn.00432c50
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub eax, ecx
dec eax
push eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
mov esi, eax
test esi, esi
je 0x432b97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x432b9b
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, ecx
sub eax, edx
mov byte [esp + 0x15], 0
lea edi, [eax + eax]
cmp eax, edi
jbe 0x432b44
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004066e0
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
call fcn.004066e0
mov eax, dword [esp + 0x20]
add eax, edi
push esi
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
call fcn.00422520
jmp 0x432b78
jae 0x432b80
lea eax, [esp + 0x34]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x28]
call fcn.004066e0
sub edi, dword [esp + 0x38]
lea eax, [esp + 0x15]
add edi, dword [esp + 0x34]
push eax
push edi
push dword [esp + 0x2c]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
call fcn.00432c90
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub ecx, edx
lea eax, [ecx - 1]
push eax
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
mov esi, eax
test esi, esi
jne 0x432ad7
mov ebx, dword [esp + 0x34]
test esi, esi
jne 0x432bef
cmp byte [esp + 0x16], 0
je 0x432bef
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x432bb3
mov ebx, dword [eax]
mov edx, ebx
mov ecx, ebp
call fcn.00421de0
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x34], 0
je 0x432c2e
lea ecx, [esp + 0x1a]
call fcn.00404250
lea ecx, [esp + 0x17]
call fcn.00404250
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x1f]
jmp 0x432c29
mov edx, ebx
mov ecx, ebp
call fcn.00421de0
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x34], 0
je 0x432c2e
lea ecx, [esp + 0x1b]
call fcn.00404250
lea ecx, [esp + 0x18]
call fcn.00404250
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004037c0
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret
Function at 0x433540
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4335b4
push esi
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x43358f
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x433591
xor esi, esi
push esi
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 0x164]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 4]
add eax, 0x164
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4335d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x433644
push esi
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x43361f
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x433621
xor esi, esi
push esi
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 0x17c]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 4]
add eax, 0x17c
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4337f0
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
call fcn.0040dcb0
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x433849
push edi
lea ecx, [ebp - 0x18]
push ecx
push str.log4cplus:ERROR
push 0x40c990
push 0x48ffe8
mov ecx, eax
mov dword [ebp - 0x18], str.threadStartFunc____arg_is_NULL
call fcn.0040cce0
jmp 0x43394b
mov eax, dword [edi + 4]
lea ecx, [edi + 0xc]
mov eax, dword [eax + 4]
add ecx, eax
mov dword [ebp - 0x1c], edi
mov eax, 1
lock xadd dword [ecx], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
lea edx, [edi + 4]
mov eax, dword [eax + 4]
add edx, eax
or ebx, 0xffffffff
lea eax, [edx + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
sete al
test al, al
je 0x433894
test edx, edx
je 0x433894
mov eax, dword [edx]
push 1
mov ecx, edx
call dword [eax]
mov byte [ebp - 4], 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
jmp 0x433900
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
push dword [esi + edi + 8]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [edi + 8], 0xfffffffe
push dword [esi + edi + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, edi
lea eax, [ecx + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
sete al
test al, al
je 0x43394b
test ecx, ecx
je 0x43394b
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.0045604a
test eax, eax
je 0x43398b
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x433996
mov ecx, esi
call fcn.0040e000
push esi
call fcn.0044e3fd
add esp, 4
jmp 0x433996
push str.log4cplus:_CRT_heap_is_already_gone_in_threadCleanup___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433d90
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
or dword [esi + 8], 1
mov eax, dword [eax + 4]
lea edx, [esi + 0xc]
add edx, eax
mov eax, 1
lock xadd dword [edx], eax
push 0xffffffffffffffff
lea ebp, [esi + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp eax, 0xffffffff
je 0x433ab6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x4337e0
push 0
push 0
call fcn.00459283
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x433b2f
mov ecx, dword [esi + 4]
push edi
mov ecx, dword [ecx + 4]
lea edi, [esi + 4]
add edi, ecx
or edx, 0xffffffff
lea ecx, [edi + 8]
lock xadd dword [ecx], edx
cmp edx, 1
sete al
test al, al
je 0x433b00
test edi, edi
je 0x433b00
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
and dword [esi + 8], 0xfffffffe
mov dword [esp + 0x10], str.Thread_creation_was_not_successful
call fcn.0040dcb0
push 1
lea ecx, [esp + 0x14]
push ecx
push str.log4cplus:ERROR
push 0x40c990
push 0x48ffe8
mov ecx, eax
call fcn.0040cce0
pop edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x433d9f
add ecx, 0xfffffffc
jmp 0x433a80
xor ecx, ecx
jmp 0x433a80

Function at 0x4340a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47101f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea ecx, [edi + 0x14]
mov dword [esp + 0xc], edi
mov dword [edi + 4], 0x47e6e8
call fcn.004104d0
mov eax, dword [edi + 4]
mov dword [edi], vtable.log4cplus::spi::Filter.0
mov eax, dword [eax + 4]
mov dword [esp + 8], 1
mov dword [eax + edi + 4], vtable.log4cplus::spi::Filter.1.0
mov dword [edi + 8], 0
mov dword [esp + 0x30], 1
mov eax, dword [edi + 4]
mov dword [edi], vtable.log4cplus::spi::LogLevelMatchFilter.1.0
mov eax, dword [eax + 4]
lea esi, [edi + 0xc]
mov dword [eax + edi + 4], vtable.log4cplus::spi::LogLevelMatchFilter.0
push 0x47dc9c
lea ecx, [esp + 0x14]
mov byte [esi], 1
mov dword [edi + 0x10], 0xffffffff
call fcn.00408180
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x34], 2
push esi
mov esi, dword [esp + 0x40]
mov ecx, esi
call fcn.00431ad0
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.00407890
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x3c], str.LogLevelToMatch
call fcn.00431c30
mov esi, eax
call fcn.0040dc90
lea ecx, [eax + 0x14]
push esi
call fcn.00429ff0
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x10], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8