joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463d94
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x463f3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x463f20
mov dl, 1
mov eax, dword [0x416140]
call fcn.004038ec
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404748
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x463f0f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004567f4
test al, al
je 0x463f02
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x463f50
lea eax, [ebp - 0x254]
call fcn.00409d08
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x463f02
xor eax, eax
push ebp
push 0x463efb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x463f88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x463ee4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049b8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x463ee4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463f02
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x463e05
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00419e38
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463f46
lea eax, [ebp - 0x260]
call fcn.00404748
ret

Function at 0x4648b8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5ea580]
cmp byte [eax + 0xad], 0
jne 0x464929
cmp dword [0x5ea598], 0
jne 0x4648ea
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x464874
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5ea598], eax
cmp dword [0x5ea594], 0
jne 0x464905
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5ea594], eax
cmp dword [0x5ea59c], 0
jne 0x464929
push esp
push 0
push 0
push 0x464818
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x5ea59c], eax
pop edx
ret
Function at 0x464afc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x464b13
add esp, 0xfffffff0
call fcn.00403c40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041df38
mov eax, dword [0x5e6454]
cmp word [eax + 2], 0
jne 0x464b3b
mov eax, dword [0x5e6454]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466654
mov eax, dword [0x5e6514]
cmp word [eax + 2], 0
jne 0x464b55
mov eax, dword [0x5e6514]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466860
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415d1c]
call fcn.004038ec
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415d1c]
call fcn.004038ec
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415d1c]
call fcn.004038ec
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42265c]
call fcn.0042a298
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x464d0c
mov eax, dword [0x5e6350]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a66c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x466f20
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5e6350]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d700
test eax, eax
je 0x464c5c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004096ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d734
test eax, eax
je 0x464c70
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004049b8
mov byte [ebx + 0xd4], 0
push ebx
push 0x46619c
call fcn.0041f0b4
mov dword [ebx + 0xc8], eax
mov eax, dword [0x5e61f4]
cmp byte [eax], 0
jne 0x464cc1
mov eax, ebx
call fcn.00464e50
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004670fc
mov eax, ebx
call fcn.00467c5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x464d01
call fcn.00403c98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4650d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5ea580]
cmp dword [eax + 0x30], 0
je 0x46517a
cmp dword [ebx + 0x94], 0
jne 0x465174
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x465060
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x465174
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46513a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x465174
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004180c8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x465149
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465e94
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x465ec9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404838
jmp 0x465ed6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040479c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4672e0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46734e
mov eax, esi
call fcn.00451428
test al, al
je 0x46734e
mov eax, dword [ebx + 0x84]
call fcn.00451088
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46734e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x467342
push 0
mov eax, dword [ebx + 0x84]
call fcn.00451088
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004494a8
jmp 0x46734e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046711c
pop esi
pop ebx
ret

Function at 0x467d54
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404bfc
xor eax, eax
push ebp
push 0x467ddd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x2e
je 0x467d91
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x467df8
call fcn.00404a58
push 0x4410
push 0x160
lea eax, [ebp - 0x164]
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.00404c0c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x54]
mov ecx, 0x50
call fcn.004049b8
mov ebx, dword [ebp - 0x160]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467de4
lea eax, [ebp - 4]
call fcn.00404748
ret
Function at 0x47a298
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4078b8]
call fcn.00405278
xor eax, eax
push ebp
push 0x47a439
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x486958], 0
jne 0x47a2f3
mov ecx, dword [0x5e6208]
mov dl, 1
mov eax, dword [0x407c58]
call fcn.0040c8d8
call fcn.00404190
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403258
mov eax, ebx
call fcn.00405090
mov dword [ebp - 0x24], eax
mov esi, 0x47a448
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004063a0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004050a0
test eax, eax
jle 0x47a3dc
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47a3c8
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004049b8
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x47a36e
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004049d0
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x47a384
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x54]
call fcn.00404c0c
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004049b8
mov eax, dword [ebp - 0x58]
call fcn.00404c0c
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x47a3ca
xor eax, eax
test al, al
je 0x47a3d5
mov ebx, 0x15
jmp 0x47a3e1
mov ebx, 0x10
jmp 0x47a3e1
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x486958]
call fcn.0047a11c
mov eax, dword [ebp - 4]
call fcn.0047a11c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004063b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a440
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.0040476c
lea eax, [ebp - 0xc]
mov edx, dword [0x4078b8]
call fcn.00405348
ret
Function at 0x47ed48
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47edfc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x10d], 0
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x105
lea eax, [ebp - 0x10d]
push eax
lea eax, [ebp - 0x114]
mov edx, ebx
call fcn.00404930
lea eax, [ebp - 0x114]
mov edx, 0x47ee14
call fcn.00404a14
mov eax, dword [ebp - 0x114]
call fcn.00404c0c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x47eddc
lea eax, [ebp - 0x10d]
call fcn.00409670
mov ecx, eax
lea edx, [ebp - 0x10d]
mov eax, esi
call fcn.00404838
jmp 0x47ede3
mov eax, esi
call fcn.00404748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ee03
lea eax, [ebp - 0x114]
call fcn.00404748
ret
Function at 0x408925
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
call fcn.0040893b
dec ebx
add ecx, ecx
xor dword [edi], edx
inc edi
cmp edi, eax
jne fcn.00408925
inc ebx
ret

Function at 0x43b63d
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
mov eax, 0x34695f05
call fcn.0043b667
dec eax
or edi, eax
xor dword [ecx], ebx
add edi, eax
and edi, eax
dec edi
inc ecx
dec edi
dec eax
cmp ecx, esi
jne fcn.0043b63d
add edi, 0x3751533c
dec edi
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x7b5537ef
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x30c77a5d
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x404480
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
push esi
push 0x489434
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov eax, dword [esi]
test eax, eax
jne 0x40458b
push 0x47e044
push 0xfffe
call fcn.00455456
push 0xfffe
mov edi, eax
push 0
push edi
call fcn.004572c0
add esp, 0x14
push 0x7fff
push edi
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404578
push 0x5c
push edi
call fcn.00456c04
add esp, 8
test eax, eax
je 0x404578
mov edx, eax
mov ecx, 0x7fff
sub edx, edi
sar edx, 1
push str.log.dll
sub ecx, edx
push ecx
push eax
call fcn.0045d383
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
push edi
call fcn.0045545f
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x404676
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LogInit
push eax
call edi
test eax, eax
je 0x40459f
call eax
push str.LogApplySettings
push dword [esi]
call edi
push str.LogSetSettingsFile
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.LogEnable
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.LogSetLevel
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.LogSetPath
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.LogSetType
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.LogSetMode
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.LogSetMaxSize
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.LogSetDepth
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.LogWrite
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.LogIsEnabled
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.LogMonitorSettings
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.LogGetLevel
push dword [esi]
mov dword [esi + 0x30], eax
call edi
push str.LogUninitDeskMetrics
push dword [esi]
mov dword [esi + 0x44], eax
call edi
push str.LogTrackEvent
push dword [esi]
mov dword [esi + 0x34], eax
call edi
push str.LogTrackEventData
push dword [esi]
mov dword [esi + 0x38], eax
call edi
push str.LogRemoveModule
push dword [esi]
mov dword [esi + 0x3c], eax
call edi
cmp dword [esi + 0x28], 0
mov dword [esi + 0x40], eax
mov eax, esi
je 0x404678
pop edi
pop esi
ret
mov eax, esi
pop edi
mov dword [esi + 0x28], 0x4046c0
pop esi
ret
Function at 0x40a010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40a0f8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40a0e7
jg 0x40a050
test edx, edx
je 0x40a0e7
nop dword [eax]
call fcn.00408f60
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40a0a4
jg 0x40a067
test esi, esi
je 0x40a0a4
cmp ebx, eax
jg 0x40a077
jl 0x40a071
cmp edi, esi
jae 0x40a077
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00456d40
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40a0cb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x40a0e1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x40a050
jl 0x40a0e1
test edi, edi
jne 0x40a050
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40a11a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40a11c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40a19a
jg 0x40a12f
test esi, esi
je 0x40a19a
test eax, eax
jl 0x40a17e
jg 0x40a139
test ebx, ebx
je 0x40a17e
cmp edi, eax
jg 0x40a149
jl 0x40a143
cmp esi, ebx
jae 0x40a149
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00456d40
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x40a19a
jg 0x40a181
test esi, esi
je 0x40a19a
jmp 0x40a181
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40a19a
push eax
push esi
push 1
push edx
call fcn.0045df59
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a1b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40a1e2
jl 0x40a1d5
test ecx, ecx
jne 0x40a1e2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40a2a2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00408f80
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40a24e
jg 0x40a20d
test esi, esi
je 0x40a24e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40a225
mov eax, dword [esp + 0x10]
jl 0x40a21f
cmp eax, esi
jae 0x40a225
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00456d40
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40a26f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40a28b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x40a1f4
jl 0x40a28b
test ecx, ecx
jne 0x40a1f4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40a2e1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x40a2e1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00456d40
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x40a350
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x40a307
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x40a339
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0045e1a2
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x40a364
cmp edi, eax
ja 0x40a315
test ecx, ecx
je 0x40a350
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0045e1a2
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc