joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53a030
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0x5846bc
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
jne 0x53a072
push str.WNCTMPDIR
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x53a070
push str.from_environment_variable_WNCTMPDIR
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
xor eax, eax
jmp 0x53a0b0
jmp 0x53a099
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x53a099
push str.from_environment
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
xor eax, eax
jmp 0x53a0b0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x5f43b0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00537a50
add esp, 0xc
pop ebp
ret

Function at 0x53a130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x59ad00]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x53a150
xor eax, eax
jmp 0x53a288
mov eax, dword [ebp + 8]
push eax
push 0x584708
lea ecx, [ebp - 0x190]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x53a18a
mov eax, dword [ebp - 4]
jmp 0x53a288
cmp dword [0x5f43b0], 0
jne 0x53a198
call fcn.005394c0
push str.path
mov eax, dword [0x5f43b0]
push eax
call fcn.00537ae0
add esp, 8
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
test ecx, ecx
jge 0x53a1be
xor eax, eax
jmp 0x53a288
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 8]
push eax
mov ecx, dword [0x5f43b0]
push ecx
call fcn.005381a0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x53a285
mov edx, dword [ebp - 4]
mov dword [ebp - 0x194], edx
jmp 0x53a1fd
mov eax, dword [ebp - 0x194]
add eax, 1
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
movsx edx, byte [ecx]
test edx, edx
je 0x53a20c
jmp 0x53a1ee
mov eax, dword [ebp - 0x194]
sub eax, 1
mov dword [ebp - 0x194], eax
jmp 0x53a22c
mov ecx, dword [ebp - 0x194]
sub ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
cmp edx, dword [ebp - 4]
jb 0x53a254
mov eax, dword [ebp - 0x194]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x53a254
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
jl 0x53a254
jmp 0x53a21d
mov ecx, dword [ebp - 0x194]
add ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
je 0x53a285
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
mov byte [edx], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret
Function at 0x53a2a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x59ad00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push str._sPATH
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x53a2f1
lea eax, [ebp - 0x58]
push eax
push str.from_environment__s
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
xor eax, eax
jmp 0x53a307
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [0x5f43b0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00537a50
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret

Function at 0x53f520
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x59ad00]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
push ecx
push 0x1ff
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00535e10
push 0x2c
lea edx, [ebp - 0x208]
push edx
call sub.MSVCR100.dll_strchr
add esp, 8
test eax, eax
je 0x53f5c1
mov eax, dword [ebp + 0x10]
push eax
push 0x1ff
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005375d0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x53f5c1
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffd5
jne 0x53f5bf
push 0x2c
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR100.dll_strchr
add esp, 8
test eax, eax
jne 0x53f5bf
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
jmp 0x53f5c1
jmp 0x53f622
lea edx, [ebp - 9]
mov dword [ebp - 4], edx
jmp 0x53f5d2
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x208]
cmp ecx, edx
jb 0x53f5f6
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x53f5f6
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
jl 0x53f5f6
jmp 0x53f5c9
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov byte [edx], 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
test eax, eax
je 0x53f622
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffeb
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x53f780
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.WNC_WNCFILES_VERBOSE
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x53f7b9
push 0x584f1c
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
je 0x53f7b9
mov eax, 1
jmp 0x53f7bb
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5402a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5402bb
xor eax, eax
jmp 0x5402c7
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x5403b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
test eax, eax
je 0x5403d4
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 0xd
je 0x5403d4
or eax, 0xffffffff
jmp 0x5403d6
xor eax, eax
pop ebp
ret
Function at 0x540660
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x59ad00]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0x584f70
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x540692
mov eax, dword [ebp - 4]
jmp 0x540819
push str.WNCHOME_LS
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5407dd
push 0x200
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x5406d1
xor eax, eax
jmp 0x540819
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], ecx
jmp 0x5406ee
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x540714
mov edx, dword [ebp - 0x21c]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x540712
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 0x2f
jmp 0x5406df
push 0x2f
lea edx, [ebp - 0x218]
push edx
call sub.MSVCR100.dll_strrchr
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x540735
xor eax, eax
jmp 0x540819
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
push 0x2f
lea edx, [ebp - 0x218]
push edx
call sub.MSVCR100.dll_strrchr
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x540765
xor eax, eax
jmp 0x540819
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
push 0x2f
lea edx, [ebp - 0x218]
push edx
call sub.MSVCR100.dll_strrchr
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x540795
xor eax, eax
jmp 0x540819
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
push 0x584f84
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x5407d0
push 0x584f88
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x5407d4
xor eax, eax
jmp 0x540819
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], ecx
movzx edx, byte [ebp + 8]
test edx, edx
je 0x540816
push str.WNCHOME
push 0x5f6628
call sub.MSVCR100.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0x5f6628
call sub.MSVCR100.dll_strcat
add esp, 8
push 0x5f6628
call dword [sym.imp.MSVCR100.dll__putenv]
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret
Function at 0x541b70
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, 0x837765f1
imul esi
mov ebp, dword [esp + 0x14]
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e5
mov edx, esi
push edi
mov edi, ecx
sub edx, eax
mov dword [ebp], 0
mov eax, dword [edi + edx*8 + 0x24]
xor ecx, ecx
test eax, eax
je 0x541bc0
lea esp, [esp]
cmp dword [eax], esi
je 0x541bbd
mov eax, dword [eax + 8]
test eax, eax
jne 0x541bb0
jmp 0x541bc0
mov ecx, dword [eax + 4]
mov ebx, ecx
test ecx, ecx
jne 0x541c28
mov ecx, dword [edi]
call fcn.00542fc0
xor ecx, ecx
cmp eax, ecx
je 0x541be7
fldz
mov dword [eax], 0xffffffff
fstp qword [eax + 0x10]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x18], ecx
mov ebx, eax
cmp eax, ecx
je 0x541c28
push eax
mov dword [eax], esi
push esi
mov ecx, edi
mov dword [ebp], 1
call fcn.005414c0
test eax, eax
jne 0x541c28
push str.Memory_allocation_failure
push 0x57e420
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 8
Function at 0x551a8e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59ad00]
jne 0x551a98
repz ret
jmp fcn.0055214e

Function at 0x55a7b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x59ad00]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0055f820
test eax, eax
je 0x55a7e3
call fcn.0055f780
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
jmp 0x55a82c
push 0x586894
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x55a816
push 0x58689c
lea ecx, [ebp - 0x210]
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
jmp 0x55a82c
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
push 0x5868a0
push 0x5868a8
push 0x5c
lea ecx, [ebp - 0x210]
push ecx
push 0x5868b0
push 0x5f7400
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
mov byte [0x5f7600], 0
push 0x5868bc
push 0x5f7400
call dword [sym.imp.MSVCR100.dll_strcspn]
add esp, 8
mov byte [eax + 0x5f7400], 0
push 0x201
push 0x5f7400
call fcn.0055a640
add esp, 8
push 0x5868c0
push str.zone
push 0x5c
lea edx, [ebp - 0x210]
push edx
push str._s_c_s_s
push 0x5f7608
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
mov byte [0x5f7808], 0
push 0x5868dc
push 0x5f7608
call dword [sym.imp.MSVCR100.dll_strcspn]
add esp, 8
mov byte [eax + 0x5f7608], 0
push 0x201
push 0x5f7608
call fcn.0055a640
add esp, 8
cmp dword [0x5f7814], 0
jne 0x55a8fe
push 0x55a760
call fcn.00551faf
add esp, 4
mov dword [0x5f7814], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret

Function at 0x55f200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x59ad00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5fccac], 0
je 0x55f266
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s___d__:__d_n
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
mov ecx, dword [0x5fcca8]
push ecx
lea edx, [ebp - 0x408]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
push eax
push 1
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret

Function at 0x55f780
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x586af0
cmp dword [0x5f87e4], 0
je 0x55f79f
mov eax, 0x5f87e8
jmp 0x55f7c0
push 0x586af4
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x55f7bd
mov eax, dword [ebp - 8]
jmp 0x55f7c0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x55f830
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x5f87e4], 0
je 0x55f851
push 0x5f87e8
push 0x5fca70
call sub.MSVCR100.dll_strcpy
add esp, 8
jmp 0x55f88d
push str.WNCZONE
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x55f87c
push 0x586b10
push 0x5fca70
call sub.MSVCR100.dll_strcpy
add esp, 8
jmp 0x55f88d
mov eax, dword [ebp - 4]
push eax
push 0x5fca70
call sub.MSVCR100.dll_strcpy
add esp, 8
push 0x586b14
mov ecx, dword [ebp + 8]
push ecx
call fcn.00541070
add esp, 8
push eax
push 0x5c
push 0x5fca70
push str._s_c_s
push 0x5fc868
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
push 0x201
push 0x5fc868
call fcn.00535d40
add esp, 8
cmp dword [0x5fcc7c], 0
jne 0x55f8eb
push 0x55f720
call fcn.00551faf
add esp, 4
mov dword [0x5fcc7c], 1
mov esp, ebp
pop ebp
ret

Function at 0x568f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x5fcdc0]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
push eax
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
cmp esi, eax
je 0x568f5a
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffe6
jmp 0x568f90
mov dx, word [0x5873e0]
mov word [ebp - 8], dx
mov al, byte [0x5873e2]
mov byte [ebp - 6], al
mov ecx, dword [ebp - 4]
push ecx
push 2
push 1
lea edx, [ebp - 8]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 2
je 0x568f90
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffe6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x569080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x5fcdc0]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
push eax
push 1
push 1
lea ecx, [ebp - 5]
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x5690d5
mov edx, dword [ebp + 0x14]
mov dword [edx], 0xffffffe7
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x5690e9
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 4], ecx
jge 0x569105
movsx edx, byte [ebp - 5]
cmp edx, 0xa
je 0x569105
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x5690a3
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 4], ecx
jne 0x569180
movsx edx, byte [ebp - 5]
cmp edx, 0xa
je 0x569180
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffd6
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 1]
cmp edx, 0xa
je 0x56913c
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0xa
jmp 0x569145
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x569161
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x56917b
cmp dword [ebp - 4], 0
jl 0x56917b
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x569145
jmp 0x569217
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0xffffffe7
je 0x569191
movsx eax, byte [ebp - 5]
cmp eax, 0xa
jne 0x5691a2
cmp dword [ebp - 4], 0
jne 0x5691a2
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0xffffffe9
jmp 0x569217
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x5691ce
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x569217
cmp dword [ebp - 4], 0
jl 0x569217
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x569203
cmp dword [ebp - 0x10], 0
jne 0x569201
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x569215
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x5691b2
mov esp, ebp
pop ebp
ret

Function at 0x56a390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
pop ebp
ret
Function at 0x56c3d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
and ecx, 0xfffffffd
mov edx, dword [ebp + 8]
mov dword [edx + 0x320], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [str.WKNC_Id:_fbseek.cpp_7003_2011_05_16_16:32:53Z_jsturton___WORKNC]
mov dword [eax + 0x210], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x214], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x21c], 0xa0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x218], 0xa0
mov edx, dword [ebp + 8]
mov dword [edx + 0x220], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x224], 0
call fcn.00533c00
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x228
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
mov edx, dword [ebp + 8]
mov byte [edx + 0x2a8], 1
mov eax, dword [ebp + 8]
mov byte [eax + 0x2a9], 1
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x2aa], 1
mov edx, dword [ebp + 8]
mov byte [edx + 0x2ac], 0
call fcn.00533b50
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x2ab], al
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
push 0xa0
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x210
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 0xa0
je 0x56c4bb
mov eax, 0xffffffe6
jmp 0x56c4bd
xor eax, eax
pop ebp
ret

Function at 0x56ecc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x59ad00]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056edf0
add esp, 8
cmp eax, 0xffffffff
je 0x56edbf
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_int___cdecl__open_char_const___int__int_]
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x56ed9e
push 0x101
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jle 0x56ed74
lea edx, [ebp - 0x148]
push edx
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 4
cmp dword [ebp + 0xc], eax
jne 0x56ed50
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x56ed72
cmp dword [0x5fcf58], 0
je 0x56ed72
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x587418
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
jmp 0x56ed8f
cmp dword [0x5fcf58], 0
je 0x56ed8f
mov eax, dword [ebp - 0x40]
push eax
push str._nread_error_:_nblu___d_n_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
jmp 0x56edbd
cmp dword [0x5fcf58], 0
je 0x56edbd
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x3c]
push eax
push str._nopen_error_:_handle___d___nomfic___s_n_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
jmp 0x56edda
cmp dword [0x5fcf58], 0
je 0x56edda
mov ecx, dword [ebp + 8]
push ecx
push str._nstat_error_:_nomfic___s_n_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret
Function at 0x56ee10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x59ad00]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], eax
push 0x180
push 0x502
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_int___cdecl__open_char_const___int__int_]
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x56ee92
mov ecx, dword [ebp - 4]
push ecx
push 0x5874ac
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.MSVCR100.dll__write]
add esp, 0xc
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
jmp 0x56ef28
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 0x11
jne 0x56ef21
push 0x100
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_int___cdecl__open_char_const___int__int_]
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x56ef1f
push 0x14
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x13
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x56eefc
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x56ef03
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
je 0x56ef1f
mov dword [ebp - 0x28], 0xffffffff
jmp 0x56ef28
mov dword [ebp - 0x28], 0xfffffffe
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret