joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102b133
Capabilities:
Create directory
Get common file path
Get session user name

Disassembly:
mov eax, 0x10343af
call fcn.0102edd8
sub esp, 0x10
push ebx
push esi
push edi
call fcn.0100bdbb
test eax, eax
je 0x102b15a
call fcn.0100bdbb
test eax, eax
je 0x102b15a
mov ebx, dword [eax + 0x20]
jmp 0x102b15c
xor ebx, ebx
mov edi, dword [ebp + 8]
push 0
push 0x1c
mov esi, 0x104
push esi
mov ecx, edi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
push 0xc44b
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
mov ebx, 0x10021cc
push ebx
push edi
lea eax, [ebp - 0x18]
push eax
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
push ebx
mov ecx, edi
call fcn.0102e012
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp + 0xc]
sub eax, 0xc44e
mov byte [ebp - 4], 3
je 0x102b237
dec eax
jne 0x102b24b
push dword [ebp - 0x10]
push 0x1007958
jmp 0x102b23f
push dword [ebp - 0x10]
push 0x1007938
lea eax, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0102e006
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x102eb81
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1008180
call fcn.0102eed8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x102ebbc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x102ebbc
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x102ebd4
cmp eax, 0x20b
je 0x102ebc1
mov dword [ebp - 0x1c], edi
jmp 0x102ebe8
cmp dword [ecx + 0x84], 0xe
jbe 0x102ebbc
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x102ebe2
cmp dword [ecx + 0x74], 0xe
jbe 0x102ebbc
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x103cae8], 0xffffffff
or dword [0x103caec], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x103c9ec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x103c9e8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x103cae4], eax
call fcn.0102eed0
cmp dword [0x103c3e0], edi
jne 0x102ec45
push fcn.0102eed0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0102eeb9
push 0x103b030
push 0x103b02c
call sub.msvcrt.dll__initterm
mov eax, dword [0x103c9e4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x103c9e0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x103b028
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x102ecab
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x102ed65
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x102ecf9
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x102ecc7
cmp ax, 0x22
jne 0x102ecb4
cmp word [esi], 0x22
jne 0x102ecd2
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x102ece0
cmp ax, 0x20
jbe 0x102eccd
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x102ed06
movzx eax, word [ebp - 0x50]
jmp 0x102ed09
cmp word [esi], 0x20
jbe 0x102ecd2
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x102ecf9
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.01032065
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x102ed2a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x102ed5f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0102ef13
ret
Function at 0x102f02d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1008478
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x102f085
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004f9c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x102f078
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x102f087
xor eax, eax
pop esi
leave
ret 4

Function at 0x10310f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 2
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
jne 0x1031123
push 0x2ca
jmp 0x103114b
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x1031138
push 0x2cd
jmp 0x103114b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x1031168
push 0x2d0
push 0x10085fc
push 0x10084f4
push 3
push ebx
call sym.dialer.exe_TracePrintf
add esp, 0x14
mov dword [ebp - 4], ebx
jmp 0x103124e
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, ebx
mov dword [ebp + 8], eax
mov edi, 0x10085fc
mov esi, 0x10084f4
jne 0x1031189
push 0x2d3
jmp 0x10311eb
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call sym.dialer.exe__CreateDIBPalette_8
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x10311a3
push 0x2d6
jmp 0x10311eb
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp eax, 0xffffffff
jne 0x10311c3
push 0x2dc
jmp 0x10311eb
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push ebx
push eax
lea ecx, [ecx + edx*4]
add ecx, eax
push ecx
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x10311fb
push 0x2e3
push edi
push esi
push 3
push ebx
call sym.dialer.exe_TracePrintf
add esp, 0x14
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x103120a
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 4], ebx
je 0x1031214
cmp dword [ebp + 0x10], ebx
jne 0x103123b
cmp dword [ebp - 8], ebx
je 0x103123b
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
jne 0x103123b
push 0x2f7
push edi
push esi
push 3
push ebx
call sym.dialer.exe_TracePrintf
add esp, 0x14
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
pop edi
pop esi
je 0x103124e
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x103124e
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc
Function at 0x103136c
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x103c3d0]
push ebx
push esi
push edi
mov edi, 0x100
xor esi, esi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], eax
jne 0x103149b
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x103149b
cmp dword [0x103ca04], esi
jle 0x10313b3
mov esi, dword [0x103ca00]
test esi, esi
jne 0x1031505
push 0x20
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x103149b
mov dword [esi], edi
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, 0x10086a8
push ebx
push 0
push 0x1008730
mov edi, 0x1008724
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or dword [esi + 0x18], 0xffffffff
push ebx
mov dword [esi + 0xc], eax
xor eax, eax
push 0x104
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x20c]
push eax
push 0x1001e40
push 0x1008710
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], 0
je 0x10314e7
push 0x1008700
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10314b8
mov dword [esi + 0x10], 8
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov word [ebp - 0x210], 0x50
mov word [ebp - 0x20e], 0x3e8
push dword [ebp - 0x210]
mov dword [esi + 0x14], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0x800
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x1031505
push esi
call fcn.01031307
push eax
call sym.dialer.exe__TraceTerm_4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102d576
leave
ret 8
push 3
lea eax, [ebp - 0x20c]
push 0x10086f8
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10314f0
push 4
push dword [ebp - 0x206]
call dword [sym.imp.msvcrt.dll_iswctype]
test eax, eax
pop ecx
pop ecx
je 0x10314f0
mov dword [esi + 0x10], 1
jmp 0x1031480
lea eax, [ebp - 0x20c]
push eax
push 0x10086bc
call fcn.01031327
pop ecx
pop ecx
jmp 0x103149b
inc dword [0x103ca04]
cmp dword [0x103ca04], 1
jne 0x103151a
mov dword [0x103ca00], esi
push esi
call fcn.01031307
jmp 0x10314a9
Function at 0x10315af
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
inc ebx
call fcn.01031527
mov esi, eax
test esi, esi
jne 0x10315cb
xor ebx, ebx
jmp 0x1031619
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x10315d7
xor ebx, ebx
jmp 0x1031618
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x1031618
cmp eax, dword [esi + 0xc]
jg 0x1031618
mov eax, dword [esi + 0x10]
dec eax
je 0x1031611
dec eax
je 0x1031611
sub eax, 6
jne 0x1031618
cmp dword [esi + 0x14], 0
je 0x1031618
push 0
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1031618
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor eax, eax
test ebx, ebx
setne al
pop esi
pop ebx
dec eax
pop ebp
ret 0xc
Function at 0x4027fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40282b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403824
jmp 0x402849
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402790
mov edi, eax
test ebx, ebx
je 0x402849
cmp dword [esi], 0
je 0x402849
dec ebx
jmp 0x402832
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402aec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b64
xor eax, eax
push ebp
push 0x402b5d
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 0x402ba0
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 0x402b64
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404420
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 0xf003f
push 0
push 0x4045bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4044d0
xor eax, eax
push ebp
push 0x4044c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x4044b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4045dc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4044d0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x4045b1
cmp byte [ebp - 0xd], 0
jne 0x404512
cmp byte [ebp - 0x12], 0
je 0x4045b1
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40452b
dec ebx
cmp byte [ebx], 0x2e
je 0x40453a
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40452a
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4045b1
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404567
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4045b1
cmp byte [ebp - 0xd], 0
je 0x4045b1
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4045b1
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x404afc
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
mov ecx, dword [ebx + 4]
sub ecx, 0xd7b1
je 0x404b0f
sub ecx, 2
jne 0x404b38
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x404b2c
cmp edx, dword [ebx + 8]
jne 0x404b3f
pop ebx
ret
call sub.kernel32.dll_GetLastError
call fcn.00402734
jmp 0x404b2a
mov eax, 0x67
jmp 0x404b31
mov eax, 0x64
jmp 0x404b31
Function at 0x404cd0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x404d0b
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x404cff
cmp edx, dword [ebx + 8]
jne 0x404d12
mov eax, ebx
pop ebx
ret
call sub.kernel32.dll_GetLastError
call fcn.00402734
jmp 0x404cfb
mov eax, 5
jmp 0x404d04
mov eax, 0x65
jmp 0x404d04

Function at 0x407624
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 0x40765d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403824
jmp 0x407666
mov eax, ebx
mov edx, esi
call fcn.004037d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407670
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 0x407691
mov al, byte [esp]
jmp 0x407693
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4113dc
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 0x4113e2
ret

Function at 0x4137e8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x413839
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x413820
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x413810
jmp 0x413839
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jne 0x413821
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d824
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x41d840
cmp dword [esi + 4], 0
je 0x41d867
mov eax, ebx
call fcn.0041ca58
test eax, eax
jne 0x41d859
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41d977
mov edx, esi
mov eax, ebx
call fcn.0041d4c8
jmp 0x41d977
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41d970
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041ee24
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0041b960
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041d824
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041ee24
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d977
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4218bc
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.00403740
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42191d
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x42191d
cmp byte [ebp - 0x102], 0
je 0x42191d
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040396c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422cac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x422d2d
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x422cde
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x422cf0
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x422cfc
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00422b38
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x422d21
push ebp
mov eax, dword [ebp - 4]
call fcn.00422c1c
pop ecx
mov ebx, eax
cmp bl, 2
je 0x422cfc
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424b24
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4336dc
cmp dword [edi], 0
jne 0x424ba0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4336d8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x43271c
mov ecx, 2
call fcn.00402750
mov edx, 0x424afc
lea eax, [esi + 5]
call fcn.00424b1c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424b1c
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 0x424b75
mov dword [0x4336d8], 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 0x424cc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x424d14]
test si, 4
je 0x424cd8
or bl, 1
test si, 8
je 0x424ce2
or bl, 4
test si, 1
je 0x424cec
or bl, 8
test si, 2
je 0x424cf6
or bl, 0x10
test si, 0x10
je 0x424d00
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x424d0f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x424d18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x424d50]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x424d31
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x424d40
or bl, 4
test esi, 0x20000000
je 0x424d4b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret