joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4de24d
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push esi
mov esi, ecx
cmp byte [esi + 0xd5], 0
jne 0x42044d
push ebx
push edi
push dword [0x5357c0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4203c2
push 0x400
call fcn.00493f75
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.0040e220
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push edi
push dword [0x5357c0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add edi, 0x164
cmp dword [edi + 0x10], 0
jne 0x420420
push 1
push 2
lea ecx, [ebp - 0xc0]
call fcn.0040e880
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 1
call fcn.00429b90
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00412d50
push edi
mov ecx, eax
call fcn.0041b900
lea ecx, [ebp - 0x28]
call fcn.0040ce40
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e130
lea ebx, [esi + 0x74]
cmp ebx, edi
je 0x420433
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.00412bb0
pop edi
mov eax, ebx
mov byte [esi + 0xd5], 1
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0x74]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x421010
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de3b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.0048036f
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x54], eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], al
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], al
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push 0x500670
push eax
call fcn.00480b6c
lea eax, [ebp - 0x3c]
push eax
call fcn.004806ba
add esp, 0xc
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.00403a30
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4236b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4de588
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x423817
cmp byte [ebx + 0x3e], 0
je 0x423817
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
jne 0x42370b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov dword [ebp - 0x18], 8
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x423775
sub eax, 1
je 0x423779
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x4237cf
xor bl, bl
jmp 0x4237d1
mov byte [ebx + 0x3e], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x10]
cmovae ecx, eax
sub esi, ecx
je 0x4237b1
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.004c0114
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x423771
cmp byte [ebx + 0x3e], 0
je 0x4237cf
test esi, esi
jne 0x423736
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00407ae0
jmp 0x423730
mov bl, 1
cmp edx, 0x10
jb 0x423804
lea ecx, [edx + 1]
mov edx, eax
cmp ecx, 0x1000
jb 0x4237fb
test dl, 0x1f
jne 0x42382a
mov eax, dword [eax - 4]
cmp eax, edx
jae 0x42382f
sub edx, eax
cmp edx, 4
jb 0x423834
cmp edx, 0x23
ja 0x423839
push eax
call fcn.004943b0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004af5bc
call fcn.004af5bc
call fcn.004af5bc
call fcn.004af5bc
int3
Function at 0x423a60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcd90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00493f75
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00480a65
mov dword [esi + 4], eax
add esp, 8
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 8]
mov dword [ecx + 0x34], esi
lea ebx, [ecx + 4]
mov dword [ecx + 0xc], ebx
lea edi, [ecx + 0x14]
mov dword [ecx + 0x1c], edi
lea esi, [ecx + 0x18]
mov dword [ecx + 0x20], esi
lea edx, [ecx + 0x24]
mov dword [ecx + 0x2c], edx
add ecx, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], ecx
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x20]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x30]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0xc]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x1c]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x2c]
mov dword [eax], 0
mov eax, ebx
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, eax
mov dword [eax], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3e], 0
lea eax, [ebx + 8]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], ecx
mov dword [eax], 0
mov eax, dword [ebx + 0x20]
pop edi
pop esi
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x4c], eax
mov eax, dword [0x535a24]
mov dword [ebx + 0x40], eax
mov eax, dword [0x535a28]
mov dword [ebx + 0x44], eax
mov eax, ebx
mov dword [ebx + 0x38], 0
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x424000
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de61f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
push esi
mov dword [ebx], 0x5005e4
push edi
mov dword [ebx + 0x60], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x10]
mov eax, dword [ebx]
push 0
push edi
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.0040fd40
mov dword [ebp - 4], 2
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], edi
lea eax, [ecx - 0x60]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00493f75
add esp, 4
mov esi, eax
push 1
mov byte [ebp - 4], 3
call fcn.00480a65
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 4
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 4
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x424134
mov eax, dword [eax]
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 2
test ecx, ecx
je 0x42414f
push ecx
push eax
mov ecx, edi
call fcn.0040fbb0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429ac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4de24d
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push esi
push dword [0x5357c0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x429b21
push 0x400
call fcn.00493f75
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.0040e220
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push esi
push dword [0x5357c0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esi, 0x14c
cmp dword [esi + 0x10], 0
jne 0x429b7f
push 1
push 2
lea ecx, [ebp - 0xc0]
call fcn.0040e880
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00412d70
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00412d50
push esi
mov ecx, eax
call fcn.0041b900
lea ecx, [ebp - 0x28]
call fcn.0040ce40
lea ecx, [ebp - 0xc0]
call fcn.0040e130
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429bc0
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de9c8
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.0040e0d0
mov ebx, eax
mov dword [ebp - 0x14], ebx
test edi, edi
jne 0x429c84
push dword [ebx + 0xc]
lea esi, [ebx + 0xc]
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
mov edi, dword [ebx + 8]
cmp edi, 0xffffffff
jne 0x429c22
mov edx, 0x4ff85c
lea ecx, [ebx + 8]
call fcn.00417e40
mov edi, dword [ebx + 8]
mov dword [ebp - 4], 0xffffffff
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebx
cmp edi, 1
je 0x429d92
call fcn.0040df90
mov esi, eax
mov dword [ebp - 0x18], esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.threadStartFunc____arg_is_NULL
push str.log4cplus:ERROR
push 0x535610
mov dword [ebp - 4], 1
call fcn.00418120
add esp, 8
push eax
call fcn.00418120
push eax
call fcn.004183f0
add esp, 0xc
push dword [esi]
call ebx
jmp 0x429d92
mov eax, dword [edi + 4]
lea ecx, [edi + 0xc]
mov dword [ebp - 0x1c], edi
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 1
lock xadd dword [ecx], eax
mov dword [ebp - 4], 3
lea edx, [edi + 4]
mov eax, dword [edi + 4]
or ebx, 0xffffffff
mov eax, dword [eax + 4]
add edx, eax
mov eax, ebx
lea ecx, [edx + 8]
lock xadd dword [ecx], eax
cmp eax, 1
sete al
test al, al
je 0x429ccf
test edx, edx
je 0x429ccf
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov byte [ebp - 4], 4
mov ecx, edi
mov eax, dword [edi]
call dword [eax]
jmp 0x429d4e
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 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 0x429d92
test ecx, ecx
je 0x429d92
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.004c5ca9
test eax, eax
je 0x429db5
push dword [0x5357c0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x429dc0
push ecx
mov ecx, eax
call fcn.0040e540
jmp 0x429dc0
push str.log4cplus:_CRT_heap_is_already_gone_in_threadCleanup___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push dword [0x5357c0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a0a0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx + 8]
push edi
lea eax, [esi - 4]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [esi + 4]
lea ecx, [esi + 0xc]
or dword [esi + 8], 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 1
lock xadd dword [ecx], eax
or ebx, 0xffffffff
lea ebp, [esi + 0xc]
mov eax, ebx
xchg dword [ebp], eax
cmp eax, ebx
je 0x42a0df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x429bb0
push 0
push 0
call fcn.004be918
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x42a14d
mov ecx, dword [esi + 4]
lea edx, [esi + 4]
mov ecx, dword [ecx + 4]
add edx, ecx
lea ecx, [edx + 8]
lock xadd dword [ecx], ebx
cmp ebx, 1
jne 0x42a11f
test edx, edx
je 0x42a11f
mov eax, dword [edx]
mov ecx, edx
push ebx
call dword [eax]
and dword [esi + 8], 0xfffffffe
mov dword [esp + 0x10], str.Thread_creation_was_not_successful
call fcn.0040e0d0
push 1
lea ecx, [esp + 0x14]
push ecx
push str.log4cplus:ERROR
push 0x417e10
push 0x535610
mov ecx, eax
call fcn.00418040
xchg dword [ebp], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x42a5b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dea70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov eax, dword [edi + 4]
mov dword [edi], vtable.log4cplus::Appender.1.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.log4cplus::Appender.0
call fcn.00493f75
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.log4cplus::Layout.0
call fcn.0040df90
add eax, 0x14
mov dword [esi], vtable.log4cplus::SimpleLayout.0
mov dword [esi + 4], eax
mov dword [edi + 8], esi
xor eax, eax
mov dword [ebp - 4], 1
lea ecx, [edi + 0xc]
mov dword [ecx + 0x14], 7
push eax
mov dword [ecx + 0x10], 0
push 0x4ff7bc
mov word [ecx], ax
call fcn.00413ce0
mov dword [edi + 0x24], 0xffffffff
mov dword [edi + 0x28], 0
push 8
mov byte [ebp - 4], 3
call fcn.00493f75
mov dword [ebp - 0x14], eax
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [eax], vtable.log4cplus::OnlyOnceErrorHandler.0
mov byte [eax + 4], 1
mov dword [edi + 0x2c], eax
mov eax, edi
mov dword [edi + 0x30], 0
mov word [edi + 0x34], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x42b3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dd5a2
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push dword [0x5357c0]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x42b401
push 0x400
call fcn.00493f75
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.0040e220
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push esi
push dword [0x5357c0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esi, 0x220
mov ecx, esi
call fcn.004174e0
mov ecx, dword [edi + 8]
push dword [ebp + 8]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00412d50
add esi, 0x98
mov ecx, eax
push esi
call fcn.0041b900
lea ecx, [ebp - 0x28]
call fcn.0040ce40
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42f430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x2c], 7
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00413ce0
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004290b0
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov edi, dword [ebp - 0x18]
cmovae ebx, dword [ebp - 0x28]
xor esi, esi
nop word [eax + eax]
push 0
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push ecx
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42f4cf
add esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x42f4a0
jmp 0x42f554
call fcn.0040e0d0
mov ebx, eax
push dword [ebx + 0xc]
lea esi, [ebx + 0xc]
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 8]
mov byte [ebp - 4], 2
mov edi, dword [ecx]
cmp edi, 0xffffffff
jne 0x42f500
mov edx, 0x4ff85c
call fcn.00417e40
mov edi, dword [ebx + 8]
mov byte [ebp - 4], 1
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebx
cmp edi, 1
je 0x42f554
call fcn.0040df90
mov esi, eax
mov dword [ebp + 0xc], esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.Win32ConsoleAppender::write_handle__WriteFile_has_failed.
push ecx
push str.log4cplus:ERROR
push 0x535610
mov byte [ebp - 4], 3
call fcn.00418120
add esp, 0xc
push eax
call fcn.00418120
push eax
call fcn.004183f0
add esp, 0xc
push dword [esi]
call ebx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42f58a
mov edx, dword [ebp - 0x28]
inc eax
mov ecx, edx
cmp eax, 0x1000
jb 0x42f581
test cl, 0x1f
jne 0x42f5b7
mov edx, dword [edx - 4]
cmp edx, ecx
jae 0x42f5bc
sub ecx, edx
cmp ecx, 4
jb 0x42f5c1
cmp ecx, 0x23
ja 0x42f5c6
push edx
call fcn.004943b0
add esp, 4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040ce40
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004af5bc
call fcn.004af5bc
call fcn.004af5bc
call fcn.004af5bc
int3
Function at 0x431570
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4df500
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
push edi
lea edi, [esi + 0x38]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x43164f
movzx edx, word [esi + 0x60]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [esi + 0x48]
mov dword [ebp - 0x20], vtable.log4cplus::helpers::Socket.0
call fcn.00436760
add esp, 8
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x43160f
push 4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x431619
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.004bad04
mov dword [eax], esi
call fcn.004bad04
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
cmp eax, edi
je 0x431639
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.log4cplus::helpers::AbstractSocket.0
cmp eax, 0xffffffff
je 0x43164f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x431bd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df5b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
push dword [0x5357c0]
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x431c3b
push 0x400
call fcn.00493f75
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.0040e220
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push esi
push dword [0x5357c0]
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp + 0xc]
mov eax, dword [ebx]
add esi, 0x2e8
push esi
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + 8]
cmp eax, ecx
jbe 0x431cd2
test byte [ebx + 0xc], 2
je 0x431c98
sub eax, ecx
mov ecx, esi
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004229d0
mov ecx, dword [ebp + 8]
mov edx, eax
mov dword [ebp - 4], 1
call fcn.00415780
lea ecx, [ebp - 0x2c]
call fcn.0040ce40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ecx
push 0
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.004229d0
mov ecx, dword [ebp + 8]
mov edx, eax
mov dword [ebp - 4], 2
call fcn.00415780
lea ecx, [ebp - 0x44]
call fcn.0040ce40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, dword [ebx + 4]
jge 0x431d61
mov ebx, dword [ebp + 8]
mov ecx, 0x20
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov edi, dword [eax + ebx + 0x14]
movzx esi, word [eax + ebx + 0x40]
mov word [eax + ebx + 0x40], cx
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov al, byte [edx + 0xc]
not al
and eax, 1
inc eax
shl eax, 6
xor eax, dword [ecx + ebx + 0x14]
and eax, 0x1c0
xor dword [ecx + ebx + 0x14], eax
mov ecx, dword [ebx]
mov eax, dword [edx + 4]
cdq
mov ecx, dword [ecx + 4]
mov dword [ecx + ebx + 0x24], edx
mov edx, dword [ebp - 0x10]
mov dword [ecx + ebx + 0x20], eax
mov ecx, ebx
lea edx, [edx + 0x2e8]
call fcn.00415780
mov eax, dword [ebx]
movzx ecx, di
mov eax, dword [eax + 4]
mov word [eax + ebx + 0x40], si
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [eax + ebx + 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.00415780
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4322c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dd5a2
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push dword [0x5357c0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x43231e
push 0x400
call fcn.00493f75
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.0040e220
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push esi
push dword [0x5357c0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esi, 0x98
mov ecx, esi
call fcn.004174e0
mov edx, dword [ebp + 0xc]
mov ecx, esi
call fcn.0042f930
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00412d50
push dword [ebp + 8]
mov ecx, eax
call fcn.0041b900
lea ecx, [ebp - 0x28]
call fcn.0040ce40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8