joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432ce0
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call fcn.00434567
push 0x400
mov dword [esi + 4], 0
call fcn.00434562
add esp, 8
mov dword [esi + 4], eax
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x432d13
xor eax, 0xedb88320
test al, 1
je 0x432d20
shr eax, 1
xor eax, 0xedb88320
jmp 0x432d22
shr eax, 1
test al, 1
je 0x432d2f
shr eax, 1
xor eax, 0xedb88320
jmp 0x432d31
shr eax, 1
test al, 1
je 0x432d3e
shr eax, 1
xor eax, 0xedb88320
jmp 0x432d40
shr eax, 1
test al, 1
je 0x432d4d
shr eax, 1
xor eax, 0xedb88320
jmp 0x432d4f
shr eax, 1
test al, 1
je 0x432d5c
shr eax, 1
xor eax, 0xedb88320
jmp 0x432d5e
shr eax, 1
test al, 1
je 0x432d6b
shr eax, 1
xor eax, 0xedb88320
jmp 0x432d6d
shr eax, 1
test al, 1
je 0x432d7a
shr eax, 1
xor eax, 0xedb88320
jmp 0x432d7c
shr eax, 1
mov edx, dword [esi + 4]
mov dword [edx + ecx*4], eax
add ecx, 1
cmp ecx, 0x100
jl 0x432d05
pop esi
ret

Function at 0x433840
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
push edi
lea edi, [esi + 0x28]
jne 0x433869
mov eax, dword [esi + 0x1c]
push 0x47bb28
push eax
push edi
call fcn.004572a8
mov eax, dword [edi]
add esp, 0xc
test eax, eax
jne 0x433869
pop edi
pop esi
ret
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 8]
sub edi, ecx
test edi, edi
jle 0x433882
push eax
push 1
push edi
push ecx
call fcn.00457162
add esp, 0x10
add dword [esi + 0x2c], edi
mov ecx, dword [esi + 0x10]
pop edi
mov dword [esi + 8], ecx
mov eax, 1
pop esi
ret

Function at 0x433f00
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
push esi
movzx esi, byte [eax]
cmp esi, 0xfc
lea edx, [eax + 1]
mov dword [ecx], edx
jge 0x433f1e
lea eax, [esi + 1]
pop esi
ret 4
jne 0x433f31
movzx eax, byte [edx]
add eax, 0xfd
add edx, 1
mov dword [ecx], edx
pop esi
ret 4
cmp esi, 0xfd
jne 0x433f52
movzx eax, byte [edx]
add edx, 1
mov dword [ecx], edx
movzx esi, byte [edx]
shl eax, 8
add edx, 1
add eax, esi
mov dword [ecx], edx
pop esi
ret 4
cmp esi, 0xfe
jne 0x433f79
movzx eax, byte [edx]
add edx, 1
mov dword [ecx], edx
movzx esi, byte [edx]
shl eax, 8
add edx, 1
add eax, esi
mov dword [ecx], edx
movzx esi, byte [edx]
shl eax, 8
add eax, esi
jmp 0x433f3c
push 6
call fcn.00459e8b
int3
Function at 0x434010
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
push ebp
mov ebp, dword [eax + 0x10]
push esi
mov esi, dword [eax + 0x18]
push edi
mov edi, dword [esp + 0x28]
mov edi, dword [edi + 0x10]
mov edx, ecx
xor ecx, ecx
mov dword [esp + 0x20], esi
cmp esi, ecx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xa7
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ebp
jle 0x434206
push ebx
jmp 0x434064
mov edx, dword [esp + 0x14]
movzx ebx, byte [ebp]
add ebp, 1
cmp ebx, 0xa7
jne case.0x434091.167
movzx ebx, byte [ebp]
add ebp, 1
lea eax, [ebx - 0xa2]
cmp eax, 5
mov dword [esp + 0x30], ebp
ja case.default.0x434091
jmp dword [eax*4 + 0x434240]
mov dword [esp + 0x10], 0xa6
jmp 0x4341f3
mov dword [esp + 0x10], 0xa5
jmp 0x4341f3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x14], 0xa4
call fcn.00433f00
add edi, eax
call ebx
mov ebp, dword [esp + 0x30]
jmp 0x4341f3
lea ecx, [esp + 0x30]
push ecx
mov ecx, edx
mov dword [esp + 0x14], 0xa3
call fcn.00433f00
mov ebx, eax
push ebx
push edi
mov ecx, esi
call fcn.00433f90
mov ebp, dword [esp + 0x30]
add edi, ebx
jmp 0x4341f3
lea eax, [esp + 0x30]
push eax
mov ecx, edx
mov dword [esp + 0x14], 0xa2
call fcn.00433f00
mov ebp, dword [esp + 0x30]
sub edi, eax
jmp 0x4341f3
mov ecx, 1
mov eax, dword [esp + 0x10]
sub eax, 0xa5
je 0x4341ac
sub eax, 1
jne 0x4341f3
test ecx, ecx
je 0x434177
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0x10]
add ecx, 1
cmp ecx, dword [esi + 0x14]
jle 0x434158
mov ecx, esi
call fcn.00433840
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
mov eax, edi
sub eax, dword [esp + 0x18]
mov byte [edx], 0xa7
add dword [esi + 8], 1
add eax, 1
cmp eax, dword [ecx + 0x18]
jg 0x434177
add edi, 1
mov edx, dword [esi + 8]
sub edx, dword [esi + 0x10]
add edx, 1
cmp edx, dword [esi + 0x14]
jle 0x43418c
mov ecx, esi
call fcn.00433840
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x2c]
mov ecx, edi
sub ecx, dword [esp + 0x18]
mov byte [eax], bl
add dword [esi + 8], 1
add ecx, 1
cmp ecx, dword [edx + 0x18]
jg 0x4341f3
add edi, 1
jmp 0x4341f3
test ecx, ecx
je 0x4341cf
mov eax, dword [esi + 8]
sub eax, dword [esi + 0x10]
add eax, 1
cmp eax, dword [esi + 0x14]
jle 0x4341c5
mov ecx, esi
call fcn.00433840
mov ecx, dword [esi + 8]
mov byte [ecx], 0xa7
add dword [esi + 8], 1
mov edx, dword [esi + 8]
sub edx, dword [esi + 0x10]
add edx, 1
cmp edx, dword [esi + 0x14]
jle 0x4341e4
mov ecx, esi
call fcn.00433840
mov eax, dword [esi + 8]
mov byte [eax], bl
add dword [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, ebp
sub edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, dword [esp + 0x24]
jl 0x434060
pop ebx
mov ecx, esi
call fcn.00433840
test eax, eax
jne 0x434219
mov dword [esp + 0x18], 0x11
mov ecx, esi
call fcn.00433730
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x34]
add eax, eax
sub ecx, eax
add ecx, dword [esi + 8]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov dword [edx], ecx
pop ebp
add esp, 0x18
ret 0x10
Function at 0x4343f0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
mov esi, ecx
push edi
push edi
push 0xc0000000
push eax
mov dword [esi], vtable.cpueblo::TFileMapStream.0
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
je 0x43447f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x18]
push edi
push eax
push edi
push 4
push edi
push ecx
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x14], eax
je 0x43447f
push edi
push edi
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x43447f
mov edx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], edi
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x437f3b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x437f74
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00413680
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004168c0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x439a5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x439a9f
call fcn.0043c6ad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x439a9f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x439aba
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00439616
test ebx, ebx
mov esi, eax
je 0x439ab8
test edi, edi
je 0x439ab8
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x43d999
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x4968d4]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x43da37
push 0x47e88c
push 4
push eax
call fcn.00454f31
push eax
call fcn.00402d50
add esp, 0x10
push ebx
push edi
call fcn.0045810a
mov edi, dword [eax]
call fcn.0045810a
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00455549
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0045810a
cmp dword [eax], ebx
je 0x43da4e
call fcn.0045810a
push dword [eax]
call fcn.0041ee10
pop ecx
jmp 0x43da55
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x43d9e8
jmp 0x43dac7
call fcn.0045810a
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x43dac3
cmp dword [ebp - 0x40], esi
jae 0x43dac3
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00455df0
add esp, 0xc
push 0x47e248
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x43dab5
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43dab5
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x43dab5
push ebx
push ebx
push esi
jmp 0x43dabb
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x43dac5
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00454567
add ebp, 0x1f4
leave
ret
Function at 0x43f254
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x43f29a
call fcn.0043c6ad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43f29a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x43f2dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x43f2c6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43f2c6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x43f2da
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x440406
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x474d14
call fcn.00459f4a
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0043c6ad
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x440451
call fcn.0043c6ad
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x440462
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x44046f
or eax, 0xffffffff
jmp 0x4405cb
mov ecx, esi
call fcn.0043ff4d
mov dword [ebp - 0x14], eax
call fcn.00436e9c
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4404ed
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4404ed
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4404ed
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00419c40
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4404ed
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4404ed
mov ecx, ebx
call fcn.0043a2d9
test eax, eax
je 0x4404ed
push 0
mov ecx, ebx
call fcn.0043a2f4
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0043883f
push dword [ebp - 0x14]
call fcn.00436df4
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0044020e
xor edi, edi
cmp eax, edi
je 0x44054a
test byte [esi + 0x3c], 0x10
je 0x440534
push 4
pop edi
mov ecx, esi
call fcn.0043a173
test ax, 0x100
je 0x44052a
push 5
pop edi
push edi
mov ecx, esi
call fcn.004369bc
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x44054a
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0043a4a2
or dword [ebp - 4], 0xffffffff
jmp 0x440575
cmp dword [ebp - 0x28], edi
je 0x440583
push 1
mov ecx, ebx
call fcn.0043a2f4
cmp dword [ebp - 0x2c], edi
je 0x440593
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4405ac
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4405ac
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0043ff87
cmp dword [esi + 0x58], edi
je 0x4405c8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00459fef
ret

Function at 0x454567
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4968d4]
jne 0x454571
repz ret
jmp fcn.0045ec53
Function at 0x455e9b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x455ec8
call fcn.0045811d
mov dword [eax], esi
call fcn.0045810a
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004551e8
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x455ea4
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x455ef7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00458130
pop ecx
call fcn.0045810a
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x455f1e
test al, 1
je 0x455f1e
test byte [esp + 0xc], 2
je 0x455f1e
call fcn.0045811d
mov dword [eax], 5
call fcn.0045810a
mov dword [eax], 0xd
jmp 0x455eee
xor eax, eax
pop esi
ret
Function at 0x4572f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x457335
cmp dword [ebp + 0x14], edi
je 0x457335
cmp ecx, edi
jne 0x45733c
call fcn.0045810a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004551e8
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x457350
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x457371
cmp ebx, 0xffffffff
je 0x457360
push ebx
push edi
push ecx
call fcn.00455df0
add esp, 0xc
cmp esi, edi
je 0x45731d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x45731d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x45738d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x457394
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x457485
test word [esi + 0xc], 0x10c
je 0x4573e8
mov eax, dword [esi + 4]
test eax, eax
je 0x4573e8
jl 0x4574e6
cmp ebx, eax
mov edi, ebx
jb 0x4573b9
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x45748d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045463f
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x45747d
cmp ebx, dword [ebp - 0xc]
jb 0x457455
cmp dword [ebp - 0xc], 0
je 0x457412
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x457407
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x45740e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x45741d
mov eax, bind
cmp ebx, eax
ja 0x45741d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4574b9
push eax
push dword [ebp - 8]
push esi
call fcn.004644e6
pop ecx
push eax
call fcn.0045873a
add esp, 0xc
test eax, eax
je 0x4574f8
cmp eax, 0xffffffff
je 0x4574e6
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x45747d
push esi
call fcn.00464b97
cmp eax, 0xffffffff
pop ecx
je 0x4574ea
cmp dword [ebp - 4], 0
je 0x4574b9
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x45739c
mov eax, dword [ebp + 0x14]
jmp 0x457337
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4574a4
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00455df0
add esp, 0xc
call fcn.0045810a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x45732d
cmp dword [ebp + 0xc], 0xffffffff
je 0x4574cf
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00455df0
add esp, 0xc
call fcn.0045810a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x45732d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x457337
or dword [esi + 0xc], 0x10
jmp 0x4574ea
Function at 0x45c542
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x496b70]
je 0x45c55d
inc edi
cmp edi, 0x17
jb 0x45c54e
cmp edi, 0x17
jae 0x45c6dd
push ebp
push 3
call fcn.0046824d
cmp eax, 1
pop ecx
je 0x45c6a9
push 3
call fcn.0046824d
test eax, eax
pop ecx
jne 0x45c591
cmp dword [0x4968b0], 1
je 0x45c6a9
cmp ebx, 0xfc
je 0x45c6dc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x49e018
push ebp
call fcn.00455410
add esp, 0xc
test eax, eax
je 0x45c5c7
push esi
push esi
push esi
push esi
push esi
call fcn.004550ec
add esp, 0x14
push 0x104
mov esi, 0x49e031
push esi
push 0
mov byte [0x49e135], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45c60b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00455410
add esp, 0xc
test eax, eax
je 0x45c60b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004550ec
add esp, 0x14
push esi
call fcn.0045ee80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45c650
push esi
call fcn.0045ee80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x49e32c
push 0x485764
sub ecx, eax
push ecx
push eax
call fcn.00456b13
add esp, 0x14
test eax, eax
je 0x45c650
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004550ec
add esp, 0x14
jmp 0x45c652
xor esi, esi
push 0x481360
push ebx
push ebp
call fcn.004681dc
add esp, 0xc
test eax, eax
je 0x45c672
push esi
push esi
push esi
push esi
push esi
call fcn.004550ec
add esp, 0x14
push dword [edi*8 + 0x496b74]
push ebx
push ebp
call fcn.004681dc
add esp, 0xc
test eax, eax
je 0x45c694
push esi
push esi
push esi
push esi
push esi
call fcn.004550ec
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0046801f
add esp, 0xc
jmp 0x45c6dc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45c6dc
cmp ebp, 0xffffffff
je 0x45c6dc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x496b74]
push dword [esi]
call fcn.0045ee80
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46801f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045d106
xor ebx, ebx
cmp dword [0x49eb18], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4680f5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4681d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4681d5
push eax
call fcn.0045d098
mov dword [esp], 0x4816a0
push edi
mov dword [0x49eb18], eax
call esi
push eax
call fcn.0045d098
mov dword [esp], 0x48168c
push edi
mov dword [0x49eb1c], eax
call esi
push eax
call fcn.0045d098
mov dword [0x49eb20], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00459ca4
test eax, eax
pop ecx
pop ecx
je 0x4680c3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004550ec
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4680f5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045d098
cmp eax, ebx
pop ecx
mov dword [0x49eb28], eax
je 0x4680f5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045d098
pop ecx
mov dword [0x49eb24], eax
mov eax, dword [0x49eb24]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x46817a
cmp dword [0x49eb28], ecx
je 0x46817a
push eax
call fcn.0045d10f
push dword [0x49eb28]
mov esi, eax
call fcn.0045d10f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x46817a
cmp edi, ebx
je 0x46817a
call esi
cmp eax, ebx
je 0x468147
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x468147
test byte [ebp - 0x18], 1
jne 0x46817a
lea eax, [ebp - 0x10]
push eax
call fcn.00459cdb
test eax, eax
pop ecx
je 0x468162
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004550ec
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x468171
or dword [ebp + 0x10], 0x200000
jmp 0x4681b5
or dword [ebp + 0x10], 0x40000
jmp 0x4681b5
mov eax, dword [0x49eb1c]
cmp eax, dword [ebp - 8]
je 0x4681b5
push eax
call fcn.0045d10f
cmp eax, ebx
pop ecx
je 0x4681b5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4681b5
mov eax, dword [0x49eb20]
cmp eax, dword [ebp - 8]
je 0x4681b5
push eax
call fcn.0045d10f
cmp eax, ebx
pop ecx
je 0x4681b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49eb18]
call fcn.0045d10f
cmp eax, ebx
pop ecx
je 0x4681d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4681d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret