joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452da4
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 0x452dc0
cmp dword [esi + 4], 0
je 0x452ded
test byte [ebx + 0x45], 1
jne 0x452ddf
mov eax, ebx
call fcn.00451cdc
test eax, eax
jne 0x452ddf
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x452efd
mov edx, esi
mov eax, ebx
call fcn.00452a1c
jmp 0x452efd
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 0x452ef6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00454d74
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.0044fc40
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00452da4
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.00454d74
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452efd
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 0x459930
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x459984
mov eax, dword [0x48b094]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x45995c
push ebx
push 0x45998c
call fcn.0043dc38
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 0x459980
mov ecx, dword [0x48b1b4]
mov dl, 1
mov eax, dword [0x463630]
call fcn.00466904
call fcn.0046b4cc
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret
Function at 0x4599ac
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00459930
xor edx, edx
push ebp
push 0x459a7e
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x459a50
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
xor edx, edx
push ebp
push 0x459a3f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.0046a858
mov eax, dword [ebp - 4]
call fcn.004598e8
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459a46
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret

Function at 0x459ab0
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.00459930
xor edx, edx
push ebp
push 0x459b52
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x459b25
mov edx, ebx
mov eax, dword [0x432970]
call fcn.00436ad4
test al, al
je 0x459b15
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.004369e4
call fcn.0046b56c
jmp 0x459b59
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x459ae0
mov ecx, dword [0x48b1b8]
mov dl, 1
mov eax, dword [0x463630]
call fcn.00466904
call fcn.0046b4cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459b59
mov eax, dword [ebp - 4]
call fcn.00459904
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x459b60
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.00459930
xor eax, eax
push ebp
push 0x459bb8
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 0x459bbf
mov eax, dword [ebp - 4]
call fcn.00459904
ret
Function at 0x459bc8
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.00459930
xor edx, edx
push ebp
push 0x459c1d
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 0x459c24
mov eax, dword [ebp - 4]
call fcn.00459904
ret

Function at 0x459c94
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.00459930
xor eax, eax
push ebp
push 0x459d09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004598e8
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.00436aa8
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 0x459cf3
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 0x459d10
mov eax, dword [ebp - 4]
call fcn.00459904
ret

Function at 0x459d18
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.00459930
xor eax, eax
push ebp
push 0x459d8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004598e8
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 0x459d77
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 0x459d94
mov eax, dword [ebp - 4]
call fcn.00459904
ret

Function at 0x4660b4
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 0x4660ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0046b8ec
jmp 0x4660f6
mov eax, ebx
mov edx, esi
call fcn.0046b858
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x466100
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 0x466121
mov al, byte [esp]
jmp 0x466123
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x46a910
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 0x46a93f
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.0046b8ec
jmp 0x46a95d
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0046a898
mov edi, eax
test ebx, ebx
je 0x46a95d
cmp dword [esi], 0
je 0x46a95d
dec ebx
jmp 0x46a946
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x46ac0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x487304]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x46aca4
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x46ac84
xor eax, eax
push ebp
push 0x46ac7d
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 0x46acc0
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 0x46ac84
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x487304]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x487304], ax
mov esp, ebp
pop ebp
ret
Function at 0x46cd34
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 0x46cef0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x46cd95
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x46cf0c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x46ce07
xor eax, eax
push ebp
push 0x46ce00
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.0046cb8c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x46cde9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x46cf2c
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 0x46ce07
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 0x46cee8
cmp byte [ebp - 0xd], 0
jne 0x46ce49
cmp byte [ebp - 0x12], 0
je 0x46cee8
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x46ce62
dec ebx
cmp byte [ebx], 0x2e
je 0x46ce71
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x46ce61
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x46cee8
inc ebx
cmp byte [ebp - 0x12], 0
je 0x46ce9e
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 0x46cee8
cmp byte [ebp - 0xd], 0
je 0x46cee8
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 0x46cee8
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 0x46d2dc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x46d3c4
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x490d38], 1
jae 0x46d3b6
xor eax, eax
mov dword [0x490944], eax
xor eax, eax
mov dword [0x49094c], eax
xor eax, eax
mov dword [0x490950], eax
mov byte [0x490956], 2
mov byte [0x490957], 2
mov byte [0x490958], 3
mov word [0x490d00], 0
mov word [0x490d10], 1
mov word [0x490d20], 0xa
mov dword [0x490d28], 0x80020004
mov dword [0x490cf4], 0x46c4c8
mov dword [0x490cf8], 0x46c4c0
mov dword [0x490cfc], 0x46c4c8
call fcn.0046abdc
test al, al
je 0x46d375
call fcn.0046ac0c
call fcn.0046acd0
mov eax, 0x49095c
mov edx, 0x46d3d0
call fcn.00468422
mov eax, 0x490b28
mov edx, 0x46d3d0
call fcn.00468422
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x49093c], eax
call fcn.00469388
mov dword [0x490938], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x490930], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d3cb
ret
Function at 0x473190
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 str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0046de80
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0046df10
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0046df10
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 0x488de1
lea ecx, [ebp - 0x200]
push ecx
call fcn.0046de80
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0046df10
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00474380
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4732a1
push esi
call fcn.0046df10
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0046df10
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0046d8fc
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x473278
xor eax, eax
jmp 0x473328
push esi
call fcn.0046df10
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0046df10
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0046dddc
add esp, 0xc
jmp 0x4732e1
mov edi, dword [ebx + 0x24]
push edi
call fcn.0046df10
pop ecx
push eax
push esi
call fcn.0046df10
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0046df10
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0046d91c
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4732e1
xor eax, eax
jmp 0x473328
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0046de80
add esp, 8
push 0x488de3
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0046de80
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0046de80
add esp, 8
push 0x488de5
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0046de80
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x476690
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 0x4766f2
call fcn.00476640
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0046df10
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.0046df10
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 0x476770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x489474], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x47684a
cmp dword [0x489470], 0
jne 0x47684a
cmp dword [0x489654], 0
je 0x476804
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.00476540
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4767ea
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00476540
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4767ea
lea ebx, [ebp - 0x84]
jmp 0x4767eb
inc ebx
call fcn.0047672c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x476885
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x489478
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0046df10
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x48947b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x476885
cmp dword [0x489470], 0
je 0x476864
cmp dword [0x489470], 0xffffffff
je 0x476885
push esi
call dword [0x489470]
pop ecx
mov eax, dword [0x489474]
test eax, eax
je 0x476885
cmp dword [0x489474], 0xffffffff
je 0x476885
cmp byte [eax], 0
je 0x476885
push esi
push eax
call fcn.00476690
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477080
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x491640], 0
jne 0x477101
cmp dword [0x491660], 0
jne 0x4770b0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x491660], eax
test eax, eax
jne 0x4770b0
push str.GetEnvironmentStrings_failed
call fcn.0047689c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x491660]
jmp 0x4770c4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0046df10
pop ecx
mov edi, eax
test eax, eax
jne 0x4770bc
lea edi, [ebp + 1]
push edi
call fcn.0046d8fc
pop ecx
mov ebx, eax
mov dword [0x491644], ebx
test ebx, ebx
jne 0x4770ee
xor eax, eax
jmp 0x4771c4
push edi
mov edx, dword [0x491660]
push edx
push ebx
call fcn.0046dd6c
add esp, 0xc
jmp 0x477121
xor esi, esi
mov ebx, dword [0x491640]
jmp 0x47711b
push eax
call fcn.0046df10
pop ecx
test eax, eax
jne 0x477117
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47710b
lea ebx, [esi + 4]
push 4
mov dword [0x491648], ebx
inc ebx
push ebx
call fcn.0046d3d4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x477144
xor eax, eax
jmp 0x4771c4
cmp dword [0x491640], 0
jne 0x477175
xor esi, esi
mov ebx, dword [0x491644]
mov eax, dword [esp]
mov ebp, eax
jmp 0x477166
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0046df10
pop ecx
mov edi, eax
test eax, eax
jne 0x47715c
jmp 0x4771a6
xor esi, esi
mov ebx, dword [0x491640]
mov eax, dword [esp]
mov edi, eax
jmp 0x4771a0
push eax
call fcn.0046df10
pop ecx
test eax, eax
je 0x477195
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x477199
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x477184
mov eax, dword [0x491640]
test eax, eax
je 0x4771b6
push eax
call fcn.0046d90c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x491640], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b9e70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5df1fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005d2aec
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4b9ef2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005d0204
mov eax, dword [eax]
push 0xb4add0
push eax
call fcn.005ae764
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005d2d77
test bl, bl
je 0x4b9ef2
push 0xb4add0
lea ecx, [esp + 0xc]
call fcn.005d3107
push 0xb4addc
lea ecx, [esp + 0xc]
call fcn.005d3107
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4b9f2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005d2d77
jmp 0x4b9ff9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4b9fb2
lea edx, [esp + 0x7c]
push 0xb4add8
push edx
call fcn.005ae764
add esp, 8
test eax, eax
je 0x4b9fb2
lea eax, [esp + 0x7c]
push 0xb4add4
push eax
call fcn.005ae764
add esp, 8
test eax, eax
je 0x4b9fb2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4b9f42
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.005d2d77
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4ba820
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4ba882
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc