joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a13b0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4a13e3
push esi
call fcn.004ae6f0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4a13dc
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4a1464
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4a1453
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x4a140d
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4a144e
cmp eax, 2
je 0x4a1453
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a1400
cmp eax, 3
je 0x4a1433
cmp eax, 1
jne 0x4a1400
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x4a1400
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4a1400
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004a1240
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x4a1484
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
call fcn.004a1240
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4a64de
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
not eax
jb 0x4a65d1
push ebx
push edi
mov edi, esi
shr edi, 3
xor edx, edx
mov dl, byte [ecx]
mov ebx, eax
shr ebx, 8
sub esi, 8
xor edx, eax
and edx, 0xff
mov eax, dword [edx*4 + 0x5079d8]
xor eax, ebx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5079d8]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x5079d8]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5079d8]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x5079d8]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5079d8]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x5079d8]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5079d8]
shr eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x4a64f7
pop edi
pop ebx
test esi, esi
je 0x4a65f1
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x5079d8]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x4a65d5
not eax
pop esi
pop ebp
ret
Function at 0x4ab3c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebx + 0x24]
push esi
push edi
mov dword [ebp - 4], eax
jmp 0x4ab3d3
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub ecx, edx
sub ecx, esi
mov dword [ebp - 8], ecx
jne 0x4ab3f4
test edx, edx
jne 0x4ab403
test esi, esi
jne 0x4ab403
mov ecx, eax
jmp 0x4ab48c
cmp ecx, 0xffffffff
jne 0x4ab403
mov ecx, 0xfffffffe
jmp 0x4ab48c
mov esi, dword [ebx + 0x24]
lea esi, [eax + esi - 0x106]
cmp edx, esi
jb 0x4ab48c
mov edi, dword [ebx + 0x30]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [edi + eax]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x68]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x54]
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x68], esi
mov esi, dword [ebx + 0x44]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x64], edx
lea edx, [ecx + esi*2]
jmp 0x4ab450
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x4ab45f
sub ecx, eax
jmp 0x4ab461
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x4ab450
mov edx, dword [ebx + 0x38]
mov esi, eax
lea edx, [edx + eax*2]
nop
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x4ab47f
sub ecx, eax
jmp 0x4ab481
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x4ab470
mov ecx, dword [ebp - 8]
add ecx, eax
mov eax, dword [ebx]
mov edx, dword [eax + 4]
test edx, edx
je 0x4ab4f0
mov edx, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x64]
mov esi, dword [ebx + 0x30]
add edx, edi
add edx, esi
push edx
push eax
call fcn.004ab160
mov ecx, dword [ebx + 0x6c]
add ecx, eax
mov edx, ecx
add esp, 8
cmp edx, 3
mov dword [ebx + 0x6c], ecx
jb 0x4ab4db
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edx, 0x106
jae 0x4ab4f0
mov edx, dword [ebx]
mov eax, dword [edx + 4]
test eax, eax
jne 0x4ab3d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4aefc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
test edx, edx
push edi
mov edi, dword [ebp + 8]
je 0x4af020
push ebx
push esi
mov ecx, dword [edx]
mov ebx, dword [ecx]
mov esi, dword [edx + 4]
mov ecx, dword [edx + 8]
add esi, ebx
cmp edi, ecx
mov ebx, edi
jl 0x4aefe4
mov ebx, ecx
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 4], ebx
jle 0x4af012
lea ecx, [ecx]
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
mov edi, dword [edi*4 + 0x52d170]
shl eax, 8
xor eax, edi
mov edi, dword [ebp - 4]
inc ecx
cmp ecx, edi
jl 0x4aeff0
mov edi, dword [ebp + 8]
mov edx, dword [edx + 0xc]
sub edi, ecx
test edx, edx
mov dword [ebp + 8], edi
jne 0x4aefd0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4d82bf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 4], 0
push edi
xor eax, eax
lea edi, [ebp - 3]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call fcn.004dd45a
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [ebp - 4]
cmp al, 0x30
pop edi
jne 0x4d82f1
push 2
pop eax
leave
ret
cmp al, 0x31
jne 0x4d82fa
xor eax, eax
inc eax
leave
ret
sub al, 0x32
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
leave
ret

Function at 0x4d9c9b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x5148c8
call fcn.004010c5
mov edi, 0x94
mov eax, edi
call fcn.004d9af0
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 [0x568b10], ecx
mov eax, dword [esi + 4]
mov dword [0x568b1c], eax
mov edx, dword [esi + 8]
mov dword [0x568b20], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x568b14], esi
cmp ecx, 2
je 0x4d9cfb
or esi, 0x8000
mov dword [0x568b14], esi
shl eax, 8
add eax, edx
mov dword [0x568b18], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4d9d36
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d9d36
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4d9d4e
cmp eax, 0x20b
je 0x4d9d3b
mov dword [ebp - 0x1c], esi
jmp 0x4d9d62
cmp dword [ecx + 0x84], 0xe
jbe 0x4d9d36
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4d9d5c
cmp dword [ecx + 0x74], 0xe
jbe 0x4d9d36
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004e18c8
pop ecx
test eax, eax
jne 0x4d9d76
push 0x1c
call fcn.004d9c77
pop ecx
call fcn.004e0659
test eax, eax
jne 0x4d9d87
push 0x10
call fcn.004d9c77
pop ecx
call fcn.004e2dae
mov dword [ebp - 4], esi
call fcn.004e2bb0
test eax, eax
jge 0x4d9da0
push 0x1b
call fcn.004d9c52
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x56a354], eax
call fcn.004e2a8e
mov dword [0x568afc], eax
call fcn.004e29ec
test eax, eax
jge 0x4d9dc6
push 8
call fcn.004d9c52
pop ecx
call fcn.004e27b9
test eax, eax
jge 0x4d9dd7
push 9
call fcn.004d9c52
pop ecx
call fcn.004dc0f4
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4d9dea
push eax
call fcn.004d9c52
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004e2750
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4d9e0b
movzx eax, word [ebp - 0x34]
jmp 0x4d9e0e
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00442690
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4d9e2c
push edi
call fcn.004dc22c
call fcn.004dc24e
jmp 0x4d9e5e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004e178b
ret
Function at 0x4da359
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x52f2b0]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4da3d4
push ebx
call fcn.004da322
test eax, eax
pop ecx
jne 0x4da3a6
call fcn.004dbbc6
mov dword [eax], 0xf
call fcn.004dbbbd
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004d9f7e
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4da3e6
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4da396
inc eax
cmp eax, 0x104
ja 0x4da396
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4da41e
cmp eax, dword [ebp + 0x10]
jg 0x4da401
mov eax, dword [ebp + 0x10]
push eax
call fcn.004d9755
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4da433
call fcn.004dbbbd
mov dword [eax], 0xc
jmp 0x4da396
cmp eax, dword [ebp + 0x10]
jle 0x4da433
call fcn.004dbbbd
mov dword [eax], 0x22
jmp 0x4da396
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.004e1550
pop ecx
pop ecx
jmp 0x4da398

Function at 0x4daf17
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x4daf33
call fcn.004dbbbd
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4dafa5
push esi
push 0x88
push 1
call fcn.004dcca0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4daf8b
push esi
call fcn.004e046a
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4dae77
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x4daf83
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4dafa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004d9767
test ebx, ebx
pop ecx
je 0x4daf9d
push ebx
call fcn.004dbbcf
pop ecx
or eax, 0xffffffff
jmp 0x4dafa4
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x4e311f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x52f2b0]
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 0x4e3148
xor eax, eax
jmp 0x4e32b6
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 + 0x569200]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4e317b
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004e9cef
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4e324d
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4e3288
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 0x4e31d6
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4e31c7
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 0x4e31aa
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 0x4e3216
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4e321f
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4e319b
jmp 0x4e3221
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4e32b1
cmp dword [ebp - 8], edi
je 0x4e3288
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4e327a
call fcn.004dbbbd
mov dword [eax], 9
call fcn.004dbbc6
mov dword [eax], esi
jmp 0x4e3283
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 0x4e326f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4e3221
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4e3221
push dword [ebp - 8]
call fcn.004dbbcf
pop ecx
or eax, 0xffffffff
jmp 0x4e32b4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4e329d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4e329d
xor eax, eax
jmp 0x4e32b4
call fcn.004dbbbd
mov dword [eax], 0x1c
call fcn.004dbbc6
mov dword [eax], edi
jmp 0x4e3283
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004d9f7e
leave
ret
Function at 0x4e3bb4
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 0x4e3d7a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x569200]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4e3d7a
test cl, 0x48
je 0x4e3c1a
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4e3c1a
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 0x4e3c6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4e3c54
call fcn.004dbbbd
mov dword [eax], 9
call fcn.004dbbc6
mov dword [eax], esi
jmp 0x4e3c64
cmp eax, 0x6d
je 0x4e3d7a
push eax
call fcn.004dbbcf
pop ecx
or eax, 0xffffffff
jmp 0x4e3d7c
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 0x4e3d75
test edx, edx
je 0x4e3c8f
cmp byte [ebx], 0xa
jne 0x4e3c8f
or al, 4
jmp 0x4e3c91
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 0x4e3d6f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4e3d5f
cmp al, 0xd
je 0x4e3cc5
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4e3d51
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4e3cdf
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4e3cda
add dword [ebp + 0x10], 2
jmp 0x4e3d33
mov dword [ebp + 0x10], eax
jmp 0x4e3d4d
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 0x4e3d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e3d4d
cmp dword [ebp - 0xc], 0
je 0x4e3d4d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4e3d28
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4e3d33
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4e3d50
cmp ebx, dword [ebp + 0xc]
jne 0x4e3d38
cmp byte [ebp - 1], 0xa
jne 0x4e3d38
mov byte [ebx], 0xa
jmp 0x4e3d50
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004e372c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4e3d51
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4e3ca9
jmp 0x4e3d6f
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4e3d6f
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4e3d7c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e83d8
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.004d9af0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4e846d
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 [0x568b10]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4e846d
cmp eax, 1
je 0x4e8485
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 0x4e846d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4e8442
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4e8469
xor eax, eax
inc eax
jmp 0x4e84a1
cmp esi, ebx
jae 0x4e8471
xor eax, eax
jmp 0x4e84a1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x568b10]
jmp 0x4e8487
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 0x4e9896
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x568f88], ebx
push esi
push edi
jne 0x4e9916
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4e9951
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x51a394
push edi
call esi
test eax, eax
mov dword [0x568f88], eax
je 0x4e9951
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x568f8c], eax
call esi
cmp dword [0x568b10], 2
mov dword [0x568f90], eax
jne 0x4e9916
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x568f98], eax
je 0x4e9916
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x568f94], eax
mov eax, dword [0x568f94]
test eax, eax
je 0x4e995b
call eax
test eax, eax
je 0x4e9942
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x568f98]
test eax, eax
je 0x4e9942
test byte [ebp - 8], 1
jne 0x4e995b
cmp dword [0x568b1c], 4
jb 0x4e9955
or byte [ebp + 0x12], 0x20
jmp 0x4e997a
xor eax, eax
jmp 0x4e998a
or byte [ebp + 0x12], 4
jmp 0x4e997a
mov eax, dword [0x568f8c]
test eax, eax
je 0x4e997a
call eax
mov ebx, eax
test ebx, ebx
je 0x4e997a
mov eax, dword [0x568f90]
test eax, eax
je 0x4e997a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x568f88]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ebb3c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4ebba7
push 0x3d
push dword [ebp + 8]
call fcn.004ec92d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4ebba7
cmp dword [ebp + 8], esi
je 0x4ebba7
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x568b30]
cmp eax, dword [0x568b34]
jne 0x4ebb8d
mov edi, eax
call fcn.004ebadb
mov dword [0x568b30], eax
cmp eax, ebx
jne 0x4ebbe6
cmp dword [ebp + 0xc], ebx
je 0x4ebbaf
cmp dword [0x568b38], ebx
je 0x4ebbaf
call fcn.004e6981
test eax, eax
je 0x4ebbe6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4ebcea
push 4
call fcn.004d9755
cmp eax, ebx
pop ecx
mov dword [0x568b30], eax
je 0x4ebba7
mov dword [eax], ebx
cmp dword [0x568b38], ebx
jne 0x4ebbe6
push 4
call fcn.004d9755
cmp eax, ebx
pop ecx
mov dword [0x568b38], eax
je 0x4ebba7
mov dword [eax], ebx
mov ebx, dword [0x568b30]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004eba8e
mov edi, eax
test edi, edi
pop ecx
jl 0x4ebc3f
cmp dword [ebx], 0
je 0x4ebc3f
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004d9767
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4ebc27
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4ebc75
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4ebc1e
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004d97d8
test eax, eax
pop ecx
pop ecx
je 0x4ebc75
jmp 0x4ebc70
cmp dword [ebp - 4], 0
jne 0x4ebce3
test edi, edi
jge 0x4ebc4f
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004d97d8
test eax, eax
pop ecx
pop ecx
je 0x4ebba7
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x568b30], eax
cmp dword [ebp + 0xc], 0
je 0x4ebccc
push dword [ebp + 8]
call fcn.004dce70
inc eax
inc eax
push eax
call fcn.004d9755
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4ebccc
push dword [ebp + 8]
push esi
call fcn.004e1550
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4ebcc5
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004d9767
pop ecx
cmp dword [ebp - 4], 0
je 0x4ebcdb
push dword [ebp + 8]
call fcn.004d9767
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4ebbaa
push esi
call fcn.004d9767
pop ecx
xor eax, eax
jmp 0x4ebbaa