joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f8e
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0x6c]
push edi
cmp eax, esi
je 0x404fc7
push dword [ebx + 0x98]
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
push dword [ebx + 0x6c]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebx + 0x70]
mov dword [ebx + 0x6c], esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0x70], esi
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
mov dword [ebp - 4], edi
call esi
push 0xa
push edi
mov dword [ebx + 0x74], eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4f
mov dword [ebx + 0x78], eax
call esi
push eax
push 0x4e
call esi
push eax
push 0x4d
call esi
push eax
push 0x4c
call esi
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, ecx
mov dword [ebx + 0x80], edx
sub eax, dword [ebp - 0x14]
mov dword [ebx + 0x74], eax
mov eax, dword [ebp - 8]
mov esi, eax
sub esi, edx
mov dword [ebx + 0x78], esi
mov esi, dword [ebp - 0x14]
mov dword [ebx + 0x7c], esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x405051
lea edi, [ebp - 0x14]
mov dword [ebx + 0x20], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
jmp 0x405055
and dword [ebx + 0x20], 0
sub ecx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
push edi
add ecx, 8
add eax, 8
mov esi, ecx
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov dword [ebx + 0x6c], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push dword [ebp + 8]
mov dword [ebx + 0x98], eax
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [ebx + 0x70], eax
push dword [ebx + 0x6c]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
push dword [ebp + 8]
push esi
xor esi, esi
push esi
push esi
push dword [ebx + 0x6c]
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x405b5f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov ebx, ecx
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x405c00
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x64]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
push dword [ebp - 4]
sub esi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebx + 0x6c]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 8]
mov ecx, ebx
call fcn.0040515d
push esi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
push dword [ebp - 4]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405c06
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x405c72
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
test eax, eax
je 0x405c72
push edi
call esi
test eax, eax
je 0x405c72
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x405c72
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call esi
inc eax
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405c6c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret 4

Function at 0x405d5d
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
lea ecx, [ebp + 0x10]
cmp dword [ebp + 0x10], eax
push esi
push ecx
push 0x407318
setne al
and dword [ebp + 0x10], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x405daf
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret
Function at 0x405db9
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0xc], eax
push esi
push ecx
push 0x407318
setne al
and dword [ebp + 0xc], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x405dfb
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret

Function at 0x405e1c
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x214]
push 0x104
push ecx
push eax
call fcn.00405e05
mov dx, word [0x4178a0]
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x10e]
push 0x40
mov word [ebp - 0x110], dx
pop ecx
lea ebx, [ebp - 0x110]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or ecx, 0xffffffff
mov edi, 0x40cdf4
xor eax, eax
mov word [ebp - 0x614], dx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp - 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x214]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp - 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.___bg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xff
lea edi, [ebp - 0x612]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
xor esi, esi
cmp dword [ebp + 0xc], esi
lea ecx, [ebp - 4]
push ecx
push 0x407318
setne al
add eax, 0x80000001
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 1
lea eax, [ebp - 0xc]
pop edi
mov dword [ebp - 0xc], 0x400
push eax
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405f94
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll__mbscmp
pop ecx
test eax, eax
pop ecx
je 0x405f90
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, edi
jmp 0x405f96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ac660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x85000]
push edi
or ebp, 0xffffffff
jmp 0x4ac682
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ac689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac678
mov eax, 1
add ebx, ebx
jne 0x4ac69b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ac6ac
jne 0x4ac6bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac6bc
dec eax
add ebx, ebx
jne 0x4ac6b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ac690
xor ecx, ecx
sub eax, 3
jb 0x4ac6d4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ac746
sar eax, 1
mov ebp, eax
jmp 0x4ac6df
add ebx, ebx
jne 0x4ac6df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4ac6ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4ac710
inc ecx
add ebx, ebx
jne 0x4ac6fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ac6f1
jne 0x4ac70d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ac6f1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ac730
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ac721
jmp 0x4ac67e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ac730
add edi, ecx
jmp 0x4ac67e
pop esi
mov edi, esi
mov ecx, 0x1621
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ac74e
cmp byte [edi], 0x13
jne 0x4ac74e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4ac753
lea edi, [esi + 0xa9000]
mov eax, dword [edi]
or eax, eax
je 0x4ac7cb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xace2c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xacef4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ac780
mov ecx, edi
jns 0x4ac7af
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xacef8]
or eax, eax
je 0x4ac7c5
mov dword [ebx], eax
add ebx, 4
jmp 0x4ac79d
call dword [esi + 0xacefc]
popal
jmp 0x40bd6f
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x299b6d29
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x47da62a4
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x9230b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00923200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9230d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9230c2
add dl, dl
jne 0x9230e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x923134
xor eax, eax
add dl, dl
jne 0x9230ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9231d5
add dl, dl
jne 0x9230fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x923108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x923113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92311e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x92312a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9230cd
mov eax, 1
add dl, dl
jne 0x923142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92314d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x923139
sub eax, ebx
mov ebx, 1
jne 0x923180
mov ecx, 1
add dl, dl
jne 0x923166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x923171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92315d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9230cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x923197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9231a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92318e
cmp eax, 0x7d00
jae 0x9231c5
cmp eax, 0x500
jb 0x9231c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9230cd
cmp eax, 0x7f
ja 0x9231c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9230cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9231f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9230cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402a48
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404564
test esi, esi
jne 0x402a7e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404654
jmp 0x402a9c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040295c
mov edi, eax
test esi, esi
je 0x402a9c
cmp dword [ebx], 0
je 0x402a9c
dec esi
jmp 0x402a85
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403628
Capabilities:
Query or enumerate registry value

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

Function at 0x40436c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466044], 0
je 0x4043cd
cmp word [0x466218], 0xd7b2
jne 0x404395
cmp dword [0x466220], 0
jbe 0x404395
mov eax, 0x466214
call dword [0x466230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x464094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464034], 0
jne 0x4043e9
push 0
push 0x46408c
push 0x464094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402714
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x466045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044e8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405840
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4058c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4058c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40594c
xor eax, eax
push ebp
push 0x405945
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405688
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 0x40592a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405aac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40592a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40594c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405a66
cmp byte [ebp - 0xd], 0
jne 0x405993
cmp byte [ebp - 0x12], 0
je 0x405a66
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4059ac
dec ebx
cmp byte [ebx], 0x2e
je 0x4059bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4059ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405a66
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4059f8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405a66
cmp byte [ebp - 0xd], 0
je 0x405a66
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405a66
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40594c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4058c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4058c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40594c
xor eax, eax
push ebp
push 0x405945
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405688
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 0x40592a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405aac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40592a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40594c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405a66
cmp byte [ebp - 0xd], 0
jne 0x405993
cmp byte [ebp - 0x12], 0
je 0x405a66
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4059ac
dec ebx
cmp byte [ebx], 0x2e
je 0x4059bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4059ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405a66
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4059f8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405a66
cmp byte [ebp - 0xd], 0
je 0x405a66
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405a66
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret