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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 1
call fcn.00472901
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x47c4b6
push esi
call fcn.00472443
push ebx
push esi
call fcn.004b4598
add esp, 0xc
test eax, eax
je 0x47c4bd
mov edi, dword [ebp - 8]
lea esi, [edi + 0xac]
push dword [esi]
push edi
call fcn.00472a9b
push edi
mov dword [esi], ebx
call fcn.00472a36
add esp, 0xc
xor eax, eax
jmp 0x47c5bf
push dword [ebp + 0x20]
mov esi, dword [ebp - 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.00472a02
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00472604
mov ecx, dword [ebp + 8]
mov edi, 0x52a588
mov dword [ebp - 4], ecx
add esp, 0x20
sub dword [ebp - 4], edi
mov eax, edi
mov edx, dword [ebp - 4]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
je 0x47c4ff
or byte [esi + 0x6e], 2
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47c4f1
test byte [esi + 0x6e], 2
je 0x47c57d
cmp ecx, ebx
je 0x47c553
mov al, byte [ecx]
cmp al, byte [0x52a588]
jne 0x47c533
cmp al, 0x31
jne 0x47c529
mov dl, byte [ecx + 2]
cmp dl, byte [0x52a58a]
jne 0x47c533
cmp al, 0x30
jne 0x47c57d
cmp byte [ecx + 2], 0x39
jge 0x47c57d
cmp ecx, ebx
je 0x47c553
push ecx
lea eax, [ebp - 0x58]
push str.Application_was_compiled_with_png.h_from_libpng__.20s
push eax
call fcn.004b0cdd
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.004726aa
add esp, 0x14
push edi
lea eax, [ebp - 0x58]
push str.Application__is__running_with_png.c_from_libpng__.20s
push eax
call fcn.004b0cdd
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.004726aa
push str.Incompatible_libpng_version_in_application_and_library
push esi
mov dword [esi + 0x6c], ebx
call fcn.0047261e
add esp, 0x1c
mov eax, 0x2000
push eax
push esi
mov dword [esi + 0xb0], eax
call fcn.00472a47
push ebx
push ebx
push ebx
push esi
mov dword [esi + 0xac], eax
call fcn.0047b861
push ebx
push ebx
push 1
push ebx
push esi
call fcn.0047c23b
push ebx
push esi
call fcn.004b4598
add esp, 0x34
test eax, eax
je 0x47c5bc
jmp 0x4b47ab
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4813f1
Capabilities:
Query or enumerate registry value
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x48149d
cmp dword [ebp - 4], 1
jbe 0x48149d
cmp dword [ebp - 8], 1
jne 0x48149d
push edi
push dword [ebp - 4]
call fcn.004aeac7
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x48148f
cmp edi, ebx
je 0x48148c
mov esi, dword [ebp + 0x10]
mov ebx, str.____t
push ebx
push edi
call fcn.004b50e0
add edi, eax
push ebx
push edi
mov dword [ebp - 0xc], edi
call fcn.004b50a0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x481478
and byte [edi], 0
inc edi
push dword [ebp - 0xc]
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [esi]
mov dword [esi + ecx*4 + 4], eax
inc dword [esi]
test edi, edi
jne 0x481458
xor ebx, ebx
inc ebx
push dword [ebp - 0x10]
call fcn.004aead9
pop ecx
mov eax, ebx
pop edi
jmp 0x48149f
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x481513
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
and dword [ebp - 0x18], 0
push 0x44
push 1
call fcn.004afff1
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x481534
leave
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push esi
push edi
lea eax, [ebp - 8]
push eax
push str.SYSTEMCurrentControlSetServicesTcpipparametersTransient
mov edi, 0x80000002
push edi
call ebx
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x481570
push dword [ebp - 4]
push str.NameServer
push dword [ebp - 8]
call fcn.004813f1
add esp, 0xc
push dword [ebp - 8]
call esi
lea eax, [ebp - 8]
push eax
push str.SYSTEMCurrentControlSetServicesTcpipparameters
push edi
call ebx
test eax, eax
push dword [ebp - 4]
je 0x481590
call fcn.004aead9
pop ecx
xor eax, eax
jmp 0x481684
push str.NameServer
push dword [ebp - 8]
call fcn.004813f1
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push str.Interfaces
push dword [ebp - 8]
call ebx
test eax, eax
je 0x4815ba
push dword [ebp - 8]
jmp 0x48167f
xor edi, edi
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
jle 0x481677
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x14], 0x44
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x481668
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x481668
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x20]
jl 0x481650
add dword [ebp - 0x14], 0x20
push dword [ebp - 0x14]
add dword [ebp - 0x20], 8
push eax
call fcn.004b12e2
pop ecx
pop ecx
mov dword [ebp - 4], eax
push dword [ebp - 4]
push str.NameServer
push dword [ebp - 0x1c]
call fcn.004813f1
add esp, 0xc
push dword [ebp - 0x1c]
call esi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jl 0x4815f0
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49827c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax], 0x9ac6cdd7
jne 0x4982bc
xor ecx, ecx
mov cx, word [eax]
push esi
push 9
lea edx, [eax + 2]
pop esi
mov dword [ebp + 8], ecx
xor cx, word [edx]
inc edx
inc edx
dec esi
jne 0x498299
cmp cx, word [eax + 0x14]
pop esi
jne 0x4982bc
mov ax, word [eax + 0xe]
test ax, ax
jbe 0x4982bc
cmp ax, 0x9ec
ja 0x4982bc
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x49bcc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ecx, ecx
push esi
xor eax, eax
cmp dword [ebp + 0x10], ecx
push edi
jbe 0x49bcf5
mov esi, dword [ebp + 0xc]
movzx esi, byte [ecx + esi]
mov edx, eax
shr edx, 9
xor edx, eax
shr edx, 7
xor edx, esi
shl eax, 5
xor eax, edx
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x49bcd7
mov esi, dword [ebp + 8]
and eax, 0xff
lea ebx, [esi + eax*4 + 0x2c]
mov edi, dword [ebx]
jmp 0x49bd1c
push dword [ebp + 0xc]
push dword [edi + 4]
call fcn.004b15d0
test eax, eax
pop ecx
pop ecx
je 0x49bdac
mov edi, dword [edi]
test edi, edi
jne 0x49bd05
push 0xc
push esi
call fcn.004182eb
push dword [ebp + 0xc]
mov edi, eax
push esi
call fcn.004183c3
mov dword [edi + 4], eax
mov eax, dword [ebx]
mov dword [edi], eax
mov dword [ebx], edi
mov eax, dword [esi + 0x434]
add esp, 0x10
cmp dword [esi + 0x430], eax
jb 0x49bd73
add eax, 0x400
shl eax, 4
push eax
lea ebx, [esi + 0x42c]
push dword [ebx]
push esi
call fcn.00418362
add esp, 0xc
add dword [esi + 0x434], 0x400
mov dword [ebx], eax
mov eax, dword [esi + 0x430]
mov ecx, dword [esi + 0x42c]
shl eax, 4
and dword [eax + ecx], 0
mov eax, dword [esi + 0x430]
mov dword [edi + 8], eax
inc dword [esi + 0x430]
mov ecx, dword [edi + 8]
mov esi, dword [esi + 0x42c]
mov eax, edi
cdq
shl ecx, 4
mov dword [ecx + esi + 8], eax
mov dword [ecx + esi + 0xc], edx
mov eax, dword [edi + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a1cf0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x558e94]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x4a1d1e
mov ecx, dword [0x558e88]
xor eax, eax
cmp ecx, ebx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, 2
sete cl
push str.USER32
mov dword [0x558e98], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x4a1df3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x532164
push esi
call edi
cmp eax, ebx
mov dword [0x558e78], eax
je 0x4a1df3
push str.MonitorFromWindow
push esi
call edi
cmp eax, ebx
mov dword [0x558e7c], eax
je 0x4a1df3
push str.MonitorFromRect
push esi
call edi
cmp eax, ebx
mov dword [0x558e80], eax
je 0x4a1df3
push str.MonitorFromPoint
push esi
call edi
cmp eax, ebx
mov dword [0x558e84], eax
je 0x4a1df3
push str.EnumDisplayMonitors
push esi
call edi
cmp eax, ebx
mov dword [0x558e8c], eax
je 0x4a1df3
push str.GetMonitorInfoA
push esi
call edi
cmp eax, ebx
mov dword [0x558e88], eax
je 0x4a1df3
push str.EnumDisplayDevicesA
push esi
call edi
cmp eax, ebx
mov dword [0x558e90], eax
je 0x4a1df3
mov eax, 1
mov dword [0x558e94], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x558e78], ebx
mov dword [0x558e7c], ebx
mov dword [0x558e80], ebx
mov dword [0x558e84], ebx
mov dword [0x558e88], ebx
mov dword [0x558e8c], ebx
mov dword [0x558e90], ebx
mov dword [0x558e94], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1039
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004b5dfd
xor esi, esi
inc esi
cmp dword [0x559330], esi
pop ecx
jne 0x4b1061
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x55932c], esi
mov byte [0x559328], al
jne 0x4b10c7
mov ecx, dword [0x55b2cc]
test ecx, ecx
je 0x4b10a8
mov eax, dword [0x55b2c8]
sub eax, 4
cmp eax, ecx
jmp 0x4b10a1
mov eax, dword [eax]
test eax, eax
je 0x4b1093
call eax
mov eax, dword [0x55b2c8]
sub eax, 4
cmp eax, dword [0x55b2cc]
mov dword [0x55b2c8], eax
jae 0x4b108b
mov eax, 0x54f0f0
mov esi, 0x54f0f8
cmp eax, esi
mov edi, eax
jae 0x4b10c7
mov eax, dword [edi]
test eax, eax
je 0x4b10c0
call eax
add edi, 4
cmp edi, esi
jb 0x4b10b8
mov eax, 0x54f0fc
mov esi, 0x54f104
cmp eax, esi
mov edi, eax
jae 0x4b10e6
mov eax, dword [edi]
test eax, eax
je 0x4b10df
call eax
add edi, 4
cmp edi, esi
jb 0x4b10d7
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4b10f7
push 8
call fcn.004b5d69
jmp 0x4b1109
push dword [ebp + 8]
mov dword [0x559330], 1
call fcn.004b0f92
pop ecx
pop ebp
ret

Function at 0x4b29e8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004aeb50
mov eax, dword [0x553bd8]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004bddd1
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4b2b12
push 2
push esi
push dword [ebp + 8]
call fcn.004bddd1
add esp, 0xc
cmp eax, ebx
je 0x4b2b12
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4b2ab5
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004af490
push 0x8000
push dword [ebp + 8]
call fcn.004bdef0
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4b2a6e
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004bd5e2
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b2a8e
sub edi, eax
test edi, edi
jg 0x4b2a66
jmp 0x4b2aa6
call fcn.004b4272
cmp dword [eax], 5
jne 0x4b2aa3
call fcn.004b4269
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004bdef0
pop ecx
pop ecx
jmp 0x4b2afd
jge 0x4b2afd
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004bddd1
push dword [ebp + 8]
call fcn.004bd92d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4b2afd
call fcn.004b4269
mov dword [eax], 0xd
call fcn.004b4272
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004bddd1
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4b2b14
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004bbe84
leave
ret
Function at 0x4b556b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x538030
call fcn.004b4160
mov edi, 0x94
mov eax, edi
call fcn.004aeb50
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x5592f0], ecx
mov eax, dword [esi + 4]
mov dword [0x5592fc], eax
mov edx, dword [esi + 8]
mov dword [0x559300], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5592f4], esi
cmp ecx, 2
je 0x4b55cb
or esi, 0x8000
mov dword [0x5592f4], esi
shl eax, 8
add eax, edx
mov dword [0x5592f8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4b5606
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b5606
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4b561e
cmp eax, 0x20b
je 0x4b560b
mov dword [ebp - 0x1c], esi
jmp 0x4b5632
cmp dword [ecx + 0x84], 0xe
jbe 0x4b5606
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4b562c
cmp dword [ecx + 0x74], 0xe
jbe 0x4b5606
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004b5e48
pop ecx
test eax, eax
jne 0x4b5646
push 0x1c
call fcn.004b5547
pop ecx
call fcn.004b7346
test eax, eax
jne 0x4b5657
push 0x10
call fcn.004b5547
pop ecx
call fcn.004ba115
mov dword [ebp - 4], esi
call fcn.004bdbd3
test eax, eax
jge 0x4b5670
push 0x1b
call fcn.004b5522
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x55a054], eax
call fcn.004c119a
mov dword [0x559360], eax
call fcn.004c10f8
test eax, eax
jge 0x4b5696
push 8
call fcn.004b5522
pop ecx
call fcn.004c0ec5
test eax, eax
jge 0x4b56a7
push 9
call fcn.004b5522
pop ecx
call fcn.004b0fd4
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4b56ba
push eax
call fcn.004b5522
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004c0e5c
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4b56db
movzx eax, word [ebp - 0x34]
jmp 0x4b56de
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004d0d30
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4b56fc
push edi
call fcn.004b110c
call fcn.004b112e
jmp 0x4b572e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004b419b
ret
Function at 0x4b82b7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4b847d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x559f20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4b847d
test cl, 0x48
je 0x4b831d
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4b831d
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b836f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4b8357
call fcn.004b4269
mov dword [eax], 9
call fcn.004b4272
mov dword [eax], esi
jmp 0x4b8367
cmp eax, 0x6d
je 0x4b847d
push eax
call fcn.004b427b
pop ecx
or eax, 0xffffffff
jmp 0x4b847f
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4b8478
test edx, edx
je 0x4b8392
cmp byte [ebx], 0xa
jne 0x4b8392
or al, 4
jmp 0x4b8394
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4b8472
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4b8462
cmp al, 0xd
je 0x4b83c8
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4b8454
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4b83e2
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4b83dd
add dword [ebp + 0x10], 2
jmp 0x4b8436
mov dword [ebp + 0x10], eax
jmp 0x4b8450
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b840a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b8450
cmp dword [ebp - 0xc], 0
je 0x4b8450
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4b842b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4b8436
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4b8453
cmp ebx, dword [ebp + 0xc]
jne 0x4b843b
cmp byte [ebp - 1], 0xa
jne 0x4b843b
mov byte [ebx], 0xa
jmp 0x4b8453
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bddd1
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4b8454
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4b83ac
jmp 0x4b8472
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4b8472
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4b847f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bbb57
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004aeb50
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4bbbec
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x5592f0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4bbbec
cmp eax, 1
je 0x4bbc04
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4bbbec
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4bbbc1
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4bbbe8
xor eax, eax
inc eax
jmp 0x4bbc20
cmp esi, ebx
jae 0x4bbbf0
xor eax, eax
jmp 0x4bbc20
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x5592f0]
jmp 0x4bbc06
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bd5e2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x553bd8]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4bd60b
xor eax, eax
jmp 0x4bd779
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x559f20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4bd63e
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004bdb50
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4bd710
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4bd74b
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4bd699
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4bd68a
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4bd66d
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4bd6d9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4bd6e2
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4bd65e
jmp 0x4bd6e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4bd774
cmp dword [ebp - 8], edi
je 0x4bd74b
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4bd73d
call fcn.004b4269
mov dword [eax], 9
call fcn.004b4272
mov dword [eax], esi
jmp 0x4bd746
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4bd732
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4bd6e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4bd6e4
push dword [ebp - 8]
call fcn.004b427b
pop ecx
or eax, 0xffffffff
jmp 0x4bd777
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4bd760
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4bd760
xor eax, eax
jmp 0x4bd777
call fcn.004b4269
mov dword [eax], 0x1c
call fcn.004b4272
mov dword [eax], edi
jmp 0x4bd746
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004bbe84
leave
ret
Function at 0x4c0a8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x553bd8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x553f90]
je 0x4c0aba
inc eax
cmp eax, 0x12
jb 0x4c0aab
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x553f90]
jne 0x4c0bee
mov eax, dword [0x559368]
cmp eax, 1
je 0x4c0bc9
cmp eax, edx
jne 0x4c0aea
cmp dword [0x553774], 1
je 0x4c0bc9
cmp ecx, 0xfc
je 0x4c0bee
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c0b23
lea eax, [ebp - 0x10c]
push 0x53d6a0
push eax
call fcn.004af6d0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004af4f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c0b65
lea eax, [ebp - 0x10c]
push eax
call fcn.004af4f0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x504d08
push edi
call fcn.004b1e40
add esp, 0x10
push edi
call fcn.004af4f0
push dword [esi + 0x553f94]
mov ebx, eax
call fcn.004af4f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004aeb50
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004af6d0
push edi
push ebx
call fcn.004af6e0
push 0x53d680
push ebx
call fcn.004af6e0
push dword [esi + 0x553f94]
push ebx
call fcn.004af6e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004c4489
add esp, 0x2c
jmp 0x4c0bee
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x553f94]
push dword [esi]
call fcn.004af4f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004bbe84
pop edi
pop esi
pop ebx
leave
ret