joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450264
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 0x450295
je 0x4502ef
sub eax, 7
je 0x4502b6
dec eax
je 0x4502e0
sub eax, 0x17
je 0x450394
jmp 0x4503d2
add eax, 0xffffff00
sub eax, 9
jb 0x450380
add eax, 0xffffff09
sub eax, 0xb
jb 0x450348
jmp 0x4503d2
mov eax, ebx
call fcn.0043afd8
mov edi, eax
test edi, edi
je 0x450432
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x45043b
jmp 0x450432
test byte [ebx + 0x44], 0x20
jne 0x45043b
jmp 0x450432
mov edx, esi
mov eax, ebx
call fcn.0044d864
cmp dword [esi + 0xc], 0xffffffff
jne 0x45043b
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00477190
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0044c398
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0045013c
test eax, eax
je 0x45043b
mov dword [esi + 0xc], 1
jmp 0x45043b
mov edx, esi
mov eax, ebx
call fcn.004501d0
test al, al
je 0x450432
cmp dword [esi + 0xc], 0
jne 0x45043b
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.004528cc
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x45043b
mov eax, ebx
call fcn.0044cf00
test al, al
jne 0x45043b
jmp 0x450432
mov eax, ebx
call fcn.004528cc
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x450432
cmp dword [0x4947bc], 0
je 0x450432
mov eax, dword [0x4947bc]
cmp ebx, dword [eax + 0x24]
jne 0x450432
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4947bc]
call fcn.0044d798
jmp 0x450432
mov eax, dword [0x4988e8]
cmp byte [eax + 0x20], 0
je 0x450432
mov eax, dword [0x4988e8]
cmp dword [eax + 0x1c], 0
je 0x450432
mov eax, dword [esi]
mov edx, dword [0x4988e8]
cmp eax, dword [edx + 0x1c]
jne 0x450432
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.0043af1c
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.0047f138
jmp 0x45043b
mov edx, esi
mov eax, ebx
call fcn.0044d864
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4508fc
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 0x450918
cmp dword [esi + 4], 0
je 0x450945
test byte [ebx + 0x45], 1
jne 0x450937
mov eax, ebx
call fcn.0044f834
test eax, eax
jne 0x450937
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x450a55
mov edx, esi
mov eax, ebx
call fcn.00450574
jmp 0x450a55
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 0x450a4e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004528cc
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.0044d798
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004508fc
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.004528cc
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450a55
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 0x45c548
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 0x45c620
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49896c], 0
jne 0x45c604
lea eax, [ebp - 4]
mov edx, 0x45c638
call fcn.0047faa4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0047fe50
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x45c604
mov eax, ebx
call fcn.0047e8b0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45c5fd
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 0x45c5e7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45c648
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x45c5e7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x49896c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c604
mov eax, dword [ebp - 0xc]
call fcn.0047e8c8
ret
mov ebx, dword [0x49896c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c627
lea eax, [ebp - 4]
call fcn.0047fa0c
ret

Function at 0x469b58
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x498990], 0
jne 0x469b7b
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x469adc
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x498990], eax
ret

Function at 0x46a4a8
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x46a4fc
mov eax, dword [0x4983b8]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x46a4d4
push ebx
push 0x46a504
call fcn.0043adb0
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 0x46a4f8
mov ecx, dword [0x4987a8]
mov dl, 1
mov eax, dword [0x47886c]
call fcn.0047ac80
call fcn.0047f6d4
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x46a524
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.0046a4a8
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46a596
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x46a56a
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.0047fbc4
jmp 0x46a571
mov eax, ebx
call fcn.0047fa0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a59d
cmp dword [ebp - 8], 0
je 0x46a58d
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.0046a47c
ret
Function at 0x46a5a4
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.0046a4a8
xor edx, edx
push ebp
push 0x46a646
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x46a619
mov edx, ebx
mov eax, dword [0x42fc2c]
call fcn.00433b98
test al, al
je 0x46a609
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.00433aa8
call fcn.0047f774
jmp 0x46a64d
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x46a5d4
mov ecx, dword [0x4987ac]
mov dl, 1
mov eax, dword [0x47886c]
call fcn.0047ac80
call fcn.0047f6d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a64d
mov eax, dword [ebp - 4]
call fcn.0046a47c
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x46a654
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.0046a4a8
xor eax, eax
push ebp
push 0x46a6ac
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 0x46a6b3
mov eax, dword [ebp - 4]
call fcn.0046a47c
ret

Function at 0x46a6bc
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.0046a4a8
xor edx, edx
push ebp
push 0x46a711
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 0x46a718
mov eax, dword [ebp - 4]
call fcn.0046a47c
ret

Function at 0x46a788
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.0046a4a8
xor eax, eax
push ebp
push 0x46a7fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046a460
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.00433b6c
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 0x46a7e7
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 0x46a804
mov eax, dword [ebp - 4]
call fcn.0046a47c
ret
Function at 0x46a80c
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.0046a4a8
xor eax, eax
push ebp
push 0x46a881
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046a460
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 0x46a86b
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 0x46a888
mov eax, dword [ebp - 4]
call fcn.0046a47c
ret

Function at 0x47a430
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 0x47a469
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0047faf4
jmp 0x47a472
mov eax, ebx
mov edx, esi
call fcn.0047fa60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47a47c
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 0x47a49d
mov al, byte [esp]
jmp 0x47a49f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x47edd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x494cc0]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x47ee6c
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x47ee4c
xor eax, eax
push ebp
push 0x47ee45
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 0x47ee88
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 0x47ee4c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x494cc0]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x494cc0], ax
mov esp, ebp
pop ebp
ret
Function at 0x481388
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 0x481544
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4813e9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x481560
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x48145b
xor eax, eax
push ebp
push 0x481454
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.004811e0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x48143d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x481580
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 0x48145b
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 0x48153c
cmp byte [ebp - 0xd], 0
jne 0x48149d
cmp byte [ebp - 0x12], 0
je 0x48153c
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4814b6
dec ebx
cmp byte [ebx], 0x2e
je 0x4814c5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4814b5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x48153c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4814f2
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 0x48153c
cmp byte [ebp - 0xd], 0
je 0x48153c
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 0x48153c
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 0x481930
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x481a18
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x499004], 1
jae 0x481a0a
xor eax, eax
mov dword [0x498c10], eax
xor eax, eax
mov dword [0x498c18], eax
xor eax, eax
mov dword [0x498c1c], eax
mov byte [0x498c22], 2
mov byte [0x498c23], 2
mov byte [0x498c24], 3
mov word [0x498fcc], 0
mov word [0x498fdc], 1
mov word [0x498fec], 0xa
mov dword [0x498ff4], 0x80020004
mov dword [0x498fc0], 0x480718
mov dword [0x498fc4], 0x480710
mov dword [0x498fc8], 0x480718
call fcn.0047eda4
test al, al
je 0x4819c9
call fcn.0047edd4
call fcn.0047ee98
mov eax, 0x498c28
mov edx, 0x481a24
call fcn.0047c5ee
mov eax, 0x498df4
mov edx, 0x481a24
call fcn.0047c5ee
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x498c08], eax
call fcn.0047d56c
mov dword [0x498c04], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x498bfc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481a1f
ret

Function at 0x48745c
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
je 0x4874be
call fcn.0048740c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004824ec
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.004824ec
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 0x48753c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x496974], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x487616
cmp dword [0x496970], 0
jne 0x487616
cmp dword [0x496b54], 0
je 0x4875d0
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.0048730c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4875b6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0048730c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4875b6
lea ebx, [ebp - 0x84]
jmp 0x4875b7
inc ebx
call fcn.004874f8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x487651
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x496978
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004824ec
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x49697b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x487651
cmp dword [0x496970], 0
je 0x487630
cmp dword [0x496970], 0xffffffff
je 0x487651
push esi
call dword [0x496970]
pop ecx
mov eax, dword [0x496974]
test eax, eax
je 0x487651
cmp dword [0x496974], 0xffffffff
je 0x487651
cmp byte [eax], 0
je 0x487651
push esi
push eax
call fcn.0048745c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487de8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x499908], 0
jne 0x487e69
cmp dword [0x499928], 0
jne 0x487e18
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x499928], eax
test eax, eax
jne 0x487e18
push str.GetEnvironmentStrings_failed
call fcn.00487668
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x499928]
jmp 0x487e2c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004824ec
pop ecx
mov edi, eax
test eax, eax
jne 0x487e24
lea edi, [ebp + 1]
push edi
call fcn.00481f4c
pop ecx
mov ebx, eax
mov dword [0x49990c], ebx
test ebx, ebx
jne 0x487e56
xor eax, eax
jmp 0x487f2c
push edi
mov edx, dword [0x499928]
push edx
push ebx
call fcn.0048239c
add esp, 0xc
jmp 0x487e89
xor esi, esi
mov ebx, dword [0x499908]
jmp 0x487e83
push eax
call fcn.004824ec
pop ecx
test eax, eax
jne 0x487e7f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x487e73
lea ebx, [esi + 4]
push 4
mov dword [0x499910], ebx
inc ebx
push ebx
call fcn.00481a28
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x487eac
xor eax, eax
jmp 0x487f2c
cmp dword [0x499908], 0
jne 0x487edd
xor esi, esi
mov ebx, dword [0x49990c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x487ece
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004824ec
pop ecx
mov edi, eax
test eax, eax
jne 0x487ec4
jmp 0x487f0e
xor esi, esi
mov ebx, dword [0x499908]
mov eax, dword [esp]
mov edi, eax
jmp 0x487f08
push eax
call fcn.004824ec
pop ecx
test eax, eax
je 0x487efd
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x487f01
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x487eec
mov eax, dword [0x499908]
test eax, eax
je 0x487f1e
push eax
call fcn.00481f5c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x499908], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1006d2b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10025a8
call fcn.01006ee0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1006d66
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006d66
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006d7e
cmp eax, 0x20b
je 0x1006d6b
mov dword [ebp - 0x1c], edi
jmp 0x1006d92
cmp dword [ecx + 0x84], 0xe
jbe 0x1006d66
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1006d8c
cmp dword [ecx + 0x74], 0xe
jbe 0x1006d66
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1009bb0], 0xffffffff
or dword [0x1009bb4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009440]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100943c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1009bb8], eax
call fcn.01006ed8
cmp dword [0x10091bc], edi
jne 0x1006ded
push fcn.01006ed8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006ec1
push 0x10012d8
push 0x10012d4
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009438]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009434]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x10012d0
push 0x10012c8
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01002d6a
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1006e64
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1006e99
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01006f1b
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xca7370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xca738e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xcd0074
push ecx
mov edi, eax
call fcn.00cbb198
mov esi, eax
add esp, 8
test esi, esi
jne 0xca73cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00cbb02e
push esi
call fcn.00cbafb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret