joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430ab8
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 0x430aed
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.0045ffd0
jmp 0x430af7
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.0045ff3c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x431a44
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x431a7c
mov eax, esi
call fcn.0043fcec
test al, al
je 0x431a7c
mov eax, dword [ebx + 0x74]
call fcn.0043f9f0
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x431a7c
push 0
mov eax, dword [ebx + 0x74]
call fcn.0043f9f0
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x4376b4
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 [0x48ae64], 0
sete dl
or al, dl
jne 0x4377f4
mov eax, dword [0x48ae68]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x48ae64]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4377c3
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x48ae64]
call fcn.0044f2f4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4377bb
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x4377bb
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4377bb
mov eax, dword [ebp - 0x14]
call fcn.0043f9f0
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4377bb
push ebp
call fcn.00437670
pop ecx
test al, al
jne 0x4377bb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x437777
mov eax, dword [ebp - 0x14]
call fcn.0043e37c
dec eax
jle 0x4377bb
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.0045f654
cmp byte [ebp - 1], 0
je 0x4377bb
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4377bb
mov edx, dword [ebp - 0x14]
mov eax, dword [0x48ae68]
call fcn.00436ebc
inc edi
dec esi
jne 0x43770a
mov eax, dword [0x48ae68]
cmp dword [eax + 8], 0
jle 0x4377db
mov eax, dword [0x48ae68]
call fcn.00436f4c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4377f4
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004374d8
pop ecx
test al, al
jne 0x4377f4
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 0x43d388
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 0x43d3b9
je 0x43d413
sub eax, 7
je 0x43d3da
dec eax
je 0x43d404
sub eax, 0x17
je 0x43d4b8
jmp 0x43d4f6
add eax, 0xffffff00
sub eax, 9
jb 0x43d4a4
add eax, 0xffffff09
sub eax, 0xb
jb 0x43d46c
jmp 0x43d4f6
mov eax, ebx
call fcn.00428704
mov edi, eax
test edi, edi
je 0x43d556
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x43d55f
jmp 0x43d556
test byte [ebx + 0x44], 0x20
jne 0x43d55f
jmp 0x43d556
mov edx, esi
mov eax, ebx
call fcn.0043a988
cmp dword [esi + 0xc], 0xffffffff
jne 0x43d55f
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00457d2c
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.004394bc
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0043d260
test eax, eax
je 0x43d55f
mov dword [esi + 0xc], 1
jmp 0x43d55f
mov edx, esi
mov eax, ebx
call fcn.0043d2f4
test al, al
je 0x43d556
cmp dword [esi + 0xc], 0
jne 0x43d55f
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.0043f9f0
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x43d55f
mov eax, ebx
call fcn.0043a024
test al, al
jne 0x43d55f
jmp 0x43d556
mov eax, ebx
call fcn.0043f9f0
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x43d556
cmp dword [0x486390], 0
je 0x43d556
mov eax, dword [0x486390]
cmp ebx, dword [eax + 0x24]
jne 0x43d556
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x486390]
call fcn.0043a8bc
jmp 0x43d556
mov eax, dword [0x48ae2c]
cmp byte [eax + 0x20], 0
je 0x43d556
mov eax, dword [0x48ae2c]
cmp dword [eax + 0x1c], 0
je 0x43d556
mov eax, dword [esi]
mov edx, dword [0x48ae2c]
cmp eax, dword [edx + 0x1c]
jne 0x43d556
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.00428648
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.0045f654
jmp 0x43d55f
mov edx, esi
mov eax, ebx
call fcn.0043a988
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43da20
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 0x43da3c
cmp dword [esi + 4], 0
je 0x43da69
test byte [ebx + 0x45], 1
jne 0x43da5b
mov eax, ebx
call fcn.0043c958
test eax, eax
jne 0x43da5b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43db79
mov edx, esi
mov eax, ebx
call fcn.0043d698
jmp 0x43db79
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 0x43db72
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043f9f0
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.0043a8bc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043da20
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.0043f9f0
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43db79
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 0x446b1c
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 0x446bf4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48aeb0], 0
jne 0x446bd8
lea eax, [ebp - 4]
mov edx, 0x446c0c
call fcn.0045ff80
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0046032c
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x446bd8
mov eax, ebx
call fcn.0045ed3c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x446bd1
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 0x446bbb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x446c1c
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x446bbb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x48aeb0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446bd8
mov eax, dword [ebp - 0xc]
call fcn.0045ed54
ret
mov ebx, dword [0x48aeb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446bfb
lea eax, [ebp - 4]
call fcn.0045fee8
ret

Function at 0x44cbc8
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x48aed4], 0
jne 0x44cbeb
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x44cb4c
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x48aed4], eax
ret

Function at 0x45a94c
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 0x45a985
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0045ffd0
jmp 0x45a98e
mov eax, ebx
mov edx, esi
call fcn.0045ff3c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x45ef80
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 0x45efaf
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.0045ffd0
jmp 0x45efcd
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0045ef08
mov edi, eax
test ebx, ebx
je 0x45efcd
cmp dword [esi], 0
je 0x45efcd
dec ebx
jmp 0x45efb6
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x45f2f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48674c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x45f388
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x45f368
xor eax, eax
push ebp
push 0x45f361
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 0x45f3a4
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 0x45f368
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x48674c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48674c], ax
mov esp, ebp
pop ebp
ret
Function at 0x461418
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 0x4615d4
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x461479
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4615f0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4614eb
xor eax, eax
push ebp
push 0x4614e4
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.00461270
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4614cd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x461610
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 0x4614eb
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 0x4615cc
cmp byte [ebp - 0xd], 0
jne 0x46152d
cmp byte [ebp - 0x12], 0
je 0x4615cc
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x461546
dec ebx
cmp byte [ebx], 0x2e
je 0x461555
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x461545
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4615cc
inc ebx
cmp byte [ebp - 0x12], 0
je 0x461582
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 0x4615cc
cmp byte [ebp - 0xd], 0
je 0x4615cc
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 0x4615cc
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 0x4619c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x461aa8
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x48b548], 1
jae 0x461a9a
xor eax, eax
mov dword [0x48b154], eax
xor eax, eax
mov dword [0x48b15c], eax
xor eax, eax
mov dword [0x48b160], eax
mov byte [0x48b166], 2
mov byte [0x48b167], 2
mov byte [0x48b168], 3
mov word [0x48b510], 0
mov word [0x48b520], 1
mov word [0x48b530], 0xa
mov dword [0x48b538], 0x80020004
mov dword [0x48b504], 0x460bac
mov dword [0x48b508], 0x460ba4
mov dword [0x48b50c], 0x460bac
call fcn.0045f2c0
test al, al
je 0x461a59
call fcn.0045f2f0
call fcn.0045f3b4
mov eax, 0x48b16c
mov edx, 0x461ab4
call fcn.0045ca92
mov eax, 0x48b338
mov edx, 0x461ab4
call fcn.0045ca92
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x48b14c], eax
call fcn.0045d9f8
mov dword [0x48b148], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x48b140], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461aaf
ret

Function at 0x463720
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 0x46373c
call fcn.00464bc0
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x463758
test bl, 1
je 0x463758
call fcn.00468678
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x46393c
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.0046475c
test byte [ebp + 0xd], 0xc0
jne 0x463960
mov eax, dword [0x48751c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x46396d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x46399a
je 0x4639ac
sub ecx, 0x100
je 0x4639ba
sub ecx, 0x100
je 0x4639c1
sub ecx, 0x100
je 0x4639b3
jmp 0x4639c8
sub ecx, 0x600
je 0x4639c1
sub ecx, 0x100
je 0x4639ac
jmp 0x4639c8
mov edi, 1
jmp 0x4639cd
mov edi, 2
jmp 0x4639cd
mov edi, 4
jmp 0x4639cd
mov edi, 5
jmp 0x4639cd
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4639f4
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x486f94]
test al, 0x80
je 0x4639ed
mov ebx, 0x80
jmp 0x463a06
mov ebx, 1
jmp 0x463a06
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x463a06
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x463a18
je 0x463a21
dec eax
je 0x463a2a
jmp 0x463a33
mov dword [ebp - 4], 0x80000000
jmp 0x463a42
mov dword [ebp - 4], 0x40000000
jmp 0x463a42
mov dword [ebp - 4], 0xc0000000
jmp 0x463a42
push 1
call fcn.00464b54
pop ecx
mov ebx, eax
jmp 0x463b2e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x463a5e
sub eax, 0x10
je 0x463a65
sub eax, 0x10
je 0x463a6e
sub eax, 0x10
je 0x463a77
jmp 0x463a77
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x463a7e
mov dword [ebp - 8], 1
jmp 0x463a7e
mov dword [ebp - 8], 2
jmp 0x463a7e
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 0x463ae7
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x463adc
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x463adc
add ebx, 0xffffffb2
push ebx
call fcn.00464b54
pop ecx
mov ebx, eax
jmp 0x463b2e
mov edi, esi
push edi
call fcn.004638a0
pop ecx
test eax, eax
je 0x463afb
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x463b07
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0046487c
add esp, 8
mov ebx, eax
inc eax
jne 0x463b2e
push 4
call fcn.00464b54
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00464790
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468610
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 0x468672
call fcn.004685c0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00462618
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.00462618
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 0x4686f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4883bc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4687ca
cmp dword [0x4883b8], 0
jne 0x4687ca
cmp dword [0x48859c], 0
je 0x468784
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.004684c0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46876a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004684c0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46876a
lea ebx, [ebp - 0x84]
jmp 0x46876b
inc ebx
call fcn.004686ac
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x468805
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4883c0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00462618
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4883c3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x468805
cmp dword [0x4883b8], 0
je 0x4687e4
cmp dword [0x4883b8], 0xffffffff
je 0x468805
push esi
call dword [0x4883b8]
pop ecx
mov eax, dword [0x4883bc]
test eax, eax
je 0x468805
cmp dword [0x4883bc], 0xffffffff
je 0x468805
cmp byte [eax], 0
je 0x468805
push esi
push eax
call fcn.00468610
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468f9c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x48be50], 0
jne 0x46901d
cmp dword [0x48be70], 0
jne 0x468fcc
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x48be70], eax
test eax, eax
jne 0x468fcc
push str.GetEnvironmentStrings_failed
call fcn.0046881c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x48be70]
jmp 0x468fe0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00462618
pop ecx
mov edi, eax
test eax, eax
jne 0x468fd8
lea edi, [ebp + 1]
push edi
call fcn.00461fdc
pop ecx
mov ebx, eax
mov dword [0x48be54], ebx
test ebx, ebx
jne 0x46900a
xor eax, eax
jmp 0x4690e0
push edi
mov edx, dword [0x48be70]
push edx
push ebx
call fcn.0046244c
add esp, 0xc
jmp 0x46903d
xor esi, esi
mov ebx, dword [0x48be50]
jmp 0x469037
push eax
call fcn.00462618
pop ecx
test eax, eax
jne 0x469033
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x469027
lea ebx, [esi + 4]
push 4
mov dword [0x48be58], ebx
inc ebx
push ebx
call fcn.00461ab8
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x469060
xor eax, eax
jmp 0x4690e0
cmp dword [0x48be50], 0
jne 0x469091
xor esi, esi
mov ebx, dword [0x48be54]
mov eax, dword [esp]
mov ebp, eax
jmp 0x469082
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00462618
pop ecx
mov edi, eax
test eax, eax
jne 0x469078
jmp 0x4690c2
xor esi, esi
mov ebx, dword [0x48be50]
mov eax, dword [esp]
mov edi, eax
jmp 0x4690bc
push eax
call fcn.00462618
pop ecx
test eax, eax
je 0x4690b1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4690b5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4690a0
mov eax, dword [0x48be50]
test eax, eax
je 0x4690d2
push eax
call fcn.00461fec
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x48be50], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46f574
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46f5a2
mov eax, ebx
call fcn.00470018
cmp dword [ebx + 0x3c], 0
je 0x46f59b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x46f613
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x46f605
cmp dword [ebx + 8], 0
je 0x46f5c4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x46f5d6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46f605
cmp dword [ebx + 8], 0
je 0x46f5b7
cmp eax, 3
je 0x46f5e9
dec eax
jne 0x46f5b7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46f5b7
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x46f5b7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x46f631
cmp dword [ebx + 0x10], 0xcc
je 0x46f631
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046f63c
pop ebx
ret