joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f6e0
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 0x42f715
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.0045ec88
jmp 0x42f71f
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.0045ebf4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43066c
Capabilities:
Hide graphical window

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

Function at 0x4362dc
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 [0x48a18c], 0
sete dl
or al, dl
jne 0x43641c
mov eax, dword [0x48a190]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x48a18c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4363eb
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x48a18c]
call fcn.0044df1c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4363e3
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x4363e3
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4363e3
mov eax, dword [ebp - 0x14]
call fcn.0043e618
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4363e3
push ebp
call fcn.00436298
pop ecx
test al, al
jne 0x4363e3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x43639f
mov eax, dword [ebp - 0x14]
call fcn.0043cfa4
dec eax
jle 0x4363e3
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.0045e30c
cmp byte [ebp - 1], 0
je 0x4363e3
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4363e3
mov edx, dword [ebp - 0x14]
mov eax, dword [0x48a190]
call fcn.00435ae4
inc edi
dec esi
jne 0x436332
mov eax, dword [0x48a190]
cmp dword [eax + 8], 0
jle 0x436403
mov eax, dword [0x48a190]
call fcn.00435b74
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43641c
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00436100
pop ecx
test al, al
jne 0x43641c
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 0x43bfb0
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 0x43bfe1
je 0x43c03b
sub eax, 7
je 0x43c002
dec eax
je 0x43c02c
sub eax, 0x17
je 0x43c0e0
jmp 0x43c11e
add eax, 0xffffff00
sub eax, 9
jb 0x43c0cc
add eax, 0xffffff09
sub eax, 0xb
jb 0x43c094
jmp 0x43c11e
mov eax, ebx
call fcn.0042732c
mov edi, eax
test edi, edi
je 0x43c17e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x43c187
jmp 0x43c17e
test byte [ebx + 0x44], 0x20
jne 0x43c187
jmp 0x43c17e
mov edx, esi
mov eax, ebx
call fcn.004395b0
cmp dword [esi + 0xc], 0xffffffff
jne 0x43c187
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00456954
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.004380e4
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0043be88
test eax, eax
je 0x43c187
mov dword [esi + 0xc], 1
jmp 0x43c187
mov edx, esi
mov eax, ebx
call fcn.0043bf1c
test al, al
je 0x43c17e
cmp dword [esi + 0xc], 0
jne 0x43c187
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.0043e618
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x43c187
mov eax, ebx
call fcn.00438c4c
test al, al
jne 0x43c187
jmp 0x43c17e
mov eax, ebx
call fcn.0043e618
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x43c17e
cmp dword [0x4856ac], 0
je 0x43c17e
mov eax, dword [0x4856ac]
cmp ebx, dword [eax + 0x24]
jne 0x43c17e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4856ac]
call fcn.004394e4
jmp 0x43c17e
mov eax, dword [0x48a154]
cmp byte [eax + 0x20], 0
je 0x43c17e
mov eax, dword [0x48a154]
cmp dword [eax + 0x1c], 0
je 0x43c17e
mov eax, dword [esi]
mov edx, dword [0x48a154]
cmp eax, dword [edx + 0x1c]
jne 0x43c17e
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.00427270
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.0045e30c
jmp 0x43c187
mov edx, esi
mov eax, ebx
call fcn.004395b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c648
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 0x43c664
cmp dword [esi + 4], 0
je 0x43c691
test byte [ebx + 0x45], 1
jne 0x43c683
mov eax, ebx
call fcn.0043b580
test eax, eax
jne 0x43c683
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43c7a1
mov edx, esi
mov eax, ebx
call fcn.0043c2c0
jmp 0x43c7a1
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 0x43c79a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e618
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.004394e4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043c648
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.0043e618
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c7a1
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 0x445744
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 0x44581c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48a1d8], 0
jne 0x445800
lea eax, [ebp - 4]
mov edx, 0x445834
call fcn.0045ec38
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0045efe4
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x445800
mov eax, ebx
call fcn.0045d9f4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4457f9
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 0x4457e3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x445844
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4457e3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x48a1d8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445800
mov eax, dword [ebp - 0xc]
call fcn.0045da0c
ret
mov ebx, dword [0x48a1d8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445823
lea eax, [ebp - 4]
call fcn.0045eba0
ret

Function at 0x44b7f0
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x48a1fc], 0
jne 0x44b813
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x44b774
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x48a1fc], eax
ret

Function at 0x459604
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 0x45963d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0045ec88
jmp 0x459646
mov eax, ebx
mov edx, esi
call fcn.0045ebf4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x45dc38
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 0x45dc67
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.0045ec88
jmp 0x45dc85
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0045dbc0
mov edi, eax
test ebx, ebx
je 0x45dc85
cmp dword [esi], 0
je 0x45dc85
dec ebx
jmp 0x45dc6e
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x45dfa8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x485a68]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x45e040
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x45e020
xor eax, eax
push ebp
push 0x45e019
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 0x45e05c
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 0x45e020
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x485a68]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x485a68], ax
mov esp, ebp
pop ebp
ret
Function at 0x4600d0
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 0x46028c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x460131
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4602a8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4601a3
xor eax, eax
push ebp
push 0x46019c
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.0045ff28
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x460185
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4602c8
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 0x4601a3
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 0x460284
cmp byte [ebp - 0xd], 0
jne 0x4601e5
cmp byte [ebp - 0x12], 0
je 0x460284
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4601fe
dec ebx
cmp byte [ebx], 0x2e
je 0x46020d
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4601fd
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x460284
inc ebx
cmp byte [ebp - 0x12], 0
je 0x46023a
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 0x460284
cmp byte [ebp - 0xd], 0
je 0x460284
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 0x460284
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 0x460678
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x460760
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x48a870], 1
jae 0x460752
xor eax, eax
mov dword [0x48a47c], eax
xor eax, eax
mov dword [0x48a484], eax
xor eax, eax
mov dword [0x48a488], eax
mov byte [0x48a48e], 2
mov byte [0x48a48f], 2
mov byte [0x48a490], 3
mov word [0x48a838], 0
mov word [0x48a848], 1
mov word [0x48a858], 0xa
mov dword [0x48a860], 0x80020004
mov dword [0x48a82c], 0x45f864
mov dword [0x48a830], 0x45f85c
mov dword [0x48a834], 0x45f864
call fcn.0045df78
test al, al
je 0x460711
call fcn.0045dfa8
call fcn.0045e06c
mov eax, 0x48a494
mov edx, 0x46076c
call fcn.0045b74a
mov eax, 0x48a660
mov edx, 0x46076c
call fcn.0045b74a
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x48a474], eax
call fcn.0045c6b0
mov dword [0x48a470], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x48a468], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460767
ret

Function at 0x462360
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 0x46237c
call fcn.00463808
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x462398
test bl, 1
je 0x462398
call fcn.0046734c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x46257c
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.004633a4
test byte [ebp + 0xd], 0xc0
jne 0x4625a0
mov eax, dword [0x486838]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4625ad
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4625da
je 0x4625ec
sub ecx, 0x100
je 0x4625fa
sub ecx, 0x100
je 0x462601
sub ecx, 0x100
je 0x4625f3
jmp 0x462608
sub ecx, 0x600
je 0x462601
sub ecx, 0x100
je 0x4625ec
jmp 0x462608
mov edi, 1
jmp 0x46260d
mov edi, 2
jmp 0x46260d
mov edi, 4
jmp 0x46260d
mov edi, 5
jmp 0x46260d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x462634
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4862b0]
test al, 0x80
je 0x46262d
mov ebx, 0x80
jmp 0x462646
mov ebx, 1
jmp 0x462646
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x462646
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x462658
je 0x462661
dec eax
je 0x46266a
jmp 0x462673
mov dword [ebp - 4], 0x80000000
jmp 0x462682
mov dword [ebp - 4], 0x40000000
jmp 0x462682
mov dword [ebp - 4], 0xc0000000
jmp 0x462682
push 1
call fcn.0046379c
pop ecx
mov ebx, eax
jmp 0x462772
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x46269e
sub eax, 0x10
je 0x4626a5
sub eax, 0x10
je 0x4626ae
sub eax, 0x10
je 0x4626b7
jmp 0x4626b7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4626be
mov dword [ebp - 8], 1
jmp 0x4626be
mov dword [ebp - 8], 2
jmp 0x4626be
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 0x46272b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x462720
test byte [ebp + 0xd], 1
je 0x46271b
mov ebx, 0x50
jmp 0x462720
mov ebx, 2
push ebx
call fcn.0046379c
pop ecx
mov ebx, eax
jmp 0x462772
mov edi, esi
push edi
call fcn.004624e0
pop ecx
test eax, eax
je 0x46273f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x46274b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004634c4
add esp, 8
mov ebx, eax
inc eax
jne 0x462772
push 4
call fcn.0046379c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004633d8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4672e4
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 0x467346
call fcn.00467294
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00461258
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.00461258
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 0x4673c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4876d8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x46749e
cmp dword [0x4876d4], 0
jne 0x46749e
cmp dword [0x4878b8], 0
je 0x467458
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.00467194
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46743e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00467194
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46743e
lea ebx, [ebp - 0x84]
jmp 0x46743f
inc ebx
call fcn.00467380
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4674d9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4876dc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00461258
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4876df
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4674d9
cmp dword [0x4876d4], 0
je 0x4674b8
cmp dword [0x4876d4], 0xffffffff
je 0x4674d9
push esi
call dword [0x4876d4]
pop ecx
mov eax, dword [0x4876d8]
test eax, eax
je 0x4674d9
cmp dword [0x4876d8], 0xffffffff
je 0x4674d9
cmp byte [eax], 0
je 0x4674d9
push esi
push eax
call fcn.004672e4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467c70
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x48b178], 0
jne 0x467cf1
cmp dword [0x48b198], 0
jne 0x467ca0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x48b198], eax
test eax, eax
jne 0x467ca0
push str.GetEnvironmentStrings_failed
call fcn.004674f0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x48b198]
jmp 0x467cb4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00461258
pop ecx
mov edi, eax
test eax, eax
jne 0x467cac
lea edi, [ebp + 1]
push edi
call fcn.00460c98
pop ecx
mov ebx, eax
mov dword [0x48b17c], ebx
test ebx, ebx
jne 0x467cde
xor eax, eax
jmp 0x467db4
push edi
mov edx, dword [0x48b198]
push edx
push ebx
call fcn.00461108
add esp, 0xc
jmp 0x467d11
xor esi, esi
mov ebx, dword [0x48b178]
jmp 0x467d0b
push eax
call fcn.00461258
pop ecx
test eax, eax
jne 0x467d07
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x467cfb
lea ebx, [esi + 4]
push 4
mov dword [0x48b180], ebx
inc ebx
push ebx
call fcn.00460770
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x467d34
xor eax, eax
jmp 0x467db4
cmp dword [0x48b178], 0
jne 0x467d65
xor esi, esi
mov ebx, dword [0x48b17c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x467d56
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00461258
pop ecx
mov edi, eax
test eax, eax
jne 0x467d4c
jmp 0x467d96
xor esi, esi
mov ebx, dword [0x48b178]
mov eax, dword [esp]
mov edi, eax
jmp 0x467d90
push eax
call fcn.00461258
pop ecx
test eax, eax
je 0x467d85
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x467d89
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x467d74
mov eax, dword [0x48b178]
test eax, eax
je 0x467da6
push eax
call fcn.00460ca8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x48b178], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46e260
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46e28e
mov eax, ebx
call fcn.0046ed04
cmp dword [ebx + 0x3c], 0
je 0x46e287
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x46e2ff
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x46e2f1
cmp dword [ebx + 8], 0
je 0x46e2b0
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 0x46e2c2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46e2f1
cmp dword [ebx + 8], 0
je 0x46e2a3
cmp eax, 3
je 0x46e2d5
dec eax
jne 0x46e2a3
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 0x46e2a3
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x46e2a3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x46e31d
cmp dword [ebx + 0x10], 0xcc
je 0x46e31d
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.0046e328
pop ebx
ret