joyce8/EMBER2024-capa huggingface dataset:
Function at 0x548a10
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c115
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5da084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x5df50d], 0
je 0x548a54
push dword [esi]
push 0x5cb4d8
call fcn.005438c0
add esp, 8
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.005447c0
add eax, 0x10
mov dword [ebp - 0x44], eax
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0054aa10
test eax, eax
je 0x548a85
sub esp, 0xc
call fcn.00543e30
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00414d80
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], 0x656e6f4e
lea ecx, [ebp - 0x4c]
call fcn.00414d80
mov eax, ecx
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x44]
call fcn.00548be0
mov esi, dword [ebp - 0x48]
add esp, 8
test al, al
jne 0x548afa
mov byte [ebp - 0x3d], 0
jmp 0x548b21
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp byte [0x5df50d], 0
mov edi, eax
je 0x548b1a
push edi
push str.GsPathExists:_dwAttr_x_n
call fcn.005438c0
add esp, 8
cmp edi, 0xffffffff
setne byte [ebp - 0x3d]
mov ecx, dword [ebp - 0x4c]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov eax, edi
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x548b45
cmp dword [ecx + 4], 0
jle 0x548b45
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x548b75
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x548b6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x548bd0
push ecx
push edx
call fcn.0056ebaf
add esp, 8
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
test eax, eax
jg 0x548b93
cmp dword [esi + 4], 0
jle 0x548b93
push esi
call fcn.00577de8
add esp, 4
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lock xadd dword [eax + 8], edi
dec edi
test edi, edi
jg 0x548bb2
cmp dword [eax + 4], 0
jle 0x548bb2
push eax
call fcn.00577de8
add esp, 4
mov al, byte [ebp - 0x3d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret
call fcn.00578112
int3
Function at 0x549740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x18], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
cmp byte [0x5df50d], 0
je 0x549793
push dword [ebp + 8]
push dword [edi]
push str.GsReadLocalFile:_hFile_x_buf_len_d_n
call fcn.005438c0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov esi, dword [ebp + 0xc]
push 0
push esi
push dword [ebp + 8]
mov dword [esi], 0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x549923
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x10]
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00544000
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00414d80
mov eax, dword [edi + 4]
mov ecx, str.reading_file
mov dword [ebp - 0x10], 1
push dword [eax - 0x10]
push eax
call fcn.00416660
mov edx, ecx
lea ecx, [ebp - 0x18]
push eax
call fcn.00544610
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00414d80
mov edx, dword [ebp - 0x18]
mov ecx, 0x5cb88c
mov dword [ebp - 0x10], 3
call fcn.00416660
push eax
push ecx
push dword [edx - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00544610
add esp, 0xc
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00414d80
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], 7
push dword [eax - 0x10]
push eax
push dword [edx - 0x10]
call fcn.00544610
mov edi, dword [ebp + 0x14]
lea eax, [ebp + 0xc]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00544730
mov ecx, dword [ebp + 0xc]
or esi, 0xffffffff
add ecx, 0xfffffff0
mov eax, esi
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x549890
cmp dword [ecx + 4], 0
jle 0x549890
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0x14]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x5498b1
cmp dword [ecx + 4], 0
jle 0x5498b1
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x5498d2
cmp dword [ecx + 4], 0
jle 0x5498d2
push ecx
call fcn.00577de8
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 8], esi
dec esi
test esi, esi
jg 0x5498f8
cmp dword [eax + 4], 0
jle 0x5498f8
push eax
call fcn.00577de8
add esp, 4
cmp byte [0x5df50d], 0
je 0x549910
push dword [edi]
push str.GsReadLocalFile:_err_s_n
call fcn.005438c0
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x5df50d], 0
je 0x54993b
push dword [esi]
push str.GsReadLocalFile:_dwRead_d_n
call fcn.005438c0
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x54a270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c588
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
cmp byte [0x5df50d], 0
je 0x54a2bf
push esi
push dword [edi]
push str.GsWriteLocalFile:_hFile_x_buf_len_d_n
call fcn.005438c0
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x54a450
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0xc]
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00544000
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00414d80
mov eax, dword [edi + 4]
mov ecx, str.Cannot_create_local_file
mov dword [ebp - 0x14], 1
push dword [eax - 0x10]
push eax
call fcn.00416660
mov edx, ecx
lea ecx, [ebp - 0x20]
push eax
call fcn.00544610
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00414d80
mov edx, dword [ebp - 0x20]
mov ecx, 0x5cb88c
mov dword [ebp - 0x14], 3
call fcn.00416660
push eax
push ecx
push dword [edx - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00544610
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00414d80
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 7
push dword [eax - 0x10]
push eax
push dword [edx - 0x10]
call fcn.00544610
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00544730
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
add ecx, 0xfffffff0
mov eax, esi
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x54a3bb
cmp dword [ecx + 4], 0
jle 0x54a3bb
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x54a3dc
cmp dword [ecx + 4], 0
jle 0x54a3dc
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x54a3fd
cmp dword [ecx + 4], 0
jle 0x54a3fd
push ecx
call fcn.00577de8
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lock xadd dword [eax + 8], esi
dec esi
test esi, esi
jg 0x54a423
cmp dword [eax + 4], 0
jle 0x54a423
push eax
call fcn.00577de8
add esp, 4
cmp byte [0x5df50d], 0
je 0x54a43b
push dword [edi]
push str.GsWriteLocalFile:_err_s_n
call fcn.005438c0
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x54a43e
push eax
push esi
push dword [edi + 4]
mov esi, dword [ebp + 0x10]
push str.written_less_than_requested_for_file__s:__d____d
push esi
call fcn.00544cc0
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp byte [0x5df50d], 0
mov dword [eax], 5
je 0x54a43b
push dword [esi]
jmp 0x54a42e
Function at 0x551400
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cba0
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x14], 0
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x5514e9
mov ecx, dword [0x5dfbe0]
test ecx, ecx
je 0x5514bd
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x5514bd
push ecx
lea ecx, [ebp - 0xcc]
call fcn.00430ce0
mov dword [ebp - 0x34], str.CloudFolderCleanup
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], str.C:jenkins_slaveDailyhotfix7.1.2_metaDesktopWinmain_rebarcosy_srcCloudFolderCleanup.cpp
mov dword [ebp - 0x28], 0x92
mov dword [ebp - 0x24], str.sibcrux::CreateLink
mov byte [ebp - 0x20], 1
mov edx, str.Failed_to_initialize_COM.
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.00416960
lea ecx, [ebp - 0xcc]
call fcn.00430bd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5515fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0x5af0c0
push 1
push 0
push 0x5af0d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x5515de
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5515de
push dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
push dword [ecx]
push eax
call dword [edx + 0x24]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
push dword [ecx]
push eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax]
push dword [ecx]
push eax
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push 0
mov edx, dword [eax]
push dword [ecx]
push eax
call dword [edx + 0x44]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edx
push 0x5ccb38
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x18]
js 0x5515c9
test eax, eax
je 0x5515c9
push 1
mov byte [ebp - 4], 3
push dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5515e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5515e3
mov byte [ebp - 4], 0
mov esi, 0x80004005
test eax, eax
je 0x5515e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5515e3
mov esi, 0x80004005
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5515fd
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x552620
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ce73
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x5da084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], 0
call fcn.00414d80
push pe_nt_image_headers32
lea eax, [ebp - 0x120]
mov dword [ebp - 0x130], 1
push 0
push eax
call fcn.00570cd0
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5526b3
cmp dword [ebp - 0x120], 0xa
jb 0x5526b3
mov al, 1
jmp 0x5526b5
xor al, al
test al, al
mov ecx, 0x5ccad0
mov edx, 0x5ccab4
cmove edx, ecx
lea ecx, [ebp - 0x128]
call fcn.00414d80
mov ecx, edx
mov dword [ebp - 4], 1
call fcn.00416660
push eax
push edx
lea ecx, [ebp - 0x128]
call fcn.004163d0
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 2
call fcn.00414d80
mov ecx, 0x5bf0f8
mov byte [ebp - 4], 3
call fcn.00416660
push eax
push ecx
lea ecx, [ebp - 0x12c]
call fcn.004163d0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x128]
push esi
push edi
push str.cloud_fld__s_s.ico
push ebx
call fcn.00544cc0
lea ecx, [esi - 0x10]
add esp, 0x10
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x552758
cmp dword [ecx + 4], 0
jle 0x552758
push ecx
call fcn.00577de8
add esp, 4
add edi, 0xfffffff0
lock xadd dword [edi + 8], esi
dec esi
test esi, esi
jg 0x552774
cmp dword [edi + 4], 0
jle 0x552774
push edi
call fcn.00577de8
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret
Function at 0x402ac0
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 0x402b58
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b38
xor eax, eax
push ebp
push 0x402b31
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 0x402b74
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 0x402b38
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 0x404710
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 0x4048ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4047c0
xor eax, eax
push ebp
push 0x4047b9
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 0x4047a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4048cc
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 0x4047c0
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 0x4048a1
cmp byte [ebp - 0xd], 0
jne 0x404802
cmp byte [ebp - 0x12], 0
je 0x4048a1
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40481b
dec ebx
cmp byte [ebx], 0x2e
je 0x40482a
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40481a
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4048a1
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404857
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 0x4048a1
cmp byte [ebp - 0xd], 0
je 0x4048a1
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 0x4048a1
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 0x407694
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 0x4076cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403788
jmp 0x4076d6
mov eax, ebx
mov edx, esi
call fcn.0040373c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4076e0
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 0x407701
mov al, byte [esp]
jmp 0x407703
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411034
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 0x41103a
ret

Function at 0x413630
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 0x413681
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x413668
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x413658
jmp 0x413681
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
jns 0x413669
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cf2c
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 0x41cf48
cmp dword [esi + 4], 0
je 0x41cf6f
mov eax, ebx
call fcn.0041c160
test eax, eax
jne 0x41cf61
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41d07f
mov edx, esi
mov eax, ebx
call fcn.0041cbd0
jmp 0x41d07f
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 0x41d078
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041e52c
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.0041b068
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041cf2c
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.0041e52c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d07f
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 0x420014
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.004036a4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x420075
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x420075
cmp byte [ebp - 0x102], 0
je 0x420075
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004038d0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421404
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 0x421485
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x421436
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x421448
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x421454
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00421290
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x421479
push ebp
mov eax, dword [ebp - 4]
call fcn.00421374
pop ecx
mov ebx, eax
cmp bl, 2
je 0x421454
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42327c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x43e714
cmp dword [edi], 0
jne 0x4232f8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x43e710]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x43d704
mov ecx, 2
call fcn.004026d4
mov edx, 0x423254
lea eax, [esi + 5]
call fcn.00423274
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423274
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 0x4232cd
mov dword [0x43e710], 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 0x42341c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42346c]
test si, 4
je 0x423430
or bl, 1
test si, 8
je 0x42343a
or bl, 4
test si, 1
je 0x423444
or bl, 8
test si, 2
je 0x42344e
or bl, 0x10
test si, 0x10
je 0x423458
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x423467
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x423470
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4234a8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x423489
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x423498
or bl, 4
test esi, 0x20000000
je 0x4234a3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret