joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483450
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x483499
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x483910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cd800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004834c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00483540
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00483540
lea ecx, [esi + 0xc]
call fcn.004bc3bc
lea ecx, [esi + 0x10]
call fcn.004bc3bc
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00484ad0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00484ad0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00484ad0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004bc431
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004bc431
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x486120
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4861c3
test eax, eax
jbe 0x4861c3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4861c3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x48616e
xor esi, esi
jmp 0x486174
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48619f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00431750
add esi, eax
push esi
mov ebx, esi
call fcn.00431750
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x486180
pop ebp
test edi, edi
pop edi
jne 0x4861c3
test ebx, ebx
je 0x4861c3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004ab120
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x486305
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48641d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48641d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004bde81
mov esi, eax
test esi, esi
je 0x48641d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48641d
mov ecx, esi
call fcn.00486270
cmp edi, eax
jge 0x48641d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4863a3
mov dword [esp + 0x34], 1
jmp 0x4863fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48641d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00485860
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x48d9b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8c5ba8]
xor edx, edx
cmp eax, edx
jne 0x48d9d6
xor eax, eax
mov byte [eax + 0x8c5aa8], al
inc eax
cmp eax, 0x100
jl 0x48d9be
mov dword [0x8c5ba8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8c5aa8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x48da67
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x48da3a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x48da08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x48da70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x48dac3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x48daaa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x494480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cde1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00494da0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x852794
call fcn.004bc172
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x494513
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004bc172
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49450c
push 0
mov ecx, eax
call fcn.0048b5f0
mov dword [esi + 0xc], eax
jmp 0x494515
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x494515
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4a9762
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x856468
call fcn.004af680
mov edi, 0x94
mov eax, edi
call fcn.004ab000
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 [0x8d79ec], ecx
mov eax, dword [esi + 4]
mov dword [0x8d79f8], eax
mov edx, dword [esi + 8]
mov dword [0x8d79fc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x8d79f0], esi
cmp ecx, 2
je 0x4a97c2
or esi, 0x8000
mov dword [0x8d79f0], esi
shl eax, 8
add eax, edx
mov dword [0x8d79f4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4a97fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a97fd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4a9815
cmp eax, 0x20b
je 0x4a9802
mov dword [ebp - 0x1c], esi
jmp 0x4a9829
cmp dword [ecx + 0x84], 0xe
jbe 0x4a97fd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4a9823
cmp dword [ecx + 0x74], 0xe
jbe 0x4a97fd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004af62c
pop ecx
test eax, eax
jne 0x4a983d
push 0x1c
call fcn.004a973e
pop ecx
call fcn.004af5a3
test eax, eax
jne 0x4a984e
push 0x10
call fcn.004a973e
pop ecx
mov dword [ebp - 4], esi
call fcn.004af316
test eax, eax
jge 0x4a9862
push 0x1b
call fcn.004a9719
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x8dcd64], eax
call fcn.004af1f0
mov dword [0x8d79cc], eax
call fcn.004af14e
test eax, eax
jge 0x4a9888
push 8
call fcn.004a9719
pop ecx
call fcn.004aef02
test eax, eax
jge 0x4a9899
push 9
call fcn.004a9719
pop ecx
call fcn.004ad9e1
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4a98ac
push eax
call fcn.004a9719
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004aee99
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4a98cd
movzx eax, word [ebp - 0x34]
jmp 0x4a98d0
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004b9444
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4a98ee
push edi
call fcn.004adb00
call fcn.004adb22
jmp 0x4a9920
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004af6b9
ret
Function at 0x4aeb33
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x87cf28]
je 0x4aeb53
inc eax
cmp eax, 0x12
jb 0x4aeb44
shl eax, 3
cmp edx, dword [eax + 0x87cf28]
mov dword [ebp + 8], eax
jne 0x4aecf1
mov ecx, dword [0x8d79d4]
cmp ecx, 1
je 0x4aecc6
test ecx, ecx
jne 0x4aeb85
cmp dword [0x87c8b4], 1
je 0x4aecc6
cmp edx, 0xfc
je 0x4aecf1
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4aebc0
push 5
pop ecx
mov esi, str._program_name_unknown_
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aebcf
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x4aec07
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aebe7
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x856b38
push ebx
call fcn.004ab120
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aec0c
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x87cf2c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4aec23
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.004ab000
mov edx, esp
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aec4f
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aec5b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4aec74
mov eax, dword [ebp + 8]
mov esi, 0x856b18
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x87cf2c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aec8f
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aec9b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004b691d
add esp, 0xc
jmp 0x4aecf1
mov ecx, dword [eax + 0x87cf2c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4aecd1
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b2055
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x4b20bd
push 0x3d
push esi
call fcn.004acacb
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x4b20bd
cmp esi, eax
je 0x4b20bd
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x8d7a0c]
sete cl
cmp eax, dword [0x8d7a10]
mov dword [ebp - 4], ecx
jne 0x4b20a3
mov edi, eax
call fcn.004b1ff4
mov dword [0x8d7a0c], eax
cmp eax, ebx
jne 0x4b20fc
cmp dword [ebp + 0xc], ebx
je 0x4b20c5
cmp dword [0x8d7a14], ebx
je 0x4b20c5
call fcn.004b1de3
test eax, eax
je 0x4b20fc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4b2206
push 4
call fcn.004ab336
cmp eax, ebx
pop ecx
mov dword [0x8d7a0c], eax
je 0x4b20bd
mov dword [eax], ebx
cmp dword [0x8d7a14], ebx
jne 0x4b20fc
push 4
call fcn.004ab336
cmp eax, ebx
pop ecx
mov dword [0x8d7a14], eax
je 0x4b20bd
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x8d7a0c]
sub edi, esi
push esi
call fcn.004b1fa7
mov edi, eax
test edi, edi
pop ecx
jl 0x4b2158
cmp dword [ebx], 0
je 0x4b2158
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004ab21e
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4b213d
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x4b218e
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4b2134
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004ac0f4
test eax, eax
mov esi, dword [ebp + 8]
pop ecx
pop ecx
je 0x4b218e
jmp 0x4b2189
cmp dword [ebp - 4], 0
jne 0x4b21ff
test edi, edi
jge 0x4b2168
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004ac0f4
test eax, eax
pop ecx
pop ecx
je 0x4b20bd
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x8d7a0c], eax
cmp dword [ebp + 0xc], 0
je 0x4b21ea
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b2199
sub eax, edx
add eax, 2
push eax
call fcn.004ab336
mov edi, eax
test edi, edi
pop ecx
je 0x4b21ea
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x4b21b6
mov ecx, dword [ebp - 8]
add eax, ecx
and byte [eax], dl
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4b21e3
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.004ab21e
pop ecx
cmp dword [ebp - 4], 0
je 0x4b21f7
push esi
call fcn.004ab21e
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x4b20c0
push esi
call fcn.004ab21e
pop ecx
xor eax, eax
jmp 0x4b20c0
Function at 0x4b5346
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 0x4b550c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x8dba00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4b550c
test cl, 0x48
je 0x4b53ac
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4b53ac
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 0x4b53fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4b53e6
call fcn.004ac6d8
mov dword [eax], 9
call fcn.004ac6e1
mov dword [eax], esi
jmp 0x4b53f6
cmp eax, 0x6d
je 0x4b550c
push eax
call fcn.004ac6ea
pop ecx
or eax, 0xffffffff
jmp 0x4b550e
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 0x4b5507
test edx, edx
je 0x4b5421
cmp byte [ebx], 0xa
jne 0x4b5421
or al, 4
jmp 0x4b5423
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 0x4b5501
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4b54f1
cmp al, 0xd
je 0x4b5457
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4b54e3
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4b5471
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4b546c
add dword [ebp + 0x10], 2
jmp 0x4b54c5
mov dword [ebp + 0x10], eax
jmp 0x4b54df
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 0x4b5499
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b54df
cmp dword [ebp - 0xc], 0
je 0x4b54df
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4b54ba
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4b54c5
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4b54e2
cmp ebx, dword [ebp + 0xc]
jne 0x4b54ca
cmp byte [ebp - 1], 0xa
jne 0x4b54ca
mov byte [ebx], 0xa
jmp 0x4b54e2
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b55be
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4b54e3
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4b543b
jmp 0x4b5501
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4b5501
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4b550e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b5a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x4b5a9e
xor eax, eax
jmp 0x4b5c0c
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 + 0x8dba00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4b5ad1
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004b858e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4b5ba3
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x4b5bde
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4b5b2c
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4b5b1d
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x4b5b00
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b5b6c
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x4b5b75
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4b5af1
jmp 0x4b5b77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x4b5c07
cmp dword [ebp - 4], edi
je 0x4b5bde
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x4b5bd0
call fcn.004ac6d8
mov dword [eax], 9
call fcn.004ac6e1
mov dword [eax], esi
jmp 0x4b5bd9
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b5bc5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x4b5b77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4b5b77
push dword [ebp - 4]
call fcn.004ac6ea
pop ecx
or eax, 0xffffffff
jmp 0x4b5c0a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4b5bf3
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4b5bf3
xor eax, eax
jmp 0x4b5c0a
call fcn.004ac6d8
mov dword [eax], 0x1c
call fcn.004ac6e1
mov dword [eax], edi
jmp 0x4b5bd9
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4b66f5
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.004ab000
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b678a
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 [0x8d79ec]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4b678a
cmp eax, 1
je 0x4b67a2
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 0x4b678a
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4b675f
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4b6786
xor eax, eax
inc eax
jmp 0x4b67be
cmp esi, ebx
jae 0x4b678e
xor eax, eax
jmp 0x4b67be
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x8d79ec]
jmp 0x4b67a4
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 0x4b691d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x8d7dc8], ebx
push esi
push edi
jne 0x4b699d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b69d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x85aea4
push edi
call esi
test eax, eax
mov dword [0x8d7dc8], eax
je 0x4b69d8
push 0x85ae94
push edi
call esi
push 0x85ae80
push edi
mov dword [0x8d7dcc], eax
call esi
cmp dword [0x8d79ec], 2
mov dword [0x8d7dd0], eax
jne 0x4b699d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x8d7dd8], eax
je 0x4b699d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x8d7dd4], eax
mov eax, dword [0x8d7dd4]
test eax, eax
je 0x4b69e2
call eax
test eax, eax
je 0x4b69c9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x8d7dd8]
test eax, eax
je 0x4b69c9
test byte [ebp - 8], 1
jne 0x4b69e2
cmp dword [0x8d79f8], 4
jb 0x4b69dc
or byte [ebp + 0x12], 0x20
jmp 0x4b6a01
xor eax, eax
jmp 0x4b6a11
or byte [ebp + 0x12], 4
jmp 0x4b6a01
mov eax, dword [0x8d7dcc]
test eax, eax
je 0x4b6a01
call eax
mov ebx, eax
test ebx, ebx
je 0x4b6a01
mov eax, dword [0x8d7dd0]
test eax, eax
je 0x4b6a01
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x8d7dc8]
pop edi
pop esi
pop ebx
leave
ret