joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480c70
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480e1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x480dfe
mov dl, 1
mov eax, dword [0x41e900]
call fcn.00424094
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00449998
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x480ded
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004a035c
test al, al
je 0x480de0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x480e2c
lea eax, [ebp - 0x394]
call fcn.00434e2c
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x480de0
xor eax, eax
push ebp
push 0x480dd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x480e9c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x480dc2
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00449b80
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x480dc2
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00449b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480de0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x480ce3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00423e80
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480e24
lea eax, [ebp - 0x3a0]
call fcn.00449988
ret

Function at 0x48180c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x535710]
cmp byte [eax + 0xa9], 0
jne 0x48187e
cmp dword [0x535728], 0
jne 0x48183e
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x51bbd8]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x535728], eax
cmp dword [0x535724], 0
jne 0x481859
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x535724], eax
cmp dword [0x53572c], 0
jne 0x48187e
push esp
push 0
push 0
mov eax, dword [0x51bcdc]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x53572c], eax
pop edx
ret
Function at 0x481a94
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x481aab
add esp, 0xfffffff0
call fcn.00448000
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042b3b0
push 0
call sub.OLE32.DLL_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x522e98]
cmp word [eax + 2], 0
jne 0x481ae8
mov eax, dword [0x522e98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048397c
mov eax, dword [0x522e9c]
cmp word [eax + 2], 0
jne 0x481b02
mov eax, dword [0x522e9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00483b8c
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x46b05c]
call fcn.0046ce38
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x484010
mov dl, 1
mov eax, dword [0x41dfc8]
call fcn.00447aec
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x41dfc8]
call fcn.00447aec
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x46bc10]
call fcn.00474344
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x481ce0
mov eax, dword [0x522e48]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00474748
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4842c0
mov dl, 1
mov eax, dword [0x41dfc8]
call fcn.00447aec
mov dword [ebx + 0x94], eax
push 0x100
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x522e48]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0043485c
test eax, eax
je 0x481c10
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0043465c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00434844
test eax, eax
je 0x481c28
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.USER32.DLL_CharNextW
push eax
call sub.USER32.DLL_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, 0x100
call fcn.00449b80
push ebx
push 0x483390
call fcn.00478204
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x522e50]
cmp byte [eax], 0
jne 0x481c79
mov eax, ebx
call fcn.00481e54
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.004844e8
mov eax, ebx
call fcn.004850ac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x481cd6
call fcn.00448058
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4820fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x48219e
cmp dword [ebx + 0x90], 0
jne 0x482198
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x482074
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x482198
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongW
test al, 8
je 0x48215e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x482198
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00420ed4
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48216d
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4823bc
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x535710]
cmp dword [eax + 0x170], 0
je 0x482521
test bl, bl
jne 0x48246f
cmp dword [esi + 0x98], 0
jne 0x482464
mov eax, esi
call fcn.00484efc
push eax
push 0x4822c8
call sub.USER32.DLL_EnumWindows
cmp dword [esi + 0x40], 0
je 0x482435
mov eax, dword [0x535710]
cmp byte [eax + 0xcf], 0
je 0x482435
mov eax, dword [esi + 0xd4]
call fcn.0044ae4c
mov edi, eax
cmp edi, 0
jl 0x482435
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x48241e
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x482464
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00420ed4
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x482444
inc dword [esi + 0x98]
jmp 0x482521
cmp dword [esi + 0x98], 0
jle 0x482521
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x482521
cmp dword [esi + 0x40], 0
je 0x4824cc
mov eax, dword [0x535710]
cmp byte [eax + 0xcf], 0
je 0x4824cc
mov eax, dword [esi + 0xd4]
call fcn.0044ae4c
mov edi, eax
cmp edi, 0
jl 0x4824cc
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4824b5
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4824fb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00420ed4
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4824db
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x477c10]
call fcn.0044b00c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4830dc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x483147
cmp byte [ebx + 0xcf], 0
jne 0x483147
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.USER32.DLL_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00449ad4
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x483134
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x483154
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00449998
jmp 0x483154
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00449998
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4846bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x48472a
mov eax, esi
call fcn.0049abd0
test al, al
je 0x48472a
mov eax, dword [ebx + 0x80]
call fcn.0049a824
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x48472a
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x48471e
push 0
mov eax, dword [ebx + 0x80]
call fcn.0049a824
push eax
call sub.USER32.DLL_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00491e8c
jmp 0x48472a
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.00484508
pop esi
pop ebx
ret
Function at 0x489da8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00449980
xor eax, eax
push ebp
push 0x489f3d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_OpenClipboard
test eax, eax
je 0x489f0b
xor edx, edx
push ebp
push 0x489f04
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004499ec
mov eax, dword [ebp - 8]
test eax, eax
je 0x489e17
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x489e17
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00448f2c
test eax, eax
je 0x489e20
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x489ed9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x489ec8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004499ec
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x489e82
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x489e82
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00448f2c
test eax, eax
je 0x489e8b
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00449a24
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00447198
call sub.USER32.DLL_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489ecf
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov ecx, dword [0x5230dc]
mov dl, 1
mov eax, dword [0x4319fc]
call fcn.00438f10
call fcn.00448668
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489f44
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00449990
ret
Function at 0x48f620
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5357d4], 0
je 0x48f761
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x522e84]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x48f761
mov eax, dword [0x5357d8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5357d4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x48f730
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5357d4]
call fcn.00420ed4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x48f728
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x48f728
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x48f728
mov eax, dword [ebp - 0x14]
call fcn.0049a824
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x48f728
push ebp
call fcn.0048f5dc
pop ecx
test al, al
jne 0x48f728
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00447d64
test al, al
je 0x48f728
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00447d64
cmp byte [ebp - 1], 0
je 0x48f728
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00430cbc
test al, al
je 0x48f728
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5357d8]
call fcn.0048ed50
inc edi
dec ebx
jne 0x48f685
mov eax, dword [0x5357d8]
cmp dword [eax + 8], 0
jle 0x48f748
mov eax, dword [0x5357d8]
call fcn.0048ee08
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48f761
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0048f440
pop ecx
test al, al
jne 0x48f761
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497510
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.00430ca4
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00491a9c
test ebx, ebx
jne 0x497563
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004973a4
mov ebx, eax
test ebx, ebx
je 0x49764e
cmp esi, ebx
je 0x49758c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4975a1
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4975d9
add eax, 0xffffff5f
sub eax, 2
jb 0x4975f1
dec eax
sub eax, 2
jb 0x497605
dec eax
sub eax, 2
jb 0x4975fb
jmp 0x49760f
add eax, 0xfffffdff
sub eax, 2
jb 0x4975f1
dec eax
sub eax, 2
jb 0x497605
dec eax
sub eax, 2
jb 0x4975fb
jmp 0x49760f
mov byte [esp + 0x120], 0
jmp 0x497617
mov byte [esp + 0x120], 2
jmp 0x497617
mov byte [esp + 0x120], 1
jmp 0x497617
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004782b8
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0049328c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x497650
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x4fecfc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4fed18
call fcn.004ffe74
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4fed37
test bl, 1
je 0x4fed37
call fcn.00506ea8
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x50374c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x5214ab
lea ecx, [ebp - 0x200]
push ecx
call fcn.004fda60
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004fdb78
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004fdb78
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x5214ad
lea ecx, [ebp - 0x200]
push ecx
call fcn.004fda60
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004fdb78
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00504bec
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x50385d
push esi
call fcn.004fdb78
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004fdb78
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004fcf00
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x503834
xor eax, eax
jmp 0x5038e4
push esi
call fcn.004fdb78
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004fdb78
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004fd9b8
add esp, 0xc
jmp 0x50389d
mov edi, dword [ebx + 0x24]
push edi
call fcn.004fdb78
pop ecx
push eax
push esi
call fcn.004fdb78
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004fdb78
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004fcf20
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x50389d
xor eax, eax
jmp 0x5038e4
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004fda60
add esp, 8
push 0x5214af
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004fda60
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004fda60
add esp, 8
push 0x5214b1
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004fda60
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x506e3c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x506e69
jmp 0x506ea0
call fcn.00506dec
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004fdb78
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004fdb78
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x506f24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x521ae0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x506ffe
cmp dword [0x521adc], 0
jne 0x506ffe
cmp dword [0x521cdc], 0
je 0x506fb8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00506cec
add esp, 8
mov ebx, eax
test eax, eax
jne 0x506f9e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00506cec
add esp, 8
mov ebx, eax
test eax, eax
jne 0x506f9e
lea ebx, [ebp - 0x84]
jmp 0x506f9f
inc ebx
call fcn.00506edc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x507039
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x521ae4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004fdb78
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x521ae7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x507039
cmp dword [0x521adc], 0
je 0x507018
cmp dword [0x521adc], 0xffffffff
je 0x507039
push esi
call dword [0x521adc]
pop ecx
mov eax, dword [0x521ae0]
test eax, eax
je 0x507039
cmp dword [0x521ae0], 0xffffffff
je 0x507039
cmp byte [eax], 0
je 0x507039
push esi
push eax
call fcn.00506e3c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5d7016
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 2], esi
lea esp, [esp]
push word [esp]
lea esp, [esp + 2]
jmp 0x5d702b
push dword [esp + 2]
jmp 0x5d7020
jg section..vmp2
mov dword [esp + 2], esi
lea esp, [esp]
jmp 0x5d7073
mov dword [esp + 4], edx
call fcn.005d704d
push word [esp]
lea esp, [esp + 2]
mov dword [esp + 4], edx
jmp 0x5d702f

Function at 0x5d7097
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0
jmp 0x5d70e5
push sp
pushal
mov word [esp + 7], cx
call fcn.005d7052
sbb eax, 0xa455329c
adc dword [ebp - 0x17], ebp
jns 0x5d70c6
jmp 0x5d710b
and al, 0x4c
push esi
mov dword [esp + 0x4c], esi
jmp 0x5d7111
setle al
jmp 0x5d70ee
not cx
mov ebx, ecx
bswap ecx
cpuid
mov dl, al
pushfd
jmp 0x5d7120
outsd dx, dword [esi]
lcall 0x8951, 0xcd527b2f
jl 0x5d7139
push ecx
mov dword [esp + 0x4c], edi
dec esp
lea esp, [esp + 0x4c]
pushfd
jmp 0x5d7034
pop bp
mov si, 0xa457
lea esp, [esp + 2]
mov edi, dword [esp + 0x2c]
rdtsc
jmp 0x5d716a
sub esp, 1
lea esp, [esp + 1]
jmp 0x5d71c8
js 0x5d7132
sub esp, 1
lea esp, [esp + 1]
jmp 0x5d71c8
bswap ecx
bswap eax
mov ecx, 0xc54d4243
mov ch, dl
mov esi, 0xd0c33d46
neg ah
jmp 0x5d7154
rcr edx, cl
jmp 0x5d71ea
rcr edx, cl
xchg bl, cl
pushfd
mov al, 0x31
bsr bp, cx
jmp 0x5d7287
lea esi, [esp]
mov ebp, edi
rol cl, 4
jne 0x5d719d
je 0x5d71a5
bsr bp, cx
jmp 0x5d7287
xchg bl, cl
pushfd
mov al, 0x31
jmp 0x5d71d4
bsr bx, ax
jmp 0x5d7233
not dx
mov eax, esp
stc
jbe 0x5d71f1
bsr bx, ax
cpuid
jmp fcn.005d7235
cpuid
sub esp, 0xbc
mov ebp, esp
mov dx, bx
mov bx, 0x9e63
jmp 0x5d720b
Function at 0x5d70bf
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
lea esp, [esp + 3]
mov dword [esp + 0x4c], ebp

Function at 0x5d7dc6
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov al, ch
xor dl, ah
jne 0x5d7db0
mov dx, sp
lea edx, [edi + ebp]
mov ax, 0x51e5
mov edx, 0xadd9525e
jmp 0x5d7dfe