joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dfa8c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x4dfac1
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00521f2c
jmp 0x4dfacb
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00521e98
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4e0a18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4e0a50
mov eax, esi
call fcn.004f0850
test al, al
je 0x4e0a50
mov eax, dword [ebx + 0x74]
call fcn.004f0554
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4e0a50
push 0
mov eax, dword [ebx + 0x74]
call fcn.004f0554
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x4e80c4
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
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x57f55c], 0
sete dl
or al, dl
jne 0x4e8204
mov eax, dword [0x57f560]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x57f55c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4e81d3
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x57f55c]
call fcn.0050a4e0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4e81cb
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x4e81cb
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4e81cb
mov eax, dword [ebp - 0x14]
call fcn.004f0554
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4e81cb
push ebp
call fcn.004e8080
pop ecx
test al, al
jne 0x4e81cb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x4e8187
mov eax, dword [ebp - 0x14]
call fcn.004eedfc
dec eax
jle 0x4e81cb
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 bx, 0xffc1
call fcn.00521384
cmp byte [ebp - 1], 0
je 0x4e81cb
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4e81cb
mov edx, dword [ebp - 0x14]
mov eax, dword [0x57f560]
call fcn.004e78cc
inc edi
dec esi
jne 0x4e811a
mov eax, dword [0x57f560]
cmp dword [eax + 8], 0
jle 0x4e81eb
mov eax, dword [0x57f560]
call fcn.004e795c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4e8204
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004e7ee8
pop ecx
test al, al
jne 0x4e8204
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 0x4ede08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x4ede39
je 0x4ede93
sub eax, 7
je 0x4ede5a
dec eax
je 0x4ede84
sub eax, 0x17
je 0x4edf38
jmp 0x4edf76
add eax, 0xffffff00
sub eax, 9
jb 0x4edf24
add eax, 0xffffff09
sub eax, 0xb
jb 0x4edeec
jmp 0x4edf76
mov eax, ebx
call fcn.004d76d8
mov edi, eax
test edi, edi
je 0x4edfd6
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x4edfdf
jmp 0x4edfd6
test byte [ebx + 0x44], 0x20
jne 0x4edfdf
jmp 0x4edfd6
mov edx, esi
mov eax, ebx
call fcn.004eb3c0
cmp dword [esi + 0xc], 0xffffffff
jne 0x4edfdf
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.005153d4
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.004e9ecc
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.004edce0
test eax, eax
je 0x4edfdf
mov dword [esi + 0xc], 1
jmp 0x4edfdf
mov edx, esi
mov eax, ebx
call fcn.004edd74
test al, al
je 0x4edfd6
cmp dword [esi + 0xc], 0
jne 0x4edfdf
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.004f0554
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x4edfdf
mov eax, ebx
call fcn.004eaa5c
test al, al
jne 0x4edfdf
jmp 0x4edfd6
mov eax, ebx
call fcn.004f0554
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x4edfd6
cmp dword [0x5728c4], 0
je 0x4edfd6
mov eax, dword [0x5728c4]
cmp ebx, dword [eax + 0x24]
jne 0x4edfd6
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x5728c4]
call fcn.004eb2f4
jmp 0x4edfd6
mov eax, dword [0x57f524]
cmp byte [eax + 0x20], 0
je 0x4edfd6
mov eax, dword [0x57f524]
cmp dword [eax + 0x1c], 0
je 0x4edfd6
mov eax, dword [esi]
mov edx, dword [0x57f524]
cmp eax, dword [edx + 0x1c]
jne 0x4edfd6
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.004d761c
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00521384
jmp 0x4edfdf
mov edx, esi
mov eax, ebx
call fcn.004eb3c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ee4a0
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 + 0x1e8], 0
je 0x4ee4bc
cmp dword [esi + 4], 0
je 0x4ee4e9
test byte [ebx + 0x45], 1
jne 0x4ee4db
mov eax, ebx
call fcn.004ed3d8
test eax, eax
jne 0x4ee4db
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4ee5f9
mov edx, esi
mov eax, ebx
call fcn.004ee118
jmp 0x4ee5f9
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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 0x4ee5f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004f0554
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.004eb2f4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004ee4a0
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 + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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.004f0554
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee5f9
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 0x4f9eb4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f9f8c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x57f5a8], 0
jne 0x4f9f70
lea eax, [ebp - 4]
mov edx, 0x4f9fa4
call fcn.00521edc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00522288
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4f9f70
mov eax, ebx
call fcn.005208f8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f9f69
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x4f9f53
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4f9fb4
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4f9f53
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x57f5a8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9f70
mov eax, dword [ebp - 0xc]
call fcn.00520910
ret
mov ebx, dword [0x57f5a8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9f93
lea eax, [ebp - 4]
call fcn.00521e44
ret

Function at 0x507c80
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x507cd4
mov eax, dword [0x577298]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x507cac
push ebx
push 0x507cdc
call fcn.004d74b0
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.USER32.DLL_OpenClipboard
test eax, eax
jne 0x507cd0
mov ecx, dword [0x57740c]
mov dl, 1
mov eax, dword [0x51842c]
call fcn.0051c864
call fcn.00521940
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x507cfc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00507c80
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x507d6e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x507d42
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00521ffc
jmp 0x507d49
mov eax, ebx
call fcn.00521e44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507d75
cmp dword [ebp - 8], 0
je 0x507d65
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.00507c54
ret
Function at 0x507d7c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00507c80
xor edx, edx
push ebp
push 0x507e1e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x507df1
mov edx, ebx
mov eax, dword [0x4cb234]
call fcn.004cfa00
test al, al
je 0x507de1
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004cf910
call fcn.005219e0
jmp 0x507e25
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x507dac
mov ecx, dword [0x577410]
mov dl, 1
mov eax, dword [0x51842c]
call fcn.0051c864
call fcn.00521940
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507e25
mov eax, dword [ebp - 4]
call fcn.00507c54
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x507e2c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00507c80
xor eax, eax
push ebp
push 0x507e84
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507e8b
mov eax, dword [ebp - 4]
call fcn.00507c54
ret

Function at 0x507e94
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00507c80
xor edx, edx
push ebp
push 0x507ee9
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507ef0
mov eax, dword [ebp - 4]
call fcn.00507c54
ret

Function at 0x507f60
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00507c80
xor eax, eax
push ebp
push 0x507fd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00507c38
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004cf9d4
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x507fbf
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507fdc
mov eax, dword [ebp - 4]
call fcn.00507c54
ret
Function at 0x507fe4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00507c80
xor eax, eax
push ebp
push 0x508059
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00507c38
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x508043
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x508060
mov eax, dword [ebp - 4]
call fcn.00507c54
ret

Function at 0x5114f4
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
ret

Function at 0x511504
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x511519
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x51bfa8
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x51bfe1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00521f2c
jmp 0x51bfea
mov eax, ebx
mov edx, esi
call fcn.00521e98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x51bff4
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
test eax, eax
jle 0x51c015
mov al, byte [esp]
jmp 0x51c017
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x520be0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x520c0f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00521f2c
jmp 0x520c2d
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00520b08
mov edi, eax
test ebx, ebx
je 0x520c2d
cmp dword [esi], 0
je 0x520c2d
dec ebx
jmp 0x520c16
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x52101c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x572e40]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5210b4
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x521094
xor eax, eax
push ebp
push 0x52108d
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 0x5210d0
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 0x521094
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x572e40]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x572e40], ax
mov esp, ebp
pop ebp
ret

Function at 0x521df8
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.005208f8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x57f879], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x521dc0
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x524174
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 0x524330
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x5241d5
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x52434c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x524247
xor eax, eax
push ebp
push 0x524240
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]
call fcn.00523fcc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x524229
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x52436c
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 0x524247
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 0x524328
cmp byte [ebp - 0xd], 0
jne 0x524289
cmp byte [ebp - 0x12], 0
je 0x524328
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x5242a2
dec ebx
cmp byte [ebx], 0x2e
je 0x5242b1
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x5242a1
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x524328
inc ebx
cmp byte [ebp - 0x12], 0
je 0x5242de
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 0x524328
cmp byte [ebp - 0xd], 0
je 0x524328
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 0x524328
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 0x524778
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x524860
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x57fc5c], 1
jae 0x524852
xor eax, eax
mov dword [0x57f868], eax
xor eax, eax
mov dword [0x57f870], eax
xor eax, eax
mov dword [0x57f874], eax
mov byte [0x57f87a], 2
mov byte [0x57f87b], 2
mov byte [0x57f87c], 3
mov word [0x57fc24], 0
mov word [0x57fc34], 1
mov word [0x57fc44], 0xa
mov dword [0x57fc4c], 0x80020004
mov dword [0x57fc18], 0x522c74
mov dword [0x57fc1c], 0x522c6c
mov dword [0x57fc20], 0x522c74
call fcn.00520fec
test al, al
je 0x524811
call fcn.0052101c
call fcn.005210e0
mov eax, 0x57f880
mov edx, 0x52486c
call fcn.0051e5d2
mov eax, 0x57fa4c
mov edx, 0x52486c
call fcn.0051e5d2
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x57f860], eax
call fcn.0051f5b4
mov dword [0x57f85c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x57f854], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524867
ret

Function at 0x5268dc
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 0x5268f8
call fcn.00527b58
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x526914
test bl, 1
je 0x526914
call fcn.0052ba18
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x526a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.005276f4
test byte [ebp + 0xd], 0xc0
jne 0x526a84
mov eax, dword [0x573d38]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x526a91
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x526abe
je 0x526ad0
sub ecx, 0x100
je 0x526ade
sub ecx, 0x100
je 0x526ae5
sub ecx, 0x100
je 0x526ad7
jmp 0x526aec
sub ecx, 0x600
je 0x526ae5
sub ecx, 0x100
je 0x526ad0
jmp 0x526aec
mov edi, 1
jmp 0x526af1
mov edi, 2
jmp 0x526af1
mov edi, 4
jmp 0x526af1
mov edi, 5
jmp 0x526af1
mov edi, 3
test byte [ebp + 0xd], 1
je 0x526b18
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5737b0]
test al, 0x80
je 0x526b11
mov ebx, 0x80
jmp 0x526b2a
mov ebx, 1
jmp 0x526b2a
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x526b2a
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x526b3c
je 0x526b45
dec eax
je 0x526b4e
jmp 0x526b57
mov dword [ebp - 4], 0x80000000
jmp 0x526b66
mov dword [ebp - 4], 0x40000000
jmp 0x526b66
mov dword [ebp - 4], 0xc0000000
jmp 0x526b66
push 1
call fcn.00527aec
pop ecx
mov ebx, eax
jmp 0x526c52
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x526b82
sub eax, 0x10
je 0x526b89
sub eax, 0x10
je 0x526b92
sub eax, 0x10
je 0x526b9b
jmp 0x526b9b
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x526ba2
mov dword [ebp - 8], 1
jmp 0x526ba2
mov dword [ebp - 8], 2
jmp 0x526ba2
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x526c0b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x526c00
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x526c00
add ebx, 0xffffffb2
push ebx
call fcn.00527aec
pop ecx
mov ebx, eax
jmp 0x526c52
mov edi, esi
push edi
call fcn.005269c4
pop ecx
test eax, eax
je 0x526c1f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x526c2b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00527814
add esp, 8
mov ebx, eax
inc eax
jne 0x526c52
push 4
call fcn.00527aec
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00527728
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret