joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423160
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48599f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b31cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
call edi
lea ecx, [ebx + 0x1c]
mov dword [ebp - 4], 0
call fcn.00423100
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
push 0
mov dword [ebx + 0x40], 0
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x44], 0
push 0
mov byte [ebp - 4], 3
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
call fcn.00425b30
mov dword [ebx + 0x48], eax
push 0
push 0
lea ecx, [ebx + 0x50]
mov byte [ebp - 4], 4
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
call fcn.00425b30
mov dword [ebx + 0x50], eax
lea ecx, [ebx + 0x58]
mov byte [ebp - 4], 5
call fcn.00423310
push 0
push 0
lea ecx, [ebx + 0x6c]
mov byte [ebp - 4], 6
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
call fcn.00425b30
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x74], 0xc8
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
lea esi, [ebx + 0x84]
push esi
call edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], 0
lea esi, [ebx + 0xb0]
push esi
call edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea esi, [ebx + 0xe0]
mov byte [ebp - 4], 0xb
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00418a70
mov dword [esi], eax
push 0
push 0
lea ecx, [esi + 8]
mov byte [ebp - 4], 0xc
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.00418a70
mov dword [esi + 8], eax
mov eax, ebx
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 0x42c6c0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov ecx, dword [esi]
test ecx, ecx
je 0x42c6e6
call fcn.00468e60
mov edi, eax
jmp 0x42c6e8
xor edi, edi
mov ecx, dword [esi]
test ecx, ecx
je 0x42c6f5
call fcn.00468f60
jmp 0x42c6f7
xor eax, eax
mov esi, dword [esi + 4]
test eax, eax
je 0x42c715
push 0
push esi
push esi
push 0x30000
push 1
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test eax, eax
jne 0x42c745
xor eax, eax
cmp esi, 0x10
sete al
or eax, 0x110
push eax
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x80
push 0x49454c
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret
Function at 0x42cb70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486618
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4b31cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.00468f70
test eax, eax
jne 0x42cbc2
push 0x30
push 0x48f9d4
push 0x4947b8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x42cd2c
push 0x3c
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], 0x44
push 0
push eax
mov dword [ebp - 0x74], 0
call fcn.0046e870
xorps xmm0, xmm0
push 0x49483c
movdqu xmmword [ebp - 0x34], xmm0
call fcn.00468d70
push eax
push 0x49483c
call fcn.00468f00
add esp, 0x18
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00468a70
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x42cc24
call fcn.00468f40
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.004689b0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42cd0a
push 0x494894
call fcn.00468d70
push eax
push 0x494894
call fcn.00468f00
mov dword [ebp - 0x1c], eax
push 0x494860
mov byte [ebp - 4], 4
call fcn.00468d70
push eax
push 0x494860
call fcn.00468f00
add esp, 0x18
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00468a70
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.00468a70
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x42ccbf
call fcn.00468f40
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x42cccf
call fcn.00468f40
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x42ccdf
call fcn.00468f40
push 0x30
push 0x48f9d4
lea ecx, [ebp - 0x20]
call fcn.004689b0
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x42cd1c
call fcn.00468f40
jmp 0x42cd1c
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x42cd2c
call fcn.00468f40
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x42cd3f
call fcn.00468f40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42d8a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0x101f
push dword [ebp + 8]
call esi
push 0
push 0
push 0x1200
push eax
call esi
mov edi, eax
xor ecx, ecx
mov edx, 4
lea eax, [edi + edi]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046d699
add esp, 4
mov byte [ebp - 1], 0
mov ebx, eax
mov dword [ebp - 8], 0xffffffff
lea eax, [edi*8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42d972
cmp dword [ebp - 8], 3
jne 0x42d972
lea eax, [edi*8]
cmp dword [ebp - 0xc], eax
jne 0x42d972
lea eax, [ebx + edi*4]
push eax
push edi
push 0x103a
push dword [ebp + 8]
call esi
xor esi, esi
test edi, edi
je 0x42d96e
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x42d969
push 0x60
push dword [0x4b4854]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
movzx eax, ax
push eax
push esi
push 0x101e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
cmp esi, edi
jb 0x42d940
mov byte [ebp - 1], 1
push ebx
call fcn.0046e86a
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0x101f
push dword [ebp + 8]
call esi
push 0
push 0
push 0x1200
push eax
call esi
mov ebx, eax
xor ecx, ecx
mov edx, 4
lea eax, [ebx + ebx]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046d699
add esp, 4
mov edi, eax
lea ecx, [edi + ebx*4]
push ecx
push ebx
push 0x103b
push dword [ebp + 8]
call esi
xor esi, esi
test ebx, ebx
je 0x42da18
jmp 0x42d9f0
push dword [0x4b4854]
push 0x60
push 0
push esi
push 0x101d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [edi + esi*4], eax
inc esi
cmp esi, ebx
jb 0x42d9f0
lea eax, [ebx*8]
push eax
push edi
push 3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call fcn.0046e86a
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42e600
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4866e8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b31cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x42e6cc
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42e6cc
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push esi
push eax
call fcn.0042e6e0
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00468f70
lea eax, [eax*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00468f70
lea ecx, [ebp + 8]
lea eax, [eax*2 + 2]
push eax
call fcn.004689b0
push eax
push esi
call fcn.0046ea20
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x42e6cc
call fcn.00468f40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42f0e0
Capabilities:
Get file size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042f730
mov bl, byte [ebp + 0xc]
lea ecx, [esi + 0xf8]
mov edi, dword [ebp + 8]
push edi
mov byte [esi + 4], 0
mov byte [esi + 5], bl
call fcn.00402100
mov dword [esi + 0xfc], 0
test edi, edi
je 0x42f125
cmp word [edi], 0
je 0x42f125
mov dword [esi], 0
jmp 0x42f12b
mov dword [esi], 0x17d78400
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x10]
mov eax, dword [0x4b4b24]
cmovb ecx, dword [ebp - 0x10]
add eax, 8
mov dword [esi + 8], ecx
push eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x4b4b28]
mov ecx, dword [0x4b4b24]
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push 0
lea eax, [ebp - 8]
push eax
call fcn.00443c80
mov eax, dword [0x4b4b24]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi]
push 0
test eax, eax
je 0x42f2b3
push eax
push 0
push 0x4000004
push 0
mov dword [esi + 0xc], 0xffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor ecx, ecx
mov dword [esi + 0x10], eax
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
test bl, bl
je 0x42f2f3
push 3
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x42f308
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42f308
push 0
push 0
push 3
push 0
push 1
mov byte [esi + 4], 1
push connect
jmp 0x42f2fe
push 2
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x42f31b
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x1c], eax
test bl, bl
je 0x42f364
xor eax, eax
cmp byte [esi + 4], al
push 0
push 0
sete al
push 0
lea eax, [eax*2 + 2]
push eax
push 0
push dword [esi + 0xc]
jmp 0x42f29a
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4309d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x218], 0
call fcn.0046e870
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x210]
push eax
push 0x12
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x430a43
push 0
call fcn.00468d70
push eax
push 0
jmp 0x430acd
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x22c], 0x49a70c
mov dword [ebp - 0x228], 0x1000
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x430aa7
mov ecx, dword [ebp - 0x214]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [ebp - 0x20c]
push eax
call fcn.00468d70
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00468f00
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
pop esi
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret

Function at 0x432a30
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x432aae
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.00468f70
lea eax, [eax*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, edi
mov esi, eax
call fcn.00468f70
mov ecx, edi
lea eax, [eax*2 + 2]
push eax
call fcn.004689b0
push eax
push esi
call fcn.0046ea20
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x432e30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push 0xf003f
push 0
push ebx
push edi
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x432ebf
lea esp, [esp]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.00432e30
add esp, 8
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x432e90
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
inc eax
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret
Function at 0x433a80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046d699
add esp, 4
mov edi, eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call fcn.00468d70
push eax
push edi
call fcn.00468f00
mov esi, dword [ebp + 8]
push edi
mov dword [esi], eax
call fcn.0046e86a
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4345e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x4b4b64], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x6c], 0
jne 0x434624
push 5
push 0x4b4b64
push 0xe
mov eax, 0x2e
push 0x400
mov word [0x4b4b64], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movsd xmm0, qword [ebp + 0xc]
lea eax, [ebp - 0x68]
sub esp, 8
movsd qword [esp], xmm0
push 0x48f3a0
push eax
call fcn.00430520
mov dx, word [0x4b4b64]
lea eax, [ebp - 0x68]
add esp, 0x10
lea esp, [esp]
movzx ecx, word [eax]
cmp ecx, 0x30
je 0x43465d
cmp cx, dx
jne 0x434662
add eax, 2
jmp 0x434650
cmp word [eax], 0
je 0x434683
mov ecx, dword [ebp + 0x14]
jmp 0x434670
test ecx, ecx
jle 0x434683
cmp word [eax], dx
je 0x43467a
dec ecx
add eax, 2
cmp word [eax], 0
jne 0x434670
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x68]
push eax
call fcn.00468d70
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00468f00
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop esi
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret
Function at 0x434890
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 8]
push 5
mov word [ebp - 0x28], ax
mov word [ebp - 0x1c], ax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x34]
push eax
push 0x11
push edi
movq qword [ebp - 0x26], xmm0
movq qword [ebp - 0x1a], xmm0
movq qword [ebp - 0xe], xmm0
call esi
push 5
lea eax, [ebp - 0x40]
push eax
push 0x12
push edi
call esi
push 5
lea eax, [ebp - 0x28]
push eax
push 0x10
push edi
call esi
push 5
lea eax, [ebp - 0x1c]
push eax
push 0xf
push edi
call esi
push 5
lea eax, [ebp - 0x10]
push eax
push 0xe
push edi
call esi
push 5
lea eax, [ebp - 0x4c]
push eax
push 0x1010
push edi
call esi
lea eax, [ebp - 0x34]
push eax
call fcn.00470ed4
mov dword [ebx], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00470ed4
mov dword [ebx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00470ed4
mov dword [ebx + 8], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00470e15
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00470e15
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00470ed4
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [ebx + 0x14], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret

Function at 0x4349f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x434a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x434ae0
push 0
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x434af0
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x495064
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00470e68
add esp, 0xc
lea eax, [ebp - 0x20c]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0
push 0
mov ebx, eax
lea eax, [ebp - 0x210]
push eax
push 0x400
push esi
push ebx
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x434ad4
push 0x49054c
mov ecx, edi
call fcn.00468bd0
push dword [ebp - 0x210]
mov ecx, edi
call fcn.00468bd0
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x434adf
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret
push 0x49054c
mov ecx, edi
call fcn.00468bd0
push dword [ebp - 0x210]
mov ecx, edi
call fcn.00468bd0
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret
Function at 0x434b30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
push 0xe
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046d699
add esp, 4
mov edi, eax
push edi
push esi
push 0xd
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.00468d70
push eax
push edi
call fcn.00468f00
mov esi, dword [ebp + 8]
push edi
mov dword [esi], eax
call fcn.0046e86a
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x435240
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 8
mov word [ebp - 8], 0x500
mov dword [ebp - 0x18], 0
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call edi
mov esi, dword [ebp - 0x1c]
push esi
call fcn.0046e983
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x43530b
xor edi, edi
cmp edi, dword [ebx]
jae 0x435307
lea esi, [ebx + 8]
mov edi, edi
push dword [esi - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4352fd
mov eax, dword [esi]
test al, 4
je 0x4352fd
test eax, 0xffffffef
jne 0x435305
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x4352e0
cmp edi, dword [ebx]
setne byte [ebp - 0xd]
push ebx
call fcn.0046e94b
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret

Function at 0x435350
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x43536a
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 8
cmp al, 2
jb 0x43536a
mov al, 1
ret
xor al, al
ret