joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d8853
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.00455850
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0
call fcn.00456de0
test eax, eax
jne 0x453b17
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004558d0
xor eax, eax
pop edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov eax, dword [edi + 8]
test eax, eax
push esi
je 0x453b83
mov esi, dword [eax]
test esi, esi
je 0x453b83
push 0x54
call fcn.004c73ca
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov byte [esp + 0x34], 1
je 0x453b45
mov ecx, eax
call fcn.004690d0
jmp 0x453b47
xor eax, eax
mov edx, dword [edi + 0x10]
mov ecx, dword [esi + 8]
push edi
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x48], eax
call fcn.00469730
test eax, eax
je 0x453bac
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 4]
push 1
push eax
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0044e2b0
mov esi, dword [esi]
test esi, esi
jne 0x453b25
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.004558d0
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.004558d0
mov ecx, dword [esp + 0x2c]
pop esi
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x4541c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d88c8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
push 0x18
mov edi, ecx
call fcn.004c73ca
add esp, 4
test eax, eax
je 0x4541f9
push 1
push 1
mov ecx, eax
call fcn.00421cc0
mov ebx, eax
jmp 0x4541fb
xor ebx, ebx
lea ecx, [esp + 8]
call fcn.00455850
mov eax, dword [esp + 0x34]
push ebx
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0
call fcn.00456de0
test eax, eax
jne 0x454245
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004558d0
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push esi
mov esi, dword [ebx]
mov eax, dword [esi + 8]
test eax, eax
jne 0x454276
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004558d0
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push eax
mov ecx, edi
call fcn.00454070
test eax, eax
je 0x45424f
mov esi, dword [esi]
test esi, esi
je 0x454299
mov ecx, dword [esi + 8]
push ecx
mov ecx, edi
call fcn.00453dd0
mov esi, dword [esi]
test esi, esi
jne 0x454288
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov esi, dword [ebx]
test esi, esi
je 0x4542c0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4542ba
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 8], 0
mov esi, dword [esi]
test esi, esi
jne 0x4542a6
mov ecx, ebx
call fcn.00459c70
mov ecx, ebx
call fcn.00459c70
push ebx
call fcn.004c73dc
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004558d0
mov ecx, dword [esp + 0x28]
pop esi
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x457250
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
test byte [0x513d8c], 1
jne 0x457275
mov ecx, dword [0x513d8c]
or ecx, 1
push 0
mov dword [0x513d8c], ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x513d88], eax
push 0x513c88
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x457287
ret 8
mov eax, dword [0x513d88]
push esi
mov esi, dword [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
mov ecx, dword [0x513d88]
mov edx, dword [esp + 0xc]
push ecx
push 0
push edx
push 0x513c88
push esi
push eax
call dword [sym.imp.USER32.dll_ToAsciiEx]
pop esi
ret 8
Function at 0x4c8f45
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4f8da0
call fcn.004cc4c0
mov edi, 0x94
mov eax, edi
call fcn.004c8ab0
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 [0x515888], ecx
mov eax, dword [esi + 4]
mov dword [0x515894], eax
mov edx, dword [esi + 8]
mov dword [0x515898], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x51588c], esi
cmp ecx, 2
je 0x4c8fa5
or esi, 0x8000
mov dword [0x51588c], esi
shl eax, 8
add eax, edx
mov dword [0x515890], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4c8fe0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c8fe0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4c8ff8
cmp eax, 0x20b
je 0x4c8fe5
mov dword [ebp - 0x1c], esi
jmp 0x4c900c
cmp dword [ecx + 0x84], 0xe
jbe 0x4c8fe0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4c9006
cmp dword [ecx + 0x74], 0xe
jbe 0x4c8fe0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004ccb17
pop ecx
test eax, eax
jne 0x4c9020
push 0x1c
call fcn.004c8f21
pop ecx
call fcn.004cb974
test eax, eax
jne 0x4c9031
push 0x10
call fcn.004c8f21
pop ecx
call fcn.004d1f1a
mov dword [ebp - 4], esi
call fcn.004d1d1c
test eax, eax
jge 0x4c904a
push 0x1b
call fcn.004c8efc
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x517084], eax
call fcn.004d1bfa
mov dword [0x515874], eax
call fcn.004d1b58
test eax, eax
jge 0x4c9070
push 8
call fcn.004c8efc
pop ecx
call fcn.004d1925
test eax, eax
jge 0x4c9081
push 9
call fcn.004c8efc
pop ecx
call fcn.004cacf7
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4c9094
push eax
call fcn.004c8efc
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004d18bc
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4c90b5
movzx eax, word [ebp - 0x34]
jmp 0x4c90b8
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0041bed0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4c90d6
push edi
call fcn.004cae2f
call fcn.004cae51
jmp 0x4c9108
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004cc4fb
ret
Function at 0x4cad5c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004ccacc
xor esi, esi
inc esi
cmp dword [0x5158c8], esi
pop ecx
jne 0x4cad84
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 [0x5158c4], esi
mov byte [0x5158c0], al
jne 0x4cadea
mov ecx, dword [0x516074]
test ecx, ecx
je 0x4cadcb
mov eax, dword [0x516070]
sub eax, 4
cmp eax, ecx
jmp 0x4cadc4
mov eax, dword [eax]
test eax, eax
je 0x4cadb6
call eax
mov eax, dword [0x516070]
sub eax, 4
cmp eax, dword [0x516074]
mov dword [0x516070], eax
jae 0x4cadae
mov eax, 0x504200
mov esi, 0x504208
cmp eax, esi
mov edi, eax
jae 0x4cadea
mov eax, dword [edi]
test eax, eax
je 0x4cade3
call eax
add edi, 4
cmp edi, esi
jb 0x4caddb
mov eax, 0x50420c
mov esi, 0x504214
cmp eax, esi
mov edi, eax
jae 0x4cae09
mov eax, dword [edi]
test eax, eax
je 0x4cae02
call eax
add edi, 4
cmp edi, esi
jb 0x4cadfa
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4cae1a
push 8
call fcn.004cca38
jmp 0x4cae2c
push dword [ebp + 8]
mov dword [0x5158c8], 1
call fcn.004cacb5
pop ecx
pop ebp
ret
Function at 0x4cf8c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x511038]
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 0x4cf8f2
xor eax, eax
jmp 0x4cfa60
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 + 0x515f40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4cf925
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004d5342
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4cf9f7
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4cfa32
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 0x4cf980
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4cf971
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 0x4cf954
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 0x4cf9c0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4cf9c9
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4cf945
jmp 0x4cf9cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4cfa5b
cmp dword [ebp - 8], edi
je 0x4cfa32
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4cfa24
call fcn.004c9f04
mov dword [eax], 9
call fcn.004c9f0d
mov dword [eax], esi
jmp 0x4cfa2d
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 0x4cfa19
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4cf9cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4cf9cb
push dword [ebp - 8]
call fcn.004c9f16
pop ecx
or eax, 0xffffffff
jmp 0x4cfa5e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4cfa47
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4cfa47
xor eax, eax
jmp 0x4cfa5e
call fcn.004c9f04
mov dword [eax], 0x1c
call fcn.004c9f0d
mov dword [eax], edi
jmp 0x4cfa2d
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004c72c5
leave
ret
Function at 0x4d0394
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 0x4d055c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x515f40]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4d055c
test cl, 0x48
je 0x4d03fa
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4d03fa
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 0x4d044c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4d0434
call fcn.004c9f04
mov dword [eax], 9
call fcn.004c9f0d
mov dword [eax], esi
jmp 0x4d0444
cmp eax, 0x6d
je 0x4d055c
push eax
call fcn.004c9f16
pop ecx
or eax, 0xffffffff
jmp 0x4d055e
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 0x4d0557
test edx, edx
je 0x4d046f
cmp byte [ebx], 0xa
jne 0x4d046f
or al, 4
jmp 0x4d0471
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 0x4d0551
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4d0541
cmp al, 0xd
je 0x4d04a5
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4d0533
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4d04bf
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4d04ba
add dword [ebp + 0x10], 2
jmp 0x4d0513
mov dword [ebp + 0x10], eax
jmp 0x4d052f
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 0x4d04e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d052f
cmp dword [ebp - 0xc], 0
je 0x4d052f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4d0508
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4d0513
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4d0532
cmp ebx, dword [ebp + 0xc]
jne 0x4d0518
cmp byte [ebp - 1], 0xa
jne 0x4d0518
mov byte [ebx], 0xa
jmp 0x4d0532
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004d5342
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4d0533
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4d0489
jmp 0x4d0551
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4d0551
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4d055e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d15a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x511038]
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 + 0x511a20]
je 0x4d15d5
inc eax
cmp eax, 0x12
jb 0x4d15c6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x511a20]
jne 0x4d1709
mov eax, dword [0x51587c]
cmp eax, 1
je 0x4d16e4
cmp eax, edx
jne 0x4d1605
cmp dword [0x5110dc], 1
je 0x4d16e4
cmp ecx, 0xfc
je 0x4d1709
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 0x4d163e
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004cb110
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004cb210
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4d1680
lea eax, [ebp - 0x10c]
push eax
call fcn.004cb210
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4f90b4
push edi
call fcn.004c9950
add esp, 0x10
push edi
call fcn.004cb210
push dword [esi + 0x511a24]
mov ebx, eax
call fcn.004cb210
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004c8ab0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004cb110
push edi
push ebx
call fcn.004cb120
push 0x4f90b0
push ebx
call fcn.004cb120
push dword [esi + 0x511a24]
push ebx
call fcn.004cb120
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004d434c
add esp, 0x2c
jmp 0x4d1709
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x511a24]
push dword [esi]
call fcn.004cb210
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.004c72c5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d434c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x515be4], ebx
push esi
push edi
jne 0x4d43cc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4d4407
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x515be4], eax
je 0x4d4407
push 0x4fe794
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x515be8], eax
call esi
cmp dword [0x515888], 2
mov dword [0x515bec], eax
jne 0x4d43cc
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x515bf4], eax
je 0x4d43cc
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x515bf0], eax
mov eax, dword [0x515bf0]
test eax, eax
je 0x4d4411
call eax
test eax, eax
je 0x4d43f8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x515bf4]
test eax, eax
je 0x4d43f8
test byte [ebp - 8], 1
jne 0x4d4411
cmp dword [0x515894], 4
jb 0x4d440b
or byte [ebp + 0x12], 0x20
jmp 0x4d4430
xor eax, eax
jmp 0x4d4440
or byte [ebp + 0x12], 4
jmp 0x4d4430
mov eax, dword [0x515be8]
test eax, eax
je 0x4d4430
call eax
mov ebx, eax
test ebx, ebx
je 0x4d4430
mov eax, dword [0x515bec]
test eax, eax
je 0x4d4430
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x515be4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d5971
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.004c8ab0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d5a06
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 [0x515888]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4d5a06
cmp eax, 1
je 0x4d5a1e
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 0x4d5a06
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4d59db
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4d5a02
xor eax, eax
inc eax
jmp 0x4d5a3a
cmp esi, ebx
jae 0x4d5a0a
xor eax, eax
jmp 0x4d5a3a
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x515888]
jmp 0x4d5a20
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 0x4d61bd
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004c8ab0
mov eax, dword [0x511038]
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.004d0194
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4d62e7
push 2
push esi
push dword [ebp + 8]
call fcn.004d0194
add esp, 0xc
cmp eax, ebx
je 0x4d62e7
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4d628a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004ca370
push 0x8000
push dword [ebp + 8]
call fcn.004d6361
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4d6243
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004cf8c9
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d6263
sub edi, eax
test edi, edi
jg 0x4d623b
jmp 0x4d627b
call fcn.004c9f0d
cmp dword [eax], 5
jne 0x4d6278
call fcn.004c9f04
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004d6361
pop ecx
pop ecx
jmp 0x4d62d2
jge 0x4d62d2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004d0194
push dword [ebp + 8]
call fcn.004d511f
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 0x4d62d2
call fcn.004c9f04
mov dword [eax], 0xd
call fcn.004c9f0d
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.004d0194
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4d62e9
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004c72c5
leave
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x79c3bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x79c3c6
pushal
call 0x79c3cc
pop ebp
sub ebp, 0x10
sub ebp, 0x39c3bc
jmp 0x79c3e2
mov eax, 0x39c3bc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ff
mov edx, 0x8e334b8d
xor byte [eax], dl
inc eax
dec ecx
jne 0x79c3f9
jmp 0x79c40c
push es
inc eax
push es
add al, 0xb1
lea ecx, [ebp + 0x754c0c8d]
lea ecx, [ebp + 0x35408e8d]
mov dword [ebp - 0x5ac87273], ecx
lea ecx, [ebp - 0x71908573]
inc ebp
push es
or al, 0x81
lea ecx, [ebp + 0x488e8d]
jmp 0x897e35e1