joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403620
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 1
jle 0x403717
push str.sysrun
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
push edx
call fcn.00408026
add esp, 8
test eax, eax
jne 0x403717
push str.GlobalNamLoaderMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403717
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4036be
cmp dword [ebp + 8], 2
jle 0x4036af
push str.sschanged
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
push edx
call fcn.00408026
add esp, 8
test eax, eax
jne 0x4036af
push 1
push 0x438d64
call fcn.00403570
add esp, 8
push 0x438d90
call fcn.004021b0
add esp, 4
jmp 0x403717
push 0x438dac
call fcn.004021b0
add esp, 4
call fcn.00404a90
mov ecx, eax
call fcn.00404b50
mov eax, 1
test eax, eax
je 0x403706
push 0xffffffffffffffff
call fcn.00404a90
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403704
call fcn.00404a90
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403706
jmp 0x4036d7
push str._Loader_:Loader
call fcn.004021b0
add esp, 4
xor eax, eax
jmp 0x40371a
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x4046f0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x43e25c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40473c
xor eax, eax
jmp 0x4047d2
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4047c3
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00408026
add esp, 8
test eax, eax
jne 0x4047be
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x238], eax
push 0
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4047d2
jmp 0x40473c
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406523
mov esp, ebp
pop ebp
ret

Function at 0x405140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43e25c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x1c], 0x20219
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4051de
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4051d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406523
mov esp, ebp
pop ebp
ret 8
Function at 0x405730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431063
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43e25c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a40
push 8
call fcn.00407fd7
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0
je 0x40579a
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.00405a20
mov dword [ebp - 0x20], eax
jmp 0x4057a1
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004010e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.004011a0
push eax
push 0x405a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4057f2
lea ecx, [ebp - 0x14]
call fcn.00405980
jmp 0x405809
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x43ce40
lea edx, [ebp - 0x28]
push edx
call fcn.00408aeb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405950
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406523
mov esp, ebp
pop ebp
ret
Function at 0x41bdb7
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43e25c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040a2fe
mov dword [ebp - 0x14], eax
cmp dword [0x4415ac], edi
jne 0x41bea8
push 0x800
push edi
push 0x4349cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41be35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41bf88
push 0x4349cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41bf88
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41bf88
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4415ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4415b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4415b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4415bc], eax
test eax, eax
je 0x41bea5
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4415b8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41becd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41bec0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41bee2
push 4
pop eax
jmp 0x41bf8a
cmp dword [ebp - 0x14], edi
je 0x41bee2
push dword [0x4415ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41bec7
mov eax, dword [0x4415b8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41bf40
cmp dword [0x4415bc], esi
je 0x41bf40
push eax
call ebx
push dword [0x4415bc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41bf40
test eax, eax
je 0x41bf40
call ecx
test eax, eax
je 0x41bf35
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41bf35
test byte [ebp - 8], 1
jne 0x41bf40
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41bf70
mov eax, dword [0x4415b0]
cmp eax, esi
je 0x41bf6d
push eax
call ebx
test eax, eax
je 0x41bf6d
call eax
mov edi, eax
test edi, edi
je 0x41bf6d
mov eax, dword [0x4415b4]
cmp eax, esi
je 0x41bf6d
push eax
call ebx
test eax, eax
je 0x41bf6d
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4415ac]
call ebx
test eax, eax
je 0x41bf88
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41bf8a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406523
leave
ret
Function at 0x6001fec8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x6003bdd6
call fcn.6003b2fb
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
call dword [0x6004096c]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x428], ebx
jne 0x6001ff37
call fcn.6001d2bd
mov esi, eax
jmp 0x60020039
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x6001ff5a
call fcn.6001d2bd
jmp 0x6002002b
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x420], eax
je 0x6001ff50
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x41c], edi
jae 0x6001ffb6
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x6001ff9c
lea ecx, [ebp - 0x418]
call fcn.6001da88
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.6001d9a3
mov eax, esi
call fcn.6003b354
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.60020ef9
mov dword [ebp - 4], 1
jmp 0x6001ffdd
mov ebx, dword [ebp - 0x418]
cmp ebx, esi
jne 0x6001ffee
mov esi, 0x8007000e
jmp 0x6002002d
call dword [0x6004096c]
push edi
push ebx
push edi
push dword [ebp - 0x420]
push esi
push eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x6001ff50
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.60020ef9
mov esi, eax
push dword [ebp - 0x428]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x6001ffa1
lea ecx, [ebp - 0x418]
call fcn.6001da88
jmp 0x6001ffa1
Function at 0x60020b7a
Capabilities:
Get session user name

Disassembly:
push 0x40c
mov eax, 0x6003beba
call fcn.6003b2c5
mov edi, ecx
xor ebx, ebx
xor esi, esi
call fcn.60020ef9
test eax, eax
jne 0x60020ba9
mov ecx, edi
call fcn.60020795
mov esi, eax
cmp esi, ebx
jne 0x60020d12
mov ecx, edi
call fcn.60020ef9
test eax, eax
je 0x60020d12
push dword [ebp + 8]
mov ecx, edi
call fcn.60020ef9
test eax, eax
je 0x60020bd3
mov dword [edi + 0x40], ebx
mov eax, 0x80004005
jmp 0x60020d14
mov esi, 0x200
push esi
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x410]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x60001ccc
mov esi, 0xff
push esi
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x414], esi
call fcn.60020ef9
cmp eax, ebx
jl 0x60020d14
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 6
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x60020ca5
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x60020c44
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0x412], bx
lea eax, [ebp - 0x40e]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.60020ef9
mov esi, eax
cmp esi, ebx
jne 0x60020d12
push 0x60001cc8
push dword [ebp - 0x414]
lea eax, [ebp - 0x210]
push eax
call fcn.60020ef9
mov esi, eax
cmp esi, ebx
jne 0x60020d12
mov eax, dword [ebp - 0x414]
mov word [ebp + eax*2 - 0x210], bx
jmp 0x60020cae
mov ecx, edi
call fcn.6001d2bd
mov esi, eax
cmp esi, ebx
jne 0x60020d12
lea ebx, [edi + 0x58]
push ebx
push 0x6001c104
push 0x21
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call sub.ACTIVEDS.dll_ADsOpenObject
mov esi, eax
test esi, esi
jl 0x60020d12
push dword [edi + 0x48]
lea ecx, [ebp - 0x418]
call fcn.60020ef9
mov eax, dword [ebx]
mov ecx, dword [eax]
and dword [ebp - 4], 0
add edi, 0x60
push edi
push dword [ebp - 0x418]
push eax
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
jge 0x60020d06
push edi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor esi, esi
push dword [ebp - 0x418]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
call fcn.6003b348
ret 4

Function at 0x60020ef9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x60020f08
pop dword [ebp - 0x3c]
mov eax, 0xbbeb932a
sub eax, 0x5be98422
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3b613
push 0
mov eax, 0xd6eb8bae
add eax, 0x891485e2
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xfa05d9eb
add ecx, 0x5fa64b4
xor edi, edi
add edi, eax
mov ebx, 0x6007ca00
add ebx, dword [ebp - 0x3c]
mov esi, 0xe0d65b6e
sub dword [ebp - 0x20], esi
mov edx, dword [ebx]
xor dword [ebp - 0x14], esi
add edx, esi
sub dword [ebp - 0xc], 0xe23a61a0
mov dword [edi], edx
sub dword [ebp - 0x30], edi
add edi, 0x56799fd5
sub edi, 0x56799fd1
add ebx, 0xfcdf1d83
add ebx, 0x320e281
loop 0x60020f5d
add eax, 0x3b3ae116
sub eax, 0x3b39f3c7
mov ebx, eax
add eax, 0x86ca822c
sub eax, 0x86ca8227
mov ecx, 0x60000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x60021397
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
push 0x60001d88
call dword [sym.imp.kernel32.dll_lstrlenW]
mov edi, eax
add edi, 0x105
lea eax, [edi + edi]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
test ebx, ebx
pop ecx
je 0x600213ec
push esi
mov esi, dword [sym.imp.shell32.dll_SHGetSpecialFolderPathW]
push 1
push 0x1c
push ebx
push 0
call esi
test eax, eax
jne 0x600213dd
push 1
push 0x1a
push ebx
push eax
call esi
test eax, eax
je 0x600213eb
push 0x60001d88
push edi
push ebx
call fcn.60020ef9
mov eax, ebx
pop esi
pop edi
pop ebx
ret
Function at 0x600283ad
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x600283ce
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x600283ce
cmp edx, eax
jb 0x600283ce
add eax, 0x10000
cmp eax, ecx
jae 0x600283f9
mov eax, dword [0x60040980]
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.60020ef9
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.kernel32.dll_RaiseException]
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0xb41d44
call fcn.0040121c
mov edi, 0x94
mov eax, edi
call fcn.004011dc
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0xb41d44], ecx
mov eax, dword [esi + 4]
mov dword [0xb41d48], eax
mov edx, dword [esi + 8]
mov dword [0xb41d4c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0xb41d50], esi
cmp ecx, 2
je 0x401060
or esi, 0x8000
mov dword [0xb41d54], esi
shl eax, 8
add eax, edx
mov dword [0xb41d44], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40109b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40109b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010b3
cmp eax, 0x20b
je 0x4010a0
mov dword [ebp - 0x1c], esi
jmp 0x4010c7
cmp dword [ecx + 0x84], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401224
pop ecx
test eax, eax
jne 0x4010f3
cmp dword [0xb41d44], 1
jne 0x4010e0
call fcn.00401224
push 0x1c
call fcn.00401224
push 0xff
call fcn.00401224
pop ecx
pop ecx
call fcn.00401224
mov dword [ebp - 4], esi
call fcn.00401224
test eax, eax
jge 0x40110c
push 0x1b
call fcn.00401224
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xb41d44], eax
call fcn.00401224
mov dword [0xb41d48], eax
call fcn.00401224
test eax, eax
jge 0x401132
push 8
call fcn.00401224
pop ecx
call fcn.00401224
test eax, eax
jge 0x401143
push 9
call fcn.00401224
pop ecx
push 1
call fcn.00401224
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401159
push eax
call fcn.00401224
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401224
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40117a
movzx eax, word [ebp - 0x40]
jmp 0x40117d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401228
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40119b
push edi
call fcn.00401220
call fcn.00401224
jmp 0x4011cd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401224
ret

Function at 0x401228
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x359000
push section..rdata
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401252
push 0x7e93a0
jmp 0x40125e
pop ebx
pop edi
pop esi
leave
ret 0x14
ret
Function at 0x433005
Capabilities:
Encode data using xor

Disassembly:
pushal
mov eax, section..pdata
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3bd912b1
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x55f44f16
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.004066d0
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004066d0
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4066d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x4066df
pop dword [ebp - 0x30]
mov eax, 0x332eaf63
add eax, 0xcd11b77c
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x38bb6
push 0
mov eax, 0x6a7cae29
sub eax, 0x6a392df9
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x51acfe9c
sub ecx, 0x51acbe50
mov edx, eax
mov ebx, 0x15f382fb
add ebx, 0xea514305
add ebx, dword [ebp - 0x30]
mov edi, 0xae7fb245
add dword [ebp - 0x1c], 0xb83779ee
mov esi, dword [ebx]
add dword [ebp - 0x28], edi
xor esi, edi
add dword [ebp - 0x2c], 0xc291f950
mov dword [edx], esi
xor dword [ebp - 0x10], ebx
add edx, 4
add ebx, 0xf061f2de
sub ebx, 0xf061f2da
loop 0x406738
add eax, 0xf403
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xf3113b51
sub ecx, 0xf2d13b51
add ecx, dword [ebp - 0x30]
call ebx
leave
ret