joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f212
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x561be8]
push ebx
push esi
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
and dword [ebp - 0x80], 0
push 0x40
mov dword [ebp + 0x88], eax
pop ecx
xor eax, eax
mov byte [ebp - 0x7c], 0
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x94]
push SysReAllocStringLen
call esi
push dword [ebp + 0x9c]
call fcn.004a1ba0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
pop ecx
inc eax
push eax
push dword [ebp + 0x9c]
push 1
push 0x54937c
push dword [ebp - 0x80]
call edi
push dword [ebp - 0x80]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x9c]
push SysReAllocStringLen
call esi
push dword [ebp + 0xa4]
call fcn.004a1ba0
pop ecx
inc eax
push eax
push dword [ebp + 0xa4]
push 1
push 0x54937c
push dword [ebp - 0x80]
call edi
push dword [ebp - 0x80]
call ebx
push dword [ebp + 0x9c]
lea eax, [ebp - 0x7c]
push str._sDefaultIcon
push eax
call fcn.004a3198
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push SysReAllocStringLen
call esi
push dword [ebp + 0xa0]
call fcn.004a1ba0
pop ecx
inc eax
push eax
push dword [ebp + 0xa0]
push 1
push 0x54937c
push dword [ebp - 0x80]
call edi
push dword [ebp - 0x80]
call ebx
push dword [ebp + 0x9c]
lea eax, [ebp - 0x7c]
push str._sShell
push eax
call fcn.004a3198
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push SysReAllocStringLen
call esi
push str.Open
call fcn.004a1ba0
pop ecx
inc eax
push eax
push str.Open
push 1
push 0x54937c
push dword [ebp - 0x80]
call edi
push dword [ebp - 0x80]
call ebx
push dword [ebp + 0x9c]
lea eax, [ebp - 0x7c]
push str._sShellOpenCommand
push eax
call fcn.004a3198
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push SysReAllocStringLen
call esi
push dword [ebp + 0x98]
lea eax, [ebp - 0x7c]
push str._s____1_
push eax
call fcn.004a3198
lea eax, [ebp - 0x7c]
push eax
call fcn.004a1ba0
add esp, 0x10
inc eax
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0x54937c
push dword [ebp - 0x80]
call edi
push dword [ebp - 0x80]
call ebx
xor eax, eax
push eax
push eax
push eax
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp + 0x88]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.004a2d97
add ebp, 0x8c
leave
ret
Function at 0x42f690
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x42f6c9
push edi
lea edi, [esi + 0xa8]
cmp dword [edi], 0
je 0x42f6c8
push 0
call fcn.004ce670
push dword [esi + 0xb0]
mov ecx, dword [edi]
call fcn.004ce670
and dword [esi + 0xac], 0
pop edi
push dword [0x5603d0]
lea eax, [ebp - 4]
push eax
call fcn.0043c2b9
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00404c68
push dword [0x5603cc]
lea eax, [ebp - 4]
push eax
call fcn.0043c2b9
pop ecx
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00404c68
pop esi
leave
ret

Function at 0x42fe1b
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x51ffba
call fcn.004a28b4
sub esp, 0x128
mov eax, dword [0x561be8]
push ebx
push esi
push dword [0x5603d0]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x134]
push eax
mov ebx, ecx
call fcn.0043c2b9
lea eax, [ebp - 0x134]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0043b931
add esp, 0xc
test eax, eax
je 0x42ff8e
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x40
pop ecx
push dword [ebp - 0x134]
xor eax, eax
mov byte [ebp - 0x130], 0
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
stosb byte es:[edi], al
lea eax, [ebp - 0x130]
push eax
push 0x54937c
push str.href
mov edi, str.TITLEBARAD
push edi
call esi
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebx + 0xbc]
call fcn.004029d9
push dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push 0x104
push eax
push 0x54937c
push 0x52bdf4
push edi
call esi
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404017
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
je 0x42ff07
lea eax, [ebp - 0x2c]
push eax
call fcn.0042fd74
pop ecx
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], edx
push dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push 0x104
push eax
push 0x54937c
push 0x52605c
push edi
call esi
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebx + 0xd8]
call fcn.004029d9
push dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push 0x104
push eax
push 0x54937c
push str.version
push edi
call esi
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebx + 0xf4]
call fcn.004029d9
xor eax, eax
cmp dword [ebx + 0xec], eax
pop edi
je 0x42ff81
cmp dword [ebx + 0x108], eax
je 0x42ff81
xor esi, esi
inc esi
jmp 0x42ff83
xor esi, esi
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040188a
mov ecx, dword [ebp - 0x134]
add ecx, 0xfffffff0
call fcn.00404c68
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004a2d97
leave
ret
Function at 0x436a07
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x28], 0xffffffff
jne 0x436a1c
xor eax, eax
jmp 0x436abb
push ebx
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004369de
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x436a37
xor eax, eax
jmp 0x436ab9
push dword [esi + 0x10]
call fcn.00507edd
pop ecx
mov dword [ebp + 8], eax
push ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 4]
push ebx
add eax, 0x2c
push eax
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 0x10]
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esi + 0xc]
call fcn.00507edd
pop ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
or dword [ebp + 0x10], 0xffffffff
mov dword [eax], ecx
mov esi, dword [esi + 0x10]
cmp dword [ebp - 4], esi
jne 0x436a9f
push esi
push dword [ebp + 8]
push eax
push dword [ebp - 8]
call fcn.004c7420
add esp, 0x10
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 8]
mov dword [eax], ecx
mov ecx, edi
call fcn.0043698e
xor eax, eax
cmp dword [ebp + 0x10], ebx
sete al
pop esi
pop ebx
pop edi
leave
ret 0xc
Function at 0x4376e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
push str.GTBIN
xor edi, edi
push eax
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x43787e
cmp ebx, edi
je 0x43787e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x43787e
push 4
push edi
push eax
call fcn.004bb0f0
add esp, 0xc
test eax, eax
jne 0x43787e
push edi
push edi
push edi
push str.1.2.33
call fcn.004bcf00
push eax
mov dword [ebp - 8], eax
call fcn.004bb700
mov dword [ebp + 8], eax
push 0x43741c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call fcn.004bd060
push edi
push 0x100
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004bcd60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add esp, 0x30
push dword [eax + 4]
push dword [eax]
call fcn.00437499
mov esi, eax
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp + 8]
sar ecx, 2
cmp byte [eax + 0x1e], 0x20
mov dword [ebp - 0x18], esi
je 0x4377c2
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor esi, esi
jmp 0x437864
cmp dword [eax + 4], edi
mov dword [ebp - 4], edi
jbe 0x437864
mov edx, dword [eax]
shl ecx, 2
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], ecx
cmp edx, edi
mov ecx, dword [eax + 0xf8]
mov ebx, dword [ebp - 4]
mov ecx, dword [ecx + ebx*4]
jbe 0x43784f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, edi
shl eax, 2
movzx esi, byte [ecx + eax]
movzx edx, byte [ecx + eax + 1]
imul edx, esi
sar edx, 8
movzx edx, dl
mov ebx, esi
shl ebx, 8
or edx, ebx
movzx ebx, byte [ecx + eax + 2]
movzx eax, byte [ecx + eax + 3]
imul ebx, esi
imul eax, esi
mov esi, dword [ebp - 0x18]
sar ebx, 8
shl edx, 8
sar eax, 8
movzx ebx, bl
or edx, ebx
mov ebx, dword [ebp - 0xc]
add dword [ebp - 0xc], 4
movzx eax, al
shl edx, 8
or edx, eax
mov eax, dword [esi + 0x10]
mov dword [ebx + eax], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
inc edi
cmp edi, edx
jb 0x4377ef
xor edi, edi
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 4]
add dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 4]
jb 0x4377d9
cmp dword [ebp - 8], edi
je 0x43787a
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004bcf30
add esp, 0xc
mov eax, esi
jmp 0x437880
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43b8b9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x43b927
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x43b927
mov eax, dword [ebp - 4]
fild dword [ebp - 4]
test eax, eax
jge 0x43b90d
fadd qword [0x52cef8]
test edi, edi
fmul qword [0x52cef8]
mov dword [ebp - 4], edi
fild dword [ebp - 4]
jge 0x43b923
fadd qword [0x52cef8]
faddp st(1)
jmp 0x43b92d
fld qword [0x526008]
pop edi
pop esi
leave
ret
Function at 0x43bc82
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x520d4b
call fcn.004a28b4
sub esp, 0x14
push ebx
push esi
call fcn.00508d54
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0040574e
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0043bb95
pop ecx
push ebx
push 0x52cf04
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], 1
call fcn.0040f984
cmp eax, 0xffffffff
lea ecx, [ebp - 0x14]
je 0x43bd26
lea esi, [eax + 2]
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.00422196
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00410899
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00404c68
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0043baa7
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406609
mov ecx, dword [ebp - 0x20]
jmp 0x43bd7f
push ebx
push 0x52cf00
call fcn.0040f984
cmp eax, 0xffffffff
je 0x43bd8b
lea esi, [eax + 2]
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00422196
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00410899
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00404c68
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0043baa7
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00406609
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00404c68
cmp byte [ebp - 0xd], bl
je 0x43be35
push 1
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0043b93e
mov esi, eax
cmp esi, 0xffffffff
jne 0x43bdbc
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 0xe], 1
call fcn.00410424
jmp 0x43be0e
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00422196
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00410899
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00404c68
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0043baa7
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00406609
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00404c68
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43be2c
push dword [ebp - 0x18]
call fcn.004a5744
test eax, eax
pop ecx
je 0x43be2c
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xe], bl
je 0x43bd8b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00404c68
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00404c68
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x43df1d
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x43e9fa
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x52108e
call fcn.004a28b4
sub esp, 0x28
mov eax, dword [0x561be8]
push esi
xor esi, esi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], 0xf
call fcn.0040186e
mov eax, dword [ebp + 0x10]
cmp eax, esi
mov dword [ebp - 4], esi
je 0x43eb60
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
push ebx
mov al, byte [edi]
mov byte [ebp + esi + 0x10], al
mov bl, byte [ebp + 0x11]
inc esi
inc edi
cmp esi, 3
jne 0x43eab1
mov al, byte [ebp + 0x10]
shr al, 2
mov byte [ebp - 0x30], al
mov al, byte [ebp + 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp + 0x12]
mov byte [ebp - 0x2f], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x2e], al
mov al, byte [ebp + 0x12]
and al, 0x3f
mov byte [ebp - 0x2d], al
xor esi, esi
cmp dword [0x564c2c], 0x10
mov eax, dword [0x564c18]
jae 0x43ea95
mov eax, 0x564c18
movzx ecx, byte [ebp + esi - 0x30]
movsx eax, byte [ecx + eax]
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403282
inc esi
cmp esi, 4
jl 0x43ea82
xor esi, esi
dec dword [ebp - 0x34]
jne 0x43ea3b
test esi, esi
je 0x43eb5e
cmp esi, 3
jge 0x43eadf
push 3
pop ecx
sub ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [ebp + esi + 0x10]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov bl, byte [ebp + 0x11]
mov al, byte [ebp + 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x30], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x2f], al
mov al, byte [ebp + 0x12]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x2e], bl
and al, 0x3f
lea edi, [esi + 1]
xor ebx, ebx
test edi, edi
mov byte [ebp - 0x2d], al
jle 0x43eb46
cmp dword [0x564c2c], 0x10
mov eax, dword [0x564c18]
jae 0x43eb2d
mov eax, 0x564c18
movzx ecx, byte [ebp + ebx - 0x30]
movsx eax, byte [ecx + eax]
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403282
inc ebx
cmp ebx, edi
jl 0x43eb1a
push 3
pop edi
cmp esi, edi
jge 0x43eb5e
sub edi, esi
push 0x3d
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403282
dec edi
jne 0x43eb4f
pop ebx
pop edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402989
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040188a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.004a2d97
leave
ret
Function at 0x43ec9e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5210db
call fcn.004a28b4
sub esp, 0x2c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x1c], ebx
call fcn.00508d54
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [eax - 0xc]
cmp edi, ebx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
jle 0x43ed33
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
call fcn.0042206c
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov bl, al
call fcn.0042206c
xor bl, al
movsx eax, bl
shl eax, 4
cdq
mov ecx, 0x100
idiv ecx
sar bl, 4
lea ecx, [ebp - 0x18]
add dl, bl
push edx
call fcn.0043ba10
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x10]
inc eax
cdq
idiv dword [ebp - 0x1c]
cmp dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edx
jl 0x43ece5
mov esi, dword [ebp - 0x18]
xor ebx, ebx
push dword [esi - 0xc]
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.0043e9fa
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 1
jb 0x43ed52
mov eax, dword [eax + 4]
jmp 0x43ed55
add eax, 4
mov ecx, dword [ebp + 8]
push eax
call fcn.0040574e
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0040188a
lea ecx, [esi - 0x10]
call fcn.00404c68
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x442613
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x44264c
test al, 8
jne 0x44264c
push 0xfffffffffffffff0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x44264c
or byte [esi + 0xc], 4
test eax, 0x21000000
mov cl, byte [esi + 0xc]
jne 0x44264c
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x44266a
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 8]
mov ecx, esi
call fcn.004424d3
jmp 0x442675
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4

Function at 0x444f01
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [esp + 8]
push esi
xor esi, esi
test bl, 8
je 0x444f11
push 2
pop esi
test bl, 4
je 0x444f19
or esi, 1
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x444f29
or esi, 4
test bl, 1
je 0x444f31
or esi, 8
test bl, 0x10
je 0x444f39
or esi, 0x10
test bl, 2
je 0x444f41
or esi, 0x20
mov eax, esi
pop esi
pop ebx
ret

Function at 0x444f46
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x12
xor edi, edi
call esi
test al, al
jns 0x444f5b
push 4
pop edi
push 0x10
call esi
test al, al
jns 0x444f66
or edi, 1
push 0x11
call esi
test al, al
jns 0x444f71
or edi, 2
mov eax, edi
pop edi
pop esi
ret
Function at 0x448ade
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x566c80]
cmp eax, 0x1c00
jle 0x448b14
push esi
push 0
lea eax, [ebp - 4]
push eax
mov esi, 0x564c80
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [0x566c80], eax
pop esi
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
lea eax, [eax + 0x564c80]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [0x566c80], eax
leave
ret
Function at 0x448eec
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x44]
xor edx, edx
mov eax, 0x40000000
div ebx
push 0
pop edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], 1
mov esi, eax
shl esi, 2
je 0x448f7a
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov eax, edi
imul eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
test eax, eax
je 0x448f6d
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x448f6d
div ebx
add edi, eax
cmp dword [ebp - 0x14], 0x1000
jne 0x448f76
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jbe 0x448f76
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 8], eax
call fcn.00448c4c
test al, al
pop ecx
pop ecx
je 0x448f76
inc dword [ebp - 4]
jmp 0x448f76
mov eax, 0x10000
div ebx
add edi, eax
cmp edi, esi
jb 0x448f1f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x448f7f
Capabilities:
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x374]
sub esp, 0x3f4
mov eax, dword [0x561be8]
push ebx
mov dword [ebp + 0x370], eax
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp - 0x34]
lea esi, [ebp + 0x1dc]
push dword [ebp - 0x38]
call fcn.00448bd8
mov eax, esi
push eax
push str.Error_occurred_at__s._r_n
push edi
call fcn.00448ade
push 0x208
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.004a2db0
add esp, 0x20
push 0x206
lea eax, [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, str.Unknown
ja 0x448ffd
push ebx
lea eax, [ebp - 0x2c]
push eax
call esi
push 0xc8
lea eax, [ebp + 0x240]
push 0
push eax
call fcn.004a2db0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x240]
push eax
mov dword [ebp - 0x30], 0xc6
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x449039
push ebx
lea eax, [ebp + 0x240]
push eax
call esi
lea eax, [ebp + 0x240]
push eax
lea eax, [ebp - 0x2c]
push eax
push str._s__run_by__s._r_n
push edi
call fcn.00448ade
lea eax, [ebp + 0x33c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x308]
push eax
call fcn.00449918
lea eax, [ebp + 0x33c]
push eax
lea eax, [ebp + 0x308]
push eax
push str.Operating_system:___s___s_._r_n
push edi
call fcn.00448ade
add esp, 0x2c
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push str._d_processor_s___type__d._r_n
push edi
call fcn.00448ade
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0x54]
push str._d___memory_in_use._r_n
push edi
call fcn.00448ade
mov eax, dword [ebp - 0x50]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory._r_n
push edi
call fcn.00448ade
mov eax, dword [ebp - 0x4c]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory_free._r_n
push edi
call fcn.00448ade
mov eax, dword [ebp - 0x48]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file._r_n
push edi
call fcn.00448ade
mov eax, dword [ebp - 0x44]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file_free._r_n
push edi
call fcn.00448ade
mov eax, dword [ebp - 0x40]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space._r_n
push edi
call fcn.00448ade
mov eax, dword [ebp - 0x3c]
add esp, 0x48
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space_free._r_n
push edi
call fcn.00448ade
mov ecx, dword [ebp + 0x370]
add esp, 0xc
pop esi
pop ebx
call fcn.004a2d97
add ebp, 0x374
leave
ret