joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428fc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e873b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x1d7ae58]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4290f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x429026
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005c388f
xor eax, eax
jmp 0x42916f
push 0x1d60ffc
lea ecx, [esp + 0xc]
call fcn.005c3a18
push esi
lea ecx, [esp + 0xc]
call fcn.005c3ca7
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x1d60ff4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42914d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x1d60fec
push closesocket
call fcn.004e4990
test eax, eax
jne 0x42914d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x1d60fd8
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004e4990
test eax, eax
jne 0x42914d
lea eax, [esp + 0x14]
push 0x1d60fd0
push eax
call fcn.004ad976
mov esi, eax
add esp, 8
test esi, esi
jne 0x42912c
lea ecx, [esp + 0x14]
push 0x1d60fcc
push ecx
call fcn.004ad8f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42912c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42912f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005c39c8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42903e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005c388f
xor eax, eax
jmp 0x42916f
mov byte [esi], 0
push 0x1d60fc8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.005c388f
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x43e540
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x43e5ae
cmp si, 0x69
ja 0x43e5ae
add esi, 0xffd0
cmp si, 0x11
je 0x43e57e
push 0x11
call edi
test ax, ax
jge 0x43e57e
or esi, 0x2000
cmp si, 0x10
je 0x43e593
push 0x10
call edi
test ax, ax
jge 0x43e593
or esi, 0x4000
cmp si, 0x12
je 0x43e5a8
push 0x12
call edi
test ax, ax
jge 0x43e5a8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x43e5bb
mov esi, 0xbd
jmp 0x43e56f
cmp si, 0x6e
jne 0x43e5c8
mov esi, 0xbe
jmp 0x43e56f
cmp si, 0x6f
jne 0x43e569
mov esi, 0xbf
jmp 0x43e56f

Function at 0x43ffa0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1d8ffa0]
xor edx, edx
cmp eax, edx
jne 0x43ffc6
xor eax, eax
mov byte [eax + 0x1d8fea0], al
inc eax
cmp eax, 0x100
jl 0x43ffae
mov dword [0x1d8ffa0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1d8fea0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x440057
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 0x44002a
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 0x43fff8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4400d0
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 0x440123
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 0x44010a
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 0x4527e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5eaa38
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0044d0a0
test eax, eax
je 0x4528e8
lea ecx, [esp + 0xc]
call fcn.0041fae0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0044d0a0
mov ecx, eax
call fcn.0044a7c0
test eax, eax
je 0x4528cf
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x4528cf
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4528cf
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0041fce0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x4528b1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4528cf
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x1d903f8]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x1d0c018
call fcn.0041fce0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x452940
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0044d0a0
test eax, eax
je 0x452a2f
mov ecx, edi
call fcn.0044d0a0
mov ecx, eax
call fcn.0044a670
test eax, eax
jne 0x452a2f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x452a2f
mov eax, dword [0x1d903f8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x4529a2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0044d0a0
mov ecx, eax
call fcn.0044a8a0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x452a2f
cmp ebx, eax
jne 0x452a2f
cmp dword [esp + 0x10], eax
jne 0x452a15
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x455720
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5eaca8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x455759
inc eax
mov dword [esi + 0x10], eax
jmp 0x45586c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x45576d
mov eax, 0xffffffc7
jmp 0x45586e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x45577e
cmp dword [esi + 8], eax
jne 0x45576d
cmp dword [esi + 8], eax
jne 0x455797
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x455797
mov eax, 0xffffffc7
jmp 0x45586e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4557ab
push eax
mov ecx, ebx
call fcn.00454f50
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0041fae0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4557dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0041fb00
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004546c0
test eax, eax
mov dword [esp + 0x38], eax
je 0x45580f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1d0c048
call fcn.0041fce0
mov eax, dword [esp + 0x38]
jmp 0x45586e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00455580
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x455853
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004555a0
mov esi, eax
test esi, esi
jne 0x455883
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00455580
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x455825
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1d0c048
call fcn.0041fce0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1d0c048
call fcn.0041fce0
mov eax, esi
jmp 0x45586e

Function at 0x45a100
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x45a160
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x45a160
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x45a160
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x45a160
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x45a1a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x483715
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 0x48382d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48382d
mov eax, dword [esi + 0x3c]
push eax
call fcn.005c5a2f
mov esi, eax
test esi, esi
je 0x48382d
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 0x48382d
mov ecx, esi
call fcn.004836a0
cmp edi, eax
jge 0x48382d
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 0x4837b3
mov dword [esp + 0x34], 1
jmp 0x48380e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48382d
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.00481f40
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 0x486b3d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5eb9a8
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, dword [esi + 0x40]
test edx, edx
setne bl
inc ebx
test eax, eax
je 0x486b53
or bh, 0x80
lea ecx, [esp + 0xc]
call fcn.0048bd80
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0048c040
lea eax, [esp + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00486bc0
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x1d103e0
call fcn.0048bf80
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x4927d0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x1d738ec]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4927e3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x492824
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x1d73994]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x492856
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49285a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x49284b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x492878
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49287c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x49286d
xor ecx, ecx
mov eax, 0x1d738fc
xor ebx, ebx
mov bl, byte [ecx + 0x1d739a4]
cmp byte [esp + ebx + 0x14], 0
je 0x4928a7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x1d739bc]
cmp byte [esp + ebx + 0x14], 0
je 0x4928be
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x49288e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x492817
lea edx, [esp + 0x84]
push edx
call fcn.00492900
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4972d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1dc3f94]
xor edx, edx
cmp eax, edx
jne 0x4972f6
xor eax, eax
mov byte [eax + 0x1dc3e94], al
inc eax
cmp eax, 0x100
jl 0x4972de
mov dword [0x1dc3f94], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1dc3e94
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x497387
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 0x49735a
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 0x497328
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x497390
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 0x4973e3
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 0x4973ca
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 0x49dd90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ebffe
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.0049e6b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1d12424
call fcn.005c35d0
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x49de23
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005c35d0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49de1c
push 0
mov ecx, eax
call fcn.00494f60
mov dword [esi + 0xc], eax
jmp 0x49de25
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x49de25
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 0x4ab62e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x1d16048
call fcn.004b1d34
mov edi, 0x94
mov eax, edi
call fcn.004acf90
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 [0x1dd5e24], ecx
mov eax, dword [esi + 4]
mov dword [0x1dd5e30], eax
mov edx, dword [esi + 8]
mov dword [0x1dd5e34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1dd5e28], esi
cmp ecx, 2
je 0x4ab68e
or esi, 0x8000
mov dword [0x1dd5e28], esi
shl eax, 8
add eax, edx
mov dword [0x1dd5e2c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4ab6c9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ab6c9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4ab6e1
cmp eax, 0x20b
je 0x4ab6ce
mov dword [ebp - 0x1c], esi
jmp 0x4ab6f5
cmp dword [ecx + 0x84], 0xe
jbe 0x4ab6c9
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4ab6ef
cmp dword [ecx + 0x74], 0xe
jbe 0x4ab6c9
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004b1ce0
pop ecx
test eax, eax
jne 0x4ab709
push 0x1c
call fcn.004ab60a
pop ecx
call fcn.004b1bd7
test eax, eax
jne 0x4ab71a
push 0x10
call fcn.004ab60a
pop ecx
call fcn.004b1971
mov dword [ebp - 4], esi
call fcn.004b1773
test eax, eax
jge 0x4ab733
push 0x1b
call fcn.004ab5e5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1ddca24], eax
call fcn.004b1651
mov dword [0x1dd5d50], eax
call fcn.004b15af
test eax, eax
jge 0x4ab759
push 8
call fcn.004ab5e5
pop ecx
call fcn.004b137c
test eax, eax
jge 0x4ab76a
push 9
call fcn.004ab5e5
pop ecx
push 1
call fcn.004b0404
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4ab780
push eax
call fcn.004ab5e5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004b131f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4ab7a1
movzx eax, word [ebp - 0x40]
jmp 0x4ab7a4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.005b6618
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4ab7c2
push edi
call fcn.004b0531
call fcn.004b0553
jmp 0x4ab7f4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004b1d6f
ret
Function at 0x4b046e
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1d16920
call fcn.004b1d34
push 8
call fcn.004b5548
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1dd5e64], esi
jne 0x4b04a2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1dd5e60], esi
mov al, byte [ebp + 0x10]
mov byte [0x1dd5e5c], al
cmp dword [ebp + 0xc], edi
jne 0x4b04ec
cmp dword [0x1ddba08], edi
je 0x4b04dc
mov eax, dword [0x1ddba04]
sub eax, 4
mov dword [0x1ddba04], eax
cmp eax, dword [0x1ddba08]
jb 0x4b04dc
mov eax, dword [eax]
cmp eax, edi
je 0x4b04bd
call eax
jmp 0x4b04bd
push 0x1d5d33c
mov eax, 0x1d5d330
call fcn.004b03ec
pop ecx
push 0x1d5d348
mov eax, 0x1d5d340
call fcn.004b03ec
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4b051d
cmp dword [ebp + 0x10], edi
jne 0x4b052b
mov dword [0x1dd5e64], esi
push dword [ebp + 8]
call fcn.004b03aa
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4b052a
push 8
call fcn.004b5493
pop ecx
ret
call fcn.004b1d6f
ret

Function at 0x4b100b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1d7c674]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1d7c0a8]
je 0x4b1040
inc eax
cmp eax, 0x13
jb 0x4b1031
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1d7c0a8]
jne 0x4b1166
mov eax, dword [0x1dd5d58]
cmp eax, 1
je 0x4b113e
cmp eax, edx
jne 0x4b1070
cmp dword [0x1d7ba08], 1
je 0x4b113e
cmp ecx, 0xfc
je 0x4b1166
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b10a6
lea eax, [ebp - 0x80]
push 0x1d16d5c
push eax
call fcn.004b5800
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004af6e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b10da
mov eax, edi
push eax
call fcn.004af6e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1d16d58
push edi
call fcn.004ad0b0
add esp, 0x10
push edi
call fcn.004af6e0
push dword [esi + 0x1d7c0ac]
mov ebx, eax
call fcn.004af6e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004acf90
mov ebx, esp
push 0x1d16d3c
push ebx
call fcn.004b5800
push edi
push ebx
call fcn.004b5810
push 0x1d16d38
push ebx
call fcn.004b5810
push dword [esi + 0x1d7c0ac]
push ebx
call fcn.004b5810
push 0x12010
push 0x1d16d10
push ebx
call fcn.004bb2ce
add esp, 0x2c
jmp 0x4b1166
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1d7c0ac]
push dword [esi]
call fcn.004af6e0
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004b6ab9
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret