joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf98c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xd28a4b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x4cfa3d
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x4cfa26
test esi, esi
jbe 0x4cfa3d
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a510
test eax, eax
jne 0x4cfa18
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4cfa3d
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x4cf9f5
jmp 0x4cfa3d
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x4cfa3d
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd28a52
ret
Function at 0x4d046c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0xd2961b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404868
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4d04a7
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4d04c0
lea eax, [ebp - 0x10]
mov edx, dword [0xd766b8]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.004048c8
jmp 0x4d04d3
lea eax, [ebp - 0x10]
mov edx, dword [0xd766b8]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.004048c8
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4d04df
adc edx, 0
mov edx, dword [edx*4 + 0xd74ca0]
call fcn.00404ac8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404aac
push eax
call fcn.00406a50
mov esi, eax
cmp esi, 0xffffffff
je 0x4d05ed
mov eax, 0x40
call fcn.00402724
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406e80
test eax, eax
je 0x4d05e0
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4d05e0
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ef8
mov eax, edi
call fcn.00402744
mov eax, 0x18
call fcn.00402724
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406e80
test eax, eax
je 0x4d05e0
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4d05e0
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x4d05e0
cmp dx, 0x150
ja 0x4d05e0
mov eax, edi
call fcn.00402744
mov eax, 0xe0
call fcn.00402724
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406e80
test eax, eax
je 0x4d05e0
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x4d05e0
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.004048a4
mov eax, edi
call fcn.00402744
push esi
call fcn.00406a08
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404bd4
jne 0x4d0605
inc ebx
cmp ebx, 0x19
jne 0x4d0499
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd29622
lea eax, [ebp - 0x10]
call fcn.00404868
ret
Function at 0x4ddd00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
test edi, edi
jle 0x4ddd93
xor ebx, ebx
mov byte [ebp - 9], 0
lea eax, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
mov edx, dword [ebp + 8]
call fcn.0045ec1c
dec edi
test edi, edi
jl 0x4ddd93
inc edi
mov dword [ebp - 0x10], edi
xor edx, edx
inc ebx
mov esi, ebx
and esi, 0xff
mov al, byte [ebp + esi - 0x110]
add byte [ebp - 9], al
xor ecx, ecx
mov cl, byte [ebp - 9]
mov cl, byte [ebp + ecx - 0x110]
mov byte [ebp + esi - 0x110], cl
xor ecx, ecx
mov cl, byte [ebp - 9]
mov byte [ebp + ecx - 0x110], al
add al, byte [ebp + esi - 0x110]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + edx]
and eax, 0xff
xor cl, byte [ebp + eax - 0x110]
mov eax, dword [ebp - 8]
mov byte [eax + edx], cl
inc edx
dec dword [ebp - 0x10]
jne 0x4ddd3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4ee190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x4ee243
add edx, ebx
mov eax, edx
mov edi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x20]
add edx, ebx
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0xc]
cmp edx, 0xffff
jbe 0x4ee227
test edi, edi
jbe 0x4ee243
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.0040a510
test eax, eax
jne 0x4ee218
mov eax, dword [ebp - 8]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0xc]
mov esi, dword [eax]
test esi, esi
je 0x4ee243
add ebx, esi
mov esi, ebx
jmp 0x4ee243
add dword [ebp - 8], 2
add dword [ebp - 4], 4
dec edi
test edi, edi
ja 0x4ee1ed
jmp 0x4ee243
mov edi, edx
sub edi, dword [eax + 0x10]
cmp edi, dword [eax + 0x14]
jae 0x4ee243
mov eax, edi
shl eax, 2
add eax, dword [ebp - 0xc]
mov esi, dword [eax]
test esi, esi
je 0x4ee243
add ebx, esi
mov esi, ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ff650
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x4ff681
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4ff669
add dl, dl
jne 0x4ff68c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4ff6dd
xor eax, eax
add dl, dl
jne 0x4ff699
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4ff77a
add dl, dl
jne 0x4ff6a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4ff6b3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4ff6be
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4ff6c9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4ff6d3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x4ff678
mov eax, 1
add dl, dl
jne 0x4ff6eb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4ff6f6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4ff6e2
sub eax, ebx
mov ebx, 1
jne 0x4ff729
mov ecx, 1
add dl, dl
jne 0x4ff70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4ff71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4ff706
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4ff678
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4ff740
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4ff74b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4ff737
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4ff678
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4ff79b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x4ff678
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x1d5c4936
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..pdata_1
mov ebx, 0x42e3d0
nop
mov ecx, 0xf9f397b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x100017a0
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069405
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x100a801c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10070c9c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100019b4
push str.CLRCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100019b4
lea ecx, [ebp - 0x18]
push ecx
push 0x10070edc
push 0x10070eec
call eax
test eax, eax
jns 0x10001821
push str.____CLRCreateInstance
jmp 0x100019a2
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
push edx
push 0x10070efc
push 0x10070da8
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
jns 0x1000184b
push 0x10070da8
push str.____GetRuntime_failed:__S_n
jmp 0x100019a7
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
js 0x1000199d
cmp dword [ebp - 0x1c], 0
je 0x1000199d
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x10070e9c
push 0x10070ecc
mov eax, dword [ecx]
push ecx
call dword [eax + 0x24]
test eax, eax
jns 0x1000188f
push str.____GetInterface
jmp 0x100019a2
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jns 0x100018a6
push str.____Start
jmp 0x100019a2
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x100019b4
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.100014d0
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x1000196d
push 0x2200
push ecx
mov eax, esp
mov dword [eax], esi
mov byte [ebp - 4], 2
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov edx, 0x10070f10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100015f0
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov ecx, dword [0x100aa01c]
cmp ecx, edx
je 0x10001926
mov dword [0x100aa01c], edx
mov dword [eax], 0
test ecx, ecx
je 0x10001920
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [0x100aa01c]
test ecx, ecx
setne bl
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000193c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
test bl, bl
je 0x10001948
mov bl, 1
jmp 0x10001961
push str.____C_Get_Assembly_From_Binary_Failed
push 0x10070cd4
push 0x100a8be0
call fcn.10003520
add esp, 0xc
xor bl, bl
mov byte [ebp - 4], 7
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x1000198a
push str.____C_Get_Default_Domain_Failed
push 0x10070cd4
push 0x100a8be0
mov byte [ebp - 4], 0
call fcn.10003520
add esp, 0xc
xor bl, bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.____IsLoadable
push 0x10070cd4
push 0x100a8be0
call fcn.10003520
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002a90
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x24
push esi
push edi
or eax, 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 0
mov esi, 0x1009b48d
mov dword [esp + 8], str.Config
mov cl, 0x43
or edi, 0xffffffff
nop word [eax + eax]
cmp cl, 0x23
jne 0x10002acf
cmp byte [esi], cl
jne 0x10002acf
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10096c70]
test cl, cl
jne 0x10002ac0
pop edi
not eax
mov dword [esp + 0xc], fcn.10002350
pop esi
lea ecx, [esp]
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0x10002360
mov dword [esp + 0x14], 0x10002620
mov dword [esp + 0x18], fcn.10002350
mov dword [esp + 0x1c], 0x10002370
call fcn.10026980
add esp, 0x24
ret
Function at 0x100031d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, edx
push edi
mov edi, ecx
cmp ebp, 5
jae 0x100031e6
pop edi
pop ebp
xor al, al
pop ebx
ret
lea eax, [esp + 0x10]
push eax
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push 0x90
push edi
call fcn.1004cd90
add esp, 0xc
mov byte [edi], 0xe9
lea eax, [esp + 0x10]
sub ebx, edi
sub ebx, 5
mov dword [edi + 1], ebx
push eax
push dword [esp + 0x14]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x10005970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x100a801c]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
push esi
mov ebp, edx
mov dword [esp + 0x24], eax
push edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov dword [edi], 0
mov dword [ebp], 0
mov dword [esp + 0x24], eax
mov dword [ebx], 0
cmp eax, 5
jae 0x100059d6
mov eax, 6
jmp 0x10005b5c
mov ecx, dword [esp + 0xac]
movzx esi, byte [ecx + 4]
movzx eax, byte [ecx + 3]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 1]
shl esi, 8
or esi, eax
mov eax, 0x1000
cmp esi, eax
cmovb esi, eax
mov al, byte [ecx]
cmp al, 0xe1
jb 0x10005a16
mov eax, 4
jmp 0x10005b5c
movzx ecx, al
xor edx, edx
mov eax, ecx
mov dword [esp + 0x14], 9
div dword [esp + 0x14]
mov eax, 0x38e38e39
mov byte [esp + 0x12], dl
mul ecx
mov eax, 0xcccccccd
shr edx, 1
movzx ecx, dl
mul ecx
mov eax, ecx
mov ecx, 5
shr edx, 2
mov dword [esp + 0x18], edx
xor edx, edx
div ecx
push 0
mov al, dl
movzx ecx, al
mov byte [esp + 0x17], al
movzx eax, byte [esp + 0x16]
add ecx, eax
mov eax, 0x300
shl eax, cl
add eax, 0x7c0
push 0x1007314c
mov dword [esp + 0x1c], eax
call fcn.10003a10
mov eax, dword [esp + 0x1c]
add eax, eax
push eax
push 0x1007314c
call fcn.10003a00
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x10005aa4
mov eax, 2
jmp 0x10005b5c
mov edx, dword [esp + 0x20]
add eax, 0xd00
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov al, byte [esp + 0x12]
mov byte [esp + 0x30], al
mov al, byte [esp + 0x13]
mov byte [esp + 0x31], al
mov eax, dword [esp + 0x18]
mov byte [esp + 0x32], al
movzx eax, byte [esp + 0x2b]
push ebx
push ecx
mov byte [esp + 0x3b], al
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x24]
push edi
push dword [esp + 0x34]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x84], 0x114
mov dword [edi], eax
call fcn.100054d0
mov ecx, dword [esp + 0x58]
mov esi, eax
add esp, 0x10
mov dword [ebp], ecx
test esi, esi
jne 0x10005b49
cmp dword [ebx], 3
mov eax, 6
cmove esi, eax
push dword [esp + 0x38]
push 0x1007314c
call fcn.10003a10
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004ad35
add esp, 0x90
ret
Function at 0x10006eb0
Capabilities:
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
push edi
mov edi, ecx
cmp byte [edi + 0x20], 0
jne 0x10006fa5
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10006fa5
push ebx
push ebp
push esi
push eax
push dword [edi]
lea eax, [edi + 0x10]
push eax
call fcn.1004c810
mov ebp, dword [edi + 0xc]
add esp, 0xc
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
cmp ebp, 5
jae 0x10006f05
mov eax, dword [edi + 8]
xor ebx, ebx
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
mov byte [edi + 0x20], 1
pop edi
add esp, 0xc
ret
push 0x40
push 0x3000
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x10006f37
push ebp
test esi, esi
je 0x10006f2c
push esi
push ebx
call fcn.1004c810
add esp, 0xc
jmp 0x10006f47
push 0
push ebx
call fcn.1004cd90
add esp, 0xc
call fcn.10053731
mov dword [eax], 0x16
call fcn.1004e73f
mov eax, esi
mov byte [ebx + ebp], 0xe9
sub eax, ebx
sub eax, 5
mov dword [ebx + ebp + 1], eax
lea eax, [esp + 0x14]
push eax
push 0x40
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
push ebp
push 0x90
push dword [esp + 0x18]
call fcn.1004cd90
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x18]
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x18]
mov byte [eax], 0xe9
push ebp
push eax
call esi
mov eax, dword [edi + 8]
pop esi
pop ebp
mov dword [eax], ebx
mov byte [edi + 0x20], 1
pop ebx
pop edi
add esp, 0xc
ret
Function at 0x10008440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [0x100a9c34]
test eax, eax
je 0x10008488
cmp byte [eax], 0xe9
jne 0x10008488
lea ecx, [esp]
push ecx
push 0x40
push 5
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x100a9c34]
mov eax, dword [ecx + 1]
mov dword [0x100a9bf0], eax
mov eax, dword [0x100a88dc]
mov byte [ecx], 0xb8
mov dword [ecx + 1], eax
lea eax, [esp]
push eax
push dword [esp + 4]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x10008490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [0x100a9c34]
test eax, eax
je 0x100084d4
cmp dword [0x100a9bf0], 0
je 0x100084d4
lea ecx, [esp]
push ecx
push 0x40
push 5
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x100a9c34]
mov eax, dword [0x100a9bf0]
mov byte [ecx], 0xe9
mov dword [ecx + 1], eax
lea eax, [esp]
push eax
push dword [esp + 4]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

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

Disassembly:
cmp byte [0x100aa040], 0
jne 0x10008524
mov eax, dword [0x100aa02c]
test eax, eax
je 0x10008524
push eax
push dword [0x100aa020]
push 0x100aa030
call fcn.1004c810
push dword [0x100aa02c]
mov edx, dword [0x100aa024]
mov ecx, dword [0x100aa020]
call fcn.100031d0
add esp, 0x10
mov byte [0x100aa040], 1
mov ecx, 0x100aa068
jmp fcn.10006eb0

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

Disassembly:
push ecx
cmp byte [0x100a9b66], 0
jne 0x10008604
cmp byte [0x100a9b60], 0
jne 0x10008604
cmp byte [0x100a9b6a], 0
jne 0x10008604
cmp byte [0x100a9b69], 0
jne 0x10008604
cmp byte [0x100a9b64], 0
jne 0x10008604
cmp byte [0x100aa040], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
je 0x100085be
mov esi, dword [0x100aa02c]
lea eax, [esp + 0xc]
mov edi, dword [0x100aa020]
push eax
push 0x40
push esi
push edi
call ebx
push esi
push 0x100aa030
push edi
call fcn.1004c810
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push esi
push edi
call ebx
mov byte [0x100aa040], 0
cmp byte [0x100aa088], 0
je 0x10008601
mov esi, dword [0x100aa074]
lea eax, [esp + 0xc]
mov edi, dword [0x100aa068]
push eax
push 0x40
push esi
push edi
call ebx
push esi
push 0x100aa078
push edi
call fcn.1004c810
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push esi
push edi
call ebx
mov byte [0x100aa088], 0
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10009300
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push eax
push 0x10008e60
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x100a9c48], eax
call fcn.10014bd0
mov esi, dword [0x100a9f28]
mov edi, eax
mov eax, dword [edi + 0x5a94]
test eax, eax
je 0x10009377
mov dword [edi + 0x5a90], 0
mov dword [edi + 0x5a8c], 0
test esi, esi
je 0x10009364
dec dword [esi + 0xb0]
push eax
call fcn.10053cee
add esp, 4
mov dword [edi + 0x5a94], 0
call fcn.10002a90
call fcn.10002290
push ecx
lea ecx, [esp + 0x10]
mov dword [esi + 0x20], eax
push ecx
mov ecx, eax
mov dword [esp + 0x14], 0
call fcn.10013250
mov esi, eax
add esp, 8
test esi, esi
je 0x100093c9
mov edx, dword [esp + 0xc]
test edx, edx
je 0x100093b1
mov ecx, esi
call fcn.10026b30
mov eax, dword [0x100a9f28]
test eax, eax
je 0x100093c0
dec dword [eax + 0xb0]
push esi
call fcn.10053cee
add esp, 4
call fcn.10008f30
call fcn.10009260
mov ecx, dword [0x100a9c8c]
call fcn.10048490
call fcn.100473c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret