joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436470
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 [0x495118], 2
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
je 0x436494
call fcn.00436360
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 0x43658d
mov edx, ebx
lea ecx, [esp + 0x28]
call fcn.00425c40
mov ecx, eax
call fcn.00403690
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.004033e0
mov eax, 2
test ebx, ebx
je 0x436502
cmp word [ebx + 8], ax
jne 0x436502
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
jmp 0x436539
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.00409cb0
push eax
call dword [sym.imp.WS2_32.dll_WSAStringToAddressW]
cmp eax, 0xffffffff
je 0x436584
cmp dword [esp + 0xc], 0x10
jne 0x436584
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 0x436572
call edi
cmp eax, 0x2714
je 0x436558
jmp 0x43658d
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 0x43659d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.00456953
mov dword [eax], edi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4365b0
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 0x4365e9
test eax, eax
je 0x4365e2
add esi, eax
cmp esi, dword [edi + 4]
jl 0x4365c0
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.00456953
pop edi
mov dword [eax], esi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x436600
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x475588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
cmp dword [0x495118], 2
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x16], dl
mov ebp, ecx
mov dword [esp + 0x28], 0
je 0x436638
call fcn.00436360
lea ecx, [esp + 0x19]
mov ebx, str.unknown
mov byte [esp + 0x14], 0
call fcn.00404470
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.00436810
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 0x436757
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x43675b
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 0x436704
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004011a0
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.004011a0
mov eax, dword [esp + 0x20]
add eax, edi
push esi
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
call fcn.004260b0
jmp 0x436738
jae 0x436740
lea eax, [esp + 0x34]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x28]
call fcn.004011a0
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.00436850
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 0x436697
mov ebx, dword [esp + 0x34]
test esi, esi
jne 0x4367af
cmp byte [esp + 0x16], 0
je 0x4367af
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x436773
mov ebx, dword [eax]
mov edx, ebx
mov ecx, ebp
call fcn.00425970
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x34], 0
je 0x4367ee
lea ecx, [esp + 0x1a]
call fcn.00404fc0
lea ecx, [esp + 0x17]
call fcn.00404fc0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x1f]
jmp 0x4367e9
mov edx, ebx
mov ecx, ebp
call fcn.00425970
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x34], 0
je 0x4367ee
lea ecx, [esp + 0x1b]
call fcn.00404fc0
lea ecx, [esp + 0x18]
call fcn.00404fc0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00405000
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 0x437100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x47409b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x495114]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x437174
push esi
push 0x418
call fcn.00452817
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x43714f
mov ecx, eax
call fcn.00411990
mov esi, eax
jmp 0x437151
xor esi, esi
push esi
push dword [0x495114]
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 0x437190
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x47409b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x495114]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x437204
push esi
push 0x418
call fcn.00452817
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x4371df
mov ecx, eax
call fcn.00411990
mov esi, eax
jmp 0x4371e1
xor esi, esi
push esi
push dword [0x495114]
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 0x4373b0
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475668
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.00411880
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x437409
push edi
lea ecx, [ebp - 0x18]
push ecx
push str.log4cplus:ERROR
push 0x410560
push 0x494fe8
mov ecx, eax
mov dword [ebp - 0x18], str.threadStartFunc____arg_is_NULL
call fcn.004108b0
jmp 0x43750b
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 0x437454
test edx, edx
je 0x437454
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 0x4374c0
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 0x43750b
test ecx, ecx
je 0x43750b
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.0045a48a
test eax, eax
je 0x43754b
push dword [0x495114]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x437556
mov ecx, esi
call fcn.00411bd0
push esi
call fcn.00451fcd
add esp, 4
jmp 0x437556
push str.log4cplus:_CRT_heap_is_already_gone_in_threadCleanup___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push dword [0x495114]
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 0x437950
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 0x437676
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x4373a0
push 0
push 0
call fcn.0045d6c2
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4376ef
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 0x4376c0
test edi, edi
je 0x4376c0
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.00411880
push 1
lea ecx, [esp + 0x14]
push ecx
push str.log4cplus:ERROR
push 0x410560
push 0x494fe8
mov ecx, eax
call fcn.004108b0
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 0x43795f
add ecx, 0xfffffffc
jmp 0x437640
xor ecx, ecx
jmp 0x437640

Function at 0x437c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4756af
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], 0x4827bc
call fcn.004140a0
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 0x48270c
lea ecx, [esp + 0x14]
mov byte [esi], 1
mov dword [edi + 0x10], 0xffffffff
call fcn.00403790
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x34], 2
push esi
mov esi, dword [esp + 0x40]
mov ecx, esi
call fcn.00435690
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.00403900
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x3c], str.LogLevelToMatch
call fcn.004357f0
mov esi, eax
call fcn.00411860
lea ecx, [eax + 0x14]
push esi
call fcn.0042dbb0
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 0x4381c0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4757a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
lea ecx, [edi + 0x40]
mov dword [esp + 0x14], edi
mov dword [edi + 0x14], 0x482808
call fcn.004140a0
mov dword [esp + 0x3c], 0
push 0x4827fc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 1
call fcn.00403790
mov ecx, edi
mov dword [esp + 0x3c], 1
call fcn.004243e0
mov dword [esp + 0x3c], 3
mov eax, dword [edi + 0x14]
mov dword [edi], vtable.log4cplus::spi::LoggerImpl.1.0
mov eax, dword [eax + 4]
lea ecx, [esp + 0x18]
mov dword [eax + edi + 0x14], vtable.log4cplus::spi::LoggerImpl.0
lea eax, [esp + 0xf]
push eax
call fcn.004044a0
push eax
lea ecx, [esp + 0x11]
call fcn.00404fb0
lea eax, [esp + 0xd]
push eax
lea ecx, [esp + 0x12]
call fcn.00404fb0
lea eax, [esp + 0xe]
push eax
lea ecx, [edi + 0x18]
call fcn.00404480
push 0
push 0
lea ecx, [edi + 0x18]
call fcn.004047e0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 0x18]
call fcn.004046a0
mov eax, dword [esp + 0x44]
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0
mov byte [edi + 0x38], 1
mov dword [edi + 0x3c], eax
lea ecx, [esp + 0x18]
call fcn.00403900
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x34]
mov dword [edi], vtable.log4cplus::spi::RootLogger.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x14], vtable.log4cplus::spi::RootLogger.1.0
mov dword [edi + 0x30], 0x2710
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x38
ret 0xc

Function at 0x4383d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4754a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0041f900
mov edi, eax
mov ecx, edi
call fcn.00420f70
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.00409cd0
lea esi, [edi + 0x98]
push esi
mov ecx, eax
mov dword [esp + 0x30], 0
call fcn.0041ee10
lea ecx, [esp + 8]
call fcn.00403900
mov ecx, esi
call fcn.00409cb0
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 0x4389a0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4754a8
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 0x4389fa
mov ecx, dword [0x495434]
test ecx, ecx
jne 0x4389e1
call fcn.00411490
mov ecx, dword [0x495434]
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.NT_EventLog_not_opened.
push str.log4cplus:WARN
jmp 0x438ad4
call fcn.0041f900
mov esi, eax
mov ecx, esi
call fcn.00420f70
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.00409cd0
add esi, 0x98
push esi
mov ecx, eax
mov dword [esp + 0x40], 0
call fcn.0041ee10
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00403900
mov ecx, esi
call fcn.004036b0
cmp eax, 0x7c5f
jbe 0x438a62
push 0x7c5f
mov ecx, esi
call fcn.0041edb0
mov ecx, esi
call fcn.00409cb0
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 0x438ae6
mov ecx, dword [0x495434]
test ecx, ecx
jne 0x438ac0
call fcn.00411490
mov ecx, dword [0x495434]
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.Cannot_report_event_in_NT_EventLog.
push str.log4cplus:ERROR
push 0x410560
push 0x494fe8
add ecx, 4
call fcn.004108b0
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 0x438b90
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x475898
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.00410310
push 0x4818c4
push eax
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0xa8], 0
call fcn.0040f770
lea ecx, [esi + 0x68]
push ecx
mov edx, eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xac], 1
call fcn.0041b910
add esp, 0x14
lea ecx, [esp + 0x60]
call fcn.00403900
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], 4
call fcn.00403900
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.00409cb0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [esp + 0x14], 1
mov edi, dword [esp + 0x10]
jne 0x438d8e
push str.NTEventLogAppender.dll
lea ecx, [esp + 0x34]
call fcn.00403790
push str.EventMessageFile
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 5
call fcn.00403790
lea ecx, [esp + 0x30]
call fcn.004036b0
add eax, eax
push eax
lea ecx, [esp + 0x34]
call fcn.00409cb0
push eax
push 1
push 0
lea ecx, [esp + 0x28]
call fcn.00409cb0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push edi
call esi
lea ecx, [esp + 0x18]
call fcn.00403900
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 4
call fcn.00403900
push str.NTEventLogAppender.dll
lea ecx, [esp + 0x34]
call fcn.00403790
push str.CategoryMessageFile
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 6
call fcn.00403790
lea ecx, [esp + 0x30]
call fcn.004036b0
add eax, eax
push eax
lea ecx, [esp + 0x34]
call fcn.00409cb0
push eax
push 1
push 0
lea ecx, [esp + 0x28]
call fcn.00409cb0
push eax
push edi
call esi
lea ecx, [esp + 0x18]
call fcn.00403900
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 4
call fcn.00403900
push str.TypesSupported
lea ecx, [esp + 0x1c]
call fcn.00403790
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 7
call fcn.00409cb0
push eax
push edi
call esi
lea ecx, [esp + 0x18]
call fcn.00403900
push str.CategoryCount
lea ecx, [esp + 0x1c]
call fcn.00403790
push 4
lea eax, [esp + 0x10]
push eax
push 4
mov dword [esp + 0x18], 5
push 0
lea ecx, [esp + 0x28]
call fcn.00409cb0
push eax
push edi
call esi
lea ecx, [esp + 0x18]
call fcn.00403900
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x48]
call fcn.00403900
mov ecx, dword [esp + 0x90]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x94
ret
Function at 0x43b060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475c7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebx, ecx
push esi
mov dword [esp + 0xc], 0
push edi
lea ecx, [ebx + 0x40]
mov dword [esp + 0x14], ebx
mov dword [ebx + 4], 0x4834e0
call fcn.004140a0
mov ebp, dword [esp + 0x40]
push ecx
mov dword [esp + 0x3c], 0
push ebp
mov ecx, ebx
mov dword [esp + 0x18], 1
call fcn.0041fb60
mov dword [esp + 0x38], 1
mov eax, dword [ebx + 4]
mov dword [ebx], vtable.log4cplus::Win32ConsoleAppender.0
mov eax, dword [eax + 4]
lea esi, [ebx + 0x38]
mov dword [eax + ebx + 4], vtable.log4cplus::Win32ConsoleAppender.1.0
lea edi, [ebx + 0x39]
add ebx, 0x3c
push 0x483178
lea ecx, [esp + 0x1c]
mov byte [esi], 1
mov byte [edi], 0
mov dword [ebx], 0
call fcn.00403790
lea eax, [esp + 0x18]
push eax
push esi
mov ecx, ebp
mov byte [esp + 0x40], 2
call fcn.00435690
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00403900
push str.logToStdErr
lea ecx, [esp + 0x1c]
call fcn.00403790
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x40], 3
call fcn.00435690
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00403900
push str.TextColor
lea ecx, [esp + 0x1c]
call fcn.00403790
lea eax, [esp + 0x18]
push eax
push ebx
mov ecx, ebp
mov byte [esp + 0x40], 4
call fcn.00435a00
lea ecx, [esp + 0x18]
call fcn.00403900
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x43b320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea ecx, [esp + 0x34]
push dword [ebp + 0xc]
call fcn.0040a260
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0
call fcn.00425c40
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.004036b0
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00403690
mov ebx, eax
xor esi, esi
push 0
lea eax, [esp + 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43b3b1
add esi, dword [esp + 0x10]
cmp esi, edi
jne 0x43b382
jmp 0x43b3ec
mov ecx, dword [0x495434]
test ecx, ecx
jne 0x43b3c6
call fcn.00411490
mov ecx, dword [0x495434]
push 0
lea eax, [esp + 0x18]
push eax
push str.log4cplus:ERROR
push 0x410560
push 0x494fe8
add ecx, 4
mov dword [esp + 0x28], str.Win32ConsoleAppender::write_handle__WriteFile_has_failed.
call fcn.004108b0
lea ecx, [esp + 0x18]
call fcn.004033e0
lea ecx, [esp + 0x30]
call fcn.00403900
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43b960
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x475d25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], 0
push edi
lea ecx, [ebp + 0x64]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], 0x483810
call fcn.004140a0
mov ebx, dword [esp + 0x70]
push ecx
mov dword [esp + 0x6c], 0
push ebx
mov ecx, ebp
mov dword [esp + 0x18], 1
call fcn.0041fb60
mov dword [esp + 0x68], 1
mov eax, dword [ebp + 4]
mov dword [ebp], vtable.log4cplus::Log4jUdpAppender.1.0
mov eax, dword [eax + 4]
mov dword [eax + ebp + 4], vtable.log4cplus::Log4jUdpAppender.0
mov dword [ebp + 0x3c], 0xffffffff
mov dword [ebp + 0x40], 1
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x38], vtable.log4cplus::helpers::Socket.0
lea ecx, [ebp + 0x48]
mov byte [esp + 0x68], 2
call fcn.00403760
lea edi, [ebp + 0x60]
mov byte [esp + 0x68], 3
push str.localhost
lea ecx, [esp + 0x34]
mov dword [edi], 0x1388
call fcn.00403790
push str.host
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
call fcn.00403790
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
mov byte [esp + 0x74], 5
call fcn.004351a0
push eax
lea ecx, [ebp + 0x48]
call fcn.00403820
lea ecx, [esp + 0x48]
call fcn.00403900
lea ecx, [esp + 0x18]
call fcn.00403900
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 3
call fcn.00403900
push str.port
lea ecx, [esp + 0x34]
call fcn.00403790
lea eax, [esp + 0x30]
push eax
push edi
mov ecx, ebx
mov byte [esp + 0x70], 6
call fcn.004358a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 3
call fcn.00403900
mov ecx, ebp
call fcn.0043bb20
mov eax, ebp
pop edi
mov ecx, dword [esp + 0x5c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 8