joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426630
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 0x426665
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.00452b3c
jmp 0x42666f
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00452aa8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x42750c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x427544
mov eax, esi
call fcn.00432eb4
test al, al
je 0x427544
mov eax, dword [ebx + 0x74]
call fcn.00432bb8
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x427544
push 0
mov eax, dword [ebx + 0x74]
call fcn.00432bb8
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x42a87c
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 [0x463d4c], 0
sete dl
or al, dl
jne 0x42a9bc
mov eax, dword [0x463d50]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x463d4c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42a98b
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x463d4c]
call fcn.00443314
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42a983
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42a983
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42a983
mov eax, dword [ebp - 0x14]
call fcn.00432bb8
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x42a983
push ebp
call fcn.0042a838
pop ecx
test al, al
jne 0x42a983
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42a93f
mov eax, dword [ebp - 0x14]
call fcn.00431544
dec eax
jle 0x42a983
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.00451fec
cmp byte [ebp - 1], 0
je 0x42a983
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x42a983
mov edx, dword [ebp - 0x14]
mov eax, dword [0x463d50]
call fcn.0042a084
inc edi
dec esi
jne 0x42a8d2
mov eax, dword [0x463d50]
cmp dword [eax + 8], 0
jle 0x42a9a3
mov eax, dword [0x463d50]
call fcn.0042a114
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42a9bc
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042a6a0
pop ecx
test al, al
jne 0x42a9bc
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 0x430550
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 0x430581
je 0x4305db
sub eax, 7
je 0x4305a2
dec eax
je 0x4305cc
sub eax, 0x17
je 0x430680
jmp 0x4306be
add eax, 0xffffff00
sub eax, 9
jb 0x43066c
add eax, 0xffffff09
sub eax, 0xb
jb 0x430634
jmp 0x4306be
mov eax, ebx
call fcn.0041e27c
mov edi, eax
test edi, edi
je 0x43071e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x430727
jmp 0x43071e
test byte [ebx + 0x44], 0x20
jne 0x430727
jmp 0x43071e
mov edx, esi
mov eax, ebx
call fcn.0042db50
cmp dword [esi + 0xc], 0xffffffff
jne 0x430727
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0044a4a0
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0042c684
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00430428
test eax, eax
je 0x430727
mov dword [esi + 0xc], 1
jmp 0x430727
mov edx, esi
mov eax, ebx
call fcn.004304bc
test al, al
je 0x43071e
cmp dword [esi + 0xc], 0
jne 0x430727
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.00432bb8
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x430727
mov eax, ebx
call fcn.0042d1ec
test al, al
jne 0x430727
jmp 0x43071e
mov eax, ebx
call fcn.00432bb8
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x43071e
cmp dword [0x45ff54], 0
je 0x43071e
mov eax, dword [0x45ff54]
cmp ebx, dword [eax + 0x24]
jne 0x43071e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x45ff54]
call fcn.0042da84
jmp 0x43071e
mov eax, dword [0x463d14]
cmp byte [eax + 0x20], 0
je 0x43071e
mov eax, dword [0x463d14]
cmp dword [eax + 0x1c], 0
je 0x43071e
mov eax, dword [esi]
mov edx, dword [0x463d14]
cmp eax, dword [edx + 0x1c]
jne 0x43071e
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.0041e1c0
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.00451fec
jmp 0x430727
mov edx, esi
mov eax, ebx
call fcn.0042db50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430be8
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 0x430c04
cmp dword [esi + 4], 0
je 0x430c31
test byte [ebx + 0x45], 1
jne 0x430c23
mov eax, ebx
call fcn.0042fb20
test eax, eax
jne 0x430c23
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x430d41
mov edx, esi
mov eax, ebx
call fcn.00430860
jmp 0x430d41
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 0x430d3a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00432bb8
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.0042da84
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00430be8
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.00432bb8
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430d41
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 0x43a0d8
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 0x43a1b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x463d98], 0
jne 0x43a194
lea eax, [ebp - 4]
mov edx, 0x43a1c8
call fcn.00452aec
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00452e98
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x43a194
mov eax, ebx
call fcn.0045172c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43a18d
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 0x43a177
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x43a1d8
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x43a177
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x463d98], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a194
mov eax, dword [ebp - 0xc]
call fcn.00451744
ret
mov ebx, dword [0x463d98]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a1b7
lea eax, [ebp - 4]
call fcn.00452a54
ret

Function at 0x440ac4
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x463dbc], 0
jne 0x440ae7
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x440a48
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x463dbc], eax
ret

Function at 0x448680
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x448695
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x44d274
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 0x44d2ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00452b3c
jmp 0x44d2b6
mov eax, ebx
mov edx, esi
call fcn.00452aa8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44d2c0
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 0x44d2e1
mov al, byte [esp]
jmp 0x44d2e3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4518bc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4518f9
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x451919
lea eax, [esp + 0x108]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00452c84
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x451c88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x460348]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x451d20
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x451d00
xor eax, eax
push ebp
push 0x451cf9
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 0x451d3c
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 0x451d00
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x460348]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x460348], ax
mov esp, ebp
pop ebp
ret

Function at 0x452a08
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0045172c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x464051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4529d0
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x453fa8
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 0x454164
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x454009
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x454180
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x45407b
xor eax, eax
push ebp
push 0x454074
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.00453e00
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x45405d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4541a0
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 0x45407b
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 0x45415c
cmp byte [ebp - 0xd], 0
jne 0x4540bd
cmp byte [ebp - 0x12], 0
je 0x45415c
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4540d6
dec ebx
cmp byte [ebx], 0x2e
je 0x4540e5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4540d5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x45415c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x454112
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 0x45415c
cmp byte [ebp - 0xd], 0
je 0x45415c
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 0x45415c
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 0x454550
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x454638
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x464434], 1
jae 0x45462a
xor eax, eax
mov dword [0x464040], eax
xor eax, eax
mov dword [0x464048], eax
xor eax, eax
mov dword [0x46404c], eax
mov byte [0x464052], 2
mov byte [0x464053], 2
mov byte [0x464054], 3
mov word [0x4643fc], 0
mov word [0x46440c], 1
mov word [0x46441c], 0xa
mov dword [0x464424], 0x80020004
mov dword [0x4643f0], 0x45373c
mov dword [0x4643f4], 0x453734
mov dword [0x4643f8], 0x45373c
call fcn.00451c58
test al, al
je 0x4545e9
call fcn.00451c88
call fcn.00451d4c
mov eax, 0x464058
mov edx, 0x454644
call fcn.0044f482
mov eax, 0x464224
mov edx, 0x454644
call fcn.0044f482
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x464038], eax
call fcn.004503e8
mov dword [0x464034], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x46402c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45463f
ret

Function at 0x458d84
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 0x458de6
call fcn.00458d34
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00455110
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.00455110
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 0x458e64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x461f2c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x458f3e
cmp dword [0x461f28], 0
jne 0x458f3e
cmp dword [0x46210c], 0
je 0x458ef8
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.00458c34
add esp, 8
mov ebx, eax
test eax, eax
jne 0x458ede
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00458c34
add esp, 8
mov ebx, eax
test eax, eax
jne 0x458ede
lea ebx, [ebp - 0x84]
jmp 0x458edf
inc ebx
call fcn.00458e20
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x458f79
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x461f30
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00455110
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x461f33
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x458f79
cmp dword [0x461f28], 0
je 0x458f58
cmp dword [0x461f28], 0xffffffff
je 0x458f79
push esi
call dword [0x461f28]
pop ecx
mov eax, dword [0x461f2c]
test eax, eax
je 0x458f79
cmp dword [0x461f2c], 0xffffffff
je 0x458f79
cmp byte [eax], 0
je 0x458f79
push esi
push eax
call fcn.00458d84
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459710
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x464d38], 0
jne 0x459791
cmp dword [0x464d58], 0
jne 0x459740
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x464d58], eax
test eax, eax
jne 0x459740
push str.GetEnvironmentStrings_failed
call fcn.00458f90
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x464d58]
jmp 0x459754
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00455110
pop ecx
mov edi, eax
test eax, eax
jne 0x45974c
lea edi, [ebp + 1]
push edi
call fcn.00454b70
pop ecx
mov ebx, eax
mov dword [0x464d3c], ebx
test ebx, ebx
jne 0x45977e
xor eax, eax
jmp 0x459854
push edi
mov edx, dword [0x464d58]
push edx
push ebx
call fcn.00454fc0
add esp, 0xc
jmp 0x4597b1
xor esi, esi
mov ebx, dword [0x464d38]
jmp 0x4597ab
push eax
call fcn.00455110
pop ecx
test eax, eax
jne 0x4597a7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45979b
lea ebx, [esi + 4]
push 4
mov dword [0x464d40], ebx
inc ebx
push ebx
call fcn.00454648
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4597d4
xor eax, eax
jmp 0x459854
cmp dword [0x464d38], 0
jne 0x459805
xor esi, esi
mov ebx, dword [0x464d3c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4597f6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00455110
pop ecx
mov edi, eax
test eax, eax
jne 0x4597ec
jmp 0x459836
xor esi, esi
mov ebx, dword [0x464d38]
mov eax, dword [esp]
mov edi, eax
jmp 0x459830
push eax
call fcn.00455110
pop ecx
test eax, eax
je 0x459825
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x459829
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x459814
mov eax, dword [0x464d38]
test eax, eax
je 0x459846
push eax
call fcn.00454b80
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x464d38], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ed5e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40eae0
call fcn.0040ed98
mov edi, ebx
sub ebx, edi
xor dword [ecx], eax
sub edi, 1
add ecx, 1
or ebx, ebx
add edi, 0x2bd83ec4
cmp ecx, esi
jne fcn.0040ed5e
ret

Function at 0x40ed75
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x40eae0
mov ecx, dword [esp]
add esp, 4
call fcn.0040ed96
or eax, eax
xor dword [edi], ecx
mov eax, eax
inc edi
cmp edi, ebx
jne fcn.0040ed75
ret
Function at 0x40234f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push edi
xor eax, eax
push eax
xor eax, eax
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x402381
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
push 8
pop eax
push eax
call dword [0x58b774]
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi + 4], eax
mov esi, dword [ebp + 8]
mov dword [esi], edi
add esp, 4
mov eax, dword [edi]
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41c040
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x495c9b
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.0048a20a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41c0c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048788d
mov eax, dword [eax]
push 0x596224
push eax
call fcn.00479ba4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048a495
test bl, bl
je 0x41c0c2
push 0x596224
lea ecx, [esp + 0xc]
call fcn.0048a825
push 0x599d9c
lea ecx, [esp + 0xc]
call fcn.0048a825
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 0x41c0fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048a495
jmp 0x41c1c9
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 0x41c182
lea edx, [esp + 0x7c]
push 0x599d98
push edx
call fcn.00479ba4
add esp, 8
test eax, eax
je 0x41c182
lea eax, [esp + 0x7c]
push 0x599d94
push eax
call fcn.00479ba4
add esp, 8
test eax, eax
je 0x41c182
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 0x41c112
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.0048a495
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 0x41c9c0
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 0x41ca22
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