joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fde
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.004537c0
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x48c898], bl
mov byte [0x48c899], bl
mov byte [0x48c89a], bl
mov dword [0x48c89c], ebx
mov dword [0x48c8a0], ebx
mov dword [0x48c8a4], ebx
mov dword [0x48c8a8], ebx
mov dword [0x48c8ac], 0x46b744
mov dword [0x48c8b0], ebx
mov dword [0x48c8b4], ebx
mov dword [0x48c8b8], ebx
mov dword [0x48c8bc], 0x46b744
mov dword [0x48c8c0], ebx
mov dword [0x48c8c4], ebx
mov dword [0x48c8c8], ebx
mov dword [0x48c8d0], ebx
mov dword [0x48c8d8], ebx
call fcn.0044e2dc
pop ecx
mov dword [0x48c8cc], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00450ca8
push esi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.00450cf2
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00450d2f
mov edi, 0x20a
push edi
call fcn.0044e2dc
mov ecx, dword [0x48c8cc]
mov edx, dword [0x48c8d0]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48c8d0]
mov eax, dword [0x48c8cc]
mov eax, dword [eax + ecx*4]
inc dword [0x48c8d0]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0044e262
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406245
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20630]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x1fffe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40623c
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add eax, eax
mov word [ebp + eax - 0x20630], bx
mov word [ebp + eax - 0x2062e], bx
lea eax, [ebp - 0x20630]
mov word [ebp - 0x21c], bx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, bx
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
je 0x4061ae
cmp ax, 0x3b
je 0x4061ae
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044e238
pop ecx
pop ecx
jmp 0x406233
lea eax, [ebp - 0x21c]
push eax
call fcn.0044e874
test eax, eax
pop ecx
je 0x4061ea
lea eax, [ebp - 0x21c]
push eax
call fcn.0044e874
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x4061ea
lea eax, [ebp - 0x21c]
push 0x46b370
push eax
call fcn.0044e238
pop ecx
pop ecx
push edi
call fcn.0044e2dc
mov ecx, dword [0x48c8cc]
mov edx, dword [0x48c8d0]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48c8d0]
mov eax, dword [0x48c8cc]
mov eax, dword [eax + ecx*4]
inc dword [0x48c8d0]
push esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.00450d4d
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x40623c
add dword [ebp - 8], 2
jmp 0x40617e
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x48c898
pop ebx
leave
ret
Function at 0x4081c5
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x4081df
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x4082b5
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x408280
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [0x48cd50], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x408252
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x48cd50]
cmp ecx, eax
mov dword [0x48cd4c], eax
je 0x408247
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x48cd4c]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x4082b4
cmp dword [ebp - 8], ecx
jne 0x4082b4
cmp dword [ebp - 0xc], ecx
jne 0x4082b4
mov eax, dword [0x48cd50]
cmp dword [ebp - 4], eax
jne 0x4082b4
cmp eax, dword [0x48cd4c]
jne 0x4082b4
mov eax, dword [ebp + 8]
mov dword [eax + 0x24c], ecx
jmp 0x4082b4
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4082a8
push edi
push dword [0x48cd4c]
push eax
call esi
mov ecx, dword [0x48cd50]
mov eax, dword [0x48cd4c]
cmp ecx, eax
je 0x4082a8
push edi
push eax
push ecx
call esi
push edi
push dword [0x48cd50]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0xc], al
mov byte [ebp - 1], al
je 0x408389
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov eax, esi
call fcn.004082ba
mov edi, dword [esi + 4]
push esi
call fcn.004094a1
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push dword [ebp + 8]
mov eax, esi
push 2
pop ebx
call fcn.004082ba
mov edi, dword [esi]
push esi
call fcn.004094a1
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x4094a1
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x409535
jne 0x4094b9
push 0
jmp 0x40952f
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x21d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40952e
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40952e
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x471200]
call fcn.00465706
cmp eax, edi
jb 0x4094ec
jmp 0x409535
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40953c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp word [eax], bx
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x40955b
xor al, al
jmp 0x409678
push eax
or eax, 0xffffffff
call fcn.0040df1c
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [edi], bl
mov byte [esi], bl
mov byte [ecx], bl
call fcn.00450420
inc eax
push eax
call fcn.0044e2dc
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x4095a2
cmp al, 0x5e
je 0x40959e
cmp al, 0x21
je 0x40959e
cmp al, 0x23
jne 0x4095c6
cmp al, 0x2b
jne 0x4095a7
mov eax, dword [ebp + 0xc]
jmp 0x4095b7
cmp al, 0x5e
jne 0x4095b0
mov byte [esi], 1
jmp 0x4095c3
cmp al, 0x21
jne 0x4095bc
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x4095c3
cmp al, 0x23
jne 0x4095c3
mov byte [edi], 1
inc ebx
jmp 0x409588
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x409628
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00409464
test eax, eax
jne 0x409614
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x477390]
call fcn.00463415
test eax, eax
pop ecx
pop ecx
je 0x409606
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x4095e7
cmp esi, 0x62
je 0x409614
cmp byte [esi + 0x477518], 0
je 0x40961a
mov byte [ebp - 1], 0
jmp 0x40965a
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40965a
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 8]
movsx eax, ax
test ax, 0x200
mov dword [ecx], eax
je 0x409642
mov byte [esi], 1
test ax, 0x400
je 0x40964e
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x40965a
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044e346
push dword [ebp - 8]
call fcn.0044e346
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x40977b
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x409797
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4097af
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x409881
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x24], ebx
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call esi
push 1
push edi
push ebx
call esi
push 1
push dword [esp + 0x14]
push edi
call esi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x409867
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push ebp
push dword [esp + 0x14]
push ebx
call esi
push ebp
push edi
push ebx
call esi
push ebp
push dword [esp + 0x14]
push edi
call esi
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x409955
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x409972
inc edi
add eax, 8
cmp edi, 0x10
jl 0x409965
cmp edi, 0x10
jne 0x40997e
xor eax, eax
jmp 0x409a1e
cmp byte [esi + 0x18], 1
jne 0x4099f5
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x4099d1
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x4099d1
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x4099dd
mov eax, 0x428347
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x409a1c
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b49a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40b51a
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40b4c3
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.004516e8
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40b519
mov eax, dword [esi]
test al, 0x20
je 0x40b4de
push dword [esi + 4]
push 2
push ebx
push 0x46bc1c
call fcn.004518b2
mov dword [esi + 0xc], ebx
jmp 0x40b516
test al, 0x40
je 0x40b4fb
push dword [esi + 4]
push 2
push ebx
push 0x46bc20
call fcn.004518b2
mov dword [esi + 0xc], 2
jmp 0x40b516
test al, al
jns 0x40b519
push dword [esi + 4]
push 3
push ebx
push str.rb
call fcn.004518b2
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40b54e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46bc28
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.004515c9
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40b5d9
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.00451cbe
push edi
mov ebx, eax
call fcn.004519a6
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40b5b6
cmp byte [ebp + 8], 0xff
jne 0x40b5a5
cmp byte [ebp + 9], 0xfe
jne 0x40b5b6
mov dword [esi + 0xc], 1
jmp 0x40b5d4
cmp byte [ebp + 8], 0xfe
jne 0x40b5b6
cmp byte [ebp + 9], 0xff
jne 0x40b5b6
mov dword [esi + 0xc], eax
jmp 0x40b5d4
cmp ebx, 3
jb 0x40b5d8
cmp byte [ebp + 8], 0xef
jne 0x40b5d8
cmp byte [ebp + 9], 0xbb
jne 0x40b5d8
cmp byte [ebp + 0xa], 0xbf
jne 0x40b5d8
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40b699
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b6c9
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40b6ef
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor al, al
jmp 0x40b6f1
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.00451cbe
mov dword [edi], eax
push dword [esi + 4]
call fcn.004514d4
add esp, 0x14
test eax, eax
je 0x40b6ef
and dword [edi], 0
jmp 0x40b6c5
mov al, 1
pop ebx
ret 4

Function at 0x40ba0a
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40ba89
cmp edi, 4
jle 0x40ba1b
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00451140
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.00450640
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.00451cbe
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40ba89
push dword [esi + 4]
call fcn.004514a5
test eax, eax
pop ecx
jne 0x40ba84
push dword [esi + 4]
call fcn.004514d4
test eax, eax
pop ecx
jne 0x40ba84
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40bba2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bbef
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x40bbe6
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40bbf2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x40bc52
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x40c05b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
cmp edi, ebx
mov byte [0x4785c2], bl
je 0x40c0a1
mov byte [0x4785c3], 1
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40c0e2
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.0045204e
add esp, 0x18
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, ebx
mov edi, eax
je 0x40c0cd
push 0xffffffffffffffff
push esi
mov byte [0x4785c3], bl
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x4785c2], 1
jne 0x40c0db
or eax, 0xffffffff
jmp 0x40c0dd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c241
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c265
test al, 0x10
je 0x40c265
cmp byte [0x48a7ad], bl
je 0x40c265
mov al, 1
jmp 0x40c2b7
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c28a
xor al, al
jmp 0x40c2b6
cmp dword [ebp + 0x10], ebx
jne 0x40c295
push dword [ebp + 0xc]
push ebx
jmp 0x40c2a5
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40c2a2
push ebx
push dword [ebp + 0xc]
jmp 0x40c2a6
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x40c2ba
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40c2da
xor al, al
jmp 0x40c3ef
push ebx
push edi
push esi
call fcn.0044e2dc
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0044e874
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e2dc
mov esi, 0x46b370
mov edi, eax
push esi
push edi
call fcn.0044e262
push esi
push ebx
call fcn.0044e81b
add esp, 0x18
test eax, eax
je 0x40c3b5
push str.StringFileInfo_
push edi
call fcn.0044e238
push esi
push ebx
call fcn.0044eaec
add esp, 0x10
test eax, eax
jne 0x40c3ac
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c38c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
push 4
lea ebx, [edi + 0x20]
pop edx
mov dword [ebp - 0x10], eax
call fcn.0040db63
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040db63
mov ebx, dword [ebp + 0x10]
jmp 0x40c397
push str.04090000
push edi
call fcn.0044e238
pop ecx
pop ecx
push esi
push edi
call fcn.0044e238
push ebx
push edi
call fcn.0044e238
add esp, 0x10
jmp 0x40c3b5
push ebx
push edi
call fcn.0044e238
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044e1a7
test eax, eax
pop ecx
pop ecx
jne 0x40c3f2
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00450d4d
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044e346
push edi
call fcn.0044e346
add esp, 0x14
mov al, 1
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c468
push esi
push ebx
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
jne 0x40c43f
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.0044e88a
add esp, 0x18
jmp 0x40c452
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00450d4d
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044e346
push edi
call fcn.0044e346
pop ecx
pop ecx
mov al, bl
jmp 0x40c3ed
xor bl, bl
jmp 0x40c454

Function at 0x40c481
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c4bb
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40c4b1
or eax, eax
jmp 0x40c4bb
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40c656
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xca8
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040c4bf
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c69b
test al, 0x10
je 0x40c69b
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044e238
pop ecx
pop ecx
lea eax, [esp + 0xaa0]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x68c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00450ca8
add esp, 0x14
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40c76c
cmp bl, 1
jne 0x40c76c
test byte [esp + 0x220], 0x10
jne 0x40c744
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044e262
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044e238
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044e238
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x40c75b
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c6e8
xor bl, bl
jmp 0x40c6e8
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [esp + 0xf]
jmp 0x40c75d