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

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0x9ac6cdd7
jne 0x53ef08
mov dword [esp + 8], eax
lea ecx, [esi + 2]
mov edx, 9
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x53eee0
cmp ax, word [esi + 0x14]
jne 0x53ef08
mov si, word [esi + 0xe]
test si, si
jbe 0x53ef08
cmp si, 0x9ec
ja 0x53ef08
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x5511c6
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x55122f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x5511f1
test byte [eax + 0x230], 1
jne 0x55120e
movzx si, byte [edx]
cmp si, cx
jbe 0x55120e
push str.Invalid_background_palette_index
push eax
call fcn.005495c6
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push str.bKGD
push eax
call fcn.0054fef6
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x5512a7
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.0054fed6
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.0054fed6
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.0054fed6
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x5512a0
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x5512a0
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push eax
call fcn.005495c6
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x551216
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x5512da
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.005495c6
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0054fed6
lea ecx, [esp + 0x10]
push 2
push ecx
push str.bKGD
push esi
call fcn.0054fef6
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret

Function at 0x553a06
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x553a36
push esi
call fcn.00553fc6
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x553a2f
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x553ab9
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x553aa5
mov eax, dword [esi + 8]
test eax, eax
je 0x553a5a
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 0x553aa1
cmp eax, 2
je 0x553aa5
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x553a4d
cmp eax, 3
je 0x553a80
cmp eax, 1
jne 0x553a4d
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x553a4d
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x553a4d
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00553ae6
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x553ad9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00553ae6
add esp, 4
pop esi
ret
Function at 0x557476
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.0055f596
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.0055f556
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5574ba
push edi
call fcn.0055f5a6
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.005575b6
mov dword [esi + 4], fcn.00557706
mov dword [esi + 8], fcn.005577b6
mov dword [esi + 0xc], fcn.00557866
mov dword [esi + 0x10], 0x557916
mov dword [esi + 0x14], 0x557986
mov dword [esi + 0x18], 0x5579f6
mov dword [esi + 0x1c], 0x557b76
mov dword [esi + 0x20], 0x557d66
mov dword [esi + 0x24], fcn.00557f56
mov dword [esi + 0x28], 0x558056
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x55751c
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.msvcrt.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x5575ae
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x5575ae
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x557577
cmp al, 0x4d
jne 0x55759b
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x599646
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
push edi
je 0x599686
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push 2
push ebp
push ebx
push ecx
push esi
push 0
push eax
call fcn.005a7846
mov edi, dword [esp + 0x78]
add esp, 0x24
jmp 0x5996a7
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov edi, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5996de
lea edx, [esp + 0x30]
lea ecx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x64]
push ecx
push 2
push ebp
push ebx
push edx
push esi
push 0x10000
push eax
call fcn.005a7846
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
add esp, 0x24
jmp 0x5996f7
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
imul eax, edi
mov ecx, dword [esp + 0x70]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x60], eax
mov dword [ecx], eax
jle 0x599794
mov edx, dword [esp + 0x74]
lea ecx, [edx + 0x1c]
jmp 0x59971b
mov edi, dword [esp + 0x54]
mov eax, ebx
cdq
idiv edi
mov eax, ebx
mov esi, edx
cdq
idiv edi
shl esi, 4
mov edx, esi
mov esi, dword [esp + edx + 0x10]
mov dword [ecx - 0x1c], esi
shl eax, 4
mov ebp, dword [esp + eax + 0x34]
mov edi, dword [esp + eax + 0x30]
mov dword [ecx - 0x10], ebp
mov ebp, dword [esp + edx + 0x18]
mov dword [ecx - 0x18], edi
mov edi, dword [esp + edx + 0x14]
mov edx, dword [esp + edx + 0x1c]
mov dword [ecx - 0xc], ebp
mov ebp, dword [esp + eax + 0x38]
mov eax, dword [esp + eax + 0x3c]
mov dword [ecx - 0x14], edi
mov dword [ecx - 8], ebp
mov dword [ecx - 4], edx
mov dword [ecx], eax
mov edx, dword [ecx - 0x18]
cmp esi, edi
jne 0x599777
mov eax, dword [ecx - 8]
mov dword [ecx - 0x10], edx
mov dword [ecx], eax
jmp 0x599788
cmp edx, dword [ecx - 0x10]
jne 0x599788
mov eax, dword [ecx - 0x1c]
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0x14], eax
mov dword [ecx - 4], edx
mov eax, dword [esp + 0x60]
inc ebx
add ecx, 0x20
cmp ebx, eax
jl 0x599717
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x5ade30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x841008]
xor edx, edx
cmp eax, edx
jne 0x5ade56
xor eax, eax
mov byte [eax + 0x840f08], al
inc eax
cmp eax, 0x100
jl 0x5ade3e
mov dword [0x841008], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x840f08
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5adee7
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 0x5adeba
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 0x5ade88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5adf60
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 0x5adfb3
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 0x5adf9a
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 0x5b4940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f316e
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.005b5260
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6d1d7c
call fcn.005e081f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5b49d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005e081f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5b49cc
push 0
mov ecx, eax
call fcn.005aba70
mov dword [esi + 0xc], eax
jmp 0x5b49d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5b49d5
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 0x5e2ebe
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5e2ef6
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.005e0f39
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005e0f11
jmp 0x5e2f02
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5e46bc
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 0x5e46fe
call fcn.005eab89
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5e46fe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x5e46f5
xor eax, eax
jmp 0x5e4706
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005e470c
pop edi
pop esi
pop ebx
ret 4

Function at 0x5eb0b9
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 0x5eb0e7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5eb105
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005eb01f
jmp 0x5eb105
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5eb105
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005eb01f
test edi, edi
mov eax, edi
jne 0x5eb0ef
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push esi
test edi, edi
je 0x100010a0
cmp dword [esp + 0x10], 0
je 0x100010a0
push 0x40
push 0x1000
push 0x18
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100010a0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0xc
push edi
call ebx
test eax, eax
je 0x100010a0
mov ecx, edi
push ebp
mov eax, esi
sub ecx, esi
mov ebp, 0xc
nop
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
sub ebp, 1
jne 0x10001050
mov edx, dword [esp + 0x14]
lea eax, [edi + 0xc]
mov dword [esi + 0xd], eax
mov ecx, 0xe0ff
mov word [esi + 0x11], cx
mov byte [esi + 0xc], 0xb8
mov eax, ecx
lea ecx, [esp + 0xc]
push ecx
mov dword [edi + 1], edx
mov edx, dword [esp + 0x10]
push edx
push 0xc
push edi
mov byte [edi], 0xb8
mov word [edi + 5], ax
call ebx
lea eax, [esp + 0xc]
push eax
push 0x20
push 0x18
push esi
call ebx
pop ebp
mov eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x100010b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push esi
test edi, edi
je 0x10001150
cmp dword [esp + 0x10], 0
je 0x10001150
push 0x40
push 0x1000
push 0x18
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10001150
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0xc
push edi
call ebx
test eax, eax
je 0x10001150
mov ecx, edi
push ebp
mov eax, esi
sub ecx, esi
mov ebp, 0xc
nop
mov dl, byte [eax + ecx]
mov byte [eax], dl
inc eax
sub ebp, 1
jne 0x10001100
mov edx, dword [esp + 0x14]
lea eax, [edi + 0xc]
mov dword [esi + 0xd], eax
mov ecx, 0xe0ff
mov word [esi + 0x11], cx
mov byte [esi + 0xc], 0xb8
mov eax, ecx
lea ecx, [esp + 0xc]
push ecx
mov dword [edi + 1], edx
mov edx, dword [esp + 0x10]
push edx
push 0xc
push edi
mov byte [edi], 0xb8
mov word [edi + 5], ax
call ebx
lea eax, [esp + 0xc]
push eax
push 0x20
push 0x18
push esi
call ebx
pop ebp
mov eax, esi
pop esi
pop ebx
pop ecx
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x10001160
Capabilities:
Check http status code

Disassembly:
fld dword [0x1000662c]
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_malloc]
fstp dword [esi + 0x24]
fld dword [0x10006628]
push edi
mov eax, 0x13
fstp dword [esi + 0x28]
xor edi, edi
push 0x190
mov dword [esi + 0x10], 0xf
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], str._AnonymousRoadBack_
mov dword [esi + 0x20], edi
mov dword [esi], edi
mov dword [esi + 4], 1
call ebx
add esp, 4
mov dword [esi + 0x18], eax
mov edi, edi
push 0x14
call ebx
mov ecx, dword [esi + 0x18]
mov dword [edi + ecx], eax
add edi, 4
add esp, 4
cmp edi, 0x190
jl 0x100011b0
pop edi
mov eax, esi
pop ebx
ret
Function at 0x100011d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
lea eax, [esp + 8]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebx
push 1
call ebx
push 4
push edi
push esi
call dword [sym.imp.MSVCR90.dll_memmove]
mov edx, esi
add esp, 0xc
mov ecx, 4
mov eax, edi
sub edx, edi
lea esp, [esp]
mov ebp, dword [edx + eax]
cmp ebp, dword [eax]
jne 0x10001222
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x10001210
mov ecx, dword [edi]
push 4
mov dword [esi], ecx
mov edx, dword [edi]
push edi
push esi
mov dword [esi], edx
call dword [sym.imp.MSVCR90.dll__memicmp]
add esp, 0xc
push 1
call ebx
push 1
call ebx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebp
pop ebx
pop ecx
ret

Function at 0x10001da0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
mov edi, dword [0x100086a0]
mov ecx, dword [edi]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
mov esi, ebx
push 0x40
shl esi, 4
push 4
add ecx, esi
push ecx
mov dword [esp + 0x20], 0
call ebp
mov edx, dword [edi]
mov ecx, dword [esp + 0x18]
lea eax, [edx + ebx*4]
mov ebx, dword [eax]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
lea edx, [esp + 0x10]
push edx
push eax
push 4
add ecx, esi
push ecx
call ebp
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x10004400
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [esp + 8], 1
jne 0x1000444d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x100043e0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10001260
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10001b10
push 0
push 0
call esi
pop esi
mov eax, 1
ret 0xc

Function at 0x100049d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
push esi
mov esi, dword [0x10008830]
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x60
call edi
push 0x11
call edi
push 0x2d
call edi
test al, 1
je 0x100049fa
xor eax, eax
cmp dword [esi + 4], eax
sete al
mov dword [esi + 4], eax
xor ebp, ebp
cmp dword [esi + 4], ebp
je 0x10004ad9
push 0x26
call edi
test al, 1
je 0x10004a2d
mov eax, dword [esi + 0x18]
or ecx, 0xffffffff
add dword [esi + 0x20], ecx
jns 0x10004a1e
mov edx, dword [esi]
dec edx
mov dword [esi + 0x20], edx
mov edx, dword [esi + 0x20]
mov edx, dword [eax + edx*4]
cmp dword [edx], 2
je 0x10004a13
pop edi
pop esi
pop ebp
ret
push 0x28
call edi
mov ecx, dword [esi + 0x18]
test al, 1
je 0x10004a5a
mov eax, dword [esi]
lea ebx, [ebx]
inc dword [esi + 0x20]
cmp dword [esi + 0x20], eax
jne 0x10004a4b
mov dword [esi + 0x20], ebp
mov edx, dword [esi + 0x20]
mov edx, dword [ecx + edx*4]
cmp dword [edx], 2
je 0x10004a40
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi + 0x20]
mov edx, dword [ecx + eax*4]
cmp dword [edx + 0xc], ebp
je 0x10004ad9
push 0x25
call edi
test al, 1
je 0x10004a80
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0xc]
cmp dword [eax], ebp
jle 0x10004a80
or ebp, 0xffffffff
push 0x27
call edi
test al, 1
je 0x10004aa3
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
dec ecx
cmp dword [edx], ecx
jge 0x10004aa3
mov ebp, 1
jmp 0x10004aa7
test ebp, ebp
je 0x10004ad9
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0xc]
add dword [eax], ebp
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + eax*4]
cmp dword [edx], 1
lea eax, [ecx + eax*4]
jne 0x10004acc
mov dword [esi], 0
mov eax, dword [eax]
cmp dword [eax], 4
jne 0x10004ad9
mov dword [esi], 0
pop edi
pop esi
pop ebp
ret

Function at 0x10004cec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10004cf6
repz ret
jmp fcn.1000516c
Function at 0x47326e
Capabilities:
Create thread

Disassembly:
jmp 0x5523db
jmp dword [sym.imp.ucrtbased.dll__beginthreadex]
Function at 0x4ed040
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x190]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
shl eax, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x1b4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
sub edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3a0]
mov edx, dword [ecx + 0x3c]
and edx, 3
je 0x4ed19a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4 + 0x1a4], 0x472f7b
jne 0x4ed19a
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x4ed0cb
cmp dword [ebp - 0xc], 0
je 0x4ed19a
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call fcn.00470e8d
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4ed19a
mov ecx, dword [ebp - 0x10]
and ecx, 1
je 0x4ed19a
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x4ed145
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0x8000
mov esi, esp
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [0x56700c]
add esp, 4
cmp esi, esp
call fcn.00471e55
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
mov dword [edx + 8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4ed190
xor ecx, ecx
jne 0x4ed14d
mov esi, esp
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
push ecx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.00471e55
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x4ed18e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [eax + 8], edx
jmp 0x4ed19a
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], 0
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00471e55
mov esp, ebp
pop ebp
ret
Function at 0x4ed4a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x190], 0
je 0x4ed4eb
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x11c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x190]
call edx
add esp, 0x14
cmp esi, esp
call fcn.00471e55
jmp 0x4ed53d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x4ed53b
cmp dword [ebp - 4], 2
jle 0x4ed4ff
jmp 0x4ed53b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x118]
push edx
push 1
push 2
imul eax, dword [ebp + 0xc], 3
add eax, 0x55f35c
push eax
call fcn.0047089d
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x118]
push edx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0047089d
add esp, 0x10
xor eax, eax
pop esi
add esp, 4
cmp ebp, esp
call fcn.00471e55
mov esp, ebp
pop ebp
ret