joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2ab1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
xor esi, esi
lea eax, [ebp - 0x10f]
push esi
push eax
mov byte [ebp - 0x110], 0
call fcn.005117f0
add esp, 0xc
push 0x13c
lea eax, [ebp - 0x24c]
push esi
push eax
mov dword [ebp - 0x250], esi
call fcn.005117f0
xor eax, eax
mov word [ebp - 0x278], si
lea edi, [ebp - 0x276]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x268], si
xor eax, eax
lea edi, [ebp - 0x266]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
call fcn.004f16be
sub eax, dword [0x6dec20]
cmp eax, 0x493e0
jae 0x4f2b41
xor eax, eax
jmp 0x4f2c76
call fcn.004f16be
mov dword [0x6dec20], eax
call fcn.004f1f67
test eax, eax
je 0x4f2b3a
push 0x6de3e8
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.004c3b66
pop ecx
call fcn.004c3eab
push str.PAULATempTimeDetectionFile
push 0x54ff18
push eax
call fcn.004c533e
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
je 0x4f2b3a
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp + 8]
push eax
call ebx
mov dword [ebp - 0x254], esi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x24c]
jg 0x4f2be5
lea eax, [ebp - 0x23c]
push eax
call ebx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x268]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x278]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0d62
add esp, 0x20
cmp eax, 0xdbba0
jle 0x4f2c49
lea eax, [ebp - 0x110]
call fcn.004c3eab
lea eax, [ebp - 0x224]
push eax
mov eax, 0x104
lea esi, [ebp - 0x110]
call fcn.004c3c36
pop ecx
mov eax, esi
call fcn.0042a76b
test eax, eax
je 0x4f2c49
inc dword [ebp - 0x254]
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4f2bba
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
Function at 0x4f3689
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and word [ebp - 0x14], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004c3b34
test eax, eax
je 0x4f36b3
xor eax, eax
jmp 0x4f370f
test ebx, ebx
mov esi, str..Time.c
jne 0x4f36d5
push 0xb90
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004f2709
add esp, 0xc
test eax, eax
je 0x4f36af
lea ebx, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push 0xb98
push esi
mov edx, 0x530484
call fcn.0042d2c6
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4f36af
push edi
push 1
push 0x10
push ebx
call fcn.005110f1
add esp, 0x10
mov esi, eax
dec esi
neg esi
sbb esi, esi
mov ecx, edi
inc esi
call fcn.0042d70e
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4f3714
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x10], bx
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x4f3740
push 0x10
push ebx
push edi
call fcn.005117f0
add esp, 0xc
mov edx, dword [ebp + 0xc]
call fcn.004c3b34
test eax, eax
je 0x4f3750
xor eax, eax
jmp 0x4f37a8
mov ecx, dword [ebp + 0xc]
push 0xbb8
push str..Time.c
mov edx, 0x530488
call fcn.0042d2c6
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4f374c
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.005117f0
push esi
push 1
lea eax, [ebp - 0x10]
push 0x10
push eax
call fcn.00511c63
add esp, 0x1c
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
mov ecx, esi
inc ebx
call fcn.0042d70e
test edi, edi
je 0x4f37a6
lea esi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f3bb5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
xor ebx, ebx
xor eax, eax
push esi
push edi
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebx
stosd dword es:[edi], eax
mov dword [esp + 0x20], ebx
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [0x6deca0], eax
je 0x4f3cbd
call fcn.004f16be
mov dword [0x6deca4], eax
cmp dword [0x6deca0], ebx
jne 0x4f3d0f
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4f3cf7
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [esp + 0x14], ebx
jne 0x4f3c40
call fcn.004101db
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4f3cfb
cmp dword [esp + 0x10], ebx
jne 0x4f3cfb
lea eax, [esp + 0x20]
push eax
call fcn.004101db
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 6
call esi
push 4
mov edi, eax
call esi
add eax, dword [esp + 0x24]
push 0xfffffffffffffffd
lea ecx, [eax + edi + 3]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
pop edi
cdq
idiv edi
mov dword [esp + 0x24], ecx
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
jle 0x4f3ced
cmp eax, dword [esp + 0x28]
jge 0x4f3ced
cmp dword [esp + 0x1c], ecx
jle 0x4f3ced
push 0xf
call esi
add eax, dword [esp + 0x24]
cmp dword [esp + 0x1c], eax
jge 0x4f3ced
mov dword [0x6dec84], 1
call fcn.004f16be
mov dword [0x6dec88], eax
jmp 0x4f3cfb
call fcn.004f16be
sub eax, dword [0x6deca4]
cmp eax, 0xde
jae 0x4f3bfb
call fcn.004f16be
sub eax, dword [0x6deca4]
push eax
push str.:7:CheckForMouseButton___was_called_consecutively_too_quickly:__dms
call fcn.00426c01
pop ecx
pop ecx
jmp 0x4f3d0f
mov dword [esp + 0x10], 1
jmp 0x4f3cfb
mov dword [esp + 0x10], ebx
push 0x16
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6deca0], ebx
je 0x4f3c0d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f8a09
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1460
call fcn.00524dc0
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x1230
mov dword [ebp - 0x1454], eax
lea eax, [ebp - 0x144c]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x145c], edi
mov dword [ebp - 0x1450], ebx
call fcn.005117f0
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov dword [ebp - 0x1458], ebx
mov byte [ebp - 0x110], bl
call fcn.005117f0
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.005117f0
add esp, 0xc
mov edx, edi
call fcn.004c3b34
test eax, eax
je 0x4f8a9d
or eax, 0xffffffff
jmp 0x4f8be9
cmp dword [ebp - 0x1454], ebx
je 0x4f8ab9
push 0x1234
push ebx
push dword [ebp - 0x1454]
call fcn.005117f0
add esp, 0xc
push edi
mov ecx, 0x104
lea eax, [ebp - 0x218]
call fcn.004c3b66
pop ecx
mov esi, eax
call fcn.004c3e68
mov eax, esi
push eax
lea eax, [ebp - 0x110]
push 0x5304c0
push eax
call fcn.0048a119
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push edi
call fcn.00512a33
test eax, eax
pop ecx
pop ecx
jne 0x4f8b1f
call fcn.00512297
push eax
push 0x5312fc
mov eax, 0x104
lea edi, [ebp - 0x110]
call fcn.004c5375
mov edi, dword [ebp - 0x145c]
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
mov ecx, edi
call fcn.0050355f
mov dword [esp], 0x32a
push str..TrackProg.c
mov edx, 0x530488
lea ecx, [ebp - 0x110]
call fcn.0042d2c6
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x4f8b61
lea eax, [ebp - 0x110]
call fcn.0042a76b
jmp 0x4f8a95
lea ebx, [ebp - 0x1450]
mov eax, esi
call fcn.004f8bf8
test eax, eax
jne 0x4f8b8e
lea eax, [ebp - 0x110]
push eax
push str.:7:LoadTillSheetFromProgress___s___FAILED:_fread___FAILED_to_read_the_till_sheet_struct.
call fcn.004265da
pop ecx
pop ecx
mov ecx, esi
call fcn.0042d70e
jmp 0x4f8b51
push esi
push 1
lea eax, [ebp - 0x1458]
push 4
push eax
call fcn.00511c63
add esp, 0x10
cmp eax, 1
jae 0x4f8bae
and dword [ebp - 0x1458], 0
mov ecx, esi
call fcn.0042d70e
cmp dword [ebp - 0x1454], 0
je 0x4f8bd8
push 0x1234
lea eax, [ebp - 0x1450]
push eax
push dword [ebp - 0x1454]
call fcn.00512a90
add esp, 0xc
lea eax, [ebp - 0x110]
call fcn.0042a76b
mov eax, dword [ebp - 0x1458]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
Function at 0x4f8bf8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push esi
push edi
mov edi, eax
test edi, edi
je 0x4f8d65
test ebx, ebx
je 0x4f8d65
push edi
xor esi, esi
inc esi
push esi
lea eax, [ebp - 4]
push 4
push eax
call fcn.00511c63
add esp, 0x10
cmp eax, esi
jae 0x4f8c31
and dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
test ecx, ecx
mov eax, 0x1234
je 0x4f8d65
cmp ecx, eax
ja 0x4f8d4a
push eax
push 0
push ebx
call fcn.005117f0
push edi
push esi
push dword [ebp - 4]
push ebx
call fcn.00511c63
add esp, 0x1c
cmp eax, esi
jae 0x4f8c7d
push edi
call fcn.0042d97a
push eax
push str.:7:LoadTillSheetFromProgressRAW___s___FAILED:_fread___FAILED_to_read_the_till_sheet_struct.
call fcn.004265da
add esp, 0xc
jmp 0x4f8d65
mov eax, dword [ebx + 0x11b8]
test eax, eax
jbe 0x4f8ca5
push esi
push eax
call fcn.00511988
push edi
push esi
push dword [ebx + 0x11b8]
mov dword [ebx + 0x11b0], eax
push eax
call fcn.00511c63
add esp, 0x18
mov eax, dword [ebx + 0x11c0]
test eax, eax
jbe 0x4f8ccd
push esi
push eax
call fcn.00511988
push edi
push esi
push dword [ebx + 0x11c0]
mov dword [ebx + 0x11bc], eax
push eax
call fcn.00511c63
add esp, 0x18
and dword [ebx + 0x104c], 0
cmp dword [ebx + 0x1040], 0
je 0x4f8d46
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x12], si
sub esp, 0x10
mov word [ebp - 0xe], 8
mov word [ebp - 0x14], 0x7d7
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebx + 0x1c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0922
add esp, 0x20
test eax, eax
je 0x4f8d43
xor eax, eax
cmp dword [ebx + 0xb8], eax
je 0x4f8d2b
cmp word [ebx + 0x2a], ax
jne 0x4f8d35
mov dword [ebx + 0x1050], 1
cmp dword [ebx + 0x1050], eax
jne 0x4f8d43
mov dword [ebx + 0x1040], eax
xor esi, esi
inc esi
mov eax, esi
jmp 0x4f8d67
test ecx, ecx
jbe 0x4f8d65
push eax
push ecx
push edi
call fcn.0042d97a
pop ecx
push eax
push str.:7:LoadTillSheetFromProgressRAW___s___FAILED:_The_server_may_need_to_be_recompiled:_The_till_sheet_size_is_invalid:__ld__ld
call fcn.004265da
add esp, 0x10
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5016d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x10f]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x114], esi
mov byte [ebp - 0x110], 0
call fcn.005117f0
add esp, 0xc
mov edx, edi
call fcn.004c3b34
test eax, eax
jne 0x5017ac
test esi, esi
je 0x5017ac
push str.Counting_DB_
push ecx
push 1
call fcn.0048a45f
pop ecx
pop ecx
push eax
push str._s_sUpdtTimes_
mov esi, 0x104
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.004c53b7
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
call fcn.0042adad
test eax, eax
pop ecx
jne 0x50176b
push eax
lea ecx, [ebp - 0x110]
call fcn.0042b0ca
pop ecx
mov eax, esi
push edi
lea esi, [ebp - 0x110]
call fcn.004c3c36
mov dword [esp], 0xbdf
push str..WebCreation.c
mov edx, 0x530484
mov ecx, esi
call fcn.0042d2c6
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x5017bb
lea eax, [ebp - 0x110]
push eax
push str.:5:SetHTMLUpdateTime___FAILED:___s__could_not_be_opened_for_writing_
call fcn.00426c01
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051291c
leave
ret
push esi
push 1
push 0x10
push dword [ebp - 0x114]
call fcn.005110f1
add esp, 0x10
mov ecx, esi
call fcn.0042d70e
xor eax, eax
inc eax
jmp 0x5017ae
Function at 0x5119c7
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 0x511a04
cmp dword [ebp + 0x14], edi
je 0x511a04
cmp ecx, edi
jne 0x511a0b
call fcn.00518150
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.005180f1
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x511a1f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x511a40
cmp ebx, 0xffffffff
je 0x511a2f
push ebx
push edi
push ecx
call fcn.005117f0
add esp, 0xc
cmp esi, edi
je 0x5119ec
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5119ec
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x511a5c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x511a63
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x511b54
test word [esi + 0xc], 0x10c
je 0x511ab7
mov eax, dword [esi + 4]
test eax, eax
je 0x511ab7
jl 0x511bb5
cmp ebx, eax
mov edi, ebx
jb 0x511a88
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x511b5c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0051b451
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 0x511b4c
cmp ebx, dword [ebp - 0xc]
jb 0x511b24
cmp dword [ebp - 0xc], 0
je 0x511ae1
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x511ad6
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x511add
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x511aec
mov eax, closesocket
cmp ebx, eax
ja 0x511aec
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x511b88
push eax
push dword [ebp - 8]
push esi
call fcn.00517fbe
pop ecx
push eax
call fcn.0051b354
add esp, 0xc
test eax, eax
je 0x511bc7
cmp eax, 0xffffffff
je 0x511bb5
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x511b4c
push esi
call fcn.0051ac73
cmp eax, 0xffffffff
pop ecx
je 0x511bb9
cmp dword [ebp - 4], 0
je 0x511b88
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 0x511a6b
mov eax, dword [ebp + 0x14]
jmp 0x511a06
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x511b73
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.005117f0
add esp, 0xc
call fcn.00518150
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5119fc
cmp dword [ebp + 0xc], 0xffffffff
je 0x511b9e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.005117f0
add esp, 0xc
call fcn.00518150
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5119fc
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x511a06
or dword [esi + 0xc], 0x10
jmp 0x511bb9
Function at 0x51291c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c4e68]
jne 0x512926
repz ret
jmp fcn.0051c920
Function at 0x51bfc8
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 + 0x5c4d00]
je 0x51bfe3
inc edi
cmp edi, 0x17
jb 0x51bfd4
cmp edi, 0x17
jae 0x51c163
push ebp
push 3
call fcn.00524c36
cmp eax, 1
pop ecx
je 0x51c12f
push 3
call fcn.00524c36
test eax, eax
pop ecx
jne 0x51c017
cmp dword [0x5c42f0], 1
je 0x51c12f
cmp ebx, 0xfc
je 0x51c162
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5d4f60
push ebp
call fcn.00523189
add esp, 0xc
test eax, eax
je 0x51c04d
push esi
push esi
push esi
push esi
push esi
call fcn.00517ff5
add esp, 0x14
push 0x104
mov esi, 0x5d4f79
push esi
push 0
mov byte [0x5d507d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x51c091
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00523189
add esp, 0xc
test eax, eax
je 0x51c091
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00517ff5
add esp, 0x14
push esi
call fcn.005120b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x51c0d6
push esi
call fcn.005120b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5d5274
push 0x56c078
sub ecx, eax
push ecx
push eax
call fcn.005230d6
add esp, 0x14
test eax, eax
je 0x51c0d6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00517ff5
add esp, 0x14
jmp 0x51c0d8
xor esi, esi
push 0x5484fc
push ebx
push ebp
call fcn.0052301c
add esp, 0xc
test eax, eax
je 0x51c0f8
push esi
push esi
push esi
push esi
push esi
call fcn.00517ff5
add esp, 0x14
push dword [edi*8 + 0x5c4d04]
push ebx
push ebp
call fcn.0052301c
add esp, 0xc
test eax, eax
je 0x51c11a
push esi
push esi
push esi
push esi
push esi
call fcn.00517ff5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00524a79
add esp, 0xc
jmp 0x51c162
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x51c162
cmp ebp, 0xffffffff
je 0x51c162
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5c4d04]
push dword [esi]
call fcn.005120b0
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 0x51df99
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x51dfc6
call fcn.00518163
mov dword [eax], esi
call fcn.00518150
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005180f1
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x51dfa2
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x51dff5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00518176
pop ecx
call fcn.00518150
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x51e01c
test al, 1
je 0x51e01c
test byte [esp + 0xc], 2
je 0x51e01c
call fcn.00518163
mov dword [eax], 5
call fcn.00518150
mov dword [eax], 0xd
jmp 0x51dfec
xor eax, eax
pop esi
ret
Function at 0x524a79
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0051a5e1
xor ebx, ebx
cmp dword [0x5d56ec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x524b4f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x524c2f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5301a8
push edi
call esi
cmp eax, ebx
je 0x524c2f
push eax
call fcn.0051a573
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5d56ec], eax
call esi
push eax
call fcn.0051a573
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5d56f0], eax
call esi
push eax
call fcn.0051a573
mov dword [0x5d56f4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00512657
test eax, eax
pop ecx
pop ecx
je 0x524b1d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00517ff5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x524b4f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0051a573
cmp eax, ebx
pop ecx
mov dword [0x5d56fc], eax
je 0x524b4f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0051a573
pop ecx
mov dword [0x5d56f8], eax
mov eax, dword [0x5d56f8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x524bd4
cmp dword [0x5d56fc], ecx
je 0x524bd4
push eax
call fcn.0051a5ea
push dword [0x5d56fc]
mov esi, eax
call fcn.0051a5ea
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x524bd4
cmp edi, ebx
je 0x524bd4
call esi
cmp eax, ebx
je 0x524ba1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x524ba1
test byte [ebp - 0x18], 1
jne 0x524bd4
lea eax, [ebp - 0x10]
push eax
call fcn.005126ca
test eax, eax
pop ecx
je 0x524bbc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00517ff5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x524bcb
or dword [ebp + 0x10], 0x200000
jmp 0x524c0f
or dword [ebp + 0x10], 0x40000
jmp 0x524c0f
mov eax, dword [0x5d56f0]
cmp eax, dword [ebp - 8]
je 0x524c0f
push eax
call fcn.0051a5ea
cmp eax, ebx
pop ecx
je 0x524c0f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x524c0f
mov eax, dword [0x5d56f4]
cmp eax, dword [ebp - 8]
je 0x524c0f
push eax
call fcn.0051a5ea
cmp eax, ebx
pop ecx
je 0x524c0f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5d56ec]
call fcn.0051a5ea
cmp eax, ebx
pop ecx
je 0x524c2f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x524c31
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xb8b1d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x100
push 0x419918
call fcn.00b8d7b6
push 0x419938
call fcn.00b8d7b6
push 0x418874
call fcn.00b8d238
push 0x4198f8
lea eax, [esp + 0x10]
push 0x100
push eax
mov byte [esp + 0x18], 0
call fcn.00b8d702
movsx ecx, byte [esp + 0x18]
push ecx
push 0x418870
call fcn.00b8d350
add esp, 0x20
test eax, eax
jne 0xb8b22b
push 1
call fcn.00b8d6c2
add esp, 0x100
ret