joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d860
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1018b6c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov dword [esp + 0x4c], 0
push ebp
mov dword [esp + 0x14], 0
push esi
mov esi, dword [esp + 0x5c]
push edi
lea ebp, [esi + 4]
mov edi, ecx
mov dword [esi], vtable.log4cplus::helpers::Properties.0
mov dword [esp + 0x24], edi
mov dword [ebp], 0
mov dword [ebp + 4], 0
call fcn.1001f9f0
mov dword [ebp], eax
mov dword [esi + 0xc], 0
mov dword [esp + 0x58], 0
mov ebx, dword [esp + 0x64]
mov ecx, ebx
mov dword [esp + 0x1c], 1
call fcn.10007940
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.1003d750
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.10006680
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.10006680
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
je 0x1003da29
lea esp, [esp]
mov ecx, ebx
or esi, 0xffffffff
call fcn.10007940
cmp dword [ebx + 0x10], 0xffffffff
mov ecx, ebx
cmovb esi, dword [ebx + 0x10]
push esi
call fcn.10007a90
mov esi, dword [esp + 0x24]
push eax
push esi
push 0
mov ecx, edi
call fcn.10025c10
test eax, eax
jne 0x1003d9fc
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x40]
push eax
call fcn.10024b40
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.10037f90
mov eax, dword [esi]
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.10006680
mov eax, dword [esp + 0x28]
mov esi, 0x102060e0
cmp eax, dword [esp + 0x18]
je 0x1003d9b2
lea esi, [eax + 0x28]
push edi
mov ecx, ebp
call fcn.1003c910
mov edi, eax
cmp edi, esi
je 0x1003d9ee
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.10003740
push eax
lea eax, [esp + 0x17]
push eax
mov ecx, edi
call fcn.10003740
push eax
call fcn.100073e0
add esp, 8
mov ecx, edi
push 0xffffffffffffffff
push 0
push esi
call fcn.10007ad0
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 1
call fcn.10007890
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.10006680
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
jne 0x1003d930
mov esi, dword [esp + 0x60]
mov byte [esp + 0x58], 0
cmp dword [esp + 0x2c], 0
je 0x1003da84
lea ecx, [esp + 0x2c]
call fcn.1000ea90
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, edi
je 0x1003da62
lea ebx, [ebx]
mov ecx, esi
call fcn.10007890
add esi, 0x18
cmp esi, edi
jne 0x1003da50
mov esi, dword [esp + 0x2c]
push esi
call fcn.1016059a
mov eax, dword [esp + 0x64]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
mov ecx, dword [esp + 0x50]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
Function at 0x1003e770
Capabilities:
Initialize winsock library

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.1001d9a0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
push 1
push 0x10205dd8
mov edi, eax
call esi
sub eax, 0
je 0x1003e825
dec eax
je 0x1003e7cb
dec eax
je 0x1003e874
push 1
lea eax, [esp + 0x14]
push eax
push str.log4cplus:ERROR
push 0x1001c950
push 0x10205d70
mov ecx, edi
mov dword [esp + 0x24], str.Unknown_WinSock_state.
call fcn.1001cca0
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 0x10205dd8
call ebp
dec eax
je 0x1003e81a
dec eax
je 0x1003e874
push 1
lea eax, [esp + 0x14]
push eax
push str.log4cplus:ERROR
push 0x1001c950
push 0x10205d70
mov ecx, edi
mov dword [esp + 0x24], str.Unknown_WinSock_state.
call fcn.1001cca0
jmp 0x1003e7e0
call ebx
test eax, eax
jne 0x1003e7e0
push eax
call esi
jmp 0x1003e7e0
push 0x10206140
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1003e869
push 1
push 0
push 0x10205dd8
call esi
push 1
lea eax, [esp + 0x14]
push eax
push str.log4cplus:ERROR
push 0x1001c950
push 0x10205d70
mov ecx, edi
mov dword [esp + 0x24], str.Could_not_initialize_WinSock.
call fcn.1001cca0
push 1
push 2
push 0x10205dd8
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1003e880
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 [0x10205dd8], 2
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
je 0x1003e8a4
call fcn.1003e770
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 0x1003e99d
mov edx, ebx
lea ecx, [esp + 0x28]
call fcn.1002e6b0
mov ecx, eax
call fcn.10007770
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.10008290
mov eax, 2
test ebx, ebx
je 0x1003e912
cmp word [ebx + 8], ax
jne 0x1003e912
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
jmp 0x1003e949
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.1000a250
push eax
call dword [sym.imp.WS2_32.dll_WSAStringToAddressW]
cmp eax, 0xffffffff
je 0x1003e994
cmp dword [esp + 0xc], 0x10
jne 0x1003e994
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 0x1003e982
call edi
cmp eax, 0x2714
je 0x1003e968
jmp 0x1003e99d
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 0x1003e9ad
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.1016366f
mov dword [eax], edi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003e9c0
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 0x1003e9f9
test eax, eax
je 0x1003e9f2
add esi, eax
cmp esi, dword [edi + 4]
jl 0x1003e9d0
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.1016366f
pop edi
mov dword [eax], esi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x1003ea10
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x1018b748
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
cmp dword [0x10205dd8], 2
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x16], dl
mov ebp, ecx
mov dword [esp + 0x28], 0
je 0x1003ea48
call fcn.1003e770
lea ecx, [esp + 0x19]
mov ebx, str.unknown
mov byte [esp + 0x14], 0
call fcn.10003050
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.1003ec30
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 0x1003eb67
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x1003eb6b
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 0x1003eb14
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10006680
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.10006680
mov eax, dword [esp + 0x20]
add eax, edi
push esi
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
call fcn.1002eb20
jmp 0x1003eb48
jae 0x1003eb50
lea eax, [esp + 0x34]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x28]
call fcn.10006680
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.1003ec70
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 0x1003eaa7
mov ebx, dword [esp + 0x34]
test esi, esi
jne 0x1003ebc8
cmp byte [esp + 0x16], 0
je 0x1003ebc8
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1003eb83
mov ebx, dword [eax]
mov edx, ebx
mov ecx, ebp
call fcn.1002e3d0
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x34], 0
je 0x1003ec10
lea ecx, [esp + 0x34]
call fcn.1000ea90
lea ecx, [esp + 0x1a]
call fcn.100041f0
lea ecx, [esp + 0x17]
call fcn.100041f0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x1f]
jmp 0x1003ec0b
mov edx, ebx
mov ecx, ebp
call fcn.1002e3d0
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x34], 0
je 0x1003ec10
lea ecx, [esp + 0x34]
call fcn.1000ea90
lea ecx, [esp + 0x1b]
call fcn.100041f0
lea ecx, [esp + 0x18]
call fcn.100041f0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10003760
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 0x1003f530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x1018af3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x10205dd4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1003f5a4
push esi
push 0x418
call fcn.10160697
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x1003f57f
mov ecx, eax
call fcn.1001dab0
mov esi, eax
jmp 0x1003f581
xor esi, esi
push esi
push dword [0x10205dd4]
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 0x1003f5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x1018af3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x10205dd4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1003f634
push esi
push 0x418
call fcn.10160697
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x1003f60f
mov ecx, eax
call fcn.1001dab0
mov esi, eax
jmp 0x1003f611
xor esi, esi
push esi
push dword [0x10205dd4]
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 0x1003f7e0
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018b828
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.1001d9a0
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x1003f839
push edi
lea ecx, [ebp - 0x18]
push ecx
push str.log4cplus:ERROR
push 0x1001c950
push 0x10205d70
mov ecx, eax
mov dword [ebp - 0x18], str.threadStartFunc____arg_is_NULL
call fcn.1001cca0
jmp 0x1003f93b
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 0x1003f884
test edx, edx
je 0x1003f884
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 0x1003f8f0
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 0x1003f93b
test ecx, ecx
je 0x1003f93b
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.1016da4b
test eax, eax
je 0x1003f97b
push dword [0x10205dd4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1003f986
mov ecx, esi
call fcn.1001dcf0
push esi
call fcn.1016059a
add esp, 4
jmp 0x1003f986
push str.log4cplus:_CRT_heap_is_already_gone_in_threadCleanup___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push dword [0x10205dd4]
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 0x1003fd80
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 0x1003faa6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x1003f7d0
push 0
push 0
call fcn.10164ddb
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1003fb1f
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 0x1003faf0
test edi, edi
je 0x1003faf0
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.1001d9a0
push 1
lea ecx, [esp + 0x14]
push ecx
push str.log4cplus:ERROR
push 0x1001c950
push 0x10205d70
mov ecx, eax
call fcn.1001cca0
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 0x1003fd8f
add ecx, 0xfffffffc
jmp 0x1003fa70
xor ecx, ecx
jmp 0x1003fa70

Function at 0x10040090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1018b86f
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], 0x101e5804
call fcn.10020190
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 str.AcceptOnMatch
lea ecx, [esp + 0x14]
mov byte [esi], 1
mov dword [edi + 0x10], 0xffffffff
call fcn.10008180
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x34], 2
push esi
mov esi, dword [esp + 0x40]
mov ecx, esi
call fcn.1003daa0
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.10007890
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x3c], str.LogLevelToMatch
call fcn.1003dc00
mov esi, eax
call fcn.1001d980
lea ecx, [eax + 0x14]
push esi
call fcn.100364f0
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
Function at 0x100405f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1018b944
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esi + 0x40]
mov dword [esp + 0xc], esi
mov dword [esi + 0x14], 0x101e3ecc
call fcn.10020190
mov dword [esp + 0x34], 0
push str.root
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
call fcn.10008180
mov ecx, esi
mov dword [esp + 0x34], 1
call fcn.1002cf00
mov dword [esp + 0x34], 3
mov eax, dword [esi + 0x14]
mov dword [esi], vtable.log4cplus::spi::LoggerImpl.1.0
mov eax, dword [eax + 4]
lea ecx, [esi + 0x18]
mov dword [eax + esi + 0x14], vtable.log4cplus::spi::LoggerImpl.0
lea eax, [esp + 0x10]
push eax
call fcn.1000dca0
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0
mov byte [esi + 0x38], 1
mov dword [esi + 0x3c], eax
lea ecx, [esp + 0x10]
call fcn.10007890
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [esi], vtable.log4cplus::spi::RootLogger.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x14], vtable.log4cplus::spi::RootLogger.1.0
mov dword [esi + 0x30], 0x2710
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x34
ret 0xc

Function at 0x100407b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10189b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.1002b500
mov edi, eax
mov ecx, edi
call fcn.1002ca40
mov ecx, dword [esi + 8]
push dword [ebp + 8]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.1000dd30
lea esi, [edi + 0x98]
push esi
mov ecx, eax
mov dword [esp + 0x30], 0
call fcn.1002aae0
lea ecx, [esp + 8]
call fcn.10007890
mov ecx, esi
call fcn.1000a250
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10040d80
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10189b08
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x80], 0
jne 0x10040dda
mov ecx, dword [0x10206138]
test ecx, ecx
jne 0x10040dc1
call fcn.1001d5b0
mov ecx, dword [0x10206138]
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.NT_EventLog_not_opened.
push str.log4cplus:WARN
jmp 0x10040eb4
call fcn.1002b500
mov esi, eax
mov ecx, esi
call fcn.1002ca40
mov ecx, dword [edi + 8]
mov ebx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
push esi
call dword [edx + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.1000dd30
add esi, 0x98
push esi
mov ecx, eax
mov dword [esp + 0x40], 0
call fcn.1002aae0
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.10007890
mov ecx, esi
call fcn.10007940
cmp eax, 0x7c5f
jbe 0x10040e42
push 0x7c5f
mov ecx, esi
call fcn.1002aa80
mov ecx, esi
call fcn.1000a250
push 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi]
push 0
push 1
push dword [edi + 0x84]
mov ecx, edi
push 0x1000
push ebx
call dword [eax + 0x24]
movzx eax, ax
push eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x20]
movzx eax, ax
push eax
push dword [edi + 0x80]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x10040ec6
mov ecx, dword [0x10206138]
test ecx, ecx
jne 0x10040ea0
call fcn.1001d5b0
mov ecx, dword [0x10206138]
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.Cannot_report_event_in_NT_EventLog.
push str.log4cplus:ERROR
push 0x1001c950
push 0x10205d70
add ecx, 4
call fcn.1001cca0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10040f70
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1018ba18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x50]
push eax
mov edx, str.SYSTEMCurrentControlSetServicesEventLog_
lea ecx, [esp + 0x7c]
call fcn.1001c700
push 0x101e3fb8
mov edx, eax
lea ecx, [esp + 0x68]
mov dword [esp + 0xa0], 0
call fcn.10027740
lea ecx, [esi + 0x68]
push ecx
mov edx, eax
lea ecx, [esp + 0x54]
mov byte [esp + 0xa4], 1
call fcn.10027770
add esp, 0xc
lea ecx, [esp + 0x60]
call fcn.10007890
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], 4
call fcn.10007890
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 2
push 0
push 0
push 0
lea ecx, [esp + 0x64]
mov dword [esp + 0x2c], 0
call fcn.1000a250
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [esp + 0x14], 1
mov edi, dword [esp + 0x10]
jne 0x10041164
push str.NTEventLogAppender.dll
lea ecx, [esp + 0x34]
call fcn.10008180
push str.EventMessageFile
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 5
call fcn.10008180
mov eax, dword [esp + 0x40]
add eax, eax
push eax
lea ecx, [esp + 0x34]
call fcn.1000a250
push eax
push 1
push 0
lea ecx, [esp + 0x28]
call fcn.1000a250
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push edi
call esi
lea ecx, [esp + 0x18]
call fcn.10007890
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 4
call fcn.10007890
push str.NTEventLogAppender.dll
lea ecx, [esp + 0x34]
call fcn.10008180
push str.CategoryMessageFile
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 6
call fcn.10008180
mov eax, dword [esp + 0x40]
add eax, eax
push eax
lea ecx, [esp + 0x34]
call fcn.1000a250
push eax
push 1
push 0
lea ecx, [esp + 0x28]
call fcn.1000a250
push eax
push edi
call esi
lea ecx, [esp + 0x18]
call fcn.10007890
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 4
call fcn.10007890
push str.TypesSupported
lea ecx, [esp + 0x1c]
call fcn.10008180
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 7
call fcn.1000a250
push eax
push edi
call esi
lea ecx, [esp + 0x18]
call fcn.10007890
push str.CategoryCount
lea ecx, [esp + 0x1c]
call fcn.10008180
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 5
call fcn.1000a250
push eax
push edi
call esi
lea ecx, [esp + 0x18]
call fcn.10007890
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x48]
call fcn.10007890
mov ecx, dword [esp + 0x90]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x94
ret