joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a2a5a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebp
mov ebp, dword [esp + 0x68]
test ebp, ebp
push esi
mov esi, ecx
jg 0x5a2a69
pop esi
xor eax, eax
pop ebp
add esp, 0x5c
ret 0xc
mov ecx, dword [esi + 0x30]
test ecx, ecx
push ebx
push edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x74], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
je 0x5a2aa4
mov eax, dword [ecx]
lea edx, [esp + 0x74]
push edx
push edi
call dword [eax + 8]
fld dword [esp + 0x74]
fmul dword [esi + 0x24]
fstp dword [esp + 0x74]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x5a2ac1
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push edi
call dword [eax + 8]
fld dword [esp + 0x10]
fmul dword [esi + 0x28]
fstp dword [esp + 0x10]
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x5a2ade
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push edi
call dword [eax + 8]
fld dword [esp + 0x14]
fmul dword [esi + 0x2c]
fstp dword [esp + 0x14]
mov ebx, dword [esp + 0x78]
lea esi, [ebx + 0x24]
mov ecx, 0x10
lea edi, [esp + 0x2c]
xor eax, eax
test ebp, ebp
rep movsd dword es:[edi], dword [esi]
jle 0x5a2c0f
mov dword [esp + 0x28], ebp
mov edi, edi
mov eax, dword [0x6655ac]
fld dword [eax*4 + 0x663668]
inc eax
cdq
fmul dword [esp + 0x74]
mov ecx, 0x3e8
idiv ecx
fadd dword [0x5fb674]
fstp dword [esp + 0x18]
fld dword [edx*4 + 0x663668]
lea eax, [edx + 1]
cdq
fmul dword [esp + 0x10]
idiv ecx
fadd dword [0x5fb678]
fstp dword [esp + 0x78]
fld dword [edx*4 + 0x663668]
lea eax, [edx + 1]
cdq
fmul dword [esp + 0x14]
idiv ecx
fcom dword [0x617db0]
fnstsw ax
test ah, 5
mov dword [0x6655ac], edx
jp 0x5a2b6e
fstp st(0)
mov dword [esp + 0x70], 0
jmp 0x5a2b72
fstp dword [esp + 0x70]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [0x5fb670]
push edx
push eax
push ecx
call fcn.00560fb0
mov ecx, dword [ebx + 0x18]
add esp, 0x18
call fcn.005aa410
mov esi, eax
test esi, esi
je 0x5a2c04
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
fld dword [esp + 0x20]
lea edi, [esi + 0x24]
fstp dword [edi + 4]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
fstp dword [edi + 8]
mov dword [edi], edx
call fcn.00560c90
mov ecx, edi
call fcn.00560bd0
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 4]
fld dword [esp + 0x70]
fmul dword [esi + 0x18]
fadd dword [esp + 0x5c]
fstp dword [esi + 0x34]
fld dword [esp + 0x70]
fmul dword [esi + 0x1c]
fadd dword [esp + 0x60]
fstp dword [esi + 0x38]
fld dword [esp + 0x70]
fmul dword [esi + 0x20]
fadd dword [esp + 0x64]
fstp dword [esi + 0x3c]
dec ebp
jne 0x5a2b00
mov eax, dword [esp + 0x28]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x5c
ret 0xc
Function at 0x5aa6c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e0b78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.tVertexList.0
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x1c], 0
call fcn.004452b0
mov eax, dword [esi + 0x14]
push eax
call fcn.004452b0
mov eax, dword [esi + 0x18]
push eax
call fcn.004452b0
mov eax, dword [esi + 0x1c]
push eax
call fcn.004452b0
add esp, 0x10
lea edi, [esi + 0x30]
mov ebx, 7
lea esp, [esp]
mov eax, dword [edi]
push eax
call fcn.004452b0
add esp, 4
add edi, 4
dec ebx
jne 0x5aa720
lea edi, [esi + 0x20]
mov ebx, 4
lea esp, [esp]
mov eax, dword [edi]
push eax
call fcn.004452b0
add esp, 4
add edi, 4
dec ebx
jne 0x5aa740
mov eax, dword [esi + 0x4c]
push eax
call fcn.004452b0
mov eax, dword [esi + 0x50]
push eax
call fcn.004452b0
mov ecx, dword [esi + 0x54]
add esp, 8
test ecx, ecx
je 0x5aa772
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0056d2b0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5ad1e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5ad1eb
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
cmp esi, 8
not eax
jb 0x5ad2e0
push ebx
push edi
mov edi, esi
shr edi, 3
xor edx, edx
mov dl, byte [ecx]
mov ebx, eax
shr ebx, 8
sub esi, 8
xor edx, eax
and edx, 0xff
mov eax, dword [edx*4 + 0x5fbbb8]
xor eax, ebx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5fbbb8]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x5fbbb8]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5fbbb8]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x5fbbb8]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5fbbb8]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x5fbbb8]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5fbbb8]
shr eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x5ad206
pop edi
pop ebx
test esi, esi
je 0x5ad300
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5fbbb8]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x5ad2e4
not eax
pop esi
ret
Function at 0x5b7020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e0d3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0056d300
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esi], vtable.choreo::LocomotionSlot.0
mov eax, dword [edi + 0x10]
push ecx
lea ebp, [esi + 8]
push eax
mov ecx, ebp
mov dword [esp + 0x38], 0
call fcn.005c0d30
push 0x14
mov byte [esp + 0x34], 1
call fcn.0056d2e0
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x30], 2
je 0x5b7092
push esi
push edi
mov ecx, eax
call fcn.005bf820
jmp 0x5b7094
xor eax, eax
mov dword [esi + 0x18], eax
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x30], 1
call dword [edx]
push 1
mov ecx, edi
call fcn.005c1090
mov edi, eax
test edi, edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jl 0x5b7125
push edi
mov ecx, ebp
call fcn.005c0b70
test al, al
je 0x5b7125
lea eax, [esp + 0x1c]
push eax
push 0
push edi
mov ecx, ebp
call fcn.005c0ba0
mov edx, dword [ebp]
fld dword [edx + 0x10]
lea ecx, [esp + 0x10]
push ecx
fsub dword [0x617dbc]
push ecx
mov ecx, ebp
fstp dword [esp]
push edi
call fcn.005c0ba0
fld dword [esp + 0x10]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fsub dword [esp + 0x20]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
fstp dword [esp + 0x18]
mov ecx, esi
call fcn.005bdd90
fcom dword [0x617db0]
fnstsw ax
test ah, 0x41
mov eax, esi
jne 0x5b7160
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fsqrt
fdiv st(1)
fstp dword [esi + 0x1c]
jmp 0x5b7167
mov dword [esi + 0x1c], 0
mov ecx, dword [esp + 0x28]
fstp st(0)
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x5b7350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e0d83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0056f760
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov eax, 0x3f800000
push edi
mov ecx, esi
mov dword [esp + 0x1c], ebx
mov dword [esi], vtable.choreo::LocomotionDriver.0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x44], 1
call fcn.0056f6a0
mov dword [esi + 0x10], edi
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov ecx, dword [edi + 0x18]
call fcn.005c0ae0
mov dword [esi + 0x18], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
mov ecx, dword [esi + 0x18]
push 1
call fcn.005bf780
push 0x1c
call fcn.0056d2e0
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x18], 1
je 0x5b73f2
mov ecx, dword [esi + 0x18]
push ecx
mov ecx, eax
call fcn.005b6ed0
jmp 0x5b73f4
xor eax, eax
mov dword [esi + 0x14], eax
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x18], bl
call dword [edx]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x2c]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.00445250
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x10]
fld dword [eax + 0x24]
add esp, 4
fstp dword [esi + 0x28]
fld dword [eax + 0x28]
pop edi
fstp dword [esi + 0x2c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x5bc540
Capabilities:
Terminate process

Disassembly:
int3
push eax
push str._s_nClick_RETRY_to_debug
push 0x400
push 0x6c6f58
call fcn.005b57d0
add esp, 0x10
push 0x32
push str.Script_Error
push 0x6c6f58
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
cmp eax, 3
jne 0x5bc578
push 0xffffffffffffffff
call fcn.005c892e
cmp eax, 4
jne 0x5bc582
jmp 0x5bc530
ret
Function at 0x5bfc30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e1078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0056f760
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi], vtable.choreo::Blend.0
mov dword [esi + 0x14], eax
mov dword [esi + 0x30], 0x3f800000
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x10], ecx
mov edx, dword [ecx]
mov dword [esp + 0x18], ebx
call dword [edx]
mov eax, dword [esi + 0x14]
shl eax, 2
push eax
call fcn.00445250
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
add esp, 4
xor eax, eax
cmp ecx, ebx
mov dword [esi + 0x1c], 1
jle 0x5bfccb
mov ecx, dword [esp + 0x28]
mov edi, edi
mov edi, dword [ecx + eax*4]
mov edx, dword [esi + 0x18]
mov dword [edx + eax*4], edi
mov edx, dword [ecx + eax*4]
imul edx, dword [esi + 0x1c]
mov dword [esi + 0x1c], edx
mov edx, dword [esi + 0x14]
inc eax
cmp eax, edx
jl 0x5bfcb0
mov eax, dword [esi + 0x1c]
shl eax, 2
push eax
call fcn.00445250
mov ecx, dword [esi + 0x1c]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [esi + 0x20], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x1c]
shl eax, 2
push eax
mov dword [esi + 0x24], ebx
call fcn.00445250
mov ecx, dword [esp + 0x34]
add esp, 8
cmp ecx, ebx
mov dword [esi + 0x28], eax
je 0x5bfd18
mov dword [esi + 0x2c], ecx
mov edx, dword [ecx]
call dword [edx]
jmp 0x5bfd1b
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x5c0f86
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e1118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.0056f760
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x5fdf04]
mov dword [esi + 0x28], ecx
mov ecx, dword [0x5fdf0c]
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [0x5fdf08]
mov dword [esi], vtable.choreo::Rig.0
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x10], ecx
mov edx, dword [ecx]
call dword [edx]
or eax, 0xffffffff
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 0x28]
shl ecx, 2
push ecx
call fcn.00445250
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x30], eax
add esp, 4
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x5c1026
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e1118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], vtable.choreo::Rig.0
mov edi, dword [esi + 0x2c]
dec edi
mov dword [esp + 0x14], 0
js 0x5c1050
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
call dword [edx + 4]
dec edi
jns 0x5c1042
mov eax, dword [esi + 0x30]
push eax
call fcn.004452b0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
add esp, 4
call dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0056f690
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x5c885b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.005cb6af
xor esi, esi
inc esi
cmp dword [0x6c7500], esi
pop ecx
jne 0x5c8883
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x6c74fc], esi
mov byte [0x6c74f8], al
jne 0x5c88e9
mov ecx, dword [0x6d1170]
test ecx, ecx
je 0x5c88ca
mov eax, dword [0x6d116c]
sub eax, 4
cmp eax, ecx
jmp 0x5c88c3
mov eax, dword [eax]
test eax, eax
je 0x5c88b5
call eax
mov eax, dword [0x6d116c]
sub eax, 4
cmp eax, dword [0x6d1170]
mov dword [0x6d116c], eax
jae 0x5c88ad
mov eax, 0x642334
mov esi, 0x64233c
cmp eax, esi
mov edi, eax
jae 0x5c88e9
mov eax, dword [edi]
test eax, eax
je 0x5c88e2
call eax
add edi, 4
cmp edi, esi
jb 0x5c88da
mov eax, 0x642340
mov esi, 0x642348
cmp eax, esi
mov edi, eax
jae 0x5c8908
mov eax, dword [edi]
test eax, eax
je 0x5c8901
call eax
add edi, 4
cmp edi, esi
jb 0x5c88f9
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x5c8919
push 8
call fcn.005cb61b
jmp 0x5c892b
push dword [ebp + 8]
mov dword [0x6c7500], 1
call fcn.005c87b4
pop ecx
pop ebp
ret
Function at 0x5c8d17
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x5fed60
nop
nop
nop
nop
nop
mov edi, 0x94
mov eax, edi
push 0x441e24
pop eax
add eax, 1
call eax
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x6c74c0], ecx
mov eax, dword [esi + 4]
mov dword [0x6c74cc], eax
mov edx, dword [esi + 8]
mov dword [0x6c74d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x6c74c4], esi
cmp ecx, 2
je 0x5c8d77
or esi, 0x8000
mov dword [0x6c74c4], esi
shl eax, 8
add eax, edx
mov dword [0x6c74c8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x5c8db2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5c8db2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x5c8dca
cmp eax, 0x20b
je 0x5c8db7
mov dword [ebp - 0x1c], esi
jmp 0x5c8dde
cmp dword [ecx + 0x84], 0xe
jbe 0x5c8db2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x5c8dd8
cmp dword [ecx + 0x74], 0xe
jbe 0x5c8db2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.005cda2e
pop ecx
test eax, eax
jne 0x5c8df2
push 0x1c
call fcn.005c8cf3
pop ecx
call fcn.005cc37e
test eax, eax
jne 0x5c8e03
push 0x10
call fcn.005c8cf3
pop ecx
call fcn.005cd98c
mov dword [ebp - 4], esi
call fcn.005d40bd
test eax, eax
jge 0x5c8e1c
push 0x1b
call fcn.005c8cce
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x6d1164], eax
call fcn.005d3f9b
mov dword [0x6c7504], eax
call fcn.005d3ef9
test eax, eax
jge 0x5c8e42
push 8
call fcn.005c8cce
pop ecx
call fcn.005d3cc6
test eax, eax
jge 0x5c8e53
push 9
call fcn.005c8cce
pop ecx
call fcn.005c87f6
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x5c8e66
push eax
call fcn.005c8cce
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.005d3c5d
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x5c8e87
movzx eax, word [ebp - 0x34]
jmp 0x5c8e8a
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00442410
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x5c8ea8
push edi
call fcn.005c892e
call fcn.005c8950
jmp 0x5c8eda
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.005cb77f
ret
Function at 0x5d3949
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x649428]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x649830]
je 0x5d3976
inc eax
cmp eax, 0x12
jb 0x5d3967
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x649830]
jne 0x5d3aaa
mov eax, dword [0x6c750c]
cmp eax, 1
je 0x5d3a85
cmp eax, edx
jne 0x5d39a6
cmp dword [0x6490f4], 1
je 0x5d3a85
cmp ecx, 0xfc
je 0x5d3aaa
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5d39df
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.005ca2f0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.005ca240
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5d3a21
lea eax, [ebp - 0x10c]
push eax
call fcn.005ca240
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x5ff90c
push edi
call fcn.005c7630
add esp, 0x10
push edi
call fcn.005ca240
push dword [esi + 0x649834]
mov ebx, eax
call fcn.005ca240
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005c9390
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.005ca2f0
push edi
push ebx
call fcn.005ca300
push 0x606a88
push ebx
call fcn.005ca300
push dword [esi + 0x649834]
push ebx
call fcn.005ca300
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.005d9f9c
add esp, 0x2c
jmp 0x5d3aaa
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x649834]
push dword [esi]
call fcn.005ca240
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.005ca9da
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d6602
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x649428]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x5d662b
xor eax, eax
jmp 0x5d6799
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x6d0020]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x5d665e
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.005da539
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x5d6730
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x5d676b
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x5d66b9
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x5d66aa
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x5d668d
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x5d66f9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x5d6702
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x5d667e
jmp 0x5d6704
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x5d6794
cmp dword [ebp - 8], edi
je 0x5d676b
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x5d675d
call fcn.005d645b
mov dword [eax], 9
call fcn.005d6464
mov dword [eax], esi
jmp 0x5d6766
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x5d6752
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x5d6704
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x5d6704
push dword [ebp - 8]
call fcn.005d646d
pop ecx
or eax, 0xffffffff
jmp 0x5d6797
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x5d6780
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x5d6780
xor eax, eax
jmp 0x5d6797
call fcn.005d645b
mov dword [eax], 0x1c
call fcn.005d6464
mov dword [eax], edi
jmp 0x5d6766
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.005ca9da
leave
ret
Function at 0x5d6a9c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x5d6c62
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x6d0020]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x5d6c62
test cl, 0x48
je 0x5d6b02
mov al, byte [eax + 5]
cmp al, 0xa
je 0x5d6b02
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x5d6b54
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x5d6b3c
call fcn.005d645b
mov dword [eax], 9
call fcn.005d6464
mov dword [eax], esi
jmp 0x5d6b4c
cmp eax, 0x6d
je 0x5d6c62
push eax
call fcn.005d646d
pop ecx
or eax, 0xffffffff
jmp 0x5d6c64
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x5d6c5d
test edx, edx
je 0x5d6b77
cmp byte [ebx], 0xa
jne 0x5d6b77
or al, 4
jmp 0x5d6b79
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x5d6c57
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x5d6c47
cmp al, 0xd
je 0x5d6bad
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x5d6c39
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x5d6bc7
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x5d6bc2
add dword [ebp + 0x10], 2
jmp 0x5d6c1b
mov dword [ebp + 0x10], eax
jmp 0x5d6c35
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x5d6bef
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x5d6c35
cmp dword [ebp - 0xc], 0
je 0x5d6c35
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x5d6c10
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x5d6c1b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x5d6c38
cmp ebx, dword [ebp + 0xc]
jne 0x5d6c20
cmp byte [ebp - 1], 0xa
jne 0x5d6c20
mov byte [ebx], 0xa
jmp 0x5d6c38
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005d83db
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x5d6c39
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x5d6b91
jmp 0x5d6c57
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x5d6c57
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x5d6c64
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret