joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401037
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x44e608]
mov dword [ebp - 0x28], eax
mov eax, dword [0x44e60c]
xor ebx, ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.00401030
mov eax, dword [0x44e610]
add dword [ebp - 0x14], 0x23f
mov dword [ebp - 0x30], eax
mov eax, dword [0x44e614]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x1a3f1cc], 0xc
mov dword [ebp - 4], eax
jne 0x4010b9
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x43c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x1a3f1cc]
cmp eax, 0xfa9
jne 0x4010d5
mov dword [0x1a3f1c8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ed
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x1a3f11c], ebx
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a3f1c4], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1a3f1cc], 0xc
mov dword [ebp - 4], eax
jne 0x40114e
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x61c88647
sub edi, eax
dec dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
jne 0x401089
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x40693e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d7a0]
jne 0x406948
repz ret
jmp fcn.0040b95e

Function at 0x40b1f2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406a3c
and dword [ebp - 4], 0
cmp dword [0x457698], 0
mov ebx, eax
jne 0x40b2a3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b354
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b354
push eax
call fcn.004069ca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x457698], eax
call esi
push eax
call fcn.004069ca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45769c], eax
call esi
push eax
call fcn.004069ca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4576a0], eax
call esi
push eax
call fcn.004069ca
pop ecx
mov dword [0x4576a8], eax
test eax, eax
je 0x40b2a3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004069ca
pop ecx
mov dword [0x4576a4], eax
mov eax, dword [0x4576a4]
cmp eax, ebx
je 0x40b2fb
cmp dword [0x4576a8], ebx
je 0x40b2fb
push eax
call fcn.00406a45
push dword [0x4576a8]
mov esi, eax
call fcn.00406a45
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2fb
test edi, edi
je 0x40b2fb
call esi
test eax, eax
je 0x40b2f2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b2f2
test byte [ebp - 0xc], 1
jne 0x40b2fb
or dword [ebp + 0x10], 0x200000
jmp 0x40b334
mov eax, dword [0x45769c]
cmp eax, ebx
je 0x40b334
push eax
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b334
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b334
mov eax, dword [0x4576a0]
cmp eax, ebx
je 0x40b334
push eax
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b334
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457698]
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b354
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b356
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ebfa0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret

Function at 0xa3aa18
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0xd67d1f
jmp 0xd660d0
push eax
push esp
push dword [esp]
pop eax
add esp, 4
push ecx
mov ecx, 0x55ffd6bf
add ecx, 0xaa002945
add eax, ecx
pop ecx
sub eax, 0x14
xchg dword [esp], eax
pop esp
jmp 0xd660f7
jmp 0xd6cb46
jmp 0xd663cb
push edx
push eax
mov eax, 0x3d49d357
mov dword [esp + 4], eax
pop eax
push esp
pop dword [esp]
add dword [esp], 4
pop ebp
jmp 0xd663e5
jmp 0xd65fc2
jmp 0xd67dda
push edx
mov edx, esp
add edx, 4
push ebp
mov ebp, 4
sub edx, ebp
pop ebp
xor edx, dword [esp]
xor dword [esp], edx
xor edx, dword [esp]
mov esp, dword [esp]
jmp 0xd67e50
mov dword [esp], ebp
jmp 0xd67e58
jmp 0xd662e0
jmp fcn.00d6cbb6
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x405a12
pop dword [ebp - 8]
mov eax, 0xe96f9532
sub eax, 0xe92f3b20
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xde4e0637
add dword [ebp - 0x18], 0x70043f14
mov dword [ebp - 0x14], 0x9d548069
add dword [ebp - 0x14], 0x94decbdc
mov dword [ebp - 0x10], 0x7c6fa611
sub dword [ebp - 0x10], 0x302361e3
mov dword [ebp - 0xc], 0xce4f9f5c
sub dword [ebp - 0xc], 0xce4f9f5c
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x5374aa66
sub dword [ebp - 0x18], 0xdf024110
mov dword [ebp - 0x14], 0x2eeac254
add dword [ebp - 0x14], 0x12819f21
mov dword [ebp - 0x10], 0x310543aa
add dword [ebp - 0x10], 0x326a28c2
mov dword [ebp - 0xc], 0xd556ae72
add dword [ebp - 0xc], 0x2aa9518e
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x37ae0
push 0
call eax
mov ecx, 0x4acc
mov ebx, eax
mov esi, 0x234da4f5
add esi, 0xdcf93f0b
add esi, dword [ebp - 8]
mov edi, 0x8dd2b417
sub edi, 0x45866c99
xor dword [ebp - 4], 0x21bb632f
mov edx, dword [esi]
xor dword [ebp - 4], 0x246dce3d
xor edx, edi
sub dword [ebp - 4], ebx
mov dword [ebx], edx
sub dword [ebp - 4], ebx
add ebx, 0xebb133ae
add ebx, 0x144ecc56
add esi, 0x9bee8b7e
sub esi, 0x9bee8b7a
loop 0x405b24
add eax, 0x11e03
mov ebx, eax
add eax, 5
mov ecx, 0x8e525710
add ecx, 0x71eda8f0
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x10002282
Capabilities:
Create thread

Disassembly:
push 0x2c
mov eax, 0x1007a60a
call fcn.10060c5d
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push ecx
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x100a6a04
push eax
call fcn.1000304f
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
call fcn.100030df
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.10006c68
add esp, 0xc
cmp dword [ebp - 0x24], 5
jb 0x100023ca
cmp dword [ebp - 0x24], ebx
ja 0x100022f7
push 0x80070057
call fcn.10003159
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
sub eax, 0x10
call fcn.100030df
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 1
jbe 0x100022ed
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
call fcn.1005c076
cmp dword [ebp - 0x24], 2
pop ecx
mov esi, eax
jbe 0x100022ed
mov eax, dword [ebp - 0x28]
push dword [eax + 8]
call fcn.1005c076
cmp dword [ebp - 0x24], 3
pop ecx
mov edi, eax
jbe 0x100022ed
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
call fcn.1005c076
cmp dword [ebp - 0x24], 4
pop ecx
jbe 0x100022ed
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x10]
add eax, esi
push ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
call fcn.1005c076
add eax, edi
mov dword [ebp - 0x2c], eax
sub esp, 0xc
lea esi, [ebp - 0x38]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1002fdc3
call fcn.10032d0f
push 8
call fcn.1005bed0
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1000239c
mov ecx, 0x100bbb3c
call fcn.1000308c
mov edi, esi
jmp 0x1000239e
xor edi, edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
lea eax, [ebp - 0x14]
call fcn.10002622
push ebx
push ebx
push edi
push 0x1000248d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10003137
lea esi, [ebp - 0x28]
call fcn.10002876
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10003137
xor eax, eax
call fcn.10060d35
ret 8

Function at 0x10002c74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10002ccb
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10002cbd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10002cb9
cmp edi, eax
jae 0x10002cbd
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10002cab
cmp edi, eax
jb 0x10002cc1
xor eax, eax
jmp 0x10002cca
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10003b0a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 0xa
push ebx
push edi
jne 0x10003c43
push dword [esi + 0x60]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push dword [esi + 4]
call edi
and dword [esi + 0x60], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esi + 0x64]
je 0x10003b60
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x58]
test eax, eax
je 0x10003b49
push eax
push dword [esi + 4]
call edi
push 0
push 0x32
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x58], eax
jmp 0x10003c2f
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_MonitorFromPoint]
push 2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x58], 0x28
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call edi
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x58], 0x28
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
je 0x10003beb
push dword [ebp - 4]
lea eax, [ebp - 0x30]
push dword [ebp - 8]
push eax
call edi
test eax, eax
jne 0x10003c2f
mov eax, dword [esi + 0x58]
test eax, eax
je 0x10003bfc
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x32
push 0xb
push dword [esi + 4]
call edi
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x10003c21
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x32
push 0xc
push dword [esi + 4]
call edi
mov dword [esi + 0x5c], eax
push 0
push 0x64
push 0xa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x60], eax
jmp 0x10003ca1
cmp dword [ebp + 8], 0xb
jne 0x10003ca1
push dword [esi + 0x58]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
and dword [esi + 0x58], 0
push 1
call ebx
mov edi, 0x8000
mov ecx, edi
and ax, cx
cmp ax, cx
je 0x10003c8f
push 2
call ebx
mov ecx, edi
and ax, cx
cmp ax, di
je 0x10003c8f
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x10003ca1
push 0
push 0x64
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], 1
xor eax, eax
pop ebx
leave
ret 8
Function at 0x10005025
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
push 0x10
mov eax, 0x100777bb
call fcn.10060c5d
mov ebx, ecx
mov eax, dword [0x100bbb3c]
mov ecx, 0x100bbb3c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor esi, esi
push 0x3f9
mov dword [ebp - 4], esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0xe
push eax
mov dword [ebp - 0x14], eax
call edi
mov dword [ebp - 0x18], eax
inc eax
push eax
lea esi, [ebp - 0x10]
call fcn.10002f53
push eax
push dword [ebp - 0x18]
push 0xd
push dword [ebp - 0x14]
call edi
or eax, 0xffffffff
call fcn.10002c56
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
test al, al
je 0x10005139
call dword [sym.imp.USER32.dll_EmptyClipboard]
and dword [ebp - 0x18], 0
push 0xfde9
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
mov dword [ebp - 0x1c], eax
call fcn.100030df
add eax, 0x10
mov dword [esi], eax
call fcn.1004e41a
mov esi, dword [ebp - 0x18]
add esp, 0xc
lea edi, [esi + 1]
push edi
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100050f6
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x1c]
jmp 0x1000513f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push edi
push eax
call fcn.1005c465
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push ebx
mov byte [eax + esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x14], 0
je 0x10005139
push dword [ebp - 0x14]
call fcn.1005c45a
pop ecx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10003137
xor eax, eax
call fcn.10060d35
ret
Function at 0x1000514c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0x3f9
push dword [eax + 4]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10005205
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
push ebx
push edi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005b436
mov edi, eax
xor eax, eax
mov word [edi], ax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
pop ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push ebx
push 0x44b
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
cmp eax, ebx
jle 0x100051db
push 5
push ebx
push ebx
push edi
push str.open
xor ecx, ecx
push ebx
mov word [edi + eax*2], cx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call fcn.1005c45a
or dword [ebp - 8], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
pop ecx
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x437
push dword [ebp - 4]
call esi
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
pop edi
mov dword [ecx], eax
pop ebx
jmp 0x1000520d
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
pop esi
leave
ret 4
Function at 0x100058c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 0xa
push ebx
push edi
jne 0x10005a01
push dword [esi + 0x28]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push dword [esi + 4]
call edi
and dword [esi + 0x28], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esi + 0x34]
je 0x1000591e
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x10005907
push eax
push dword [esi + 4]
call edi
push 0
push 0x32
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x2c], eax
jmp 0x100059ed
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_MonitorFromPoint]
push 2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x58], 0x28
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call edi
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x58], 0x28
call ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
je 0x100059a9
push dword [ebp - 4]
lea eax, [ebp - 0x30]
push dword [ebp - 8]
push eax
call edi
test eax, eax
jne 0x100059ed
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x100059ba
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x32
push 0xb
push dword [esi + 4]
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100059df
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x32
push 0xc
push dword [esi + 4]
call edi
mov dword [esi + 0x30], eax
push 0
push 0x64
push 0xa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x28], eax
jmp 0x10005a75
cmp dword [ebp + 8], 0xb
jne 0x10005a52
push dword [esi + 0x2c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
and dword [esi + 0x2c], 0
push 1
call ebx
mov edi, 0x8000
mov ecx, edi
and ax, cx
cmp ax, cx
je 0x10005a3e
push 2
call ebx
mov ecx, edi
and ax, cx
cmp ax, di
jne 0x10005a68
push 0
push 0x64
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x2c], eax
jmp 0x10005a75
cmp dword [ebp + 8], 0xc
jne 0x10005a75
push dword [esi + 0x30]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
and dword [esi + 0x30], 0
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], 1
xor eax, eax
pop ebx
leave
ret 8
Function at 0x10006160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x1000616d
xor al, al
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov ebx, eax
call esi
cmp ebx, 0xffffffff
je 0x10006199
test bl, 0x10
jne 0x10006199
xor eax, eax
inc eax
jmp 0x1000619b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10006c2a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 1]
push eax
push 0x100068ba
push ebx
push ebx
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, ebx
je 0x10006c61
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x10007ef9
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x1007b61a
call fcn.10060c5d
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push ecx
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x100a37c8
push eax
call fcn.1000304f
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
call fcn.100030df
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.10006c68
mov eax, dword [0x100bbb3c]
add esp, 0xc
mov ecx, 0x100bbb3c
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 3
jmp 0x10007ffc
mov eax, dword [ebp - 0x2c]
lea eax, [eax + ebx*4]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.100030df
add eax, 0x10
mov dword [edi], eax
push ecx
lea eax, [esi - 0x10]
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], esp
mov edi, esp
call fcn.100030df
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.100077da
add esp, 0xc
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.10002622
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10003137
mov esi, dword [ebp - 0x10]
push ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x1c], esp
mov edi, esp
call fcn.100030df
add eax, 0x10
mov dword [edi], eax
call fcn.1004ec12
pop ecx
test al, al
jne 0x10007ffb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10008028
inc ebx
cmp ebx, dword [ebp - 0x28]
jb 0x10007f71
lea eax, [esi - 0x10]
call fcn.10003137
lea esi, [ebp - 0x2c]
call fcn.10002876
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10003137
mov al, 1
call fcn.10060d35
ret
lea eax, [esi - 0x10]
call fcn.10003137
lea esi, [ebp - 0x2c]
call fcn.10002876
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10003137
xor al, al
jmp 0x10008022