joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401750
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x4018d3
test eax, eax
je 0x4018d3
lea eax, [ebp - 0x210]
push eax
push 0
push str.SecureUxTheme
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4017bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempFileNameW_failed:__08X
jmp 0x4018df
push 0x100
push 0x71
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0x400000
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x40180d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.utl::get_resource_failed:__08X
jmp 0x4018df
push str..txt
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040be40
add esp, 0xc
lea eax, [ebp - 0x210]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 7
push 2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401882
push esi
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], esi
push eax
push ebx
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401871
cmp dword [ebp - 0x41c], ebx
je 0x401879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40188a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x401896
push esi
push str.utl::write_file_failed:__08X
jmp 0x4018df
push 1
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push str.edit
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4018c0
push eax
lfence
push str.ShellExecuteW_failed:__08X
jmp 0x4018df
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempPathW_failed:__08X
push 0x10
push str.Error
push 0
call fcn.00401500
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004066bd
mov esp, ebp
pop ebp
ret
Function at 0x4023a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417f8d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x34], edi
mov esi, ecx
mov dword [ebp - 0x30], esi
push 0
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x40241e
test eax, eax
je 0x40241e
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40252d
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [edi + 1]
mov dword [ebp - 4], eax
test edx, edx
jne 0x402446
mov dword [ebp - 0x1c], edx
mov word [ebp + edx*2 - 0x2c], ax
jmp 0x40247c
cmp edx, 7
ja 0x402467
xor eax, eax
mov dword [ebp - 0x1c], edx
mov ecx, edx
lea edi, [ebp - 0x2c]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + edx*2 - 0x2c], ax
jmp 0x40247c
push ecx
lfence
push edx
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x30]
push edx
call fcn.00401a50
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0x1c]
mov edi, eax
mov dword [ebp - 0x34], ecx
cmp edi, ecx
ja 0x4024b6
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmovae ecx, dword [ebp - 0x2c]
xor eax, eax
mov word [ecx + edi*2], ax
jmp 0x40250e
mov eax, dword [ebp - 0x18]
mov edx, edi
sub edx, ecx
sub eax, ecx
cmp edx, eax
ja 0x4024f9
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
lea edi, [eax + ecx*2]
test edx, edx
je 0x4024eb
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x40250e
push ecx
lfence
push edx
mov byte [ebp - 0x34], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x34]
push edx
call fcn.00401a50
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x402720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418020
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x254
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_
mov dword [ebp - 0x250], 0
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402787
sub edx, ecx
lea ecx, [ebp - 0x260]
sar edx, 1
push edx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_
call fcn.00405170
mov ecx, esi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027b3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.00404eb0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x244], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x234], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x402839
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40282f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40295a
push edx
push ecx
call fcn.004068ce
add esp, 8
cmp dword [ebp - 0x230], 8
lea ecx, [ebp - 0x228]
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push ecx
push 0
push 0x20000010
push str.GlobalFlag
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x228], 4
call esi
cmp dword [ebp - 0x230], 8
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x22c], 0x202
push ecx
push 0
push 0x20000002
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push str.VerifierDlls
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test dword [ebp - 0x224], 0x100
je 0x4028f4
lea eax, [ebp - 0x220]
push str.SecureUxTheme.dll
push eax
call fcn.0040bf0d
add esp, 8
mov byte [ebp - 0x245], 1
test eax, eax
je 0x4028fb
mov byte [ebp - 0x245], 0
mov edx, dword [ebp - 0x230]
cmp edx, 8
jb 0x402937
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40292d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40295f
push edx
push ecx
call fcn.004068ce
add esp, 8
mov al, byte [ebp - 0x245]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040a6c0
call fcn.0040a6c0
int3
Function at 0x402970
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41805d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3c
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4029d0
sub edx, ecx
lea ecx, [ebp - 0x4c]
sar edx, 1
push edx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_
call fcn.00405170
mov ecx, esi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a00
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00404eb0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x402a77
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402a6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b5d
push edx
push ecx
call fcn.004068ce
add esp, 8
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push 0
push 0x20000010
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 4
cmovae eax, dword [ebp - 0x30]
push str.GlobalFlag
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
or dword [ebp - 0x18], 0x100
lea ecx, [ebp - 0x18]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 4
cmovae eax, dword [ebp - 0x30]
push ecx
push 4
push str.GlobalFlag
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov esi, eax
test esi, esi
jne 0x402b08
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0x24
cmovae eax, dword [ebp - 0x30]
push str.SecureUxTheme.dll
push 1
push str.VerifierDlls
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov esi, eax
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x402b3e
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402b34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b62
push edx
push ecx
call fcn.004068ce
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040a6c0
call fcn.0040a6c0
int3
Function at 0x405330
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], edx
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x405380
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40545d
movzx eax, ax
or eax, 0x80070000
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push 2
push eax
push 0xfffffffffffffff0
push esi
mov dword [ebp - 0x10], 0xfffffff0
mov dword [ebp - 0xc], 0xffffffff
call edi
cmp eax, 0xffffffff
je 0x40535a
push 0
lea eax, [ebp - 8]
push eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40535a
cmp dword [ebp - 8], 0x10
jne 0x405458
cmp dword [ebp - 0x28], 0x84692426
jne 0x405458
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jne 0x405458
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jne 0x405458
mov ecx, 0xfffffff0
mov eax, 0xffffffff
sub ecx, dword [ebp - 0x24]
push 2
sbb eax, 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ecx
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x405417
call edi
test eax, eax
jne 0x405362
push 0
lea eax, [ebp - 8]
push eax
push 0x80
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405437
call edi
jmp 0x405360
xor eax, eax
mov ecx, 0x80004005
cmp dword [ebp - 8], 0x80
cmovne eax, ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004066bd
mov esp, ebp
pop ebp
ret
Function at 0x405530
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
xor dl, dl
push edi
mov dword [ebp - 0x8c], eax
call fcn.00405470
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xb4], eax
cmp ebx, 0xffffffff
jne 0x405580
call edi
mov esi, eax
test esi, esi
jle 0x405598
movzx esi, si
or esi, 0x80070000
jmp 0x405596
lea edx, [ebp - 0x88]
mov ecx, ebx
call fcn.00405330
push ebx
mov esi, eax
call dword [ebp - 0xb4]
test esi, esi
js 0x4055ad
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
ret
lfence
mov ecx, dword [ebp - 0x8c]
mov dl, 1
call fcn.00405470
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4055e7
call edi
test eax, eax
jle 0x4056bf
movzx eax, ax
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x94]
push eax
push ebx
lfence
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x98], eax
cmp eax, 0xffffffff
jne 0x40560f
call edi
mov esi, eax
test esi, esi
jne 0x4056ab
push 2
lea eax, [ebp - 0xac]
xorps xmm0, xmm0
push eax
push 0
lfence
push ebx
movlpd qword [ebp - 0xb0], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40563c
call edi
mov esi, eax
test esi, esi
jne 0x4056ab
lfence
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x94]
add ecx, 0x10
push 0
adc eax, 0
mov dword [ebp - 0xa8], 0x84692426
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x8c]
push eax
push 0x10
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa4], 0x80
push eax
push ebx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4056a5
cmp dword [ebp - 0x8c], 0x10
jne 0x4056a5
xor esi, esi
jmp 0x4056b6
call edi
mov esi, eax
test esi, esi
jle 0x4056b6
movzx esi, si
or esi, 0x80070000
push ebx
call dword [ebp - 0xb4]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004066bd
mov esp, ebp
pop ebp
ret
Function at 0x4056d0
Capabilities:
Extract resource via kernel32 functions
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418391
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x425660]
cmp eax, dword [ecx + 4]
jle 0x4057d6
push 0x425660
call fcn.00406cb3
add esp, 4
cmp dword [0x425660], 0xffffffff
jne 0x4057d6
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test esi, esi
je 0x40577d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x40577d
movzx eax, word [ebp - 0x14]
jmp 0x4057c3
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x3c]
cmp eax, 0xc
ja case.0x405797.1
movzx eax, byte [eax + 0x40587c]
jmp dword [eax*4 + 0x405864]
mov eax, 0x8664
jmp 0x4057c3
mov eax, 0x1c0
jmp 0x4057c3
mov eax, 0xaa64
jmp 0x4057c3
mov eax, 0x200
jmp 0x4057c3
mov eax, 0x14c
jmp 0x4057c3
xor eax, eax
push 0x425660
mov word [0x425664], ax
call fcn.00406c69
add esp, 4
movzx eax, word [0x425664]
cmp eax, 0x14c
je 0x405806
cmp eax, 0x8664
je 0x4057ff
cmp eax, 0xaa64
jne 0x4057f9
mov eax, 0x70
jmp 0x40580b
xor eax, eax
xor esi, esi
jmp 0x405841
mov eax, 0x6f
jmp 0x40580b
mov eax, 0x6e
push 0x100
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0x400000
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx], eax
mov eax, ebx
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4189ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00408ee5
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418a01
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00418a20
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x433bce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x433be6
call fcn.00408ee5
mov esi, dword [eax + 0xc]
push 0x546d70
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x433c3c
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x433c3b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x433c1c
xor esi, esi
jmp 0x433c32
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00433c42
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4be2f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor dh, al
test dword [edx + 0x21fffffc], ebx
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
invalid
invalid
cmpsd dword [esi], dword es:[edi]
cld
invalid
invalid
Function at 0x416790
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d9770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0x104
push eax
call fcn.0045e4b4
push 0x47ad10
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004532c3
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x47ad28
push 0xaa
push str.ENVIRONMENT
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47ad40
push 0xae
push str.CANDIDATE
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47ad5c
push 0xa1
push str.ERRORURL
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47ad78
push 0x8d
push 0x47ad94
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47ada0
push 0xad
push str.INSTITUTION
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47adbc
push 0x85
push str.INTERVAL
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47add8
push 0xaf
push str.LANGUAGE
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47adf4
push 0x8b
push str.LOGPATH
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push str.message.bin
push 0x9e
push str.MESSAGE
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47ae34
push 0x88
push str.OPTIONS
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47ae4c
push 0xab
push str.PROGRAM
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47ae64
push 0x67
push 0x47ae78
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47ae80
push 0x8e
push 0x47ae98
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47aea0
push 0x6f
push 0x47aeb8
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47aec0
push 0x96
push 0x47aedc
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47aee8
push 0x94
push str.UPDATEURL
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47af04
push 0x75
push 0x4793a4
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47af14
push 0xa8
push str.KILLLIST
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47af3c
push 0x7c
push 0x4793bc
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push str.ecminver.bin
push 0xa5
push str.ECMINVERSION
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00416570
push 0x47af70
push 0xbc
push str.KILLONQUITLIST
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00416570
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044d06d
mov esp, ebp
pop ebp
ret 4