joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444400
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46f734]
cmp byte [eax + 0xc], 0
je 0x44456d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x444566
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x470b68], 0
jne 0x444454
push 0x444574
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44457c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b68], eax
cmp dword [0x46ec8c], 0
jne 0x44454f
push 0x44458c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46ec8c], eax
cmp dword [0x46ec8c], 0
je 0x44454f
push 0x444598
mov eax, dword [0x46ec8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b6c], eax
push 0x4445a8
mov eax, dword [0x46ec8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b70], eax
push 0x4445bc
mov eax, dword [0x46ec8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b74], eax
push 0x4445d4
mov eax, dword [0x46ec8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b78], eax
push 0x4445ec
mov eax, dword [0x46ec8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b7c], eax
push 0x444600
mov eax, dword [0x46ec8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b80], eax
push 0x444618
mov eax, dword [0x46ec8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b84], eax
push 0x444630
mov eax, dword [0x46ec8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b88], eax
push 0x44464c
mov eax, dword [0x46ec8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b8c], eax
push 0x444658
mov eax, dword [0x46ec8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44456d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x448ba4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040412c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x448bf3
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004043ac
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4503d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450428]
test si, 4
je 0x4503ec
or bl, 1
test si, 8
je 0x4503f6
or bl, 4
test si, 1
je 0x450400
or bl, 8
test si, 2
je 0x45040a
or bl, 0x10
test si, 0x10
je 0x450414
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450423
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45042c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450464]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450445
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450454
or bl, 4
test esi, 0x20000000
je 0x45045f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x456b0c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x456b1e
add esp, 0xfffffff0
call fcn.00403700
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e8c4
mov eax, dword [0x46f3a0]
mov dword [eax + 4], ebx
mov dword [eax], 0x456eb0
mov eax, dword [0x46f3ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x456ebc
mov eax, ebx
call fcn.00456ec8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416938]
call fcn.004033ac
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416938]
call fcn.004033ac
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416938]
call fcn.004033ac
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416938]
call fcn.004033ac
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416938]
call fcn.004033ac
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4532e4
push eax
push 0
push 0
mov eax, dword [0x46f514]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420318]
call fcn.00421a78
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420318]
call fcn.00421a78
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420318]
call fcn.00421a78
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004572e8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4571c4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4571c4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4571c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456c5b
call fcn.00403758
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x456fa8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457153
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457134
mov dl, 1
mov eax, dword [0x416d54]
call fcn.004033ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040412c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457123
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00444760
test al, al
je 0x457116
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x457164
lea eax, [ebp - 0x254]
call fcn.004093a0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457116
xor eax, eax
push ebp
push 0x45710f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45719c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4570f8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043ac
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4570f8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457116
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457019
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041aa44
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45715a
lea eax, [ebp - 0x260]
call fcn.0040412c
ret

Function at 0x457a88
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x470bb4]
cmp byte [eax + 0xa5], 0
jne 0x457af9
cmp dword [0x470bcc], 0
jne 0x457aba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457a44
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x470bcc], eax
cmp dword [0x470bc8], 0
jne 0x457ad5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x470bc8], eax
cmp dword [0x470bd0], 0
jne 0x457af9
push esp
push 0
push 0
push 0x4579e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x470bd0], eax
pop edx
ret
Function at 0x457bf0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x457c07
add esp, 0xfffffff0
call fcn.00403700
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e8c4
mov eax, dword [0x46f500]
cmp word [eax + 2], 0
jne 0x457c2f
mov eax, dword [0x46f500]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004592c8
mov eax, dword [0x46f5bc]
cmp word [eax + 2], 0
jne 0x457c49
mov eax, dword [0x46f5bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004594c0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416938]
call fcn.004033ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416938]
call fcn.004033ac
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420dc0]
call fcn.00428744
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x457dd0
mov eax, dword [0x46f40c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428b14
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x459a60
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46f40c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040cb5c
test eax, eax
je 0x457d3e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d94
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb84
test eax, eax
je 0x457d52
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004043ac
mov eax, dword [0x46f2d4]
cmp byte [eax], 0
jne 0x457d86
mov eax, ebx
call fcn.00457ef8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00459c3c
mov eax, ebx
call fcn.0045a600
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457dc6
call fcn.00403758
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458178
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470bb4]
cmp dword [eax + 0x30], 0
je 0x458222
cmp dword [ebx + 0x94], 0
jne 0x45821c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458108
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45821c
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 0x4581e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45821c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418ca0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4581f1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458d84
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x458db9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040421c
jmp 0x458dc6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404180
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459e18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459e59
mov eax, esi
call fcn.0043fd8c
test al, al
je 0x459e59
mov eax, dword [ebx + 0x84]
call fcn.0043fa88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459e59
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043fa88
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45ab18
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415ee0]
call fcn.00404b18
xor eax, eax
push ebp
push 0x45ac5c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46eec0], 0
jne 0x45ab6b
mov ecx, dword [0x46f2e4]
mov dl, 1
mov eax, dword [0x4075a0]
call fcn.0040bd9c
call fcn.00403b68
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402df0
mov eax, ebx
call fcn.00404980
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45ac6c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405c2c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404990
test eax, eax
jle 0x45ac03
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45abfc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004043c4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004043ac
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004083ac
test eax, eax
jne 0x45abfc
mov ebx, 0x15
jmp 0x45ac08
mov ebx, 0x10
jmp 0x45ac08
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x46eec0]
call fcn.0045aa70
mov eax, dword [ebp - 8]
call fcn.0045aa70
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405c44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ac63
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404150
lea eax, [ebp - 0x10]
mov edx, dword [0x415ee0]
call fcn.00404be8
ret
Function at 0x45be44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045ec
xor eax, eax
push ebp
push 0x45bf6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040412c
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004045fc
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x45bf59
mov eax, ebx
call fcn.0040276c
mov edi, eax
push edi
push ebx
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x45bf80
push edi
call sub.version.dll_VerQueryValueA
mov esi, dword [ebp - 0x14]
cmp byte [ebp - 5], 0
je 0x45bf02
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + 8]
shr eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [esi + 8]
and eax, 0xffff
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
mov eax, dword [esi + 0xc]
shr eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x30]
mov ecx, 2
mov eax, 0x45bf8c
call fcn.00409420
jmp 0x45bf50
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + 8]
shr eax, 0x10
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
mov eax, dword [esi + 8]
and eax, 0xffff
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
mov eax, dword [esi + 0xc]
shr eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
mov eax, dword [esi + 0xc]
and eax, 0xffff
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x50]
mov ecx, 3
mov eax, 0x45bfa0
call fcn.00409420
mov edx, ebx
mov eax, edi
call fcn.0040278c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bf76
lea eax, [ebp - 4]
call fcn.0040412c
ret

Function at 0x45c1e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045ec
mov eax, dword [ebp - 8]
call fcn.004045ec
xor eax, eax
push ebp
push 0x45c267
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45c27c
push dword [ebp - 4]
push 0x45c27c
lea eax, [ebp - 4]
mov edx, 3
call fcn.004044bc
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.004045fc
push eax
mov eax, dword [ebp - 4]
call fcn.004045fc
push eax
push 0x45c280
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c26e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404150
ret
Function at 0x45c2e4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45c365
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x45c374
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
jle 0x45c345
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004043ac
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.0045bbf4
jmp 0x45c34c
mov eax, ebx
call fcn.0040412c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c36c
lea eax, [ebp - 0x104]
call fcn.0040412c
ret

Function at 0x462c98
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x462cd2
mov eax, dword [esp + 4]
cmp eax, 6
jne 0x462cc5
cmp dword [esp + 8], 2
setae al
jmp 0x462cd4
cmp eax, 6
jbe 0x462cce
mov al, 1
jmp 0x462cd4
xor eax, eax
jmp 0x462cd4
xor eax, eax
add esp, 0x94
ret

Function at 0x46b7f4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404af8
xor eax, eax
push ebp
push 0x46b912
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, 0x46b928
call fcn.0046b744
push 0
mov eax, dword [ebp - 8]
call fcn.004045fc
push eax
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402b24
mov eax, dword [ebp - 0xc]
call fcn.004045fc
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004049e4
jne 0x46b899
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402b24
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x46b938
call fcn.00409420
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0045c1e4
jmp 0x46b8da
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x34]
xor eax, eax
call fcn.00402b24
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xf
lea edx, [ebp - 0x30]
mov ecx, 1
mov eax, 0x46b950
call fcn.00409420
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0045c1e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b919
lea eax, [ebp - 0x34]
call fcn.0040412c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404150
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404150
lea eax, [ebp - 4]
call fcn.0040481c
ret
Function at 0x46c6b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045ec
xor eax, eax
push ebp
push 0x46c737
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408a24
test al, al
je 0x46c721
call sub.kernel32.dll_GetTickCount
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x46c6f8
push 0xc8
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
call fcn.00408b40
test al, al
jne 0x46c721
call sub.kernel32.dll_GetTickCount
xor edx, edx
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x46c71f
cmp eax, 0x1388
jb 0x46c6ee
jmp 0x46c721
jl 0x46c6ee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c73e
lea eax, [ebp - 4]
call fcn.0040412c
ret

Function at 0x46c744
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045ec
lea eax, [ebp - 8]
call fcn.00404af8
xor eax, eax
push ebp
push 0x46c866
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x46c7b4
call sub.kernel32.dll_GetTickCount
xor edx, edx
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x46c7a4
cmp eax, 0xbb8
jbe 0x46c7aa
jmp 0x46c840
jg 0x46c840
push 0xc8
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
call fcn.0046c630
test al, al
je 0x46c786
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0045ba34
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.0040487c
push 0
mov eax, dword [ebp - 4]
call fcn.004045fc
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov esi, eax
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004049e4
jne 0x46c80f
push 0
push 0
push 0
push 0x46c878
push 0xa
push esi
call sub.kernel32.dll_UpdateResourceA
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x46c838
mov eax, dword [ebp - 8]
call fcn.00404990
add eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00404980
push eax
push 0
push 0x46c878
push 0xa
push esi
call sub.kernel32.dll_UpdateResourceA
cmp eax, 1
sbb ebx, ebx
inc ebx
push 0
push esi
call sub.kernel32.dll_EndUpdateResourceA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c86d
lea eax, [ebp - 0x14]
call fcn.0040481c
lea eax, [ebp - 8]
call fcn.0040481c
lea eax, [ebp - 4]
call fcn.0040412c
ret