joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032f0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d84
test esi, esi
jne 0x403326
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e74
jmp 0x403344
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403194
mov edi, eax
test esi, esi
je 0x403344
cmp dword [ebx], 0
je 0x403344
dec esi
jmp 0x40332d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40337c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x50b008], 0x8088405
inc edx
mov dword [ebx + 0x50b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403e34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x50b01c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ecc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403eac
xor eax, eax
push ebp
push 0x403ea5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403ee8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403eac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x50b01c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x50b01c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b4c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x517044], 0
je 0x404bad
cmp word [0x517218], 0xd7b2
jne 0x404b75
cmp dword [0x517220], 0
jbe 0x404b75
mov eax, 0x517214
call dword [0x517230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404bd4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50b028], 0
jne 0x404bc9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404d24
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x50b02c], 0
je 0x404d4a
mov edx, esi
mov eax, ebx
call dword [0x50b02c]
jmp 0x404d59
mov eax, 8
call fcn.00402eac
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x517045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404cec
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4069d4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406a57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c04
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406a57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c20
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406ae0
xor eax, eax
push ebp
push 0x406ad9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406810
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406abe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406c40
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406abe
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ae0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406bfa
cmp byte [ebp - 0xd], 0
jne 0x406b27
cmp byte [ebp - 0x12], 0
je 0x406bfa
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406b40
dec ebx
cmp byte [ebx], 0x2e
je 0x406b4f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406b3f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406bfa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406b8c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406bfa
cmp byte [ebp - 0xd], 0
je 0x406bfa
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406bfa
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ae0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406a57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c04
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406a57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c20
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406ae0
xor eax, eax
push ebp
push 0x406ad9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406810
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406abe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406c40
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406abe
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ae0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406bfa
cmp byte [ebp - 0xd], 0
jne 0x406b27
cmp byte [ebp - 0x12], 0
je 0x406bfa
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406b40
dec ebx
cmp byte [ebx], 0x2e
je 0x406b4f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406b3f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406bfa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406b8c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406bfa
cmp byte [ebp - 0xd], 0
je 0x406bfa
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406bfa
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b5d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b694
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.0040584c
jne 0x40b63e
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00405a98
push 0x105
mov eax, dword [ebp - 4]
call fcn.00405718
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ebx, eax
jmp 0x40b625
dec ebx
test ebx, ebx
jle 0x40b634
mov eax, dword [ebp - 4]
cmp word [eax + ebx*2 - 2], 0x5c
jne 0x40b624
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405a98
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
mov edi, ebx
dec edi
mov edx, edi
mov eax, esi
call fcn.00405a98
mov eax, dword [esi]
call fcn.00405718
push eax
push ebx
call sub.kernel32.dll_GetCurrentDirectoryW
cmp eax, edi
jne 0x40b67e
mov eax, dword [ebp - 4]
call fcn.00405718
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b69b
lea eax, [ebp - 4]
call fcn.00405530
ret

Function at 0x40b6b8
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40b735
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
call fcn.0040b5d0
test al, al
je 0x40b71f
xor eax, eax
push ebp
push 0x40b718
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b71f
mov eax, dword [ebp - 4]
call fcn.00405718
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b73c
lea eax, [ebp - 4]
call fcn.00405530
ret

Function at 0x40b748
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40b7c5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
call fcn.0040b5d0
test al, al
je 0x40b7af
xor eax, eax
push ebp
push 0x40b7a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b7af
mov eax, dword [ebp - 4]
call fcn.00405718
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b7cc
lea eax, [ebp - 4]
call fcn.00405530
ret
Function at 0x40be80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x40bf82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405530
cmp dword [0x50bf64], 4
jle 0x40bef0
push 0
push 0
mov eax, edi
call fcn.00405718
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
test ebx, ebx
jbe 0x40bf6c
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405a98
push ebx
mov eax, dword [esi]
call fcn.00405718
push eax
mov eax, edi
call fcn.00405718
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
jmp 0x40bf6c
lea eax, [ebp - 4]
mov edx, edi
call fcn.00404fd0
lea eax, [ebp - 0x109]
xor ecx, ecx
mov edx, 0x104
call fcn.004035c8
push 0x104
lea eax, [ebp - 0x109]
push eax
mov eax, dword [ebp - 4]
call fcn.004051e8
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x40bf6c
xor ebx, ebx
jmp 0x40bf2f
inc ebx
cmp ebx, 0x104
jae 0x40bf41
cmp byte [ebp + ebx - 0x109], 0
jne 0x40bf2e
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405470
lea eax, [ebp - 4]
call fcn.00405240
mov edx, eax
lea eax, [ebp - 0x109]
mov ecx, ebx
call fcn.00403094
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf89
lea eax, [ebp - 4]
call fcn.00404d84
ret

Function at 0x40f570
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffbbc
mov esi, edx
mov ebx, eax
mov eax, ebx
mov edx, dword [0x51ba6c]
call fcn.0040411c
test al, al
jne 0x40f63c
push 0x400
lea ecx, [esp + 0x48]
mov edx, esi
mov eax, ebx
call fcn.0040f2c0
mov eax, dword [0x516cc8]
cmp byte [eax], 0
je 0x40f60c
mov eax, dword [0x516b20]
call fcn.004034f4
call fcn.00403044
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040f02c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40f650
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f63c
mov esi, 0x40f654
lea edi, [esp + 4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x44]
push eax
call sub.kernel32.dll_OutputDebugStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_2
add esp, 0x444
pop edi
pop esi
pop ebx
ret
Function at 0x40fc18
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40fcc6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x104]
mov eax, edi
call fcn.004036c4
lea edx, [ebp - 0x104]
lea eax, [ebp - 4]
call fcn.00404fac
push 0x40fce0
push ebx
push 0x40fd04
push 0x40fd10
push esi
push 0x40fd1c
push dword [ebp - 4]
push 0x40fd30
lea eax, [ebp - 4]
mov edx, 8
call fcn.004050a8
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x51ba6c]
call fcn.0040f694
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004051e8
mov ebx, eax
push ebx
call sub.kernel32.dll_OutputDebugStringA
push 0x10
push 0
push ebx
push 0
call sub.user32.dll_MessageBoxA_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fccd
lea eax, [ebp - 4]
call fcn.00404d84
ret

Function at 0x410b44
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00410b70
test al, al
je 0x410b6b
push 0
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_TerminateThread
push 0
call sub.user32.dll_MessageBeep
mov eax, ebx
call fcn.00410da4
pop ebx
ret

Function at 0x417400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4174b8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x108]
mov eax, edi
call fcn.004036c4
lea edx, [ebp - 0x108]
lea eax, [ebp - 4]
call fcn.00404fac
push 0x4174d4
push ebx
push 0x4174f8
push 0x417504
push esi
push 0x417510
push dword [ebp - 4]
push 0x417524
lea eax, [ebp - 4]
mov edx, 8
call fcn.004050a8
mov eax, dword [0x516b18]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov dl, 1
call fcn.0040f694
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.004051e8
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp dword [0x50c8b8], 0
je 0x4174a2
mov ecx, edi
mov edx, esi
mov eax, ebx
call dword [0x50c8b8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4174bf
lea eax, [ebp - 4]
call fcn.00404d84
ret
Function at 0x4364ac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4364bf
add esp, 0xfffffff0
call fcn.004041f4
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403f60
test esi, 0xfff
je 0x4364dd
add esi, 0x1000
and esi, 0xfffff000
test esi, esi
jne 0x4364fb
mov ecx, 0x38
mov edx, 0x436574
mov eax, 0x4365c0
call fcn.00404ccc
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
push 0x40
push 0x1000
push esi
push 0
call sub.kernel32.dll_VirtualAlloc_2
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x43652d
mov ecx, 0x3c
mov edx, 0x436574
mov eax, 0x4365c0
call fcn.00404ccc
mov dl, 1
mov eax, dword [0x436310]
call fcn.00403f60
mov edi, eax
mov dword [ebx + 0x14], edi
mov byte [edi + 0x10], 1
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x436562
call fcn.0040424c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4394ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x439518]
push 0x5b
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4394cf
push 0x5c
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4394d2
or bl, 1
test si, 4
je 0x4394dc
or bl, 2
test si, 8
je 0x4394e6
or bl, 8
test si, 1
je 0x4394f0
or bl, 0x10
test si, 2
je 0x4394fa
or bl, 0x20
test si, 0x10
je 0x439504
or bl, 0x40
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x439513
or bl, 4
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43951c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x439570]
push 0x5b
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x43953f
push 0x5c
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x439542
or bl, 1
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x439551
or bl, 2
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x439560
or bl, 8
test esi, 0x20000000
je 0x43956b
or bl, 4
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x445f50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
test ebx, ebx
jbe 0x445f77
movzx eax, bl
movzx eax, byte [eax + 0x530200]
add esi, eax
mov ecx, pe_nt_image_headers32
mov eax, ebx
xor edx, edx
div ecx
mov ebx, eax
test ebx, ebx
ja 0x445f5a
mov eax, esi
pop esi
pop ebx
ret
Function at 0x44b8e4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 4]
dec ebx
test ebx, ebx
jl 0x44b957
inc ebx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add eax, eax
mov edx, dword [ebp + 8]
mov edx, dword [edx]
lea esi, [edx + eax*8]
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
sub esi, eax
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
sub edi, edx
push 0xcc0020
push edx
push eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
push ecx
push edi
push esi
add edx, dword [ebp + 0xc]
push edx
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
inc dword [ebp - 0x10]
dec ebx
jne 0x44b909
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44baf4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
cmp dword [ebx + 0x10], 0
jne 0x44bb1a
mov dl, 1
mov eax, dword [0x43b458]
call fcn.0043b534
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x3c]
cmp edx, dword [ebp - 0x10]
jne 0x44bb3c
mov edx, dword [eax + 0x40]
cmp edx, dword [ebp - 0x14]
je 0x44bb49
push 0x20
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0043b624
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
dec eax
test eax, eax
jl 0x44bbce
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add eax, eax
mov edx, dword [ebp + 8]
mov edx, dword [edx]
lea esi, [edx + eax*8]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
sub eax, edi
mov dword [ebp - 0x14], eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
call fcn.0044b960
push 0xcc0020
push edi
push esi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
add edi, dword [ebp + 0xc]
push edi
add esi, dword [ebp - 8]
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x44bb5f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8