joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4938be
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x18]
push ebp
mov ebp, dword [edx + 0x1050]
push edi
mov edi, dword [edx + 0x105c]
imul edi, ebp
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x18]
add edi, eax
cmp eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
jae 0x493a02
push ebx
push esi
mov esi, 0xff00
mov ebx, dword [esp + 0x14]
mov edx, dword [edx + 0x1058]
lea edx, [eax + edx*2]
mov dword [esp + 0x10], ebx
add ebp, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edx
jae 0x4939dc
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
movzx eax, word [ebp + 2]
movzx ebp, word [ebp]
mov dword [esp + 0x18], edx
mov ebx, eax
mov ecx, 0xff
and bx, cx
and dx, cx
add ebx, edx
mov edx, ebp
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, eax
and cx, si
and eax, esi
lea edx, [ebx + edx + 2]
mov ebx, dword [esp + 0x18]
and bx, si
shr edx, 2
add ecx, ebx
mov ebx, ebp
and bx, si
and ebp, esi
add ecx, ebx
mov ebx, edi
and bx, si
and edi, esi
lea ecx, [ecx + ebx + 0x200]
mov ebx, dword [esp + 0x1c]
shr ecx, 2
xor dl, cl
mov ecx, dword [esp + 0x18]
and ecx, esi
add eax, ecx
add eax, ebp
mov ebp, dword [esp + 0x20]
lea eax, [eax + edi + 0x200]
shr eax, 2
and edx, 0xffff00ff
xor edx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
add ebx, 4
add ebp, 4
cmp ebx, dword [esp + 0x28]
mov word [eax], dx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
jb 0x493927
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 0x1050]
add dword [esp + 0x14], edx
mov edx, dword [ecx]
mov ebp, dword [edx + 0x1050]
lea eax, [eax + ebp*2]
cmp eax, edi
mov dword [esp + 0x24], eax
jb 0x4938fe
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x493a0a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
push esi
mov esi, dword [edx + 0x105c]
push edi
mov edi, dword [edx + 0x1050]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x493b40
push ebx
mov edx, dword [edx + 0x1058]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x493b1b
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0xf
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 2]
mov ecx, eax
and ecx, 0xffff00f0
mov ebx, ebp
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00f0
shr edx, 2
lea ecx, [ecx + ebx + 0x20]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xf0
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0xf
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x493a69
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x1050]
mov edx, dword [ecx]
mov edi, dword [edx + 0x1050]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x493a45
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
Function at 0x4a6343
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4a6370
push esi
call fcn.004b0757
cmp byte [esi + 0x40], 0
pop ecx
je 0x4a6369
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4a63df
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x4a63d4
mov eax, dword [esi + 8]
test eax, eax
je 0x4a6391
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x4a63d0
cmp eax, 2
je 0x4a63d4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a6386
cmp eax, 3
je 0x4a63b5
cmp eax, 1
jne 0x4a6386
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x4a6386
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4a6386
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x4a63fd
cmp eax, 0xcc
je 0x4a63fd
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.004a6216
pop esi
ret

Function at 0x4b2061
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4b206f
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x4b2143
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x4e9030]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x4e9030]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x4e9030]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x4e9030]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x4e9030]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x4e9030]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x4e9030]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x4e9030]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x4b208c
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x4b2163
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x4e9030]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x4b2149
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x4bec08
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4ebdd0
call fcn.004c2dfc
mov edi, 0x94
mov eax, edi
call fcn.004bf500
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 [0x538750], ecx
mov eax, dword [esi + 4]
mov dword [0x53875c], eax
mov edx, dword [esi + 8]
mov dword [0x538760], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x538754], esi
cmp ecx, 2
je 0x4bec68
or esi, 0x8000
mov dword [0x538754], esi
shl eax, 8
add eax, edx
mov dword [0x538758], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4beca3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4beca3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4becbb
cmp eax, 0x20b
je 0x4beca8
mov dword [ebp - 0x1c], esi
jmp 0x4beccf
cmp dword [ecx + 0x84], 0xe
jbe 0x4beca3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4becc9
cmp dword [ecx + 0x74], 0xe
jbe 0x4beca3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004c3938
pop ecx
test eax, eax
jne 0x4bece3
push 0x1c
call fcn.004bebe4
pop ecx
call fcn.004c22e7
test eax, eax
jne 0x4becf4
push 0x10
call fcn.004bebe4
pop ecx
call fcn.004c3896
mov dword [ebp - 4], esi
call fcn.004c3698
test eax, eax
jge 0x4bed0d
push 0x1b
call fcn.004bebbf
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x539f70], eax
call fcn.004c3576
mov dword [0x538740], eax
call fcn.004c34d4
test eax, eax
jge 0x4bed33
push 8
call fcn.004bebbf
pop ecx
call fcn.004c32a1
test eax, eax
jge 0x4bed44
push 9
call fcn.004bebbf
pop ecx
call fcn.004bf0f3
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4bed57
push eax
call fcn.004bebbf
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.004c3238
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4bed78
movzx eax, word [ebp - 0x34]
jmp 0x4bed7b
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00429c00
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4bed99
push edi
call fcn.004bf22b
call fcn.004bf24d
jmp 0x4bedcb
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004c2e37
ret
Function at 0x4bf158
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004c3abb
xor esi, esi
inc esi
cmp dword [0x538790], esi
pop ecx
jne 0x4bf180
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 [0x53878c], esi
mov byte [0x538788], al
jne 0x4bf1e6
mov ecx, dword [0x539f68]
test ecx, ecx
je 0x4bf1c7
mov eax, dword [0x539f64]
sub eax, 4
cmp eax, ecx
jmp 0x4bf1c0
mov eax, dword [eax]
test eax, eax
je 0x4bf1b2
call eax
mov eax, dword [0x539f64]
sub eax, 4
cmp eax, dword [0x539f68]
mov dword [0x539f64], eax
jae 0x4bf1aa
mov eax, 0x4fa04c
mov esi, 0x4fa054
cmp eax, esi
mov edi, eax
jae 0x4bf1e6
mov eax, dword [edi]
test eax, eax
je 0x4bf1df
call eax
add edi, 4
cmp edi, esi
jb 0x4bf1d7
mov eax, 0x4fa058
mov esi, 0x4fa060
cmp eax, esi
mov edi, eax
jae 0x4bf205
mov eax, dword [edi]
test eax, eax
je 0x4bf1fe
call eax
add edi, 4
cmp edi, esi
jb 0x4bf1f6
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4bf216
push 8
call fcn.004c3a27
jmp 0x4bf228
push dword [ebp + 8]
mov dword [0x538790], 1
call fcn.004bf0b1
pop ecx
pop ebp
ret

Function at 0x4c2f24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4fffd0]
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 + 0x4ff988]
je 0x4c2f51
inc eax
cmp eax, 0x12
jb 0x4c2f42
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4ff988]
jne 0x4c3085
mov eax, dword [0x538748]
cmp eax, 1
je 0x4c3060
cmp eax, edx
jne 0x4c2f81
cmp dword [0x4ff5c8], 1
je 0x4c3060
cmp ecx, 0xfc
je 0x4c3085
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 0x4c2fba
lea eax, [ebp - 0x10c]
push 0x4ec574
push eax
call fcn.004bfa90
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004c1130
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c2ffc
lea eax, [ebp - 0x10c]
push eax
call fcn.004c1130
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ec570
push edi
call fcn.004bfb90
add esp, 0x10
push edi
call fcn.004c1130
push dword [esi + 0x4ff98c]
mov ebx, eax
call fcn.004c1130
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004bf500
mov ebx, esp
push 0x4ec554
push ebx
call fcn.004bfa90
push edi
push ebx
call fcn.004bfaa0
push 0x4ec550
push ebx
call fcn.004bfaa0
push dword [esi + 0x4ff98c]
push ebx
call fcn.004bfaa0
push 0x12010
push 0x4ec528
push ebx
call fcn.004c9db8
add esp, 0x2c
jmp 0x4c3085
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4ff98c]
push dword [esi]
call fcn.004c1130
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.004c6877
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c3698
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.004beef2
test eax, eax
pop ecx
jne 0x4c36b4
or eax, 0xffffffff
jmp 0x4c3891
mov dword [0x539e60], eax
mov dword [0x539e48], 0x20
lea ecx, [eax + 0x480]
jmp 0x4c36e9
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x539e60]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x4c36cb
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x4c37f0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4c37f0
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x4c372a
mov edi, eax
cmp dword [0x539e48], edi
jge 0x4c3780
mov esi, 0x539e64
push ebx
call fcn.004beef2
test eax, eax
pop ecx
je 0x4c377a
add dword [0x539e48], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x4c3769
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x4c3753
add esi, 4
cmp dword [0x539e48], edi
jl 0x4c3737
jmp 0x4c3780
mov edi, dword [0x539e48]
xor ebx, ebx
test edi, edi
jle 0x4c37f0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4c37e5
mov cl, byte [ebp]
test cl, 1
je 0x4c37e5
test cl, 8
jne 0x4c37a9
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4c37e5
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x539e60]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.004c9f03
test eax, eax
pop ecx
pop ecx
je 0x4c3810
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x4c3786
xor ebx, ebx
mov ecx, dword [0x539e60]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x4c3872
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x4c3815
push 0xfffffffffffffff6
pop eax
jmp 0x4c381f
or eax, 0xffffffff
jmp 0x4c388e
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x4c386c
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4c386c
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x4c384a
or byte [esi + 4], 0x40
jmp 0x4c3853
cmp eax, 3
jne 0x4c3853
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.004c9f03
test eax, eax
pop ecx
pop ecx
je 0x4c3810
inc dword [esi + 8]
jmp 0x4c3876
or byte [esi + 4], 0x40
jmp 0x4c3876
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x4c37f2
push dword [0x539e48]
call dword [sym.imp.kernel32.dll_LockResource_1]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x4c6885
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4fffd0]
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 0x4c68ae
xor eax, eax
jmp 0x4c6a1c
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 + 0x539e60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4c68e1
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004cac70
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4c69b3
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4c69ee
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 0x4c693c
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4c692d
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 0x4c6910
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 0x4c697c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4c6985
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4c6901
jmp 0x4c6987
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4c6a17
cmp dword [ebp - 8], edi
je 0x4c69ee
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4c69e0
call fcn.004bff08
mov dword [eax], 9
call fcn.004bff11
mov dword [eax], esi
jmp 0x4c69e9
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 0x4c69d5
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4c6987
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4c6987
push dword [ebp - 8]
call fcn.004bff1a
pop ecx
or eax, 0xffffffff
jmp 0x4c6a1a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4c6a03
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4c6a03
xor eax, eax
jmp 0x4c6a1a
call fcn.004bff08
mov dword [eax], 0x1c
call fcn.004bff11
mov dword [eax], edi
jmp 0x4c69e9
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004c6877
leave
ret
Function at 0x4c6d48
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 0x4c6f10
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x539e60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4c6f10
test cl, 0x48
je 0x4c6dae
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4c6dae
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 0x4c6e00
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4c6de8
call fcn.004bff08
mov dword [eax], 9
call fcn.004bff11
mov dword [eax], esi
jmp 0x4c6df8
cmp eax, 0x6d
je 0x4c6f10
push eax
call fcn.004bff1a
pop ecx
or eax, 0xffffffff
jmp 0x4c6f12
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 0x4c6f0b
test edx, edx
je 0x4c6e23
cmp byte [ebx], 0xa
jne 0x4c6e23
or al, 4
jmp 0x4c6e25
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 0x4c6f05
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4c6ef5
cmp al, 0xd
je 0x4c6e59
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4c6ee7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4c6e73
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4c6e6e
add dword [ebp + 0x10], 2
jmp 0x4c6ec7
mov dword [ebp + 0x10], eax
jmp 0x4c6ee3
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 0x4c6e9b
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4c6ee3
cmp dword [ebp - 0xc], 0
je 0x4c6ee3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4c6ebc
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4c6ec7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4c6ee6
cmp ebx, dword [ebp + 0xc]
jne 0x4c6ecc
cmp byte [ebp - 1], 0xa
jne 0x4c6ecc
mov byte [ebx], 0xa
jmp 0x4c6ee6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004cac70
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c6ee7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4c6e3d
jmp 0x4c6f05
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4c6f05
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4c6f12
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c9db8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x538aa8], ebx
push esi
push edi
jne 0x4c9e38
push 0x4f0714
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c9e73
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x4f0708
push edi
call esi
test eax, eax
mov dword [0x538aa8], eax
je 0x4c9e73
push 0x4f06f8
push edi
call esi
push 0x4f06e4
push edi
mov dword [0x538aac], eax
call esi
cmp dword [0x538750], 2
mov dword [0x538ab0], eax
jne 0x4c9e38
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x538ab8], eax
je 0x4c9e38
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x538ab4], eax
mov eax, dword [0x538ab4]
test eax, eax
je 0x4c9e7d
call eax
test eax, eax
je 0x4c9e64
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x538ab8]
test eax, eax
je 0x4c9e64
test byte [ebp - 8], 1
jne 0x4c9e7d
cmp dword [0x53875c], 4
jb 0x4c9e77
or byte [ebp + 0x12], 0x20
jmp 0x4c9e9c
xor eax, eax
jmp 0x4c9eac
or byte [ebp + 0x12], 4
jmp 0x4c9e9c
mov eax, dword [0x538aac]
test eax, eax
je 0x4c9e9c
call eax
mov ebx, eax
test ebx, ebx
je 0x4c9e9c
mov eax, dword [0x538ab0]
test eax, eax
je 0x4c9e9c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x538aa8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ca9ff
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.004bf500
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4caa94
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 [0x538750]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4caa94
cmp eax, 1
je 0x4caaac
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 0x4caa94
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4caa69
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4caa90
xor eax, eax
inc eax
jmp 0x4caac8
cmp esi, ebx
jae 0x4caa98
xor eax, eax
jmp 0x4caac8
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x538750]
jmp 0x4caaae
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