joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f78a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jle 0x40f7bf
push dword [ebp + 8]
call fcn.0040ab81
mov dword [ebp - 0x10], eax
cmp word [ebp - 0x10], 0x5a4d
jne 0x40f7bf
xor eax, eax
jmp 0x40f7c4
mov eax, 1
test eax, eax
je 0x40f7d6
mov eax, 0
jmp 0x40f99f
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x5bc44f]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00401945
push eax
call fcn.0040abe1
mov dword [ebp - 0x18], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00401945
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0040abe1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x4550
jne 0x40f88f
fild dword [ebp - 4]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x5d3b4e]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.00401945
push eax
call fcn.0040ab81
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push 0x2000
mov eax, dword [ebp - 0x24]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.0055f400
add esp, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40f88f
xor eax, eax
jmp 0x40f894
mov eax, 1
test eax, eax
je 0x40f8a6
mov eax, 0
jmp 0x40f99f
fild dword [ebp - 4]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x5d3b5e]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00401945
push eax
call fcn.0040abe1
mov dword [ebp - 0x18], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
push 1
push 0
push 1
push 0
push 1
push 0
fld qword [ebp - 0x30]
call fcn.00401945
push eax
call fcn.0040b630
lea eax, [ebp + 8]
push eax
call fcn.0040ae60
jmp 0x40f99f
mov esp, ebp
pop ebp
ret 4

Function at 0x41c1f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x5bc2a6
push 0x5bc2a6
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x1142bc3
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x41c247
push 0
push 0x4014cd8
push 6
call fcn.0055df5e
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x42533d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0055ed90
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x425382
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4253bf
push 0x36
push 0x4014cf1
push 6
call fcn.0055df5e
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x4253db
push eax
mov ebx, eax
call fcn.0040104d
inc eax
push eax
call fcn.0055df52
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4253e0
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4253f1
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x42f251
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x5bc406
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040ebf9
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x42f29f
push ebx
call fcn.0055df58
add esp, 4
mov dword [ebp - 0x1c], esp
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42f2ac
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x42f2d3
push 0x48
push 0x405e422
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x42f2e6
push ebx
call fcn.0055df58
add esp, 4
mov eax, 0x1143c5c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040b614
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x42f30a
push ebx
call fcn.0055df58
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x42f339
push 0x6e
push 0x405e422
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x42f350
mov eax, 0
jmp 0x42f3ee
push 0x80000301
push 0
push 0x2c
push 1
mov ebx, 0x1bc
call fcn.0055f610
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42f385
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040a135
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42f3c1
push 0x128
push 0x405e422
push 6
call fcn.0055df5e
add esp, 0xc
push dword [ebp - 8]
call fcn.0040abe1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 6
je 0x42f3e4
cmp dword [ebp - 0xc], 9
je 0x42f3e4
xor eax, eax
jmp 0x42f3e9
mov eax, 1
jmp 0x42f3ee
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42f3ff
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x4374a6
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
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4374eb
push 0x59
push 0x405e428
push 6
call fcn.0055df5e
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.0055f400
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43754e
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0055f420
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x43757c
push 0xfb
push 0x405e428
push 6
call fcn.0055df5e
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.0055f400
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4375df
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0055f420
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x43760d
push 0x19d
push 0x405e428
push 6
call fcn.0055df5e
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.0055f400
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x437670
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0055f420
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x437678
mov esp, ebp
pop ebp
ret

Function at 0x45fb93
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x20], 0
jne 0x45fbad
mov dword [ebp + 0x1c], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x1c]
push 0x5bc2a6
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x45fbf2
push 0x76
push 0x405e662
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
mov eax, 0
setg al
jmp 0x45fc06
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x483ac3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.0055f610
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x483b1d
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040a135
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esp
push 0x200
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x483b61
push 0x83
push 0x405e4d8
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x5bc45f]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.00401945
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x910
call fcn.0055f200
add esp, 0x1c
mov dword [ebp - 0x24], eax
push 0x5e45ec
push dword [ebp - 0x24]
mov ecx, 2
call fcn.00402de5
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x483bcd
push ebx
call fcn.0055df58
add esp, 4
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e8c3
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x483bf5
push ebx
call fcn.0055df58
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x483c09
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x483c29
push eax
mov ebx, eax
call fcn.0040104d
inc eax
push eax
call fcn.0055df52
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x483c2e
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x483c3f
push ebx
call fcn.0055df58
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x483c4f
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x48de12
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x48de56
push 0x12
push 0x405e9dc
push 6
call fcn.0055df5e
add esp, 0xc
jmp 0x48de5b
mov esp, ebp
pop ebp
ret 4
Function at 0x55f990
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x55fa22
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x55fa14
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x55fa0c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x55f9d5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x55fa30
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 accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x55fa99
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.0055e810
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 0x560a50
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x560acf
push edi
call fcn.00567bb0
add esp, 4
test eax, eax
jbe 0x560acf
test esi, esi
je 0x560a8d
cmp esi, 0xffffffff
je 0x560a8d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x560b11
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x560abb
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x560acf
jmp 0x560aca
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x560acf
mov ebp, 1
test esi, esi
je 0x560b11
cmp esi, 0xffffffff
je 0x560b11
test ebp, ebp
jne 0x560b48
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x560b1e
call edi
test eax, eax
je 0x560b11
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x560b48
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x560af9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x560b11
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x560b48
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x560b2b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call fcn.00567bb0
inc eax
push eax
call fcn.0055e810
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x560bb0
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 0x5626b0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.005a4ad8
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 0x56271a
push esi
lea edi, [eax + 0x400]
call fcn.005a4a90
push edi
call fcn.005a4ad8
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 0x5626ea
push esi
xor edi, edi
call fcn.00567bb0
add esp, 4
test eax, eax
je 0x562735
push eax
push esi
call fcn.005684b0
add esp, 8
mov edi, eax
push esi
call fcn.005a4a90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x562750
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x562791.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x562791.2
jmp dword [eax*4 + 0x56281c]
mov word [esp + 0x48], di
jmp 0x5627ca
mov word [esp + 0x48], 2
jmp 0x5627ca
mov word [esp + 0x48], 3
jmp 0x5627ca
mov word [esp + 0x48], 4
jmp 0x5627ca
mov word [esp + 0x48], 7
jmp 0x5627ca
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x562814
cmp dword [esp + 0x70], edi
je 0x562800
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x5629b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x5629c3
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.00568d50
add esp, 4
test eax, eax
jne 0x5629d5
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x562a4c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x562a7e
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x562a38
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x562a08
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x562a7e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x562a7e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x562a67
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x562bd0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x562be3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.00568d50
add esp, 4
test eax, eax
jne 0x562bf5
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x562c04
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x562c5b
mov ebx, dword [ebx + 4]
push edi
call fcn.005a4ad8
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x562c3e
push ebp
call fcn.005a4a90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.00568180
push ebp
mov esi, eax
call fcn.005a4a90
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x562c9d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.0055e810
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x562c9a
push esi
call fcn.0055e8d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x563440
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x563456
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.00568d50
add esp, 4
test eax, eax
jne 0x56346d
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x56351d
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x563585
cmp edi, ebx
jae 0x563585
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x563585
mov eax, dword [esp + 0x30]
test eax, eax
je 0x563585
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x563585
mov al, byte [esp + 0x24]
test al, al
je 0x56357d
cmp al, 0x1a
jne 0x563585
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x563585
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.005690d0
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x563585
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x563585
mov eax, dword [esp + 0x30]
test eax, eax
je 0x563585
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x563585
mov al, byte [esp + 0x24]
test al, al
je 0x56357d
cmp al, 0x1a
jne 0x563585
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret