joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x401dba
push 9
push str.ERROR_
push dword [0x40c25a]
call sym._Top002B
mov edi, dword [0x40c25a]
sub eax, eax
mov ecx, pe_overlay
repne scasb al, byte es:[edi]
sub edi, 1
push edi
push 0
push 0xa
push dword [ebp + 8]
call fcn.004028ab
cmp dword [0x40bcde], 0
je 0x401d93
push 0xa
push str._IN_LINE
push dword [0x40c25a]
call fcn.0040264d
mov edi, dword [0x40c25a]
sub eax, eax
mov ecx, pe_overlay
repne scasb al, byte es:[edi]
sub edi, 1
push edi
push 0
push 0xa
push dword [0x40bcde]
call fcn.004028ab
push 3
push 0x40b090
push dword [0x40c25a]
call fcn.0040264d
push pe_overlay
push dword [ebp + 0xc]
push dword [0x40c25a]
call fcn.0040264d
jmp 0x401dcd
push pe_overlay
push dword [ebp + 0xc]
push dword [0x40c25a]
call sym._Top002B
push 0x15
push str.ERROR
push dword [0x40c25a]
push 0
call sub.USER32.dll_MessageBoxA
cmp eax, 2
jne 0x401df0
mov esi, 0x40bcf0
jmp 0x409098
mov eax, dword [ebp + 8]
leave
ret 8

Function at 0x401df7
Capabilities:
Write file on windows

Disassembly:
push eax
push ebx
push edi
pushfd
mov ebx, dword [0x40e26a]
cmp ebx, 0x200
jae 0x401e47
mov edi, dword [0x40c25a]
mov dword [ebx*4 + 0x40c26a], edi
add ebx, 1
mov dword [0x40e26a], ebx
sub eax, eax
mov ecx, pe_overlay
repne scasb al, byte es:[edi]
mov eax, pe_overlay
sub eax, ecx
test eax, 1
je 0x401e39
add eax, 1
add eax, dword [0x40c25a]
cmp eax, dword [0x40e26e]
jl 0x401e9a
popfd
push 0x37
push str.PASPLUS_RUNTIME_ERROR:_STRING_MEMORY_OVERFLOW_IN_LINE
push dword [0x40c25a]
call sym._Top002B
mov edi, dword [0x40c25a]
sub eax, eax
mov ecx, pe_overlay
repne scasb al, byte es:[edi]
sub edi, 1
push edi
push 0
push 0xa
push dword [0x40bcde]
call fcn.004028ab
push 0x10
push str.ERROR
push dword [0x40c25a]
push 0
call sub.USER32.dll_MessageBoxA
mov esi, 0x40bcf0
jmp 0x409098
mov dword [0x40c25a], eax
popfd
pop edi
pop ebx
pop eax
ret

Function at 0x401fa9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
mov ebx, dword [ebp + 8]
sub edx, edx
call sub.KERNEL32.dll_GetCommandLineA
mov esi, eax
cmp dword [0x40bcea], 0
jne 0x401fca
call fcn.00401f35
cmp ebx, dword [0x40bcea]
jbe 0x401fdd
mov edi, dword [ebp + 0xc]
mov byte [edi], 0
jmp 0x402094
lodsb al, byte [esi]

Function at 0x402566
Capabilities:
Write file on windows

Disassembly:
push esi
push 0
push 0x40bc68
push 2
push 0x40b001

Function at 0x402a3b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov ebx, dword [ebp + 0xc]
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x402a54
lea ebx, [0x40bff8]
mov dword [ebp - 4], ebx
mov eax, 0
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x402a68
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov dword [esi], 0
add esi, 4
mov dword [esi], 0
add byte [ebx + 0x458b04c6], al
invalid
mov dword [esi], eax
Function at 0x404640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.00401df7
mov dword [esi], 0
add esi, 4
push pe_overlay
push dword [ebp + 0xc]
push dword [0x40c25a]
call sym._Top002B
mov cl, 0xdf
invalid
invalid
call fcn.00401df7
mov eax, 0xd
mov dword [esi], eax
mov ebx, dword [0x40c25a]
movzx eax, byte [esi]
mov dword [ebx], eax
call fcn.00401ea4
push pe_overlay
push dword [0x40c25e]
push dword [0x40c25a]
call fcn.0040264d
call fcn.00401df7
mov eax, 0xa
mov dword [esi], eax
mov ebx, dword [0x40c25a]
movzx eax, byte [esi]
mov dword [ebx], eax
call fcn.00401ea4
push pe_overlay
push dword [0x40c25e]
push dword [0x40c25a]
call fcn.0040264d
call fcn.00401df7
call fcn.00404436
push pe_overlay
push eax
push dword [0x40c25a]
call sym._Top002B
call fcn.00401ea4
push pe_overlay
push dword [0x40c25e]
push dword [0x40c25a]
call fcn.0040264d
mov ecx, dword [0x40c25a]
mov dword [esi], ecx
push ecx
add esi, 4
add eax, 0x1000
add dword [0x40c25a], eax
push pe_overlay
inc dword [eax]
add byte [eax - 0x17], ch
mov eax, dword [0x35ff0040]
pop edx
ret 0x40
call sym._Top002B
mov ecx, dword [0x40c25a]
mov dword [esi], ecx
add esi, 4
add eax, 0x1000
add dword [0x40c25a], eax
mov eax, 0
mov dword [esi], eax
mov eax, 0x10
or dword [esi], eax
mov eax, 0x1000
or dword [esi], eax
push dword [esi]
push dword [esi - 4]
push dword [esi - 8]
push dword [esi - 0xc]
call sub.USER32.dll_MessageBoxA
sub esi, 0xc
out dx, al
or al, 0x8f
add eax, 0x40c25a

Function at 0x405040
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push 0x810
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
add byte [eax], al
Function at 0x401000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call sub.ntdll.dll_memset
xor eax, eax
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x1c
stosb byte es:[edi], al
pop eax
mov dword [ebp - 4], 1
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40105c
push 0x8b
push 0x1b
mov edx, 0x405d44
call fcn.0040295d
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4010ea
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
jmp 0x42d450
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x11c]
pop edi
leave
ret

Function at 0x4010f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x207]
push ebx
push eax
mov byte [ebp - 0x208], bl
call sub.ntdll.dll_memset
add esp, 0x18
inc esi
push esi
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp eax, ebx
je 0x401158
mov byte [eax - 1], bl
lea eax, [ebp - 0x104]
push eax
push ebx
jmp loc.0042d6a8

Function at 0x4011f0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x406100
call fcn.00402bf0
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
je 0x4012b1
push str.AP32
call fcn.00402bf0
pop ecx
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4012b1
push esi
push edi
lea esi, [eax + ebx]
call fcn.00402ac3
mov edi, eax
test edi, edi
je 0x4012af
push ebx
push edi
push 0x1657e
push 0x406100
call fcn.00402b70
add esp, 0x10
cmp eax, ebx
jne 0x4012af
test ebx, ebx
je 0x40126c
mov esi, dword [edi + 0x3c]
push 0xffff
mov dword [esi + edi + 0x58], ebx
call fcn.00402b46
push 0xffffffffffffffff
mov word [edi], ax
call fcn.00402b46
mov dword [esi + edi], eax
add edi, ebx
mov ebx, dword [ebp - 4]
push ebx
push edi
push 0xdd84
push str.AP32
call fcn.00402b70
add esp, 0x10
cmp eax, ebx
jne 0x4012af
test edi, edi
je 0x4012af
test ebx, ebx
je 0x4012af
mov esi, dword [edi + 0x3c]
push 0xffff
mov dword [esi + edi + 0x58], ebx
jmp 0x42e0e1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012b4
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call sub.ntdll.dll_memset
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x1c
stosb byte es:[edi], al
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x40130b
push 0x8b
push 0x1b
mov edx, 0x405d44
call fcn.0040295d
mov esi, 0x104
push esi
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4013b5
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401330
push 0x8004
lea ecx, [ebp - 0x14]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00401cce
test eax, eax
je 0x4013b5
xor al, al
lea edi, [ebp - 0x118]
mov ecx, esi
rep stosb byte es:[edi], al
lea eax, [ebp - 0x118]
lea edi, [ebp - 0x14]
call fcn.00401da3
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00402a47
mov ecx, 0x42a570
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
jmp 0x42d1f8
mov eax, ebx
lea esp, [ebp - 0x228]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4013c2
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 eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401454
cmp dword [ebp - 0x154], 6
jb 0x401454
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp loc.0042d518
leave
ret

Function at 0x401456
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x104
push 0x42a408
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.004020b1
call fcn.00401df8
mov dword [0x42a50c], eax
call fcn.0040262c
call fcn.004013c2
call section..text
test eax, eax
jne 0x4014ec
jmp loc.0042c960
cmp dword [0x42a560], esi
je 0x4014fc
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401504
Capabilities:
Check os version

Disassembly:
push 0x1bc
push 0x404628
call fcn.00402fb8
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0xc8], 0x94
push 0x90
push edi
lea eax, [ebp - 0xc4]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4017b4
jmp loc.0042c258
or dword [ebp - 4], 0xffffffff
call fcn.004017cc
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0x1d8]
call fcn.00402ff1
ret
Function at 0x401cce
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 0x401d9a
cmp dword [ebp + 0xc], esi
je 0x401d9a
cmp dword [ebp + 0x10], esi
je 0x401d9a
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 0x401d7d
cmp dword [ebp - 8], esi
je 0x401d7d
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 0x401d7d
cmp dword [ebp - 4], esi
je 0x401d8b
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 0x401d7d
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 0x401d7d
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x401d7d
inc ebx
jmp loc.0042c0c8
cmp dword [ebp - 8], esi
je 0x401d9a
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 0x401eb6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x103
push esi
lea eax, [ebp - 0x20f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x210], bl
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.ntdll.dll_memset
add esp, 0x18
cmp dword [ebp + 8], ebx
je 0x401fe8
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x210]
push eax
push 0x42a570
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x34
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x401f38
push 0x87
push 0x31
mov edx, 0x405210
call fcn.0040295d
lea ecx, [ebp - 4]
push ecx
push 0x20206
push ebx
push eax
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 2
jne 0x401f62
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x401fda
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x401f85
push 0x86
push 0x2d
mov edx, 0x4051e0
call fcn.0040295d
lea ecx, [ebp - 0x210]
push ecx
push eax
lea eax, [ebp - 0x10c]
push edi
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea eax, [ebp - 0x10c]
add esp, 0x10
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401fa7
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401fda
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
jmp 0x42d838
cmp dword [ebp - 4], ebx
je 0x401fe8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x21c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402164
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x3c
xor edi, edi
pop eax
mov dword [ebp - 4], edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x402190
push 0x96
push 0x3b
mov edx, 0x405a30
call fcn.0040295d
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4021af
cmp dword [ebp - 4], edi
jne 0x4021b9
cmp eax, 2
je 0x4021b9
jmp 0x42c7d0
push 4
pop eax
push 0x18
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
pop eax
mov dword [ebp - 8], edi
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, edi
je 0x4021e6
push 0x8a
push 0x15
mov eax, esi
mov edx, 0x405a6c
call fcn.0040295d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402219
cmp dword [ebp - 8], edi
je 0x402219
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp dword [ebp - 4], edi
je 0x402227
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x18]
pop edi
pop esi
leave
ret

Function at 0x4022a9
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 0x40232e
push 0x80000000
push dword [ebp + 8]
call fcn.00402250
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x40232e
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 0x402322
call fcn.00402ac3
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, ebx
je 0x402322
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 0x402322
mov esi, edi
call fcn.00402b12
mov dword [ebp - 4], ebx
push dword [ebp + 8]
jmp loc.0042c578
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x402337
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x4023c0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x24c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402621
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
test eax, eax
je 0x402420
push 0x99
push 4
mov edx, 0x405434
call fcn.0040295d
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x402441
push 0x87
push 0x1b
mov eax, edi
mov edx, 0x4051b0
call fcn.0040295d
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x402462
push 0x86
push 0x13
mov eax, ebx
mov edx, 0x4051cc
call fcn.0040295d
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x402484
push 0x89
push 4
mov edx, 0x4057dc
call fcn.0040295d
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4024a3
push 0x8f
push 6
mov edx, 0x4058e0
call fcn.0040295d
lea ecx, [ebp - 0x24c]
push ecx
push eax
lea eax, [ebp - 0x454]
push esi
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea ecx, [ebp - 0x148]
add esp, 0x10
mov eax, edi
sub ecx, edi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x4024c6
push 0xa
call fcn.00402b46
add eax, 0xa
push eax
call fcn.00402a1d
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024e2
lea edi, [ebp - 0x148]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4024f2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40250e
lea edi, [ebp - 0x148]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402520
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004026a9
mov ebx, eax
test ebx, ebx
je 0x402621
mov eax, dword [ebp - 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40254a
sub eax, edx
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402556
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x148]
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402577
sub eax, ecx
lea ecx, [ebp - 0x148]
push ecx
push ebx
call fcn.00402340
test eax, eax
je 0x40261a
lea edx, [ebp - 0x350]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40259f
mov ecx, dword [ebp - 4]
xor eax, eax
jmp 0x42c4b0
mov esi, ebx
call fcn.00402b12
lea esp, [ebp - 0x460]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40262c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edi
mov edi, 0x42a408
push edi
xor ebx, ebx
call esi
test eax, eax
je 0x40269c
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40266b
push 0x91
jmp loc.0042c190
push edi
push eax
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x40269c
lea edi, [ebp - 0x104]
call fcn.0040239f
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4026a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
push 3
xor edi, edi
call fcn.00402b46
add eax, 3
push eax
call fcn.00402a1d
mov ebx, eax
cmp ebx, edi
je 0x402716
push esi
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call fcn.00402929
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40270e
mov esi, 0x104
call fcn.00402ac3
mov edi, eax
test edi, edi
je 0x40270e
push edi
push 0xffffffffffffffff
call fcn.00402b46
push eax
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
jmp loc.0042d068
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x4027a8
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 0x40288c
push edi
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40288c
push 4
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, ebx
je 0x4027f4
push 0x93
push 2
mov eax, esi
mov edx, 0x405a1c
call fcn.0040295d
push 0xffffffffffffffff
call fcn.00402b46
push eax
push esi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea eax, [ebp - 0x104]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40281b
sub eax, edx
cmp eax, 6
jb 0x4027f4
cmp byte [ebp - 0x104], bl
je 0x402855
lea ecx, [ebp - 0x104]
movsx eax, byte [ecx]
lea edx, [eax - 0x30]
and edx, 0x80000001
jns 0x40284a
dec edx
or edx, 0xfffffffe
inc edx
je 0x402850
add al, 0x31
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x402837
lea eax, [ebp - 0x104]
push eax
jmp 0x42cc80
mov eax, esi
lea esp, [ebp - 0x10c]
pop esi
pop ebx
leave
ret

Function at 0x402898
Capabilities:
Access pe header
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
xor edi, edi
and dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x402922
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004022a9
mov esi, eax
test esi, esi
je 0x402904
jmp loc.0042e0d0
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test esi, esi
je 0x402921
call fcn.00402b12
pop esi
mov eax, edi
pop edi
leave
ret 4
Function at 0x40295d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40297e
mov esi, edx
mov ecx, eax
sub esi, eax
mov edx, edi
mov bl, byte [esi + ecx]
xor bl, byte [ebp + 0xc]
mov byte [ecx], bl
inc ecx
dec edx
jne 0x402972
xor edx, edx
mov byte [edi + eax], dl
cmp edi, edx
jbe 0x402a16
lea ebx, [edx + eax]
mov cl, byte [ebx]
cmp cl, 0x5c
jne 0x4029b8
lea edi, [edx + eax + 1]
cmp byte [edi], cl
je 0x402a01
cmp cl, cl
jne 0x4029b8
lea edi, [edx + eax + 1]
cmp byte [edi], 0x72
jne 0x4029b8
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
mov byte [ebx], 0xd
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0x5c
jne 0x402a0c
lea edi, [edx + eax + 1]
cmp byte [edi], 0x6e
jne 0x4029d4
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
mov byte [ebx], 0xa
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0x5c
jne 0x402a0c
jmp 0x42c640
mov ecx, dword [ebp + 8]
sub ecx, edx
lea esi, [edx + eax + 2]
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, dword [ebp + 8]
jb 0x40298b
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x402b70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
test esi, esi
je 0x402be7
test edi, edi
je 0x402be7
cmp ecx, 0x18
jb 0x402be7
mov ebx, dword [esi]
cmp ebx, 0x32335041
jne 0x402be7
mov ebx, dword [esi + 4]
cmp ebx, 0x18
jb 0x402be7
sub ecx, ebx
jb 0x402be7
cmp dword [esi + 8], ecx
ja 0x402be7
add ebx, esi
push dword [esi + 8]
push ebx
call fcn.00402ed4
jmp loc.0042db58
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x402bf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ebx, dword [esi]
or eax, 0xffffffff
cmp ebx, 0x32335041
jne 0x402c0d
jmp loc.0042d770
mov dword [esp + 0x1c], eax
popal
ret