joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4fb128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.Logger1.0
mov dword [eax + 0x100a], 0x1000100
mov eax, dword [0x4fae9c]
mov ecx, 0x4fae9c
mov dword [ebp - 0x20], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x4fae9c]
mov ecx, 0x4fae9c
mov dword [ebp - 4], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push str.SoftwareSamsungPrintingAlert_
push eax
mov byte [ebp - 4], 1
call fcn.00401470
lea eax, [ebp - 0x1c]
push str.LiteSMDebugMode
push eax
call fcn.00401470
mov edi, dword [ebp - 0x18]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push edi
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x40815c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov ebx, dword [ebp - 0x10]
je 0x40814d
mov byte [ebx + 0x100d], 1
jmp 0x40815f
cmp dword [ebp - 0x20], 0
sete al
mov byte [ebx + 0x100d], al
jmp 0x40815f
mov ebx, dword [ebp - 0x10]
push 0x800
add ebx, 0xa
push 0
push ebx
call fcn.00472dd0
mov eax, dword [ebp - 0x10]
push 0x800
add eax, 0x80a
push 0
push eax
call fcn.00472dd0
push dword [ebp + 8]
push 0x400
push ebx
call fcn.00473a67
push ebx
mov ebx, dword [ebp - 0x10]
push str._s_____ENTER
push ebx
call fcn.004082c0
lea edx, [esi - 0x10]
or esi, 0xffffffff
add esp, 0x30
mov dword [ebx + 4], 0
mov byte [ebx + 8], 0
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4081cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4081ed
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4082c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x100d], 0
jne 0x40831d
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.00472dd0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push eax
call fcn.004721f0
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret
Function at 0x408390
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1204
call fcn.004739d0
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x100d], 0
mov edi, dword [ebp + 8]
jne 0x408593
xor eax, eax
mov word [ebp - 0xa04], ax
xor al, al
cmp byte [esi + 0x100a], al
je 0x408443
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push 8
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jne 0x4083fa
mov word [ebp - 0x204], ax
push 0x4c3440
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
push 0x4c3444
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
add esp, 0x24
mov al, 1
cmp byte [esi + 0x100b], 0
je 0x408483
test al, al
je 0x408469
push 0x4c2db4
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
add esp, 0xc
lea eax, [esi + 0xa]
push eax
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
add esp, 0xc
mov al, 1
cmp byte [esi + 0x100c], 0
je 0x40850a
test al, al
je 0x4084a9
push 0x4c2db4
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x104]
push 0x4c33a0
push eax
call fcn.00473ac3
push 0x4c3448
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
push 0x4c344c
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
add esp, 0x30
jmp 0x40850e
test al, al
je 0x408527
push 0x4c3450
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1204], ax
lea eax, [ebp - 0x1202]
push eax
call fcn.00472dd0
push ebx
push edi
lea eax, [ebp - 0x1204]
push 0x400
push eax
call fcn.00472161
lea eax, [ebp - 0x1204]
push eax
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
push 0x4c3458
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.004739fb
add esp, 0x34
lea eax, [ebp - 0xa04]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8
Function at 0x409d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab568
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4fb128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4fae9c]
mov ecx, 0x4fae9c
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x409de6
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004015f0
mov esi, dword [ebp - 0x10]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4c3634
push esi
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.00401470
mov esi, dword [ebp - 0x10]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x409e20
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004013f0
mov esi, dword [ebp - 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push str.DbgHelp.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test edi, edi
je 0x409e9e
cmp edi, 0xffffffff
je 0x409e9e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 8]
push 0
xor edx, edx
mov dword [ebp - 0x1c], eax
push 0
test ecx, ecx
lea eax, [ebp - 0x1c]
cmove eax, edx
push eax
push edx
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409ebf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c600
Capabilities:
Terminate process

Disassembly:
push 0x8f
push str.__d_OnCancel_____Start
call fcn.0040e8a0
push eax
call fcn.00408330
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40c630
Capabilities:
Terminate process

Disassembly:
push 0x87
push str.__d_OnDestroy_____Start
call fcn.0040e8a0
push eax
call fcn.00408330
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40cbc0
Capabilities:
Terminate process

Disassembly:
push 0x98
push str.__d_OnOK_____Start
call fcn.0040e8a0
push eax
call fcn.00408330
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d7d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab9e1
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x844], ecx
mov ebx, dword [ebp + 8]
push ebx
push 0x2b8
push str.__d_SetPortChangeResultToRegistry__bResult__d_
call fcn.0040e8a0
push eax
call fcn.00408330
mov ecx, dword [0x4fe848]
add esp, 0x10
call fcn.00415f60
test al, al
je 0x40d8f8
lea ecx, [ebp - 0x830]
call fcn.00411a00
lea eax, [ebp - 0x840]
push eax
mov dword [ebp - 4], 0
call fcn.0040ee50
add esp, 4
mov edi, eax
mov esi, dword [0x4fe848]
push 0x2b9
push str.int___thiscall_CMainDlg::SetPortChangeResultToRegistry_int_
push str.MainDlg.cpp
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 1
call fcn.0040ff10
push eax
push ebx
push 0x2b9
push str.__d_SetPortChangeResultToRegistry__bResult__d_
call fcn.004037d0
add esp, 0xc
lea ecx, [ebp - 0x830]
push eax
call fcn.00412110
push eax
lea ecx, [ebp - 0x830]
call fcn.00414400
push eax
push edi
mov ecx, esi
call fcn.004159a0
mov dword [ebp - method.log4cxx::helpers::ObjectPtrT_class_log4cxx::Level_.virtual_0], vtable.log4cxx::helpers::ObjectPtrT_class_log4cxx::Level_.0
mov ecx, dword [ebp - 0x83c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40d8d7
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 0
call fcn.0040e920
lea ecx, [ebp - 0x830]
mov dword [ebp - 4], 0xffffffff
call fcn.00411f20
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x848], 0
call fcn.00472dd0
xor eax, eax
mov esi, 1
test ebx, ebx
cmovne eax, esi
mov dword [ebp - 0x838], eax
mov eax, dword [ebp - 0x844]
push dword [eax + 0x11d8]
lea eax, [ebp - 0x810]
push str.SOFTWARE_sPrintingAlert
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x810]
push eax
push 0x2c5
push str.__d_szRegKeyPath__s_
call fcn.0040e8a0
push eax
call fcn.00408330
add esp, 0x10
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x834]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x810]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d9e6
push 0x2ca
push str.__d_RegOpenKeyEx_ERROR_SUCCESS
call fcn.0040e8a0
push eax
call fcn.00408330
add esp, 0xc
lea eax, [ebp - 0x838]
push 4
push eax
push 4
push 0
push str.PortChanged
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40d9e8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 4
Function at 0x40dbb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aba48
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fb128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0x478
jne 0x40dc88
cmp dword [esi + 0x2c], 0
push 0x4c3490
jne 0x40dc16
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp + 8]
push 0
push 0xf030
push 0x112
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esi + 0x2c], 1
jmp 0x40dc39
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp + 8]
push 0
push 0xf160
push 0x112
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esi + 0x2c], 0
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040a4d0
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40dc88
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x425370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae83e
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
push ebx
push 0x3c
lea eax, [ebp - 0x5c]
push eax
push 1
push str.java.util.Hashtable
mov dword [ebp - 0x5c], 0x6a130072
mov dword [ebp - 0x58], 0x2e617661
mov dword [ebp - 0x54], 0x6c697475
mov dword [ebp - 0x50], 0x7361482e
mov dword [ebp - 0x4c], 0x62617468
mov dword [ebp - 0x48], 0xbb13656c
mov dword [ebp - 0x44], 0x4a21250f
mov dword [ebp - 0x40], 0x3b8e4
mov dword [ebp - 0x3c], 0xa004602
mov dword [ebp - 0x38], 0x64616f6c
mov dword [ebp - 0x34], 0x74636146
mov dword [ebp - 0x30], 0x49726f
mov dword [ebp - 0x2c], 0x72687409
mov dword [ebp - 0x28], 0x6f687365
mov dword [ebp - 0x24], 0x7078646c
call fcn.00425580
push 0xe
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x20], 0x403f
mov dword [ebp - 0x1c], 0x5000000
mov dword [ebp - 0x18], 0x877
mov word [ebp - 0x14], 0x700
call fcn.00431210
mov ecx, dword [edi + 0xc]
push ebx
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
mov dword [ebp - 4], 0
call dword [eax + 8]
mov esi, dword [ebp + 8]
push 4
mov ecx, dword [esi + 4]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x62], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x61], cl
shr ecx, 0x18
mov byte [ebp - 0x63], al
lea eax, [ebp - 0x64]
mov byte [ebp - 0x64], cl
push eax
lea ecx, [ebp - 0x94]
call fcn.00431210
mov ecx, dword [edi + 0xc]
push ebx
mov eax, dword [ecx]
lea edx, [ebp - 0x94]
push edx
mov byte [ebp - 4], 1
call dword [eax + 8]
mov eax, dword [esi]
mov esi, dword [eax]
cmp esi, eax
je 0x42550f
mov edi, edi
push ebx
lea eax, [esi + 0x10]
push eax
mov ecx, edi
call fcn.00425250
push ebx
lea eax, [esi + 0x28]
push eax
mov ecx, edi
call fcn.00425250
cmp byte [esi + 0xd], 0
jne 0x425508
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4254ed
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x425508
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4254e1
jmp 0x425508
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x425506
cmp esi, dword [eax + 8]
jne 0x425506
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4254f6
mov esi, eax
mov eax, dword [ebp + 8]
cmp esi, dword [eax]
jne 0x4254b0
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 0x60], 0x78
call fcn.00431210
mov ecx, dword [edi + 0xc]
push ebx
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
mov byte [ebp - 4], 2
call dword [eax + 8]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.004125c0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.004125c0
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
call fcn.004125c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8
Function at 0x427140
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aed17
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fb128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x18], 0
je 0x4271b8
lea ecx, [edi + 0x88]
mov dword [edi], 0x4c6d44
mov dword [ecx], 0x4c6d50
mov dword [edi + 0x84], vtable.log4cxx::helpers::Object.0
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.004224c0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
mov eax, dword [edi]
push 0xffffffffffffffff
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.log4cxx::spi::LoggingEvent.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x84]
mov dword [ecx + edi - 4], eax
xor eax, eax
lea ecx, [edi + 8]
push eax
push dword [ebp + 8]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.00407730
lea esi, [edi + 0x20]
mov ecx, esi
mov dword [ebp - 4], 2
mov dword [ebp + 0x18], esi
call fcn.0040e910
mov eax, dword [ebp + 0xc]
mov dword [esi], vtable.log4cxx::helpers::ObjectPtrT_class_log4cxx::Level_.0
mov ecx, dword [eax + 4]
mov byte [ebp - 4], 3
mov dword [esi + 4], ecx
test ecx, ecx
je 0x42722f
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 8]
xor eax, eax
push 0xffffffffffffffff
lea ecx, [edi + 0x38]
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov word [edi + 0x34], 0x101
push eax
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov byte [ebp - 4], 4
mov word [ecx], ax
call fcn.00407730
mov byte [ebp - 4], 5
call fcn.0048b9d0
push dword [ebp + 0x14]
lea ecx, [edi + 0x58]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], edx
call fcn.0040fef0
lea eax, [edi + 0x64]
push eax
call fcn.00427e60
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x43a4d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1f7b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2b
xor eax, eax
push str.SYSTEMCurrentControlSetServicesEventLog_
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00407850
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x70]
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00407620
push 0x5c
push 1
lea ecx, [ebp - 0x230]
call fcn.00412a90
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x88]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407620
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x234]
push ecx
push 0
push 2
push 0
push 0
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43a6d3
cmp dword [ebp - 0x238], 1
jne 0x43a6d3
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.log4cxx
call esi
test eax, eax
jne 0x43a5e1
push eax
call esi
push 0x103
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x43a6d3
add eax, eax
cmp eax, 0x208
jae 0x43a710
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a620
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.EventMessageFile
push dword [ebp - 0x234]
call esi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a660
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.CategoryMessageFile
push dword [ebp - 0x234]
call esi
push 4
lea eax, [ebp - 0x23c]
push eax
push 4
push 0
push str.TypesSupported
push dword [ebp - 0x234]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 6
call esi
push 4
lea eax, [ebp - 0x240]
push eax
push 4
push 0
push str.CategoryCount
push dword [ebp - 0x234]
call esi
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x21c], 8
jb 0x43a6f6
push dword [ebp - 0x230]
call fcn.0047164a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret
call fcn.004731a3
int3
Function at 0x43a720
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xa0], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jne 0x43a78e
push str.NT_EventLog_not_opened.
lea ecx, [ebp - 0x28]
call fcn.00402420
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call fcn.0042c610
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x43a89b
push dword [ebp - 0x28]
jmp 0x43a893
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov ecx, dword [edi + 0xc]
push esi
mov eax, dword [ecx]
push ebx
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 4], 1
call dword [eax]
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00423cf0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 4]
add esp, 8
mov eax, dword [eax + 0x24]
xor esi, esi
mov eax, dword [eax + 0xc]
cmp eax, 0x4e20
jl 0x43a7f6
mov esi, 4
cmp eax, 0x7530
jl 0x43a7f6
mov esi, 2
mov ecx, 1
cmp eax, 0x9c40
cmovge esi, ecx
push 0
lea eax, [ebp - 0x5c]
push eax
push 0
push 1
push dword [edi + 0xa4]
push 0x1000
push ebx
call fcn.0043ac00
add esp, 4
movzx eax, ax
push eax
push esi
push dword [edi + 0xa0]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x43a88a
push str.ReportEvent
lea ecx, [ebp - 0x58]
call fcn.00402420
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.0043aaa0
push eax
mov byte [ebp - 4], 3
call fcn.0042c610
add esp, 0xc
cmp dword [ebp - 0x14], 8
jb 0x43a865
push dword [ebp - 0x28]
call fcn.0047164a
add esp, 4
xor eax, eax
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x43a88a
push dword [ebp - 0x58]
call fcn.0047164a
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x43a89b
push dword [ebp - 0x40]
call fcn.0047164a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8

Function at 0x43b110
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb528
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov ecx, dword [ecx + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push esi
lea edx, [ebp - 0x28]
push edx
call dword [eax]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], 8
jb 0x43b186
push dword [ebp - 0x28]
call fcn.0047164a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8