joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4928a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x492a7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x492a61
mov eax, dword [edi + 0x30]
call fcn.00404a88
test eax, eax
jne 0x4928fa
mov eax, dword [edi + 0x34]
call fcn.00404a88
test eax, eax
jne 0x4928fa
mov eax, edi
call fcn.00492b18
jmp 0x492a61
cmp dword [edi + 0xa0], 0
jne 0x492931
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.00409678
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4adcf8]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x492968
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.00409678
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4adcf8]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.00492b58
mov ebx, eax
test bl, bl
jne 0x492a16
mov eax, dword [edi + 0x30]
call fcn.00404a88
test eax, eax
jne 0x4929a0
mov eax, dword [edi + 0xc0]
call fcn.00404a88
test eax, eax
je 0x492a16
mov eax, dword [edi + 0xc0]
call fcn.00404a88
test eax, eax
je 0x4929c2
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.00409678
jmp 0x4929ee
push dword [edi + 0x30]
push 0x492a94
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00404b48
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.00409678
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x492a16
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.00492b58
mov ebx, eax
test bl, bl
jne 0x492a23
mov eax, edi
call fcn.00492b18
jmp 0x492a61
mov eax, dword [edi + 0x58]
test eax, eax
je 0x492a32
mov dword [edi + 0xa8], eax
jmp 0x492a3c
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.00492bd0
test al, al
je 0x492a61
mov eax, edi
mov si, 0xffee
call fcn.00403c60
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.00492c7c
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492a81
lea eax, [ebp - 0x108]
call fcn.004047d0
ret
Function at 0x496180
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4963e0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4961e3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00495c48
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d5a0
cmp al, 1
jne 0x4961e3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00495f60
test al, al
je 0x49636f
cmp dword [ebp - 8], 0
jge 0x496201
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00495c48
mov eax, dword [ebp - 0x210]
call fcn.00404a88
cmp ebx, eax
jge 0x49624b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00495c48
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4ac5e4]
and eax, 0xff
bt dword [edx], eax
jae 0x49624b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x49625f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049615c
cmp ebx, dword [ebp - 8]
je 0x496361
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x49628b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4abef4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x49634e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4abef4]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004452e8
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4abef4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004452e8
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496355
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4963c2
cmp dword [ebp - 8], 0
jge 0x49637a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00495c48
mov eax, dword [ebp - 0x218]
call fcn.00404a88
cmp eax, dword [ebp - 8]
jg 0x4963b4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00495c48
mov eax, dword [ebp - 0x21c]
call fcn.00404a88
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049615c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4963e7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004047f4
ret
Function at 0x4a6f2c
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4a6f44
add esp, 0xfffffff0
call fcn.00403dc8
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4a705b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00420868
mov byte [ebx + 0xa18], 0
mov eax, 0x400
call fcn.004027a0
mov dword [ebx + 0x86c], eax
push ebx
push 0x4a77d4
call fcn.00455c38
mov dword [ebx + 0x864], eax
mov dword [ebx + 0xa10], 1
mov byte [ebx + 0x870], 0
mov ecx, 0x4a708c
mov dl, 8
mov eax, ebx
call fcn.004a7754
lea eax, [ebx + 0x874]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4a702b
xor eax, eax
push ebp
push 0x4a7015
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0xa50], esi
inc esi
jne 0x4a6fee
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.004a7590
push 4
push 0x4a70a4
push 0xff7f
push 0xffff
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_setsockopt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a7039
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.004a7590
mov byte [ebx + 0xa18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7062
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004047f4
ret
Function at 0x4a73d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7fc
mov esi, edx
mov ebx, eax
xor edi, edi
jmp 0x4a7452
test edi, edi
jle 0x4a73fd
mov ecx, 0x4a754c
mov dl, 1
mov eax, dword [0x407e08]
call fcn.0040ccdc
call fcn.00404230
jmp 0x4a7452
cmp word [ebx + 0xa42], 0
jne 0x4a741f
mov ecx, 0x4a754c
mov dl, 1
mov eax, dword [0x407e08]
call fcn.0040ccdc
call fcn.00404230
jmp 0x4a7452
mov byte [esp], 0
mov edx, esp
mov ecx, esi
mov eax, dword [ebx + 0xa44]
call dword [ebx + 0xa40]
cmp byte [esp], 0
jne 0x4a7451
mov ecx, 0x4a754c
mov dl, 1
mov eax, dword [0x407e08]
call fcn.0040ccdc
call fcn.00404230
jmp 0x4a7452
inc edi
mov eax, esi
call fcn.0041af50
cmp edx, 0
jne 0x4a7461
cmp eax, 0
je 0x4a73e1
mov byte [ebx + 0x870], 0
mov eax, ebx
call fcn.004a725c
cmp dword [ebx + 0x848], 0
jne 0x4a7494
mov ecx, 0x4a7564
mov dl, 1
mov eax, dword [0x4a6b64]
call fcn.0040ccdc
call fcn.00404230
mov ecx, 0x4a7580
mov dl, 2
mov eax, ebx
call fcn.004a7754
mov word [ebx + 0x844], 2
mov ax, word [ebx + 0x83c]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x846], ax
mov edi, 0x10
push 0
push 0
mov eax, esi
call fcn.0041af3c
mov eax, esi
call fcn.0041af50
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4a74e4
call fcn.004039a4
mov ecx, eax
lea edx, [esp + 1]
mov eax, esi
call fcn.0041b148
push edi
lea eax, [ebx + 0x844]
push eax
push 0
mov eax, esi
call fcn.0041af50
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4a7510
call fcn.004039a4
push eax
lea eax, [esp + 0x11]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0xa32], 0
je 0x4a753a
mov edx, ebx
mov eax, dword [ebx + 0xa34]
call dword [ebx + 0xa30]
add esp, 0x804
pop edi
pop esi
pop ebx
ret

Function at 0x4a7814
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a78e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x800
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x834], eax
cmp word [ebx + 0xa2a], 0
je 0x4a78d2
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x4a78fc
call fcn.00409d70
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x834]
mov edx, ebx
mov eax, dword [ebx + 0xa2c]
call dword [ebx + 0xa28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a78ef
lea eax, [ebp - 8]
call fcn.004047d0
ret
Function at 0x4a8620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4a8638
add esp, 0xfffffff0
call fcn.00403dc8
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4a874d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 0x24], esi
mov ecx, dword [0x4ac28c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x49132c]
call fcn.00492e64
mov edi, eax
mov dword [ebx + 4], edi
mov dword [edi + 0x44], ebx
mov dword [edi + 0x40], 0x4a893c
mov eax, edi
mov edx, dword [esi + 8]
call fcn.00492ed8
mov eax, dword [0x4ac474]
mov eax, dword [eax]
mov edx, 0x4a877c
call fcn.00479d34
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x10]
call fcn.00404824
mov eax, dword [0x4ac474]
mov eax, dword [eax]
mov edx, 0x4a878c
call fcn.00479d34
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebx + 8], eax
mov eax, dword [0x4ac474]
mov eax, dword [eax]
mov edx, 0x4a8798
call fcn.00479d34
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404824
mov eax, dword [0x4ac474]
mov eax, dword [eax]
mov edx, 0x4a87a4
call fcn.00479d34
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebx + 0x14], eax
mov eax, dword [0x4ac474]
mov eax, dword [eax]
mov edx, 0x4a87b4
call fcn.00479d34
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x20], 0
call fcn.0040aeb0
fstp qword [ebx + 0x30]
wait
cmp byte [esi + 0x10], 0
je 0x4a8732
mov eax, ebx
call fcn.004a887c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8754
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004047f4
ret
Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret

Function at 0x40a7a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a7cf
xor eax, eax
jmp 0x40a8f3
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a7ed
xor eax, eax
jmp 0x40a8f3
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40a812
xor eax, eax
jmp 0x40a8f3
mov ecx, dword [ebp - 4]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40a8f1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40a8e0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0042c0a0
add esp, 0xc
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40a8d6
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040ac20
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x40a8d6
mov ecx, dword [ebp - 0xc]
call fcn.0040acf0
test eax, eax
jne 0x40a8a5
mov eax, dword [ebp - 0xc]
jmp 0x40a8f3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x40a8c8
push 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x28], eax
jmp 0x40a8cf
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x14], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40b490
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x57dcc0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c8], ecx
push 0x4001
push 0x2b4
lea eax, [ebp - 0x2c0]
push eax
push 0
push 0x531d3c
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 0x2c4], eax
push 0x4000
push 0x2b4
lea ecx, [ebp - 0x2c0]
push ecx
push 0
push 0x531d44
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x2c4], 0
je 0x40b535
cmp dword [ebp - 4], 0
je 0x40b535
push 1
mov edx, dword [ebp - 0x2c4]
push edx
call fcn.004fad23
push eax
mov ecx, dword [ebp - 0x2c8]
call fcn.0040eb10
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004fad23
push eax
mov ecx, dword [ebp - 0x2c8]
call fcn.0040eb10
mov eax, 1
jmp 0x40b537
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042b98a
mov esp, ebp
pop ebp
ret

Function at 0x40ba20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40ba50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ba50
xor eax, eax
xor edx, edx
jmp 0x40ba56
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x40e3b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x57dcc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x64], 0
push 2
lea eax, [ebp - 0x4c]
push eax
push 0x12
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0042b9f7
add esp, 4
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 3
push 4
lea edx, [ebp - 0x70]
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x58], eax
push 4
lea ecx, [ebp - 0x10]
push ecx
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x54], edx
push 2
lea eax, [ebp - 0x4c]
push eax
push 0x1010
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0042b9f7
add esp, 4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._I64d
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0042ce4b
add esp, 0x10
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b98a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e720
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x57dcc0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
mov dword [ebp - 0x230], ecx
cmp dword [ebp + 8], 0x104
jge 0x40e74a
xor eax, eax
jmp 0x40e907
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
shl eax, 1
push eax
call fcn.00500fce
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 4], ecx
push 1
push 0x1a
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40e787
jmp 0x40e898
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0x208
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x531df8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x40e7e9
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.Version
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x224], 0
je 0x40e810
push 0x531e48
lea eax, [ebp - 0x220]
push eax
call fcn.0042bfbf
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042c3dd
add esp, 4
mov esi, eax
push 0x531e4c
call fcn.0042c3dd
add esp, 4
lea esi, [esi + eax + 1]
lea edx, [ebp - 0x220]
push edx
call fcn.0042c3dd
add esp, 4
add esi, eax
push 0x531e78
call fcn.0042c3dd
add esp, 4
add esi, eax
cmp esi, dword [ebp + 8]
jg 0x40e890
push str.CyberLinkPower2Go_
mov eax, dword [ebp - 4]
push eax
call fcn.0042bf95
add esp, 8
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0042bf95
add esp, 8
push str.Temp
mov eax, dword [ebp - 4]
push eax
call fcn.0042bf95
add esp, 8
mov dword [ebp - 8], 1
xor ecx, ecx
jne 0x40e76e
cmp dword [ebp - 8], 0
jne 0x40e8af
push str.C:Temp
mov edx, dword [ebp - 4]
push edx
call fcn.0042bfbf
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e8cc
mov ecx, dword [ebp - 4]
push ecx
call 0x409e60
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e8ec
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0042bfbf
add esp, 8
mov edx, dword [ebp - 4]
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00500fd3
add esp, 4
mov eax, dword [ebp - 8]
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042b98a
mov esp, ebp
pop ebp
ret 8
Function at 0x414ae0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x414afa
mov ecx, dword [ebp - 0x10]
call fcn.00414c20
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x414b18
jmp 0x414b28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor eax, eax
jmp 0x414c0e
cmp dword [ebp + 0x14], 0
je 0x414beb
mov edx, dword [ebp - 0x10]
add edx, 0xc
push edx
push 0
push 0
push 0x8003
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x414b55
jmp 0x414b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
call fcn.00414c20
xor eax, eax
jmp 0x414c0e
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x414b8a
jmp 0x414b96
mov ecx, dword [ebp - 0x10]
call fcn.00414c20
xor eax, eax
jmp 0x414c0e
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x414bbf
jmp 0x414bd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
call fcn.00414c20
xor eax, eax
jmp 0x414c0e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x414c04
mov eax, 1
jmp 0x414c0e
mov ecx, dword [ebp - 0x10]
call fcn.00414c20
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14