joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013c94
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x101647c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x20a
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1013d7c
push ebx
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll__mbsrchr]
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
je 0x1013ce8
cmp byte [eax + 1], bl
jne 0x1013ce8
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.01013a71
test eax, eax
jne 0x1013d07
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.01013b49
cmp dword [ebp + 0xc], 0x104
jb 0x1013d28
push edi
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1013d78
xor eax, eax
jmp 0x1013d7b
lea eax, [ebp - 0x41c]
push eax
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1013d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1013d24
lea eax, [ebp - 0x41c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1013d53
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, dword [ebp + 0xc]
ja 0x1013d24
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x41c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01011c2a
leave
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4beb85
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4beb9e
or eax, 0xffffffff
jmp 0x4bebff
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4bebfb
push 0x3d
push esi
call fcn.004bed86
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4bebfb
cmp esi, eax
je 0x4bebfb
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4dcf80]
sete cl
cmp eax, dword [0x4dcf84]
mov dword [ebp - 4], ecx
jne 0x4bebe1
mov edi, eax
call fcn.004beb24
mov dword [0x4dcf80], eax
cmp eax, ebx
jne 0x4bec3a
cmp dword [ebp + 0xc], ebx
je 0x4bec03
cmp dword [0x4dcf88], ebx
je 0x4bec03
call fcn.004bdf9c
test eax, eax
je 0x4bec3a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4bec0c
xor eax, eax
jmp 0x4bebfe
push 4
call fcn.004aefd4
cmp eax, ebx
pop ecx
mov dword [0x4dcf80], eax
je 0x4bebfb
mov dword [eax], ebx
cmp dword [0x4dcf88], ebx
jne 0x4bec3a
push 4
call fcn.004aefd4
cmp eax, ebx
pop ecx
mov dword [0x4dcf88], eax
je 0x4bebfb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4dcf80]
sub edi, esi
push esi
call fcn.004bead7
mov edi, eax
test edi, edi
pop ecx
jl 0x4beca1
cmp dword [ebx], 0
je 0x4beca1
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004aeb6f
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4bec81
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4bece2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4bec78
mov eax, edi
shl eax, 2
push eax
push dword [0x4dcf80]
call fcn.004b0cca
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4bece2
jmp 0x4becdd
cmp dword [ebp - 4], 0
jne 0x4bed49
test edi, edi
jge 0x4becb1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4dcf80]
call fcn.004b0cca
test eax, eax
pop ecx
pop ecx
je 0x4bebfb
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4dcf80], eax
cmp dword [ebp + 0xc], 0
je 0x4bed34
push esi
call fcn.004b1ec0
inc eax
inc eax
push eax
call fcn.004aefd4
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4bed34
push esi
push edi
call fcn.004adbf0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4bed2d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.004aeb6f
pop ecx
cmp dword [ebp - 4], 0
je 0x4bed41
push esi
call fcn.004aeb6f
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4bebfe
push esi
call fcn.004aeb6f
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4bec08

Function at 0x13142a5c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x13153008], 0x8088405
inc edx
mov dword [ebx + 0x13153008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x40127c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020b0
push 0x401420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4031e8], 0xffffffff
or dword [0x4031ec], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4031e4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4031e0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4031f0], eax
call fcn.004013cb
cmp dword [0x4031c4], 0
jne 0x4012ff
push 0x4013c8
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004013b0
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4031dc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4031d8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401390
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 8
cmp byte [esp + 0x14], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebp
push esi
push edi
je 0x401448
lea eax, [esp + 0x24]
xor ebp, ebp
push eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x24], 3
mov esi, eax
jl 0x401428
mov ecx, dword [esi + 4]
push ecx
push str._stdio
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x401428
mov edx, dword [esi + 8]
push ebp
push ebp
push 4
push ebp
push ebp
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401400
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push esi
push 0xfffffffffffffff6
call edi
test eax, eax
jne 0x401417
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x40144a
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.AttachConsole
push str.kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x40144a
push 0xffffffffffffffff
call eax
add esp, 4
jmp 0x40144a
xor ebp, ebp
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], ebp
call fcn.004010a0
mov esi, eax
add esp, 0x10
cmp esi, ebp
mov dword [esp + 0x14], esi
je 0x4014fe
mov edi, dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov ebx, dword [section..data]
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebp
push str..air
push 2
push ebp
mov dword [esp + 0x3c], ebp
call edi
cmp eax, 1
jne 0x4014eb
mov edx, dword [esp + 0x24]
lea eax, [edx + edx]
push eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [esp + 0x24]
push ecx
mov esi, eax
push esi
push 0
push str..air
push 2
push 0
call edi
test eax, eax
jne 0x4014d9
mov ebx, dword [str.This_application_requires_a_version_of_nAdobe_AIR_which_is_no_longer_supported._nPlease_contact_the_application_nauthor_for_an_updated_version.]
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x14]
xor ebp, ebp
push 0x30
push str.Adobe_AIR
push ebx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, esi
jmp 0x40150b
mov edx, dword [esp + 0x24]
push edx
push ebp
call ebx
push eax
call dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4055e5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ebx, dword [0x46e35f]
add ebx, 0x14
mov dword [ebp - 4], ebx
push dword [ebp - 4]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x5c]
cmp dword [ebp + 8], eax
jne 0x405778
push 0x80000004
push 0
push 0x46934a
push 0x80000301
push 0
push 0x3c
push 2
mov ebx, 0x188
call fcn.00461110
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, 0x46922d
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004030f2
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405661
push ebx
call fcn.0046069e
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405674
mov eax, 0x469263
push eax
push 1
mov ebx, 0x168
call fcn.00460cd0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40569a
push ebx
call fcn.0046069e
add esp, 4
push 0x80000004
push 0
push 0x46934a
push 0x80000301
push 0
push 0x3c
push 2
mov ebx, 0x188
call fcn.00461110
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0x46934c
push dword [ebp - 0x14]
push 0x469767
push dword [ebp - 0x10]
push 0x469767
push dword [ebp - 4]
mov ecx, 6
call fcn.0040107b
add esp, 0x18
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4056ff
push ebx
call fcn.0046069e
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40570f
push ebx
call fcn.0046069e
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40571f
push ebx
call fcn.0046069e
add esp, 4
push 0
push 0
push 0
push 0x80000004
push 0
push 0x469a65
push 0x80000301
push 0
push 0
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x405750
mov eax, 0x469294
push eax
push 4
mov ebx, 0x300
call fcn.00461170
add esp, 0x34
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405773
push ebx
call fcn.0046069e
add esp, 4
jmp 0x40582a
mov eax, 0x469a6e
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004030f2
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40579c
push ebx
call fcn.0046069e
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4057af
mov eax, 0x469263
push eax
push 1
mov ebx, 0x168
call fcn.00460cd0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4057d5
push ebx
call fcn.0046069e
add esp, 4
mov dword [ebp - 0x10], esp
push 1
push 0x469294
push 0x469294
push dword [ebp - 0xc]
push str.open
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40581a
push 0x2e9
push 0x40181e4
push 6
call fcn.004606a4
add esp, 0xc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40582a
push ebx
call fcn.0046069e
add esp, 4
mov eax, 0
jmp 0x405834
mov esp, ebp
pop ebp
ret 8
Function at 0x40bf7e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x40bfc3
push 0x59
push 0x4025d09
push 6
call fcn.004606a4
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00461e00
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40c026
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00460bb0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x40c054
push 0xfb
push 0x4025d09
push 6
call fcn.004606a4
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00461e00
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40c0b7
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00460bb0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x40c0e5
push 0x19d
push 0x4025d09
push 6
call fcn.004606a4
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00461e00
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40c148
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00460bb0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40c150
mov esp, ebp
pop ebp
ret
Function at 0x41e483
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x5c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41e4dd
push 0x46
push 0x4025d50
push 6
call fcn.004606a4
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41e4f4
mov eax, 0x46b0cf
jmp 0x41e5d7
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0x469955]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x469955]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.004026ad
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.00461b30
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41e54b
push ebx
call fcn.0046069e
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x4697d5]
fstp qword [ebp - 0x1c]
mov dword [ebp - 0x20], esp
fld qword [ebp - 0x1c]
call fcn.004026ad
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41e577
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41e5a1
push 0x165
push 0x4025d50
push 6
call fcn.004606a4
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41e5b8
mov eax, 0x46b0cf
jmp 0x41e5d7
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41e5d2
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00460698
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41e5d7
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41e5e8
push ebx
call fcn.0046069e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x460f80
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x460fea
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x460fba
push esi
xor edi, edi
call dword [0x46e914]
add esp, 4
test eax, eax
je 0x461006
push eax
push esi
call fcn.00463770
add esp, 8
mov edi, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x461530
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x46153e
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00463990
add esp, 4
test eax, eax
jne 0x461550
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
je 0x46156e
cmp ecx, 3
je 0x46156e
cmp ecx, 2
jne 0x46157d
mov ecx, dword [esi + 4]
call fcn.00463980
pop esi
ret
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret

Function at 0x461580
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x461595
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
call fcn.00463990
add esp, 4
test eax, eax
jne 0x4615a8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
test esi, esi
jg 0x4615b8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 1
jne 0x461611
mov edi, dword [edi + 4]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
lea eax, [esp + 0x1c]
push ebx
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4615f3
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
call fcn.004639c0
push ebp
mov ebx, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 2
jne 0x46165c
mov edi, dword [edi + 4]
lea edx, [esi + 8]
push edx
call fcn.00460960
mov ebx, eax
add esp, 4
lea ecx, [ebx + 8]
mov dword [ebx], 1
mov dword [ebx + 4], esi
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
jne 0x461651
push ebx
call fcn.00460a20
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov dword [ebx + 4], eax
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
cmp eax, 3
jne 0x4616d8
mov ebx, dword [edi + 4]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x1c]
push 0
push edx
push esi
push ebp
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4616a5
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [edi + 0x130]
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0xc]
add edi, 0x2c
push ecx
push edx
push edi
mov esi, eax
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call fcn.004632f0
push esi
push ebp
call fcn.004639c0
push ebp
mov ebx, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x24
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x461980
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00463a00
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0x465834
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x461a42
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0xc], eax
jle 0x461a3b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ebx, [edi + 4]
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0x3a8
call ebp
mov esi, eax
test esi, esi
jle 0x461a26
lea edx, [esi + 1]
push edx
call fcn.00460960
mov edi, eax
add esp, 4
test edi, edi
je 0x461a18
mov eax, dword [ebx]
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0x3a8
call ebp
mov byte [eax + edi], 0
push edi
lea ecx, [esp + 0x20]
call fcn.00463c90
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4619d2
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x461a55
push eax
call fcn.00463ec0
add esp, 4
mov edi, dword [esp + 0x28]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.00460960
mov dword [eax], 1
mov edx, dword [esp + 0x2c]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov dword [ebx], eax
mov dword [esp + 0x18], 0x465830
call fcn.00463c00
pop edi
pop esi
pop ebx
add esp, 0x20
ret