joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b7a
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x43ecde
call fcn.00432c38
sub esp, 0x428
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.00407d91
test al, al
je 0x407bad
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x407d3a
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
mov byte [ebp - 0x434], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00407db9
mov edi, 0x400
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
push ebx
mov dword [esi + 0x90], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
mov dword [esi + 0x94], eax
push dword [esi + 0x90]
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push dword [esi + 0x94]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x2c
call fcn.00432c57
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x407c4c
push 4
push esi
push dword [esi + 0x90]
mov ecx, eax
call fcn.00407d4a
jmp 0x407c4e
xor eax, eax
mov dword [esi + 0x98], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push esi
push 0x407b2e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 4
mov dword [ebp - 0x10], edi
call fcn.00432c57
mov dword [eax], edi
pop ecx
mov edi, 0xff
mov dword [ebp + 8], eax
push edi
push 0xffffffffffffffff
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x407cd6
push 1
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x407ccd
cmp dword [ebp - 0x30], 0x8032
jne 0x407cc1
mov ecx, dword [esi + 0x98]
call fcn.004081cb
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x407c9a
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
jmp 0x407c8a
push dword [ebp + 8]
call fcn.00432291
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [esi + 0x90]
call edi
push dword [esi + 0x94]
call edi
mov esi, dword [esi + 0x98]
pop edi
cmp esi, ebx
je 0x407d0f
lea ecx, [esi + 8]
call fcn.00407f15
push esi
call fcn.00432291
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x407d19
xor eax, eax
jmp 0x407d3a
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40815d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x408176
xor esi, esi
jmp 0x4081a3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00433360
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4081c1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x408168
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cd8f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x40cd9b
mov eax, 0x4424fc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40cdaf
test al, 0x10
jne 0x40cdaf
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x40f97d
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
xor ebx, ebx
cmp dword [0x451734], ebx
push esi
mov esi, ecx
je 0x40fa5f
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, esi
call fcn.0040fad0
xor al, al
cmp dword [ebp - 0x90], 5
ja 0x40f9cb
jne 0x40f9d6
cmp dword [ebp - 0x8c], ebx
jbe 0x40f9d6
cmp dword [ebp - 0x84], 2
jne 0x40f9d6
mov al, 1
cmp byte [ebp + 8], bl
je 0x40fa24
cmp al, bl
je 0x40fa0c
push 0xfffffffffffffff0
push dword [0x451734]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [esi + 0x48], eax
or al, 8
push eax
push 0xfffffffffffffff0
push dword [0x451734]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x64
push 1
push 0x40a
jmp 0x40fa53
lea eax, [esi + 0x44]
push eax
push ebx
push esi
push 0x40fa65
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x40], eax
jmp 0x40fa5f
cmp al, bl
push ebx
push ebx
je 0x40fa4e
push 0x40a
push dword [0x451734]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [esi + 0x48]
push 0xfffffffffffffff0
push dword [0x451734]
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x40fa5f
push 0x402
push dword [0x451734]
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
pop ebx
leave
ret 4

Function at 0x40fb62
Capabilities:
Set registry value

Disassembly:
mov eax, 0x43f558
call fcn.00432c38
sub esp, 0x130
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0xf003f
push 0x44b580
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004109fd
test eax, eax
jne 0x40fc05
push esi
lea eax, [ebp - 0x13c]
push dword [ebp + 8]
push 0x44b57c
push eax
call fcn.0043301b
add esp, 0xc
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x44249c
mov dword [ebp - 0x18], 0x442494
push ebx
push dword [ebp + 0xc]
call fcn.0040b6ad
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004016f0
mov esi, eax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x13c]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00401915
pop esi
cmp dword [ebp - 0x10], ebx
pop ebx
je 0x40fc14
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40fc22
Capabilities:
Accept command line arguments
Set registry value

Disassembly:
mov eax, 0x43f587
call fcn.00432c38
sub esp, 0x8c
push ebx
xor ebx, ebx
cmp byte [ecx + 0x3c], bl
je 0x40fd7f
push esi
push edi
mov dword [ebp - 0x14], ebx
mov edi, 0x44b5d8
push 0xf003f
mov esi, SysReAllocStringLen
push edi
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004109fd
test eax, eax
je 0x40fca5
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40fd6f
xor eax, eax
cmp dword [ebp - 0x14], ebx
je 0x40fc97
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x40fd6f
lea eax, [ebp - 0x15]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x70]
call fcn.004014ff
lea eax, [ebp - 0xd]
push 1
push eax
push 0x44b5d0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.0040b740
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 2
call fcn.00410a3b
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00401915
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x44249c
mov dword [ebp - 0x28], 0x442494
call fcn.00401581
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x40fd21
mov eax, 0x4424b4
push eax
lea eax, [ebp - 0x48]
push 0x44b5c4
push eax
call fcn.00410d20
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.004016f0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push 0x44b5ac
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00401915
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401915
cmp dword [ebp - 0x14], ebx
pop edi
pop esi
je 0x40fd7f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x410720
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x43f703
call fcn.00432c38
mov eax, 0x10a0
call fcn.00433360
push ebx
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x21]
mov ebx, 0x44249c
mov edi, 0x442494
push esi
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x34], edi
call fcn.00401581
or dword [ebp - 0x20], 0xffffffff
push 1
pop eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
push 0x80
push 3
push esi
push eax
push SysReAllocStringLen
mov byte [ebp - 4], 2
call fcn.004016f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x410850
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xac]
push eax
call fcn.0042fd6b
pop ecx
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x10ac]
push 0x1000
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4107dd
push dword [ebp + 0xc]
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0042fd93
add esp, 0xc
cmp dword [ebp + 0xc], esi
ja 0x4107a1
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042fe31
movzx eax, byte [ebp - 0xd]
pop ecx
pop ecx
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push 0x44b63c
push eax
call fcn.00410d20
add esp, 0x48
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.0040b6ad
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x20], 0xffffffff
je 0x410880
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x410880
push dword [ebp - 0x20]
call eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00401915
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x412f67
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x44ba0c
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412fbe
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x4517a8
push 0
push 0
push 0x44b9f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412fb5
mov byte [0x4527a8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x413168
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4527b8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413194
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x4527b8]
call esi
push 0
push dword [0x4527b0]
call esi
pop esi
ret

Function at 0x413b6a
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, 0x453210
push edi
push esi
call fcn.004146e4
test eax, eax
pop ecx
jne 0x413cb7
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x453210]
push 0x453204
mov dword [eax], ecx
call fcn.0041464f
test eax, eax
pop ecx
jne 0x413cb7
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x453204]
mov dword [ebx], eax
cmp dword [0x453210], 1
jne 0x413bbd
xor eax, eax
jmp 0x413cb7
lea eax, [ebp - 4]
push eax
push 0x453208
call fcn.00413b56
test eax, eax
jne 0x413cb7
mov eax, dword [0x453210]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x453214], eax
jne 0x413bfc
push 0xfffffffffffffffc
pop eax
jmp 0x413cb7
push esi
call fcn.0041476d
mov edi, eax
pop ecx
test edi, edi
je 0x413c32
push dword [0x453214]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x453214]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x413cb5
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x453200], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x452ff4], eax
movzx eax, word [ebp + 0x14]
push 0x413ed6
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x452ff4]
test eax, eax
je 0x413c75
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x413c7e
xor edi, edi
jmp 0x413c86
cmp edi, 2
jne 0x413c86
or edi, 0xffffffff
mov eax, dword [0x453214]
test eax, eax
je 0x413cae
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x453214]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x453204], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41418e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x414315
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x414315
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x414200
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x414315
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.004149f4
push 1
push 0x44ba8c
push esi
mov edi, eax
call fcn.004149f4
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x414315
test edi, edi
je 0x414315
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x41429f
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x4142a5
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x4142b5
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x414315
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4160a8
Capabilities:
Check os version

Disassembly:
mov eax, 0x43fe08
call fcn.00432c38
sub esp, 0x3e8
push ebx
push esi
lea eax, [ebp - 0xe8]
push edi
mov dword [ebp - 0x10], ecx
push eax
mov dword [ebp - 0xe8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xe4], 5
jne 0x416204
cmp dword [ebp - 0xe0], 2
jne 0x416204
cmp byte [ebp - 0x4e], 1
je 0x416204
push 0x44be18
push dword [ebp + 8]
call fcn.00433500
pop ecx
pop ecx
test eax, eax
push 1
je 0x4161f2
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.004014ff
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
je 0x4161e4
mov al, byte [ebp + 0xb]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
push eax
push 0x2c
mov byte [ebp - 4], 1
call fcn.0041bdfc
mov dword [ebp - 0x14], ebx
xor esi, esi
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x4161d9
mov eax, dword [ebp - 0x1c]
push 0x28
sub eax, ecx
pop edi
cdq
idiv edi
cmp dword [ebp - 0x14], eax
jae 0x4161d9
add ecx, esi
call fcn.004016f0
push eax
lea eax, [ebp - 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1ec]
push 0x44be08
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2f0]
push 1
push eax
lea eax, [ebp - 0x1ec]
push eax
call fcn.004195a5
test eax, eax
je 0x4161b6
inc dword [ebp - 0x14]
add esi, edi
jmp 0x416155
mov ecx, dword [ebp - 0x10]
call fcn.0041b893
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0041c23a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401915
xor eax, eax
jmp 0x4161f3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0041c23a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401915
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 0x44be18
push dword [ebp + 8]
call fcn.00433500
pop ecx
test eax, eax
pop ecx
jne 0x4161f0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x3f4]
push 1
push eax
push 0x44be08
call fcn.004195a5
test eax, eax
jne 0x4161f0
mov ecx, dword [ebp - 0x10]
call fcn.0041b893
jmp 0x4161d5
Function at 0x41689b
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x43fe5c
call fcn.00432c38
sub esp, 0x118
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
push 1
pop esi
cmp ecx, 0x2000
mov dword [eax], esi
je 0x416916
cmp ecx, 0xbc2
je 0x416916
xor ebx, ebx
cmp ecx, 0x800704c7
je 0x4168dd
cmp ecx, 0x642
jne 0x4168e9
cmp dword [ebp + 0x18], ebx
je 0x4168e9
mov dword [eax], ebx
jmp 0x416a10
cmp ecx, ebx
je 0x416a10
cmp ecx, 0x1008
je 0x416a10
mov ecx, dword [ebp - 0x10]
mov dword [0x453ec8], 0x66d
call fcn.0041b893
xor eax, eax
jmp 0x416a12
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], bl
mov ecx, dword [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push 0x10
push eax
push 0x44c028
push 0x44c014
push dword [0x44260c]
call fcn.00401046
mov ecx, eax
add ecx, 0x4030
call fcn.00402606
cmp byte [ebp - 0x20], 0x59
mov byte [ebp + 0x17], bl
je 0x416961
cmp byte [ebp - 0x20], 0x79
jne 0x416965
mov byte [ebp + 0x17], 1
call fcn.0042bca3
test eax, eax
jne 0x416987
cmp dword [ebp + 8], 0xbc2
jne 0x41697c
cmp byte [ebp + 0x17], bl
je 0x416987
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x416991
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x18], ebx
mov dword [eax + 0x38], esi
push 0x20019
push 0x44bfe0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], ebx
call fcn.004109fd
test eax, eax
jne 0x416a01
push 0x40
lea edi, [ebp - 0x123]
pop ecx
mov byte [ebp - 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push 0x44bfcc
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x18], ebx
pop edi
je 0x416a10
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x417568
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x43fee3
call fcn.00432c38
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.004014ff
and dword [ebp - 4], 0
mov eax, 0x44c0ec
mov ecx, eax
mov dword [ebp - 0x3c], 0x44249c
test ecx, ecx
mov dword [ebp - 0x1c], 0x442494
jne 0x4175dc
mov eax, 0x450eb4
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040b740
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00410a7e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401915
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.004016f0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x4176d8
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x4176b6
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004014ff
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.004014ff
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00410a7e
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401915
lea ecx, [ebp - 0x3c]
call fcn.004016f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401915
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x417634
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4176d8
push esi
call eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.00401915
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4