joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424e7c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x424e93
add esp, 0xfffffff0
call fcn.00454c9c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00447d38
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x441804]
call fcn.00454980
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x441804]
call fcn.00454980
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x413704]
call fcn.0041a6d4
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x425004
mov eax, dword [0x46842c]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041aa78
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4268e4
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46842c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.DLL_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00451218
test eax, eax
je 0x424f83
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0044ddcc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00451240
test eax, eax
je 0x424f97
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00455584
mov eax, dword [0x468430]
cmp byte [eax], 0
jne 0x424fc8
mov eax, ebx
call fcn.004250f0
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x424ffa
call fcn.00454cf4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425348
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46874c]
cmp dword [eax + 0x24], 0
je 0x4253d8
cmp dword [ebx + 0x7c], 0
jne 0x4253d5
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4252dc
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x4253d5
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
test al, 8
je 0x4253a4
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4253d5
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.00442db0
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4253b0
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x425d28
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x425d5d
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.0045543c
jmp 0x425d67
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.004553f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x426c14
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x426c4c
mov eax, esi
call fcn.00434f84
test al, al
je 0x426c4c
mov eax, dword [ebx + 0x6c]
call fcn.00434b5c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x426c4c
push 0
mov eax, dword [ebx + 0x6c]
call fcn.00434b5c
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x42cca4
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 - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x468814], 0
sete dl
or al, dl
jne 0x42cde8
mov eax, dword [0x468818]
mov bx, 0xffff
call fcn.00454b8c
mov eax, dword [0x468814]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42cdb7
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x468814]
call fcn.00442db0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x42cdaf
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x42cdaf
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42cdaf
mov eax, dword [ebp - 0x10]
call fcn.00434b5c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x42cdaf
push ebp
call fcn.0042cc60
pop ecx
test al, al
jne 0x42cdaf
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x42cd6b
mov eax, dword [ebp - 0x10]
call fcn.004334a0
dec eax
jle 0x42cdaf
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov bx, 0xffc2
call fcn.00454b8c
cmp byte [ebp - 0x15], 0
je 0x42cdaf
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x42cdaf
mov edx, dword [ebp - 0x10]
mov eax, dword [0x468818]
call fcn.0042c510
inc edi
dec esi
jne 0x42ccfe
mov eax, dword [0x468818]
cmp dword [eax + 8], 0
jle 0x42cdcf
mov eax, dword [0x468818]
call fcn.0042c5a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42cde8
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0042cb18
pop ecx
test al, al
jne 0x42cde8
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43262c
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 0x43265d
je 0x4326b7
sub eax, 7
je 0x43267e
dec eax
je 0x4326a8
sub eax, 0x17
je 0x432738
jmp 0x432776
add eax, 0xffffff00
sub eax, 9
jb 0x432724
add eax, 0xffffff09
sub eax, 0xb
jb 0x43270e
jmp 0x432776
mov eax, ebx
call fcn.0041de1c
mov edi, eax
test edi, edi
je 0x4327d6
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x4327df
jmp 0x4327d6
test byte [ebx + 0x44], 0x20
jne 0x4327df
jmp 0x4327d6
mov edx, esi
mov eax, ebx
call fcn.0042ff20
cmp dword [esi + 0xc], 0xffffffff
jne 0x4327df
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0044ba48
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0042e9c8
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.004324dc
test eax, eax
je 0x4327df
mov dword [esi + 0xc], 1
jmp 0x4327df
mov edx, esi
mov eax, ebx
call fcn.004325a0
test al, al
jne 0x4327df
jmp 0x4327d6
mov eax, ebx
call fcn.0042f598
test al, al
jne 0x4327df
jmp 0x4327d6
mov eax, ebx
call fcn.00434b5c
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x4327d6
cmp dword [0x464a28], 0
je 0x4327d6
mov eax, dword [0x464a28]
cmp ebx, dword [eax + 0x24]
jne 0x4327d6
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x464a28]
call fcn.0042fe3c
jmp 0x4327d6
mov eax, dword [0x4687dc]
cmp byte [eax + 0x20], 0
je 0x4327d6
mov eax, dword [0x4687dc]
cmp dword [eax + 0x1c], 0
je 0x4327d6
mov eax, dword [esi]
mov edx, dword [0x4687dc]
cmp eax, dword [edx + 0x1c]
jne 0x4327d6
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.0041dd30
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, 0xffb9
call fcn.00454b8c
jmp 0x4327df
mov edx, esi
mov eax, ebx
call fcn.0042ff20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432c70
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 0x432c8c
cmp dword [esi + 4], 0
je 0x432cb9
test byte [ebx + 0x45], 1
jne 0x432cab
mov eax, ebx
call fcn.00431ce8
test eax, eax
jne 0x432cab
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x432dc9
mov edx, esi
mov eax, ebx
call fcn.004328e8
jmp 0x432dc9
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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 0x432dc2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00434b5c
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.0042fe3c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00432c70
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 + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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.00434b5c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432dc9
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 0x43b47c
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 0x43b554
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46885c], 0
jne 0x43b538
lea eax, [ebp - 4]
mov edx, 0x43b56c
call fcn.004553f0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00455798
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x43b538
mov eax, ebx
call fcn.00454360
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43b531
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 0x43b51b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x43b57c
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x43b51b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x46885c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b538
mov eax, dword [ebp - 0xc]
call fcn.00454378
ret
mov ebx, dword [0x46885c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b55b
lea eax, [ebp - 4]
call fcn.00455358
ret

Function at 0x440824
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x468884], 0
jne 0x440847
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4407a8
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x468884], eax
ret

Function at 0x44ff34
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 0x44ff6d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0045543c
jmp 0x44ff76
mov eax, ebx
mov edx, esi
call fcn.004553f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44ff80
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 0x44ffa1
mov al, byte [esp]
jmp 0x44ffa3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x454828
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x464e18]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4548c0
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4548a0
xor eax, eax
push ebp
push 0x454899
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 0x4548dc
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 0x4548a0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x464e18]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x464e18], ax
mov esp, ebp
pop ebp
ret
Function at 0x4566a4
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 0x45685c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x456705
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x456878
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x456772
xor eax, eax
push ebp
push 0x45676b
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x456754
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x456898
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 0x456772
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 0x456853
cmp byte [ebp - 0xd], 0
jne 0x4567b4
cmp byte [ebp - 0x12], 0
je 0x456853
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4567cd
dec ebx
cmp byte [ebx], 0x2e
je 0x4567dc
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4567cc
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x456853
inc ebx
cmp byte [ebp - 0x12], 0
je 0x456809
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 0x456853
cmp byte [ebp - 0xd], 0
je 0x456853
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 0x456853
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 0x456c1c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x456d04
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x468ed0], 1
jae 0x456cf6
xor eax, eax
mov dword [0x468adc], eax
xor eax, eax
mov dword [0x468ae4], eax
xor eax, eax
mov dword [0x468ae8], eax
mov byte [0x468aee], 2
mov byte [0x468aef], 2
mov byte [0x468af0], 3
mov word [0x468e98], 0
mov word [0x468ea8], 1
mov word [0x468eb8], 0xa
mov dword [0x468ec0], 0x80020004
mov dword [0x468e8c], 0x455ff8
mov dword [0x468e90], 0x455ff0
mov dword [0x468e94], 0x455ff8
call fcn.004547f8
test al, al
je 0x456cb5
call fcn.00454828
call fcn.004548ec
mov eax, 0x468af4
mov edx, 0x456d10
call fcn.004520b6
mov eax, 0x468cc0
mov edx, 0x456d10
call fcn.004520b6
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x468ad4], eax
call fcn.0045301c
mov dword [0x468ad0], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x468ac8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456d0b
ret

Function at 0x45b1e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x466934], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x45b298
cmp byte [0x461343], 0
je 0x45b252
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0045b12c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45b23b
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0045b12c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45b23b
lea ebx, [ebp - 0x54]
jmp 0x45b23c
inc ebx
call fcn.0045b198
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x45b2b9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x466938
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0045776c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x46693b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x45b2b9
cmp dword [0x466934], 0xffffffff
je 0x45b2b9
mov eax, dword [0x466934]
test eax, eax
je 0x45b2b9
cmp byte [eax], 0
je 0x45b2b9
push esi
push eax
call fcn.0045b338
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45b338
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 0x45b39a
call fcn.0045b2e8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0045776c
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.0045776c
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 0x45b8e8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4697cc], 0
jne 0x45b969
cmp dword [0x4697e8], 0
jne 0x45b918
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4697e8], eax
test eax, eax
jne 0x45b918
push str.GetEnvironmentStrings_failed
call fcn.0045b2d0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4697e8]
jmp 0x45b92c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0045776c
pop ecx
mov edi, eax
test eax, eax
jne 0x45b924
lea edi, [ebp + 1]
push edi
call fcn.004571d4
pop ecx
mov ebx, eax
mov dword [0x4697d0], ebx
test ebx, ebx
jne 0x45b956
xor eax, eax
jmp 0x45ba2c
push edi
mov edx, dword [0x4697e8]
push edx
push ebx
call fcn.0045761c
add esp, 0xc
jmp 0x45b989
xor esi, esi
mov ebx, dword [0x4697cc]
jmp 0x45b983
push eax
call fcn.0045776c
pop ecx
test eax, eax
jne 0x45b97f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45b973
lea ebx, [esi + 4]
push 4
mov dword [0x4697d4], ebx
inc ebx
push ebx
call fcn.00456d14
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x45b9ac
xor eax, eax
jmp 0x45ba2c
cmp dword [0x4697cc], 0
jne 0x45b9dd
xor esi, esi
mov ebx, dword [0x4697d0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x45b9ce
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0045776c
pop ecx
mov edi, eax
test eax, eax
jne 0x45b9c4
jmp 0x45ba0e
xor esi, esi
mov ebx, dword [0x4697cc]
mov eax, dword [esp]
mov edi, eax
jmp 0x45ba08
push eax
call fcn.0045776c
pop ecx
test eax, eax
je 0x45b9fd
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x45ba01
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45b9ec
mov eax, dword [0x4697cc]
test eax, eax
je 0x45ba1e
push eax
call fcn.004571e4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4697cc], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x498468
Capabilities:
Create thread

Disassembly:
sub esp, 0x100
push edi
push 0x100195fc
push 0
push 0
push 0x10001290
push 0
push 0
call fcn.0049974d
add esp, 0x18
push eax
call dword [0x100121e0]
call dword [0x100121e4]
mov edx, eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x100160a8
push eax
call fcn.004996fb
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [0x100121e8]
test eax, eax
mov dword [0x10019600], eax
pop edi
je 0x4984fd
push 0
push 0
push 0
push 6
push eax
call dword [0x100121ec]
mov edx, dword [0x100195fc]
push eax
mov dword [eax], edx
call dword [0x100121f0]
call fcn.00498518
add esp, 0x100
ret