joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10064975
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10070750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10056af8
mov dword [ebp - 0x14], eax
cmp dword [0x10613cfc], esi
jne 0x10064a68
push 0x800
push esi
push 0x1000750c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100649f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10064b48
push esi
push esi
push 0x1000750c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10064b48
push 0x10007524
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10064b48
push eax
call ebx
push 0x10007530
push edi
mov dword [0x10613cfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007540
push edi
mov dword [0x10613d00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007554
push edi
mov dword [0x10613d04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10613d0c], eax
test eax, eax
je 0x10064a65
push 0x10007570
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10613d08], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10064a8d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10064a80
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10064aa2
push 4
pop eax
jmp 0x10064b4a
cmp dword [ebp - 0x14], esi
je 0x10064aa2
push dword [0x10613cfc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10064a87
mov eax, dword [0x10613d08]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10064b00
cmp dword [0x10613d0c], edi
je 0x10064b00
push eax
call ebx
push dword [0x10613d0c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10064b00
test eax, eax
je 0x10064b00
call ecx
test eax, eax
je 0x10064af5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10064af5
test byte [ebp - 8], 1
jne 0x10064b00
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10064b30
mov eax, dword [0x10613d00]
cmp eax, edi
je 0x10064b2d
push eax
call ebx
test eax, eax
je 0x10064b2d
call eax
mov esi, eax
test esi, esi
je 0x10064b2d
mov eax, dword [0x10613d04]
cmp eax, edi
je 0x10064b2d
push eax
call ebx
test eax, eax
je 0x10064b2d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10613cfc]
call ebx
test eax, eax
je 0x10064b48
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10064b4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005400b
mov esp, ebp
pop ebp
ret
Function at 0x404f92
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0047ab40
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404fff
push 0x2a
push 0x407dd50
push 6
call fcn.004790bf
add esp, 0xc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40500f
push ebx
call fcn.004790b9
add esp, 4
cmp dword [ebp - 4], 0
jg 0x405020
mov dword [ebp - 4], 0x100
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.0047bd20
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405053
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40508c
push 0x125
push 0x407dd50
push 6
call fcn.004790bf
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40509f
mov eax, 0x48e230
push eax
push 1
mov ebx, 0x174
call fcn.0047be90
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4050c9
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x48e230
push dword [ebp - 8]
call fcn.004012b1
add esp, 8
cmp eax, 0
jne 0x405106
call fcn.0040513d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405102
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x405122
push eax
mov ebx, eax
call fcn.004011ea
inc eax
push eax
call fcn.004790b3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x405127
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405138
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x406447
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push VariantCopy
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.0047bdb0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406491
mov eax, 0
jmp 0x4064fa
mov dword [ebp - 0xc], esp
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4064d0
push 0x100
push 0x407dae8
push 6
call fcn.004790bf
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp + 0x18], 0
jne 0x4064ea
push dword [ebp - 8]
call fcn.00402ec6
jmp 0x4064f2
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
jmp 0x4064fa
mov esp, ebp
pop ebp
ret 0x24
Function at 0x40cb72
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x40cba2
mov edx, 0xffffffff
mov eax, 0xffffffff
jmp 0x40cbdd
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40cbd2
push 0xa0
push 0x407d780
push 6
call fcn.004790bf
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x40cbdd
mov esp, ebp
pop ebp
ret 4

Function at 0x40e949
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40e974
mov eax, 0x48e2f9
jmp 0x40ead6
cmp dword [ebp + 0xc], 0
jg 0x40e9cc
mov dword [ebp - 0xc], esp
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40e9b8
push 0xe2
push 0x407d77f
push 6
call fcn.004790bf
add esp, 0xc
cmp dword [ebp + 0xc], 0
jg 0x40e9cc
mov eax, 0x48e2f9
jmp 0x40ead6
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0040eaee
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ea03
mov eax, 0x48e2f9
jmp 0x40ead6
mov dword [ebp - 0xc], esp
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40ea3d
push 0x2a4
push 0x407d77f
push 6
call fcn.004790bf
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40ea54
mov eax, 0x48e2f9
jmp 0x40ead6
push 0x80000301
push 0
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.0047bc60
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ea93
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040eb7b
mov eax, dword [ebp - 8]
test eax, eax
je 0x40ead1
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004790b3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40ead6
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40eae7
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4136c5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x413714
cmp dword [ebp - 8], 0
je 0x413714
xor eax, eax
jmp 0x413719
mov eax, 1
test eax, eax
je 0x41372b
mov eax, 0
jmp 0x41396e
cmp dword [ebp - 8], 0
jne 0x413837
mov dword [ebp - 8], 0x530000
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x48eb69]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004016fe
push 0x80000301
push 0
push eax
push 1
mov ebx, 0xa5c
call fcn.0047d200
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x20], eax
jne 0x41378e
mov eax, 1
jmp 0x41396e
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x48eb71]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004016fe
push 0x80000301
push 0
push eax
push 1
mov ebx, 0xa5c
call fcn.0047d200
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x20], eax
jne 0x4137e0
mov eax, 2
jmp 0x41396e
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x48eb79]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004016fe
push 0x80000301
push 0
push eax
push 1
mov ebx, 0xa5c
call fcn.0047d200
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x20], eax
jne 0x413832
mov eax, 3
jmp 0x41396e
jmp 0x413964
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xa8]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xa4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jne 0x413865
mov eax, 4
jmp 0x41396e
cmp dword [ebp - 8], 5
jne 0x4138bf
cmp dword [ebp - 4], 0
jne 0x413888
mov eax, 5
jmp 0x41396e
cmp dword [ebp - 4], 1
jne 0x4138a1
mov eax, 6
jmp 0x41396e
cmp dword [ebp - 4], 2
jne 0x4138ba
mov eax, 7
jmp 0x41396e
jmp 0x413964
cmp dword [ebp - 8], 6
jne 0x41394b
cmp dword [ebp - 4], 0
jne 0x4138e2
mov eax, 8
jmp 0x41396e
cmp dword [ebp - 4], 1
jne 0x4138fb
mov eax, 9
jmp 0x41396e
cmp dword [ebp - 4], 2
jne 0x413914
mov eax, 0xa
jmp 0x41396e
cmp dword [ebp - 4], 3
jne 0x41392d
mov eax, 0xb
jmp 0x41396e
cmp dword [ebp - 4], 4
jne 0x413946
mov eax, 0xc
jmp 0x41396e
jmp 0x413964
cmp dword [ebp - 8], 0xa
jne 0x413964
mov eax, 0xc
jmp 0x41396e
mov eax, 0
jmp 0x41396e
mov esp, ebp
pop ebp
ret
Function at 0x41b17e
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x41b198
mov dword [ebp + 8], 1
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp + 8]
push 2
mov ebx, 0xc8
call fcn.0047b8e0
add esp, 0x1c
mov dword [ebp - 4], eax
push 0x80000301
push 0
push SysReAllocString
push 0x80000301
push 0
push 3
push 0x80000301
push 0
push 0x20000
push 3
mov ebx, 0xc8
call fcn.0047b8e0
add esp, 0x28
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41b22b
push 0xdd
push 0x407dd05
push 6
call fcn.004790bf
add esp, 0xc
jmp 0x41b230
mov esp, ebp
pop ebp
ret 8

Function at 0x41b4ed
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x41b50a
mov eax, 0
jmp 0x41b53e
mov dword [ebp - 4], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 4], esp
je 0x41b539
push 0xac
push 0x407dd37
push 6
call fcn.004790bf
add esp, 0xc
jmp 0x41b53e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c6de
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x41c6fb
mov eax, 0
jmp 0x41c746
mov dword [ebp - 4], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
cmp dword [ebp - 4], esp
je 0x41c72a
push 0xac
push 0x407dac2
push 6
call fcn.004790bf
add esp, 0xc
test eax, eax
je 0x41c73c
mov eax, 1
jmp 0x41c746
mov eax, 0
jmp 0x41c746
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41ce2a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x48e230
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004012b1
add esp, 8
cmp eax, 0
jne 0x41ce92
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0047ab40
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x41ce8c
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push 0x48e230
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.004012b1
add esp, 8
cmp eax, 0
jne 0x41ceea
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0047ab40
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x41cee4
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp dword [ebp + 0x1c], 0
jne 0x41cefb
mov dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x41cf19
push eax
mov ebx, eax
call fcn.004011ea
inc eax
push eax
call fcn.004790b3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41cf2a
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x48e230
push dword [ebp - 4]
call fcn.004012b1
add esp, 8
cmp eax, 0
jne 0x41cf61
mov eax, str.open
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41cf5d
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x48e230
mov ebx, dword [ebp + 0x30]
push dword [ebx]
call fcn.004012b1
add esp, 8
cmp eax, 0
jne 0x41cfb9
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0047ab40
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x41cfb3
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov ebx, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push dword [ebp + 0x18]
mov ebx, dword [ebp + 0x30]
push dword [ebx]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
push dword [ebp + 0x20]
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 8], esp
je 0x41cffa
push 0x35e
push 0x407dc77
push 6
call fcn.004790bf
add esp, 0xc
jmp 0x41cfff
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41d010
push ebx
call fcn.004790b9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4609fe
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 0x460a43
push 0x59
push 0x4076e4f
push 6
call fcn.004790bf
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.0047f2c0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x460aa6
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0047b8e0
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 0x460ad4
push 0xfb
push 0x4076e4f
push 6
call fcn.004790bf
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.0047f2c0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x460b37
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0047b8e0
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 0x460b65
push 0x19d
push 0x4076e4f
push 6
call fcn.004790bf
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.0047f2c0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x460bc8
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0047b8e0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x460bd0
mov esp, ebp
pop ebp
ret
Function at 0x47b610
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00480af0
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0x48b614
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 0x47b6d2
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0xc], eax
jle 0x47b6cb
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 0x47b6b6
lea edx, [esi + 1]
push edx
call fcn.0047a7a0
mov edi, eax
add esp, 4
test edi, edi
je 0x47b6a8
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.00480d80
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 0x47b662
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x47b6e5
push eax
call fcn.00480f20
add esp, 4
mov edi, dword [esp + 0x28]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.0047a7a0
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], 0x48b610
call fcn.00480cf0
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x47b7d0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00481893
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 0x47b83a
push esi
lea edi, [eax + 0x400]
call fcn.00481888
push edi
call fcn.00481893
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 0x47b80a
push esi
xor edi, edi
call dword [0x4930b8]
add esp, 4
test eax, eax
je 0x47b856
push eax
push esi
call fcn.00480f80
add esp, 8
mov edi, eax
push esi
call fcn.00481888
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x47b870
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x47b8d9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0047a7a0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x47c0f0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret
Function at 0x47cdd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x47cdee
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x47cde3
pop esi
ret