joyce8/EMBER2024-capa huggingface dataset:
Function at 0x785434
Capabilities:
Gather firefox profile information
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409bf4
xor eax, eax
push ebp
push 0x7854f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x785508
xor eax, eax
push ebp
push 0x7854ce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a40c
mov eax, dword [ebp - 0x10]
call fcn.0040a384
push eax
call sub.sqlite3.dll_sqlite3_open
add esp, 8
test eax, eax
jne 0x7854c4
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, 0x7852d4
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x14
mov eax, dword [ebp - 0xc]
push eax
call sub.sqlite3.dll_sqlite3_free
pop ecx
mov eax, dword [ebp - 8]
push eax
call sub.sqlite3.dll_sqlite3_close
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7854d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7854ff
lea eax, [ebp - 0x10]
call fcn.00409b24
lea eax, [ebp - 4]
call fcn.00409b00
pop eax
jmp eax

Function at 0x785698
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409bf4
xor eax, eax
push ebp
push 0x78575c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x78576c
xor eax, eax
push ebp
push 0x785732
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a40c
mov eax, dword [ebp - 0x10]
call fcn.0040a384
push eax
call sub.sqlite3.dll_sqlite3_open
add esp, 8
test eax, eax
jne 0x785728
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, 0x785538
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x14
mov eax, dword [ebp - 0xc]
push eax
call sub.sqlite3.dll_sqlite3_free
pop ecx
mov eax, dword [ebp - 8]
push eax
call sub.sqlite3.dll_sqlite3_close
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x78573c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x785763
lea eax, [ebp - 0x10]
call fcn.00409b24
lea eax, [ebp - 4]
call fcn.00409b00
pop eax
jmp eax

Function at 0x785b28
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffc0
mov eax, esp
xor ecx, ecx
mov edx, 0x40
call fcn.0040776c
mov dword [esp], 0x40
push esp
call sub.kernel32.dll_GlobalMemoryStatusEx
test eax, eax
je 0x785b61
fild qword [esp + 0x10]
fild qword [esp + 8]
fdivp st(1)
fmul dword [0x785b6c]
call fcn.00407658
jmp 0x785b66
mov eax, 0x32
add esp, 0x40
ret
Function at 0x785dac
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov ebx, eax
mov byte [esp], 0
xor eax, eax
mov dword [ebx], eax
xor esi, esi
cmp ebp, esi
jle 0x785e1d
mov eax, dword [0x7c7858]
push eax
push 0
push 0x1f0001
call sub.kernel32.dll_OpenMutexW
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x785e02
mov eax, dword [0x7c7858]
push eax
push 0
push 0
call fcn.00413cec
mov dword [ebx], eax
call sub.kernel32.dll_GetLastError
mov edi, eax
cmp edi, 0xb7
je 0x785e02
mov byte [esp], 1
jmp 0x785e1d
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebx], eax
push 0x3e8
call sub.kernel32.dll_Sleep
inc esi
cmp ebp, esi
jg 0x785dc3
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x790fa4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409bf4
xor eax, eax
push ebp
push 0x79103e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040776c
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 4], 0
je 0x790fee
mov word [ebp - 0x18], 0
jmp 0x790ff4
mov word [ebp - 0x18], 5
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x88
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a644
push eax
mov eax, dword [0x7c78d8]
mov eax, dword [eax]
call fcn.0040a644
push eax
call sub.kernel32.dll_CreateProcessW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x791045
lea eax, [ebp - 4]
call fcn.00409b00
pop eax
jmp eax

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x431be8
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0xa28
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa28]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x431c1a
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea eax, [ebp - 0xa28]
push eax
lea ecx, [ebp - 0x208]
push str.___s
push ecx
call fcn.0041329b
lea edx, [ebp - 0x208]
push edx
call fcn.004111c1
mov edi, eax
add esp, 0x10
cmp word [ebp + edi*2 - 0x20a], 0x5c
jne 0x431c64
cmp word [ebp + edi*2 - 0x20c], 0x3a
je 0x431c64
xor eax, eax
mov word [ebp + edi*2 - 0x20a], ax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x431c7e
cmp byte [ebp + 0x10], al
jne 0x431c7e
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push 0x2200000
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x431d31
push 0x14
lea ecx, [ebp - 0x820]
push 0
push ecx
call fcn.00412f40
lea edx, [edi + edi]
mov word [ebp - 0x816], dx
mov eax, dword [ebp - 0x816]
push 0x104
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x810]
add eax, 2
push edx
mov dword [ebp - 0x820], 0xa0000003
mov word [ebp - 0x814], ax
call fcn.00412fba
mov eax, dword [ebp - 0x816]
add esp, 0x18
push 0
add eax, 0xc
lea ecx, [ebp + 8]
push ecx
push 0
movzx edx, ax
push 0
add edx, 8
push edx
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x820]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
test eax, eax
jne 0x431d43
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x432017
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x43202f
cmp eax, 0x10000
jne 0x432053
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00414d04
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
pop ebp
ret 4

Function at 0x4320a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x4320f3
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.004142b6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8
Function at 0x432281
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4a7540], eax
mov edx, 1
mov eax, 0x4a7540
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4a7efc
jl 0x432297
mov dword [0x49205c], 1
mov dword [0x4a7f10], 1
pop edi
pop ebp
ret

Function at 0x4331a2
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x43323e
jne 0x4331c5
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xf
jae 0x433237
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x433237
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x10]
push edx
call edi
fnstcw word [ebp + 0xa]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x20]
movzx eax, word [ebp + 0xa]
fild qword [ebp - 0x28]
or eax, 0xc00
mov dword [ebp - 4], eax
fdivp st(1)
fmul qword [0x48cd40]
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
fldcw word [ebp + 0xa]
cmp edx, esi
jb 0x4331e4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4333be
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43341e
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 4]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x433425
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0x20
je 0x433471
cmp ebx, 0x40
je 0x433484
test bl, 0xb
jne 0x433442
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test bl, 0x14
je 0x43344e
mov ecx, 1
xor eax, eax
test bl, 2
je 0x43345a
mov eax, 1
mov edx, dword [ebp + 0xc]
push edx
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433493
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x298]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x433570
push 0x100
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostname]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x433570
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x4334fc
mov ecx, eax
lea ecx, [ecx]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x4334f3
cmp esi, edx
jle 0x43351a
push str.0.0.0.0
push edi
call fcn.00411567
add esp, 8
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + esi*4 - 4]
push 4
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00410e60
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00413650
lea ecx, [ebp - 0x108]
push 0xffffffffffffffff
push ecx
call fcn.0043299a
mov esi, eax
push esi
push edi
call fcn.00411567
push esi
call fcn.004111dc
add esp, 0x1c
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x484ea8
push edi
call fcn.00411567
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4335cd
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x20c
push 0x104
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00433244
lea edx, [ebp - 0x20c]
push edx
call fcn.004111c1
add esp, 0x10
test eax, eax
je 0x433615
cmp word [ebp + eax*2 - 0x20e], 0x5c
lea eax, [ebp + eax*2 - 0x20e]
jne 0x433615
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4336bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x43364f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x433654
mov al, 1
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x4336bf
push esi
push edi
lea edi, [ebp - 0x20c]
call fcn.00410160
mov esi, eax
push 0x5c
push esi
call fcn.00413e8a
add esp, 8
test eax, eax
jne 0x433683
push esi
call fcn.004111dc
add esp, 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004335cd
push esi
mov bl, al
call fcn.004111dc
add esp, 8
test bl, bl
je 0x4336b2
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, 0x10
jne 0x433649
xor al, al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4339b2
test al, 0x10
je 0x4339b2
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x4339b6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4339f5
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4339ea
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44334f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
test al, 0x10
je 0x44342d
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x44339f
push 1
push esi
push eax
call fcn.004325e0
mov eax, dword [esi]
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi], 0
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x44340a
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
test eax, eax
je 0x4433e0
cmp eax, 0xffffffff
jne 0x44338a
push 0
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push accept
push 0x4880b0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x44339f
test eax, eax
je 0x44339f
mov edx, dword [esi]
push 1
lea ecx, [ebp + 0xc]
push ecx
push edx
call fcn.004325e0
push esi
call fcn.00432614
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [esi], eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
test al, 1
je 0x4433cd
mov eax, dword [esi]
test eax, eax
je 0x4433ae
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x443442
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
test al, 0x10
je 0x443521
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x443494
push 1
push esi
push eax
call fcn.004325e0
mov eax, dword [esi]
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov dword [esi], 0
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x18]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4434fe
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
test eax, eax
je 0x4434d4
cmp eax, 0xffffffff
jne 0x44347f
push 0
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x4880b0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x443494
test eax, eax
je 0x443494
mov edx, dword [esi]
push 1
lea ecx, [ebp + 0x14]
push ecx
push edx
call fcn.004325e0
push esi
call fcn.00432614
mov eax, dword [ebp + 0x14]
add esp, 0x10
mov dword [esi], eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
test dword [ebp + 0xc], eax
je 0x4434c2
mov eax, dword [esi]
test eax, eax
je 0x4434a3
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x443561
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
xor edx, edx
push ecx
mov dword [ebp + 0x10], edx
call fcn.00432631
test al, al
je 0x4435b1
test ebx, ebx
je 0x4435b1
test edi, edi
je 0x4435b1
push esi
push edx
lea eax, [ebp + 0x10]
push eax
lea esi, [ecx + 0x18]
mov ecx, dword [esi]
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4435a7
push esi
call fcn.00432614
add esp, 4
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
pop edi
mov eax, edx
pop ebx
pop ebp
ret 0xc

Function at 0x4439c1
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x4439df
push esi
call fcn.00433396
add esp, 4
test al, al
jne 0x4439f8
push 1
jmp 0x4439e1
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
pop ebp
ret

Function at 0x443c87
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
mov byte [0x4974ee], 0
test edi, edi
je 0x443ccc
mov byte [0x4974ef], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x18]
push eax
push esi
lea ecx, [ebp - 8]
push ecx
push 0x443b61
push esi
push esi
mov dword [ebp - 4], edi
call fcn.00413d7f
add esp, 0x18
mov esi, eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
test esi, esi
je 0x443cff
push 0xffffffffffffffff
push esi
mov byte [0x4974ef], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4974ee], 1
jne 0x443d11
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x443e36
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00443e19
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
pop ebp
ret 0xc
Function at 0x44982a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push edx
push 0x4a8630
mov dword [ebp + 0xc], 0
call fcn.00441af5
test al, al
jne 0x44985c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [0x4a8690]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
mov ecx, dword [0x4a86a4]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ecx + edx*4]
push ebx
mov ebx, dword [eax]
push edi
mov edi, dword [ebx]
cmp esi, 0xffffffff
je 0x449902
movzx eax, byte [ebx + 0x88]
add eax, 0xfffffffe
cmp eax, 0x14
ja case.0x44989a.4
movzx ecx, byte [eax + 0x4499c6]
jmp dword [ecx*4 + 0x4499aa]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
or esi, 0xe
jmp case.0x44989a.4
or esi, 3
jmp case.0x44989a.4
or esi, 4
push 0
test esi, 0x800
je 0x4498d3
push 1
push 0xcf
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x44989a.4
push 0
push 0xcf
push edi
or esi, 0x10000
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x44989a.4
or esi, 0x4000000
or esi, 0x50000000
push esi
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x449940
push esi
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [0x4a86a4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx]
cmp byte [edx + 0x88], 0x13
jne 0x449940
push esi
push 0
push 0x1036
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0xc], eax
mov al, byte [ebx + 0x8b]
cmp al, 0xff
je 0x449963
mov ecx, dword [ebp - 4]
movzx eax, al
cmp eax, dword [ecx + 0x194]
je 0x449963
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x44996f
mov edx, dword [ebp - 4]
push 1
push ebx
push edx
call fcn.00430b87
mov al, byte [ebx + 0x88]
cmp al, 2
je 0x449982
cmp al, 3
je 0x449982
cmp esi, 0xffffffff
je 0x449997
mov eax, dword [ebx]
push 0x27
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
cmp dword [ebp + 0xc], eax
pop edi
pop ebx
setne al
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44a4cd
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x44a4f3
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x44a4ee
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x44a4d8
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x44a4e0
cmp edx, ebx
jne 0x44a62e
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x44a4af
add eax, dword [eax + 4]
jmp 0x44a49c
mov dword [ebp + 0xc], ebx
jmp 0x44a4fe
push es