joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483d64
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 0x483d99
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.dll_GetWindowTextA_1
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004b70a0
jmp 0x483da3
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.004b700c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x484cf0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x484d28
mov eax, esi
call fcn.00494740
test al, al
je 0x484d28
mov eax, dword [ebx + 0x74]
call fcn.00494444
push eax
call sub.USER32.dll_IsWindowVisible_1
test eax, eax
je 0x484d28
push 0
mov eax, dword [ebx + 0x74]
call fcn.00494444
push eax
call sub.USER32.dll_ShowWindow_1
pop esi
pop ebx
ret

Function at 0x48c108
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_1
test ax, 0x8000
setne al
cmp dword [0x52f194], 0
sete dl
or al, dl
jne 0x48c248
mov eax, dword [0x52f198]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x52f194]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x48c217
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x52f194]
call fcn.004a5414
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x48c20f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x48c20f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x48c20f
mov eax, dword [ebp - 0x14]
call fcn.00494444
push eax
call sub.USER32.dll_IsWindowVisible_1
test eax, eax
je 0x48c20f
push ebp
call fcn.0048c0c4
pop ecx
test al, al
jne 0x48c20f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x48c1cb
mov eax, dword [ebp - 0x14]
call fcn.00492dd0
dec eax
jle 0x48c20f
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.004b6538
cmp byte [ebp - 1], 0
je 0x48c20f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.dll_PtInRect_1
test eax, eax
je 0x48c20f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x52f198]
call fcn.0048b910
inc edi
dec esi
jne 0x48c15e
mov eax, dword [0x52f198]
cmp dword [eax + 8], 0
jle 0x48c22f
mov eax, dword [0x52f198]
call fcn.0048b9a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48c248
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0048bf2c
pop ecx
test al, al
jne 0x48c248
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 0x491ddc
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 0x491e0d
je 0x491e67
sub eax, 7
je 0x491e2e
dec eax
je 0x491e58
sub eax, 0x17
je 0x491f0c
jmp 0x491f4a
add eax, 0xffffff00
sub eax, 9
jb 0x491ef8
add eax, 0xffffff09
sub eax, 0xb
jb 0x491ec0
jmp 0x491f4a
mov eax, ebx
call fcn.0047b9b0
mov edi, eax
test edi, edi
je 0x491faa
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x491fb3
jmp 0x491faa
test byte [ebx + 0x44], 0x20
jne 0x491fb3
jmp 0x491faa
mov edx, esi
mov eax, ebx
call fcn.0048f3dc
cmp dword [esi + 0xc], 0xffffffff
jne 0x491fb3
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004ac684
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0048df10
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00491cb4
test eax, eax
je 0x491fb3
mov dword [esi + 0xc], 1
jmp 0x491fb3
mov edx, esi
mov eax, ebx
call fcn.00491d48
test al, al
je 0x491faa
cmp dword [esi + 0xc], 0
jne 0x491fb3
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.00494444
push eax
call sub.USER32.dll_DefWindowProcA_1
jmp 0x491fb3
mov eax, ebx
call fcn.0048ea78
test al, al
jne 0x491fb3
jmp 0x491faa
mov eax, ebx
call fcn.00494444
mov edi, eax
call sub.USER32.dll_GetCapture_1
cmp edi, eax
jne 0x491faa
cmp dword [0x4d9920], 0
je 0x491faa
mov eax, dword [0x4d9920]
cmp ebx, dword [eax + 0x24]
jne 0x491faa
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4d9920]
call fcn.0048f310
jmp 0x491faa
mov eax, dword [0x52f15c]
cmp byte [eax + 0x20], 0
je 0x491faa
mov eax, dword [0x52f15c]
cmp dword [eax + 0x1c], 0
je 0x491faa
mov eax, dword [esi]
mov edx, dword [0x52f15c]
cmp eax, dword [edx + 0x1c]
jne 0x491faa
lea eax, [ebp - 0x110]
push eax
call sub.USER32.dll_GetKeyboardState_1
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0047b8f4
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.004b6538
jmp 0x491fb3
mov edx, esi
mov eax, ebx
call fcn.0048f3dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492474
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 0x492490
cmp dword [esi + 4], 0
je 0x4924bd
test byte [ebx + 0x45], 1
jne 0x4924af
mov eax, ebx
call fcn.004913ac
test eax, eax
jne 0x4924af
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4925cd
mov edx, esi
mov eax, ebx
call fcn.004920ec
jmp 0x4925cd
push 0
call sub.USER32.dll_GetDC_1
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_1
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.dll_ReleaseDC_1
push 0
call sub.GDI32.dll_CreateCompatibleDC_1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.dll_SelectObject_1
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4925c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00494444
push eax
call sub.USER32.dll_BeginPaint_1
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0048f310
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00492474
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_1
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00494444
push eax
call sub.USER32.dll_EndPaint_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4925cd
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.dll_SelectObject_1
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.dll_DeleteDC_1
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.dll_DeleteObject_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ba60
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 0x49bb38
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x52f1e0], 0
jne 0x49bb1c
lea eax, [ebp - 4]
mov edx, 0x49bb50
call fcn.004b7050
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004b73fc
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA_1
mov ebx, eax
test ebx, ebx
je 0x49bb1c
mov eax, ebx
call fcn.004b5b4c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49bb15
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_1
test eax, eax
je 0x49baff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x49bb60
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA_1
test eax, eax
je 0x49baff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x52f1e0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bb1c
mov eax, dword [ebp - 0xc]
call fcn.004b5b64
ret
mov ebx, dword [0x52f1e0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bb3f
lea eax, [ebp - 4]
call fcn.004b6fb8
ret

Function at 0x4a2d9c
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x4a2df0
mov eax, dword [0x4dd5c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x4a2dc8
push ebx
push 0x4a2df8
call fcn.0047b788
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.USER32.dll_OpenClipboard_1
test eax, eax
jne 0x4a2dec
mov ecx, dword [0x4dd71c]
mov dl, 1
mov eax, dword [0x4ada18]
call fcn.004b1b9c
call fcn.004b6ab4
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x4a2e18
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.004a2d9c
push 1
call sub.USER32.dll_GetClipboardData_1
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a2e8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4a2e5e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock_1
mov edx, eax
mov eax, ebx
call fcn.004b7170
jmp 0x4a2e65
mov eax, ebx
call fcn.004b6fb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2e91
cmp dword [ebp - 8], 0
je 0x4a2e81
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock_1
mov eax, dword [ebp - 4]
call fcn.004a2d70
ret
Function at 0x4a2e98
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.004a2d9c
xor edx, edx
push ebp
push 0x4a2f3a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.dll_EnumClipboardFormats_1
mov ebx, eax
test bx, bx
je 0x4a2f0d
mov edx, ebx
mov eax, dword [0x46ffa8]
call fcn.00474574
test al, al
je 0x4a2efd
movzx eax, bx
push eax
call sub.USER32.dll_GetClipboardData_1
mov esi, eax
push 9
call sub.USER32.dll_GetClipboardData_1
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.00474484
call fcn.004b6b54
jmp 0x4a2f41
movzx eax, bx
push eax
call sub.USER32.dll_EnumClipboardFormats_1
mov ebx, eax
test bx, bx
jne 0x4a2ec8
mov ecx, dword [0x4dd720]
mov dl, 1
mov eax, dword [0x4ada18]
call fcn.004b1b9c
call fcn.004b6ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2f41
mov eax, dword [ebp - 4]
call fcn.004a2d70
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a2f48
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.004a2d9c
xor eax, eax
push ebp
push 0x4a2fa0
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.dll_GetClipboardData_1
mov ebx, eax
push 9
call sub.USER32.dll_GetClipboardData_1
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 0x4a2fa7
mov eax, dword [ebp - 4]
call fcn.004a2d70
ret

Function at 0x4a2fb0
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.004a2d9c
xor edx, edx
push ebp
push 0x4a3005
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.dll_GetClipboardData_1
mov ebx, eax
push 9
call sub.USER32.dll_GetClipboardData_1
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 0x4a300c
mov eax, dword [ebp - 4]
call fcn.004a2d70
ret

Function at 0x4a307c
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.004a2d9c
xor eax, eax
push ebp
push 0x4a30f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a2d54
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.00474548
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.dll_SetClipboardData_1
cmp dword [ebp - 0x10], 0
je 0x4a30db
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.dll_SetClipboardData_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a30f8
mov eax, dword [ebp - 4]
call fcn.004a2d70
ret
Function at 0x4a3100
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.004a2d9c
xor eax, eax
push ebp
push 0x4a3175
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a2d54
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_1
cmp dword [ebp - 0x10], 0
je 0x4a315f
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.dll_SetClipboardData_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a317c
mov eax, dword [ebp - 4]
call fcn.004a2d70
ret

Function at 0x4b12ec
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_1
test eax, eax
jle 0x4b1325
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004b70a0
jmp 0x4b132e
mov eax, ebx
mov edx, esi
call fcn.004b700c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4b5d90
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 0x4b5dbf
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004b70a0
jmp 0x4b5ddd
call sub.kernel32.dll_GetCommandLineA_1
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004b5d18
mov edi, eax
test ebx, ebx
je 0x4b5ddd
cmp dword [esi], 0
je 0x4b5ddd
dec ebx
jmp 0x4b5dc6
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x52f4e0], 0x8088405
inc edx
mov dword [0x52f4e0], edx
mul edx
mov eax, edx
ret
Function at 0x4b61cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d9d48]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4b6264
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4b6244
xor eax, eax
push ebp
push 0x4b623d
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 0x4b6280
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6244
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey_1
ret
mov ax, word [0x4d9d48]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d9d48], ax
mov esp, ebp
pop ebp
ret

Function at 0x4b6f6c
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.004b5b4c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x52f4e5], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4b6f34
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4b87dc
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4b8998
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4b883d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4b89b4
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4b88af
xor eax, eax
push ebp
push 0x4b88a8
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.004b8634
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA_1
test eax, eax
je 0x4b8891
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4b89d4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b88af
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4b8990
cmp byte [ebp - 0xd], 0
jne 0x4b88f1
cmp byte [ebp - 0x12], 0
je 0x4b8990
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA_1
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4b890a
dec ebx
cmp byte [ebx], 0x2e
je 0x4b8919
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4b8909
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4b8990
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4b8946
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov esi, eax
test esi, esi
jne 0x4b8990
cmp byte [ebp - 0xd], 0
je 0x4b8990
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov esi, eax
test esi, esi
jne 0x4b8990
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b8e10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x4b8ef8
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x52f8c8], 1
jae 0x4b8eea
xor eax, eax
mov dword [0x52f4d4], eax
xor eax, eax
mov dword [0x52f4dc], eax
xor eax, eax
mov dword [0x52f4e0], eax
mov byte [0x52f4e6], 2
mov byte [0x52f4e7], 2
mov byte [0x52f4e8], 3
mov word [0x52f890], 0
mov word [0x52f8a0], 1
mov word [0x52f8b0], 0xa
mov dword [0x52f8b8], 0x80020004
mov dword [0x52f884], 0x4b7e70
mov dword [fcn.0052f888], fcn.004b7e68
mov dword [0x52f88c], 0x4b7e70
call fcn.004b619c
test al, al
je 0x4b8ea9
call fcn.004b61cc
call fcn.004b6290
mov eax, 0x52f4ec
mov edx, 0x4b8f04
call fcn.004b387a
mov eax, 0x52f6b8
mov edx, 0x4b8f04
call fcn.004b387a
call sub.kernel32.dll_GetCommandLineA_1
mov dword [0x52f4cc], eax
call fcn.004b4808
mov dword [0x52f4c8], eax
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [0x52f4c0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8eff
ret

Function at 0x4bae78
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
dec eax
je 0x4bae94
call fcn.004bb59c
jmp 0x4baf03
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA_1
test eax, eax
jne 0x4baeb0
call fcn.004bb59c
jmp 0x4baf03
cmp dword [0x5301b8], 1
je 0x4baf01
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004bec9c
pop ecx
cmp al, 0x41
jl 0x4baf01
cmp al, 0x5a
jg 0x4baf01
cmp byte [ebp - 0x107], 0x3a
jne 0x4baf01
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.kernel32.dll_SetEnvironmentVariableA_1
dec eax
je 0x4baf01
call fcn.004bb59c
jmp 0x4baf03
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4baf08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA_1
cmp byte [ebp - 0x104], 0x61
jl 0x4baf37
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x4baf41
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
Function at 0x4baf4c
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.kernel32.dll_GetEnvironmentVariableA_1
test eax, eax
jne 0x4bafb2
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.kernel32.dll_SetEnvironmentVariableA_1
dec eax
je 0x4bafb2
call fcn.004bb59c
jmp 0x4bafed
push edi
call sub.kernel32.dll_SetCurrentDirectoryA_1
dec eax
je 0x4bafc2
call fcn.004bb59c
jmp 0x4bafed
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x4bafe8
push edi
call sub.kernel32.dll_GetDriveTypeA_1
mov ebx, eax
test eax, eax
je 0x4bafe6
cmp ebx, 1
je 0x4bafe6
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x4bafd3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bedb4
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_1
mov ebx, eax
test eax, eax
je 0x4bee16
call fcn.004bed64
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004b9a4c
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004b9a4c
pop ecx
push eax
push edi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret