joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472760
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x260
push ebx
push ebp
mov ebp, ecx
push 0xfffffffffffffff0
mov eax, dword [ebp + 0x60]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x472930
mov ecx, dword [ebp + 0x60]
push ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
je 0x472930
push edi
push esi
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
call dword [sym.imp.USER32.dll_GetSysColor]
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_GetTextAlign]
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_GetTextColor]
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetBkMode]
push 2
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
mov edi, str.MS_Sans_Serif
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], 0xa
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x44], 0x2bc
shr ecx, 2
mov byte [esp + 0x4b], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x60]
lea edx, [esp + 0x170]
push 0xff
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x170]
push 0x2d
push ecx
call fcn.00531460
add esp, 8
test eax, eax
je 0x47288c
add eax, 2
lea edx, [esp + 0x70]
push eax
push 0x569284
push edx
call fcn.005308a0
add esp, 0xc
jmp 0x4728b8
lea edi, [esp + 0x170]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov edx, dword [ebp + 0x60]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x30]
push eax
add ecx, 0xfffffff6
push 4
push ecx
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x20]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x10]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp + 0x60]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x260
ret
Function at 0x4864a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x274], ebx
je 0x4864d9
call dword [0x5a2444]
mov ecx, dword [esi + 0x274]
mov eax, dword [ecx]
call dword [eax + 0x68]
mov ecx, dword [esi + 0x274]
cmp ecx, ebx
je 0x4864d3
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x274], ebx
lea edi, [esi + 0x234]
mov ecx, 8
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2e0], ebx
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x300], 0xffffffff
mov dword [esi + 0x2ac], ebx
call edi
mov dword [esi + 0x2ec], eax
call edi
mov dword [esi + 0x2f0], eax
call edi
mov dword [esi + 0x2f4], eax
call edi
mov dword [esi + 0x2f8], eax
call edi
mov dword [esi + 0x2fc], eax
mov dword [esi + 0x10], 0xffffffff
mov eax, dword [str.Hoyle]
push 0x5a3298
push eax
lea ecx, [esp + 0x14]
push str._s__s
push ecx
call fcn.005308a0
add esp, 0x10
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2d0], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x2e8], 0xffffffff
lea eax, [esi + 0x254]
lea ecx, [esi + 0x34]
mov edx, 8
mov dword [eax - 0x40], ebx
mov byte [ecx - 0x20], bl
mov byte [ecx], bl
mov dword [eax], ebx
mov dword [eax - 0x20], ebx
mov dword [eax + 0x24], ebx
add eax, 4
add ecx, 0x40
dec edx
jne 0x486580
mov dword [esi + 8], ebx
mov dword [esi + 0x29c], ebx
mov dword [esi + 0x2a0], ebx
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x298], ebx
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x4ae490
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
test eax, eax
mov esi, ecx
je 0x4ae4ae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5a2738], eax
pop edi
pop esi
pop ebx
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
je 0x4ae56b
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [0x5a2738]
cmp eax, 0x3a98
jbe 0x4ae56b
mov ecx, dword [esi + 0x48]
call fcn.004631c0
test eax, eax
je 0x4ae4f8
push eax
call fcn.004efcc0
mov ecx, dword [esi + 0x48]
add esp, 4
push eax
call fcn.004632b0
mov edi, eax
jmp 0x4ae4fa
xor edi, edi
mov ecx, dword [esi + 0x48]
call fcn.004631c0
cmp eax, 2
jl 0x4ae543
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x2c]
test eax, eax
je 0x4ae543
mov ecx, dword [esi + 0x48]
call fcn.004631c0
test eax, eax
je 0x4ae535
push eax
call fcn.004efcc0
mov ecx, dword [esi + 0x48]
add esp, 4
push eax
call fcn.004632b0
mov edi, eax
jmp 0x4ae537
xor edi, edi
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x2c]
test eax, eax
jne 0x4ae513
test edi, edi
je 0x4ae564
push 0
push 0
push 0x3ff00000
push 0
push 0x3ff00000
push 0
push 0x25
push 0xffffffffffffffff
mov ecx, edi
call fcn.0047e3b0
call ebx
mov dword [0x5a2738], eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x4af650
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x4af710
call ebx
sub eax, dword [0x5a2738]
cmp eax, 0x3a98
jbe 0x4af710
mov ecx, dword [esi + 0x48]
call fcn.004631c0
test eax, eax
je 0x4af69d
push eax
call fcn.004efcc0
mov ecx, dword [esi + 0x48]
add esp, 4
push eax
call fcn.004632b0
mov edi, eax
jmp 0x4af69f
xor edi, edi
mov ecx, dword [esi + 0x48]
call fcn.004631c0
cmp eax, 2
jl 0x4af6e8
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x2c]
test eax, eax
je 0x4af6e8
mov ecx, dword [esi + 0x48]
call fcn.004631c0
test eax, eax
je 0x4af6da
push eax
call fcn.004efcc0
mov ecx, dword [esi + 0x48]
add esp, 4
push eax
call fcn.004632b0
mov edi, eax
jmp 0x4af6dc
xor edi, edi
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x2c]
test eax, eax
jne 0x4af6b8
test edi, edi
je 0x4af709
push 0
push 0
push 0x3ff00000
push 0
push 0x3ff00000
push 0
push 0x25
push 0xffffffffffffffff
mov ecx, edi
call fcn.0047e3b0
call ebx
mov dword [0x5a2738], eax
call ebx
sub eax, dword [esi + 0x38]
cmp eax, 0x12c
jb 0x4af73e
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4af73e
mov edx, dword [esi + 0x34]
push edx
call fcn.0047c640
mov ecx, dword [esi + 0x34]
xor eax, eax
test ecx, ecx
sete al
mov dword [esi + 0x34], eax
call ebx
mov dword [esi + 0x38], eax
mov ecx, esi
call fcn.00454390
pop edi
pop esi
pop ebx
ret
Function at 0x4b8032
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov ebp, eax
cmp word [esi + 0x744], bx
jle 0x4b80b8
push edi
movsx edi, bx
mov ecx, ebp
movsx eax, word [esi + edi*2 + 0x80e]
sub ecx, dword [esi + edi*4 + 0x8d8]
cmp ecx, eax
jle 0x4b80ad
inc word [esi + edi*2 + 0x746]
mov ecx, dword [esi + edi*4 + 0x5ac]
call fcn.004b5f10
movsx edx, word [esi + edi*2 + 0x746]
cmp edx, eax
jle 0x4b808b
mov word [esi + edi*2 + 0x746], 0
movsx eax, word [esi + edi*2 + 0x746]
mov ecx, dword [esi + edi*4 + 0x5ac]
push eax
call fcn.004b5e40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + edi*4 + 0x8d8], eax
inc ebx
cmp bx, word [esi + 0x744]
jl 0x4b8049
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4f07d0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x200
lea eax, [esp + 0x208]
lea edx, [esp]
push eax
push ecx
push edx
call fcn.00532f40
mov eax, dword [0x5a3640]
add esp, 0xc
test eax, eax
jne 0x4f0824
mov eax, dword [0x5a32b8]
test eax, eax
je 0x4f0824
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4f0824
push 0
push str.DebugStringToFile
call fcn.00485b40
mov dword [0x5a3644], eax
mov dword [0x5a3640], 1
mov eax, dword [0x5a3644]
test eax, eax
je 0x4f0879
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x5a3648]
test eax, eax
jne 0x4f085c
push 0x577548
push str.DEBUGLOG.TXT
call fcn.00530d40
add esp, 8
mov dword [0x5a3648], eax
test eax, eax
je 0x4f0879
lea ecx, [esp]
push eax
push ecx
call fcn.00532ee0
mov edx, dword [0x5a3648]
add esp, 8
push edx
call fcn.00532d80
add esp, 4
add esp, 0x200
ret
Function at 0x530c60
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x530c7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x530c8f
push eax
call fcn.005345c0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x530eb0
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov eax, 0
jne 0x530eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x530edd
push eax
call fcn.005345c0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x530ee0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x530efa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x530f0d
push eax
call fcn.005345c0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x5333e0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e520
push 0x539c34
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x583a68], eax
xor eax, eax
mov al, byte [0x583a69]
mov dword [0x583a74], eax
mov eax, dword [0x583a68]
shr dword [0x583a68], 0x10
and eax, 0xff
mov dword [0x583a70], eax
shl eax, 8
add eax, dword [0x583a74]
mov dword [0x583a6c], eax
call fcn.005385e0
test eax, eax
jne 0x533454
push 0x1c
call fcn.00533580
add esp, 4
mov dword [ebp - 4], 0
call fcn.00534360
call fcn.00539c20
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5b8374], eax
call fcn.005397d0
mov dword [0x583694], eax
test eax, eax
je 0x533487
cmp dword [0x5b8374], 0
jne 0x533491
push 0xffffffffffffffff
call fcn.005352e0
add esp, 4
call fcn.00539550
call fcn.00539460
call fcn.005352b0
mov esi, dword [0x5b8374]
mov al, byte [esi]
cmp al, 0x22
je 0x5334b8
cmp al, 0x20
jbe 0x5334e5
inc esi
cmp byte [esi], 0x20
ja 0x5334b0
jmp 0x5334e5
inc esi
cmp byte [esi], 0x22
je 0x5334e4
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x5334df
xor eax, eax
mov al, bl
push eax
call fcn.00539400
add esp, 4
test eax, eax
je 0x5334d9
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x5334c1
cmp byte [esi], 0x22
jne 0x5334e5
inc esi
cmp byte [esi], 0
je 0x5334f5
cmp byte [esi], 0x20
ja 0x5334f5
inc esi
cmp byte [esi], 0
jne 0x5334ea
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x533519
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.005352e0
jmp 0x53355a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x534070
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x5b8370], edx
push ebx
push esi
push edi
push ebp
jbe 0x534277
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x5b8270
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x534277
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x5340d9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x5340ea
push 2
push 0
push edx
call fcn.005342a0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x534186
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x5341bf
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x53414d
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x53413b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x534122
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5341b5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x53410d
jmp 0x5341bf
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5341b5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x5341bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x534266
cmp dword [esp + 0x10], 0
je 0x534218
cmp dword [esp + 0x10], 5
jne 0x5341fb
mov dword [0x583a5c], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x583a60], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.005345c0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x534242
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x534242
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x583a5c], 0x1c
mov dword [0x583a60], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x583a5c], 9
mov dword [0x583a60], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x535320
Capabilities:
Terminate process

Disassembly:
cmp dword [0x583aa4], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x53533e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x583aa0], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x583a9c], bl
jne 0x535398
cmp dword [0x5b8260], 0
je 0x535386
mov edi, dword [0x5b825c]
sub edi, 4
cmp edi, dword [0x5b8260]
jb 0x535386
mov eax, dword [edi]
test eax, eax
je 0x53537b
call eax
sub edi, 4
cmp edi, dword [0x5b8260]
jae 0x535373
push 0x55a048
push 0x55a040
call fcn.005353d0
add esp, 8
push 0x55a050
push 0x55a04c
call fcn.005353d0
add esp, 8
test ebx, ebx
jne 0x5353bf
mov dword [0x583aa4], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x5397d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x584840], ebx
jne 0x53981f
call esi
cmp eax, ebx
mov edi, eax
je 0x5397fd
mov dword [0x584840], 1
jmp 0x53981f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x539815
mov dword [0x584840], 2
jmp 0x53981f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x584840], 1
jne 0x5398ce
test edi, edi
jne 0x539842
call esi
mov edi, eax
test edi, edi
jne 0x539842
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x53985c
add esi, 2
cmp word [esi], 0
jne 0x53984a
add esi, 2
cmp word [esi], 0
jne 0x53984a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x5398bd
push ebp
call fcn.00532c80
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x5398bd
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x5398ac
push ebx
call fcn.00532d30
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x584840], 2
jne 0x539952
test ebx, ebx
jne 0x5398f1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x5398f1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x539906
inc ebp
cmp byte [ebp], 0
jne 0x5398f8
inc ebp
cmp byte [ebp], 0
jne 0x5398f8
sub ebp, ebx
inc ebp
push ebp
call fcn.00532c80
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x53992b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x539d50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x584a60
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x539d77
add eax, 8
inc ecx
cmp eax, 0x584af0
jb 0x539d68
cmp dword [ecx*8 + 0x584a60], edx
lea ebx, [ecx*8]
jne 0x539f3b
cmp dword [0x5836a0], 1
je 0x539ef7
cmp dword [0x5836a0], 0
jne 0x539dae
cmp dword [0x5836a4], 1
je 0x539ef7
cmp edx, 0xfc
je 0x539f3b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x539deb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x539e2f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x54ea18
push ebp
call fcn.0053b270
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x56c8a4
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x584a64]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0053c680
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x5b8270], 0
je 0x539f0d
mov eax, dword [0x5b8270]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x539f17
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x584a64]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x53c720
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00530f10
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x5b8370], esi
jbe 0x53c86d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x5b8270]
test byte [edx + ecx*8 + 4], 1
je 0x53c86d
push 1
push ebx
push esi
call fcn.005342a0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x53c85d
push 2
push ebx
push esi
call fcn.005342a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x53c85d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x53c803
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0053d2f0
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x53c7c6
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00534070
add esp, 0xc
cmp eax, 0xffffffff
je 0x53c7e2
sub ebp, eax
test ebp, ebp
jg 0x53c7bb
jmp 0x53c7f7
cmp dword [0x583a60], 5
jne 0x53c7f5
mov dword [0x583a5c], 0xd
mov ebx, eax
push edi
push esi
call fcn.0053d2f0
add esp, 8
jmp 0x53c840
jge 0x53c840
push 0
push ecx
push esi
call fcn.005342a0
add esp, 0xc
push esi
call fcn.0053a2e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x53c840
mov dword [0x583a5c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x583a60], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.005342a0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x583a5c], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret