joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a8bcfd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.2a8cb5a0
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x2a8bd05a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x2a8bd05e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3c8]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.2a894ac0
push eax
call fcn.2a8cdea0
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x2a8bd067
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x2a8bd012
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x2a8bd0e4
mov eax, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr eax, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x10]
lea edi, [edi - 1]
mov edx, esi
mov ecx, ebp
sub edx, ebp
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc ebp
movzx ecx, byte [esp + 0x2c]
or dl, al
movzx eax, byte [edi + 1]
dec dl
movzx edx, dl
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
cmp ebp, dword [esp + 0x14]
jb 0x2a8bd0a5
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov eax, ecx
pop ebx
mov dword [edi + 8], esi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret

Function at 0x2a8ca80f
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x2a987d7c
call fcn.2a84a73f
mov edi, ecx
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x10
mov dword [ebp - 0x54], esi
call fcn.2a852803
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x2a8ca854
push 0x10
push ebx
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x2a8ca856
mov esi, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [edi + 0x24], esi
call fcn.2a8c9bfd
push dword [edi + 0x24]
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
call fcn.2a84aa52
ret
Function at 0x2a8e9c90
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.2a852803
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x2a8e9d35
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 1
push 2
call fcn.2a8d0840
push 0x2a9916a4
push esi
push 0x2a9b39b8
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.2a8cff50
add esp, 0x2c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x2a8e9d12
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x2a8e9d12
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x2a8e9d1c
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.2a8d0840
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x2a9b3960
call fcn.2a8ce250
mov esi, eax
add esp, 4
test esi, esi
jne 0x2a8e9d57
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.2a8cdbf0
push edi
push ebx
push 0x6a
push esi
call fcn.2a8cdc20
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x401614
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x40162a
mov esi, 0x100000
jmp 0x401636
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.KERNEL32.DLL_WaitForSingleObject
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x401673
mov edx, ebx
mov eax, 0x4b15ec
call fcn.004014c8
test al, al
jne 0x401673
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WinExec
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x401678
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.KERNEL32.DLL_WaitForSingleObject
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x4016c2
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x4016ea
mov edx, ebx
mov eax, 0x4b15ec
call fcn.004014c8
test al, al
jne 0x4016ea
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WinExec
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4016f0
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], 0xffffffff
xor edx, edx
mov dword [esp + 0xc], edx
mov ebp, eax
mov eax, dword [esp]
add eax, ebp
mov dword [esp + 0x10], eax
mov ebx, dword [0x4b15ec]
jmp 0x401770
mov edi, dword [ebx]
mov esi, dword [ebx + 8]
cmp ebp, esi
ja 0x40176e
mov eax, esi
add eax, dword [ebx + 0xc]
cmp eax, dword [esp + 0x10]
ja 0x40176e
cmp esi, dword [esp + 8]
jae 0x40173d
mov dword [esp + 8], esi
mov eax, esi
add eax, dword [ebx + 0xc]
cmp eax, dword [esp + 0xc]
jbe 0x40174c
mov dword [esp + 0xc], eax
push 0x8000
push 0
push esi
call sub.KERNEL32.DLL_WinExec
test eax, eax
jne 0x401767
mov dword [0x4b15c8], 1
mov eax, ebx
call fcn.004014f8
mov ebx, edi
cmp ebx, 0x4b15ec
jne 0x40171f
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
cmp dword [esp + 0xc], 0
je 0x4017a0
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], edx
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40183c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov esi, ebx
add esi, 0xfff
and esi, 0xfffff000
mov dword [esp], esi
mov ebp, ebx
add ebp, edx
and ebp, 0xfffff000
mov eax, dword [esp]
mov dword [ecx], eax
mov eax, ebp
sub eax, dword [esp]
mov dword [ecx + 4], eax
mov esi, dword [0x4b15ec]
jmp 0x4018ab
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebx, dword [esp]
jae 0x401883
mov ebx, dword [esp]
cmp ebp, edi
jae 0x401889
mov edi, ebp
cmp edi, ebx
jbe 0x4018a9
push 0x4000
sub edi, ebx
push edi
push ebx
call sub.KERNEL32.DLL_WinExec
test eax, eax
jne 0x4018a9
mov dword [0x4b15c8], 2
mov esi, dword [esi]
cmp esi, 0x4b15ec
jne 0x401873
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401bc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4b15c4], 0
je 0x401c9d
xor edx, edx
push ebp
push 0x401c96
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x4b104d], 0
je 0x401bf2
push 0x4b15cc
call sub.KERNEL32.DLL_WriteProcessMemory
mov byte [0x4b15c4], 0
mov eax, dword [0x4b1624]
push eax
call sub.KERNEL32.DLL_VirtualQuery
xor eax, eax
mov dword [0x4b1624], eax
mov ebx, dword [0x4b15ec]
jmp 0x401c25
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_WinExec
mov ebx, dword [ebx]
cmp ebx, 0x4b15ec
jne 0x401c13
mov eax, 0x4b15ec
call fcn.004014c0
mov eax, 0x4b15fc
call fcn.004014c0
mov eax, 0x4b1628
call fcn.004014c0
mov eax, dword [0x4b15e4]
test eax, eax
je 0x401c6b
mov edx, dword [eax]
mov dword [0x4b15e4], edx
push eax
call sub.KERNEL32.DLL_VirtualQuery
mov eax, dword [0x4b15e4]
test eax, eax
jne 0x401c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401c9d
cmp byte [0x4b104d], 0
je 0x401c8b
push 0x4b15cc
call sub.KERNEL32.DLL_lstrcpyA
push 0x4b15cc
call sub.KERNEL32.DLL_lstrlenW
ret
pop ebx
pop ebp
ret

Function at 0x402ae4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404150
test esi, esi
jne 0x402b1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_LockResource
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404240
jmp 0x402b38
call sub.KERNEL32.DLL_LoadLibraryA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f8
mov edi, eax
test esi, esi
je 0x402b38
cmp dword [ebx], 0
je 0x402b38
dec esi
jmp 0x402b21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402df4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4ae008], 0x8088405
inc edx
mov dword [ebx + 0x4ae008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x403270
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ae024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403308
push 0x80000002
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4032e8
xor eax, eax
push ebp
push 0x4032e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403324
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
ret
mov ax, word [0x4ae024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ae024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fd4
Capabilities:
Get disk information

Disassembly:
push ecx
cmp byte [0x4b104c], 0
je 0x404035
cmp word [0x4b1220], 0xd7b2
jne 0x403ffd
cmp dword [0x4b1228], 0
jbe 0x403ffd
mov eax, 0x4b121c
call dword [0x4b1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ae070
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GlobalFindAtomA
push eax
call sub.KERNEL32.DLL_GlobalReAlloc
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40405c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GlobalFindAtomA
push eax
call sub.KERNEL32.DLL_GlobalReAlloc
pop edx
ret
cmp byte [0x4ae034], 0
jne 0x404051
push 0
push 0x4ae068
push 0x4ae070
push 0
call sub.KERNEL32.DLL_GetVolumeInformationA
pop edx
ret

Function at 0x405554
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, eax
cmp dword [ebx + 0x10], 0
jne 0x40558f
push 0x105
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_LockResource
mov eax, esp
mov dl, 1
call fcn.00405790
mov esi, eax
mov dword [ebx + 0x10], esi
test esi, esi
jne 0x40558f
mov eax, dword [ebx + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x4055d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x40576c
call sub.KERNEL32.DLL_MulDiv
mov esi, eax
test esi, esi
je 0x405640
push 0x40577c
push esi
call sub.KERNEL32.DLL_MultiByteToWideChar
mov ebx, eax
test ebx, ebx
je 0x405640
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x405640
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
jmp 0x405762
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x405680
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x405762
mov eax, dword [ebp - 4]
add eax, 2
call fcn.004055c4
mov esi, eax
cmp byte [esi], 0
je 0x405762
lea eax, [esi + 1]
call fcn.004055c4
mov esi, eax
cmp byte [esi], 0
je 0x405762
jmp 0x405686
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_ReadFile
jmp 0x405745
lea eax, [esi + 1]
call fcn.004055c4
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x405762
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_ReadFile
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_InitializeCriticalSection
mov esi, eax
cmp esi, 0xffffffff
je 0x405762
push esi
call sub.KERNEL32.DLL_GlobalUnlock
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_ReadProcessMemory
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x405762
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_ReadFile
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_ReadProcessMemory
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x4056a4
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405790
Capabilities:
Extract resource via kernel32 functions
Query or enumerate registry key
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_LockResource
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059c0
push 0x80000001
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405813
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059c0
push 0x80000002
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405813
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059dc
push 0x80000001
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40589c
xor eax, eax
push ebp
push 0x405895
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004055d8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40587a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4059fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40587a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40589c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_ReadFile
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_QueryPerformanceCounter
push eax
call sub.KERNEL32.DLL_LoadResource
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4059b6
cmp byte [ebp - 0xd], 0
jne 0x4058e3
cmp byte [ebp - 0x12], 0
je 0x4059b6
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_ReadProcessMemory
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4058fc
dec ebx
cmp byte [ebx], 0x2e
je 0x40590b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4058fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4059b6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405948
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_QueryPerformanceFrequency
mov esi, eax
test esi, esi
jne 0x4059b6
cmp byte [ebp - 0xd], 0
je 0x4059b6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_QueryPerformanceFrequency
mov esi, eax
test esi, esi
jne 0x4059b6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_QueryPerformanceFrequency
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4060cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406132
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_LoadResource
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004043c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e10
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40611c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406139
lea eax, [ebp - 0x10]
call fcn.00404150
ret

Function at 0x40cd28
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cdfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004041e8
lea eax, [ebp - 8]
call fcn.00404660
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404610
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cde8
mov eax, ebx
call fcn.004027bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cde1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404610
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cdcb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ce10
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cdcb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cde8
mov eax, dword [ebp - 0x10]
call fcn.004027dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce05
lea eax, [ebp - 8]
call fcn.00404150
ret

Function at 0x41f090
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x4b1854]
push eax
call sub.KERNEL32.DLL_CreateRemoteThread
ret

Function at 0x4219e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4219e6
ret
Function at 0x42d8f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42daa1
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404800
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x42dab8
call fcn.0040445c
mov eax, ebx
call fcn.0041f87c
mov edi, eax
dec edi
test edi, edi
jl 0x42d9a8
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041f850
mov edx, dword [0x43952c]
call fcn.0040358c
test al, al
je 0x42d9a4
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041f850
lea edx, [ebp - 0x14]
call fcn.0044389c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404800
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004044d0
inc esi
dec edi
jne 0x42d956
mov al, byte [0x42dabc]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42dac8
mov eax, dword [ebp - 0xc]
call fcn.0040d8e8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.004041e8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0044389c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42dab8
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.0044389c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42dab8
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42dab8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42dad4
call fcn.00409718
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42daa8
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404174
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404174
lea eax, [ebp - 0x14]
call fcn.00404150
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404174
ret