joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fc60
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 0x48fd03
test eax, eax
jbe 0x48fd03
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x48fd03
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 0x48fcae
xor esi, esi
jmp 0x48fcb4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48fcdf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00491b90
add esi, eax
push esi
mov ebx, esi
call fcn.00491b90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x48fcc0
pop ebp
test edi, edi
pop edi
jne 0x48fd03
test ebx, ebx
je 0x48fd03
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004bc610
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x48fe65
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 0x48ff7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48ff7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004e1c32
mov esi, eax
test esi, esi
je 0x48ff7d
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 0x48ff7d
mov ecx, esi
call fcn.0048fdf0
cmp edi, eax
jge 0x48ff7d
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 0x48ff03
mov dword [esp + 0x34], 1
jmp 0x48ff5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48ff7d
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.0048f3b0
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 0x49fa60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xc5fc5c]
xor edx, edx
cmp eax, edx
jne 0x49fa86
xor eax, eax
mov byte [eax + 0xc5fb5c], al
inc eax
cmp eax, 0x100
jl 0x49fa6e
mov dword [0xc5fc5c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xc5fb5c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49fb17
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 0x49faea
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 0x49fab8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49fb20
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 0x49fb73
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 0x49fb5a
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 0x4a6530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f28ae
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.004a6e50
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xbbdf3c
call fcn.004dfe87
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a65c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004dfe87
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a65bc
push 0
mov ecx, eax
call fcn.0049d6a0
mov dword [esi + 0xc], eax
jmp 0x4a65c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a65c5
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 0x4ce45a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4ce57b
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4ce55f
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4ce4b1
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4ce48f
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x4cefc3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4cf01a
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4cf01a
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4cf01a
xor eax, eax
inc eax
jmp 0x4cf01c
xor eax, eax
leave
ret 0x10
Function at 0x4cf045
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4cf0b3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0xbc5aec
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4cf0aa
cmp dword [ebp - 0xc], 4
jne 0x4cf0aa
cmp dword [ebp - 0x10], edi
je 0x4cf0aa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0xc048a8], edi
xor eax, eax
jmp 0x4cf0f2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0xc048a8], edi
jge 0x4cf0ed
lea eax, [ebp - 0x34]
push eax
mov dword [0xc048a8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4cf0ed
cmp word [ebp - 0x14], 5
jb 0x4cf0ed
call fcn.004cf020
test eax, eax
je 0x4cf0ed
emms
mov dword [0xc048a8], 1
mov eax, dword [0xc048a8]
pop edi
leave
ret

Function at 0x4e25d6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e260e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e05ed
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e05c5
jmp 0x4e261a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e3cc7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e3d09
call fcn.004e9e3c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e3d09
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e3d00
xor eax, eax
jmp 0x4e3d11
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e3d17
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ea36c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ea39a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ea3b8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ea2d2
jmp 0x4ea3b8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ea3b8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ea2d2
test edi, edi
mov eax, edi
jne 0x4ea3a2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x402c00
pop dword [ebp - 0x50]
mov eax, 0x5e0ca1a6
add eax, 0xa2338a5a
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xf10dba5e
sub dword [ebp - 0x60], 0xa2bb7513
mov dword [ebp - 0x5c], 0xf81ef7d1
sub dword [ebp - 0x5c], 0xc5ebab8c
mov dword [ebp - 0x58], 0xd8e5d48d
sub dword [ebp - 0x58], 0x8c99905f
mov dword [ebp - 0x54], 0xd2c2fd10
add dword [ebp - 0x54], 0x2d3d02f0
lea eax, [ebp - 0x60]
push eax
mov eax, 0x5b5a8cc7
add eax, 0xa4e5e39d
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x2df37608
add dword [ebp - 0x60], 0x467ef34e
mov dword [ebp - 0x5c], 0x36c7febd
sub dword [ebp - 0x5c], 0xf55b9d48
mov dword [ebp - 0x58], 0xb06816d1
add dword [ebp - 0x58], 0xb307559b
mov dword [ebp - 0x54], 0xa0f81447
add dword [ebp - 0x54], 0x5f07ebb9
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x8883fbd6
sub eax, 0x88438b2e
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x39fde
push 0
call eax
mov ecx, 0x9f7ce09
add ecx, 0xf608872d
xor esi, esi
add esi, eax
mov edi, 0x4bda3542
add edi, 0xb466cabe
add edi, dword [ebp - 0x50]
mov ebx, 0xc79a290e
xor dword [ebp - 0x10], 0x1f731954
mov edx, dword [edi]
add dword [ebp - 0xc], edx
sub edx, ebx
sub dword [ebp - 0x3c], 0xa0ac5d34
mov dword [esi], edx
add esi, 0xe70132b6
sub esi, 0xe70132b2
add edi, 0x5b0ca305
add edi, 0xa4f35cff
loop 0x402d1e
add eax, 0x5e1a2615
add eax, 0xa1e72196
mov ebx, eax
add eax, 5
mov ecx, 0x270cc884
sub ecx, 0x26ccc884
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x56662d2b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x56662d3a
pop dword [ebp - 0x4c]
mov eax, 0x56662d3a
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x6cef3e6e
sub dword [ebp - 0x5c], 0x1e9cf923
mov dword [ebp - 0x58], 0xaa8f3107
sub dword [ebp - 0x58], 0x785be4c2
mov dword [ebp - 0x54], 0x82ea46a8
sub dword [ebp - 0x54], 0x369e027a
mov dword [ebp - 0x50], 0x1918f7ff
add dword [ebp - 0x50], 0xe6e70801
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x2bf05abd
add eax, 0x2a72b687
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xaf3df158
sub dword [ebp - 0x5c], 0x3acb8802
mov dword [ebp - 0x58], 0x167e16e9
add dword [ebp - 0x58], 0x2aee4a8c
mov dword [ebp - 0x54], 0x1415c9a0
sub dword [ebp - 0x54], 0xb0a65d34
mov dword [ebp - 0x50], 0xf659d3ed
add dword [ebp - 0x50], 0x9a62c13
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3cca1
push 0
call eax
mov ecx, 0x5e32326b
sub ecx, 0x5e31e4bd
mov edi, eax
mov ebx, 0x56688000
add ebx, dword [ebp - 0x4c]
mov edx, 0xc92084fa
mov dword [ebp - 8], 0x264570d0
mov esi, dword [ebx]
add dword [ebp - 0x10], 0x978e0fc3
sub esi, edx
mov dword [edi], esi
xor dword [ebp - 0x30], ecx
add edi, 0x1a2547a5
sub edi, 0x1a2547a1
add ebx, 0x75ce529c
add ebx, 0x8a31ad68
loop 0x56662e46
add eax, 0xf09435c1
add eax, 0xf6cf3ca
xor ebx, ebx
add ebx, eax
add eax, 0xd3b6f0fa
sub eax, 0xd3b6f0f5
mov ecx, 0x56630000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x56666847
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x56670224
call fcn.566541a0
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.oleaut32.dll_SetErrorInfo]
mov esi, dword [ebp + 8]
call fcn.56662d2b
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 0x14], bl
mov dword [ebp - 0xb4], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 2
jne 0x566668af
cmp dword [ebp - 0xb0], 4
jb 0x566668af
mov byte [ebp - 0x14], 1
push ebx
push ebx
push 0x5663742c
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x566668c3
mov byte [ebp - 0x14], bl
mov esi, dword [ebp - 0x14]
push esi
call fcn.566686f2
pop ecx
push esi
call fcn.56668446
pop ecx
push esi
call fcn.5666803a
pop ecx
push esi
call fcn.56667fae
pop ecx
push esi
call fcn.5666798f
pop ecx
push esi
call fcn.5666790f
pop ecx
push esi
call fcn.5666788f
pop ecx
push esi
call fcn.566677b6
pop ecx
push esi
call fcn.566672ab
pop ecx
push esi
call fcn.56666967
pop ecx
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.oleaut32.dll_CreateErrorInfo]
lea ecx, [ebp - 0x18]
call fcn.5665f161
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4f88bd30
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4f88bd6e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4f88bd66
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4f88bd70
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4f88bd56
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4f88be40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4f88be71
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4f88be71
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4f88be71
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4f8912f9
Capabilities:
Encode data using xor

Disassembly:
call 0x4f891272
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x4f8912a2
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x4f8912be
xor edx, 0
jmp 0x4f8912c9
xor edx, edx
jmp 0x4f8912e0
jmp 0x4f8912ec
xor eax, eax
push 0x8427d7c0
call 0x4f8912f9
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x4f891335
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x4f89130e
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x4f89134c
add eax, 0
jno 0x4f891351
add esi, 0
ret 0x10
Function at 0x4f8920ba
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x4f8920dc
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x4f89227e
cmp edi, dword [ebp + 0x10]
jb 0x4f89227e
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.4f891ba6
inc edi
jmp 0x4f892165
jmp 0x4f892172
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.4f891ba6
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.4f891ba6
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x4f8921c6
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x4f8921aa
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.4f8921f4
add dword [eax], 0x39
jle 0x4f8921d0
sub al, 0xf5
mov ch, al
call fcn.4f892209
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x4f893ee1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x4f893ef7
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x4f893f08
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.4f893f49
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x4f8962b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x4f8961fe
add ebx, 0
push ecx
call 0x4f896213
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x7343c3e2
sub ebx, dword [0x7345bc21]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x7345bc11
call fcn.4f891cdd
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.4f8911eb
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x4f896371
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x4f896371
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x4f896328
mov eax, 1
lock xchg dword [0x7345bc1d], eax
push 0x3dd1fc71
call 0x4f8962b5
push esi
add esp, 8
cmp eax, 0
jne 0x4f89629e
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x4f8962c4
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x4f8962d9
cmp ecx, edx
cmp eax, 0
je 0x4f8962fe
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x4f8962e8
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.4f896317
dec eax
loope 0x4f89631a
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x7345bc1d], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x4f89634e
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x4f896363
jmp 0x4f89636e
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x4f89625c