joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482313
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
test esi, esi
push edi
je 0x48249d
push 1
push 0x20
call fcn.004b422c
pop ecx
mov edi, eax
test edi, edi
pop ecx
push 0x20
jne 0x482346
push str.TelNetStartConditionRoutine___FAILED:_Could_not_create_new_condition_node_of_size__ld:_OUT_OF_MEMORY_
call fcn.004178df
pop ecx
jmp 0x48249c
push 0
push edi
call fcn.004b53e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x10], esi
mov esi, str..TelNet.c
push esi
mov ebx, 0xb2e
push ebx
push 1
mov dword [edi + 4], eax
mov dword [edi + 0x14], ecx
call fcn.004819b5
add esp, 0x18
test eax, eax
je 0x482496
mov eax, dword [ebp + 8]
push ebx
call fcn.00485265
test eax, eax
pop ecx
je 0x482496
cmp dword [0x642cb4], 0
jne 0x4823b6
call fcn.0046ed85
test eax, eax
mov dword [0x642cb4], eax
jne 0x4823b6
push str.TelNetStartConditionRoutine___FAILED_because_CreatePtrList___FAILED_
call fcn.004178df
push edi
call fcn.004b4080
jmp 0x482340
push 0xb3e
push esi
push edi
push 0x483323
push 0x3f70
mov ecx, str.TelNetCreateConditionID
call fcn.0041d5ba
mov ebx, eax
test ebx, ebx
jne 0x482415
push 0xb43
push esi
push edi
push 0x483323
push eax
mov ecx, str.TelNetCreateConditionID
call fcn.0041d5ba
mov ebx, eax
test ebx, ebx
jne 0x482415
mov esi, dword [ebp + 8]
call fcn.00483344
push eax
push str.TelNetStartConditionRoutine___FAILED:_Could_not_start_the_given_TelNet_Condition_Routine:__GetLastError_:_Currently__ld_condition_routines_are_active.
call fcn.004178df
pop ecx
pop ecx
mov eax, esi
call fcn.004852a9
jmp 0x48249d
push dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
call fcn.0047ccc0
mov esi, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push edi
push esi
push str.Called_for__p_HTELNET___p_Condition__from__s___in___s__line_d.
push ebx
call fcn.0041d7b6
add esp, 0x1c
mov dword [edi + 8], ebx
mov dword [edi], ebx
lea eax, [esi + 0xaac]
jmp 0x482446
mov eax, ecx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x482444
lea ebx, [esi + 0xac4]
mov dword [eax + 0x1c], edi
inc dword [ebx]
cmp dword [ebx], 0xc
jle 0x48247f
call fcn.004a4ba8
sub eax, dword [0x642ddc]
cmp eax, 0xea60
jbe 0x48247f
push dword [ebx]
push esi
push str.:8:FYI:_The_number_of_condition_routines_for_a_single_TelNet_session___p__has_reached__d_
call fcn.00417db7
add esp, 0xc
mov eax, dword [0x642cb4]
push edi
call fcn.0046ee6e
pop ecx
mov eax, esi
call fcn.004852a9
mov eax, edi
jmp 0x48249f
push edi
call fcn.004b4080
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x482cab
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
mov ebx, eax
jge 0x482cbc
and dword [ebp + 8], 0
test ebx, ebx
jge 0x482cc2
xor ebx, ebx
cmp dword [ebp + 8], ebx
jg 0x482d26
push str..TelNet.c
mov esi, 0xe15
push esi
push 1
mov eax, edi
call fcn.004819b5
add esp, 0xc
test eax, eax
je 0x482d26
push esi
mov eax, edi
call fcn.00485265
test eax, eax
pop ecx
je 0x482d26
mov eax, dword [edi + 0xf4]
cmp dword [ebp + 8], eax
jle 0x482cfd
mov dword [ebp + 8], eax
cmp ebx, eax
jle 0x482d03
mov ebx, eax
push 1
push 0x10
call fcn.004b422c
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x482d2c
mov eax, edi
call fcn.004852a9
push str.TelNetCreateVirtualFile___FAILED:_Could_not_create_virtual_file_handle:__OUT_OF_MEMORY__
call fcn.004178df
pop ecx
xor eax, eax
pop esi
pop ebx
pop ebp
ret
push 0x10
push 0
push esi
call fcn.004b53e0
lea eax, [edi + 0xdc]
mov dword [esi], edi
mov cx, word [eax]
imul cx, word [ebp + 8]
add esp, 0xc
inc ebx
mov word [esi + 4], cx
imul bx, word [eax]
mov ax, cx
dec bx
and word [esi + 8], 0
mov word [esi + 0xa], ax
mov word [esi + 6], bx
lea eax, [edi + 0xafc]
jmp 0x482d6e
mov eax, ecx
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x482d6c
mov dword [eax + 0xc], esi
mov eax, dword [0x642cb0]
test eax, eax
jne 0x482d8b
call fcn.0046ed85
mov dword [0x642cb0], eax
push esi
call fcn.0046ee6e
pop ecx
mov eax, edi
call fcn.004852a9
mov eax, esi
jmp 0x482d28
Function at 0x4851f0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x20]
mov eax, dword [ebp + 8]
call fcn.0048522d
test eax, eax
pop ecx
jne 0x485208
push 2
pop eax
pop ebp
ret
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.0048524f
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4a5b71
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x5345d0]
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.004b53e0
add esp, 0xc
push 0x13c
lea eax, [ebp - 0x24c]
push esi
push eax
mov dword [ebp - 0x250], esi
call fcn.004b53e0
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.004a4ba8
sub eax, dword [0x646058]
cmp eax, 0x493e0
jae 0x4a5c01
xor eax, eax
jmp 0x4a5d36
call fcn.004a4ba8
mov dword [0x646058], eax
call fcn.004a5054
test eax, eax
je 0x4a5bfa
push 0x645820
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.0047c3fc
pop ecx
call fcn.0047c73c
push str.PAULATempTimeDetectionFile
push 0x4f82f4
push eax
call fcn.0047d9c7
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 0x4a5bfa
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 0x4a5ca5
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.004a428c
add esp, 0x20
cmp eax, 0xdbba0
jle 0x4a5d09
lea eax, [ebp - 0x110]
call fcn.0047c73c
lea eax, [ebp - 0x224]
push eax
mov eax, 0x104
lea esi, [ebp - 0x110]
call fcn.0047c4cc
pop ecx
mov eax, esi
call fcn.0041aa09
test eax, eax
je 0x4a5d09
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 0x4a5c7a
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.004b4c95
leave
ret
Function at 0x4a6734
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.0047c3ca
test eax, eax
je 0x4a675e
xor eax, eax
jmp 0x4a67ba
test ebx, ebx
mov esi, str..Time.c
jne 0x4a6780
push 0xb92
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004a57c9
add esp, 0xc
test eax, eax
je 0x4a675a
lea ebx, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push 0xb9a
push esi
mov edx, 0x4d36e8
call fcn.0041cea8
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4a675a
push edi
push 1
push 0x10
push ebx
call fcn.004b43ca
add esp, 0x10
mov esi, eax
dec esi
neg esi
sbb esi, esi
mov ecx, edi
inc esi
call fcn.0041d2f0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a67bf
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 0x4a67eb
push 0x10
push ebx
push edi
call fcn.004b53e0
add esp, 0xc
mov edx, dword [ebp + 0xc]
call fcn.0047c3ca
test eax, eax
je 0x4a67fb
xor eax, eax
jmp 0x4a6853
mov ecx, dword [ebp + 0xc]
push 0xbba
push str..Time.c
mov edx, 0x4d3128
call fcn.0041cea8
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4a67f7
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004b53e0
push esi
push 1
lea eax, [ebp - 0x10]
push 0x10
push eax
call fcn.004b56f6
add esp, 0x1c
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
mov ecx, esi
inc ebx
call fcn.0041d2f0
test edi, edi
je 0x4a6851
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 0x4a6c60
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 [0x6460d8], eax
je 0x4a6d68
call fcn.004a4ba8
mov dword [0x6460dc], eax
cmp dword [0x6460d8], ebx
jne 0x4a6dba
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4a6da2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [esp + 0x14], ebx
jne 0x4a6ceb
call fcn.0040a328
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4a6da6
cmp dword [esp + 0x10], ebx
jne 0x4a6da6
lea eax, [esp + 0x20]
push eax
call fcn.0040a328
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 0x4a6d98
cmp eax, dword [esp + 0x28]
jge 0x4a6d98
cmp dword [esp + 0x1c], ecx
jle 0x4a6d98
push 0xf
call esi
add eax, dword [esp + 0x24]
cmp dword [esp + 0x1c], eax
jge 0x4a6d98
mov dword [0x6460bc], 1
call fcn.004a4ba8
mov dword [0x6460c0], eax
jmp 0x4a6da6
call fcn.004a4ba8
sub eax, dword [0x6460dc]
cmp eax, 0xde
jae 0x4a6ca6
call fcn.004a4ba8
sub eax, dword [0x6460dc]
push eax
push str.:7:CheckForMouseButton___was_called_consecutively_too_quickly:__dms
call fcn.00417db7
pop ecx
pop ecx
jmp 0x4a6dba
mov dword [esp + 0x10], 1
jmp 0x4a6da6
mov dword [esp + 0x10], ebx
push 0x16
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6460d8], ebx
je 0x4a6cb8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ad43a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x110], bl
call fcn.004b53e0
add esp, 0xc
push str.Live2.ark
lea edi, [ebp - 0x110]
call fcn.0044286c
pop ecx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x124]
mov edx, edi
call fcn.00401c59
test eax, eax
pop ecx
jne 0x4ad4b6
xor eax, eax
jmp 0x4ad53b
call fcn.004a4ba8
push ebx
push ebx
mov esi, eax
call fcn.0045e8df
push eax
lea eax, [ebp - 0x110]
push str._sLUA.DAT
push eax
call fcn.004b532e
add esp, 0x14
mov dword [ebp - 0x114], ebx
push 0x2e6
push str..UpdatePAULA2.c
mov edx, 0x4d3128
lea ecx, [ebp - 0x110]
call fcn.0041cea8
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x4ad54a
lea edi, [ebp - 0x110]
call fcn.0041b048
test eax, eax
je 0x4ad538
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004a4ba8
sub eax, esi
cmp eax, 0x157c
ja 0x4ad538
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 0xf
jl 0x4ad4df
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret
push edi
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x11c]
push 4
push eax
call fcn.004b56f6
add esp, 0x10
cmp eax, esi
je 0x4ad577
lea eax, [ebp - 0x110]
push eax
push str.:8:IsNewUpdateAvailable___encountered_a_problem:_fread___s___FAILED_to_read_the_archive_size_
call fcn.00417db7
pop ecx
pop ecx
push edi
push esi
lea eax, [ebp - 0x118]
push 4
push eax
call fcn.004b56f6
add esp, 0x10
cmp eax, esi
je 0x4ad5a1
lea eax, [ebp - 0x110]
push eax
push str.:8:IsNewUpdateAvailable___encountered_a_problem:_fread___s___FAILED_to_read_the_archive_CheckSum_
call fcn.00417db7
pop ecx
pop ecx
mov ecx, edi
call fcn.0041d2f0
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x118]
jne 0x4ad5c8
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x11c]
je 0x4ad4af
mov eax, esi
jmp 0x4ad53b
Function at 0x4ad5cf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x110], bl
call fcn.004b53e0
add esp, 0xc
mov edx, esi
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
call fcn.0047c3ca
test eax, eax
je 0x4ad622
xor eax, eax
jmp 0x4ad73e
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
mov edx, esi
call fcn.00401c59
test eax, eax
pop ecx
jne 0x4ad64a
push esi
push str.:6:SetLastSuccessfulUpdate___FAILED:_GetArchiveCheckSum___s___FAILED.
call fcn.004178df
pop ecx
pop ecx
jmp 0x4ad61b
call fcn.004a4ba8
push ebx
push ebx
mov esi, eax
call fcn.0045e8df
push eax
lea eax, [ebp - 0x110]
push str._sLUA.DAT
push eax
call fcn.004b532e
add esp, 0x14
mov dword [ebp - 0x114], ebx
push 0x327
push str..UpdatePAULA2.c
mov edx, 0x4d36e8
lea ecx, [ebp - 0x110]
call fcn.0041cea8
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x4ad6de
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004a4ba8
sub eax, esi
cmp eax, 0x157c
ja 0x4ad6bd
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 0xf
jl 0x4ad673
call fcn.004a4ba8
sub eax, esi
push eax
lea eax, [ebp - 0x110]
push eax
push str.:8:SetLastSuccessfulUpdate___FAILED:_The_last_applied_update_file___s__could_not_be_opened_for_writing_after__ldms_
call fcn.004178df
add esp, 0xc
jmp 0x4ad61b
push edi
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x118]
push 4
push eax
call fcn.004b43ca
add esp, 0x10
cmp eax, esi
je 0x4ad70b
lea eax, [ebp - 0x110]
push eax
push str.:8:SetLastSuccessfulUpdate___encountered_a_problem:_fwrite___s___FAILED_to_write_the_archive_size_
call fcn.00417db7
pop ecx
pop ecx
push edi
push esi
lea eax, [ebp - 0x11c]
push 4
push eax
call fcn.004b43ca
add esp, 0x10
cmp eax, esi
je 0x4ad735
lea eax, [ebp - 0x110]
push eax
push str.:8:SetLastSuccessfulUpdate___encountered_a_problem:_fwrite___s___FAILED_to_write_the_archive_CheckSum_
call fcn.00417db7
pop ecx
pop ecx
mov ecx, edi
call fcn.0041d2f0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret
Function at 0x4b4c95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5345d0]
jne 0x4b4c9f
repz ret
jmp fcn.004bc47a
Function at 0x4b545a
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 0x4b5497
cmp dword [ebp + 0x14], edi
je 0x4b5497
cmp ecx, edi
jne 0x4b549e
call fcn.004ba55b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004bb628
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4b54b2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4b54d3
cmp ebx, 0xffffffff
je 0x4b54c2
push ebx
push edi
push ecx
call fcn.004b53e0
add esp, 0xc
cmp esi, edi
je 0x4b547f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4b547f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4b54ef
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4b54f6
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4b55e7
test word [esi + 0xc], 0x10c
je 0x4b554a
mov eax, dword [esi + 4]
test eax, eax
je 0x4b554a
jl 0x4b5648
cmp ebx, eax
mov edi, ebx
jb 0x4b551b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4b55ef
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004be992
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 0x4b55df
cmp ebx, dword [ebp - 0xc]
jb 0x4b55b7
cmp dword [ebp - 0xc], 0
je 0x4b5574
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4b5569
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4b5570
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4b557f
mov eax, closesocket
cmp ebx, eax
ja 0x4b557f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4b561b
push eax
push dword [ebp - 8]
push esi
call fcn.004bbeaa
pop ecx
push eax
call fcn.004be895
add esp, 0xc
test eax, eax
je 0x4b565a
cmp eax, 0xffffffff
je 0x4b5648
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4b55df
push esi
call fcn.004bc35a
cmp eax, 0xffffffff
pop ecx
je 0x4b564c
cmp dword [ebp - 4], 0
je 0x4b561b
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 0x4b54fe
mov eax, dword [ebp + 0x14]
jmp 0x4b5499
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b5606
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004b53e0
add esp, 0xc
call fcn.004ba55b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4b548f
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b5631
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004b53e0
add esp, 0xc
call fcn.004ba55b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4b548f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4b5499
or dword [esi + 0xc], 0x10
jmp 0x4b564c
Function at 0x4bead2
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 + 0x534d00]
je 0x4beaed
inc edi
cmp edi, 0x17
jb 0x4beade
cmp edi, 0x17
jae 0x4bec6d
push ebp
push 3
call fcn.004c64bd
cmp eax, 1
pop ecx
je 0x4bec39
push 3
call fcn.004c64bd
test eax, eax
pop ecx
jne 0x4beb21
cmp dword [0x5342f0], 1
je 0x4bec39
cmp ebx, 0xfc
je 0x4bec6c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x543540
push ebp
call fcn.004c60c9
add esp, 0xc
test eax, eax
je 0x4beb57
push esi
push esi
push esi
push esi
push esi
call fcn.004bb52c
add esp, 0x14
push 0x104
mov esi, 0x543559
push esi
push 0
mov byte [0x54365d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4beb9b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004c60c9
add esp, 0xc
test eax, eax
je 0x4beb9b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004bb52c
add esp, 0x14
push esi
call fcn.004b4450
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4bebe0
push esi
call fcn.004b4450
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x543854
push 0x4cf208
sub ecx, eax
push ecx
push eax
call fcn.004c6016
add esp, 0x14
test eax, eax
je 0x4bebe0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004bb52c
add esp, 0x14
jmp 0x4bebe2
xor esi, esi
push 0x4e58a4
push ebx
push ebp
call fcn.004c5f59
add esp, 0xc
test eax, eax
je 0x4bec02
push esi
push esi
push esi
push esi
push esi
call fcn.004bb52c
add esp, 0x14
push dword [edi*8 + 0x534d04]
push ebx
push ebp
call fcn.004c5f59
add esp, 0xc
test eax, eax
je 0x4bec24
push esi
push esi
push esi
push esi
push esi
call fcn.004bb52c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004c6300
add esp, 0xc
jmp 0x4bec6c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4bec6c
cmp ebp, 0xffffffff
je 0x4bec6c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x534d04]
push dword [esi]
call fcn.004b4450
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 0x4bf2e9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4bf316
call fcn.004ba56e
mov dword [eax], esi
call fcn.004ba55b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004bb628
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4bf2f2
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bf345
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ba581
pop ecx
call fcn.004ba55b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4bf36c
test al, 1
je 0x4bf36c
test byte [esp + 0xc], 2
je 0x4bf36c
call fcn.004ba56e
mov dword [eax], 5
call fcn.004ba55b
mov dword [eax], 0xd
jmp 0x4bf33c
xor eax, eax
pop esi
ret