joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
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 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
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 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401d70
Capabilities:
Print debug messages

Disassembly:
push edi
xor edi, edi
cmp dword [0x415150], edi
je 0x401d86
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp dword [0x415148], edi
je 0x401d97
mov eax, 1
pop edi
ret 4
push esi
cmp dword [0x415150], edi
jne 0x401da9
call fcn.00401b60
test eax, eax
je 0x401deb
mov eax, dword [0x41517c]
mov esi, dword [0x414010]
test eax, eax
jne 0x401dd5
push str.ActivateActCtx
push 0x415174
push 0x40f3b8
call fcn.00401030
mov dword [0x41517c], eax
test eax, eax
je 0x401deb
mov ecx, dword [esp + 0xc]
push ecx
push esi
call eax
test eax, eax
je 0x401deb
pop esi
mov eax, 1
pop edi
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7f
je 0x401e00
cmp eax, 0x7e
je 0x401e00
cmp eax, 0x78
jne 0x401e0f
mov eax, 1
pop esi
mov dword [0x415148], eax
pop edi
ret 4
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x402df0
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 8], ecx
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
push esi
push edi
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
lea ebx, [ebp + ebp]
push ebx
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
mov edi, dword [esp + 0x2c]
add esp, 0x10
push edi
push esi
call dword [sym.imp.kernel32.dll_lstrcpyW]
push ebx
push 0
push edi
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
add eax, 0x254
push eax
push ebp
push edi
push esi
push ecx
push str.labels
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x403260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40326f
pop dword [ebp - 0x40]
mov eax, 0x8f8d25e6
add eax, 0x70b30c89
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x37d6b
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x4ce4
xor ebx, ebx
add ebx, eax
mov edx, 0xac4dd387
add edx, 0x53f3c879
add edx, dword [ebp - 0x40]
mov edi, 0xf5ab1615
sub dword [ebp - 0x30], 0x64b31df9
mov esi, dword [edx]
sub dword [ebp - 0x3c], 0xe27f7dab
xor esi, edi
mov dword [ebx], esi
xor dword [ebp - 0x20], ecx
add ebx, 0xab7b17c6
add ebx, 0x5484e83e
add edx, 0x785f3877
sub edx, 0x785f3873
loop 0x4032bf
add eax, 0x12663
xor ebx, ebx
add ebx, eax
add eax, 0xcce045ab
add eax, 0x331fba5a
mov ecx, 0xe1aa44d3
sub ecx, 0xe16a44d3
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x40be70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4205a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x42a00c]
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 esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
lea ebx, [ebp + 8]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
cmovae ebx, ecx
cmp dword [esi], 0xffffffff
lea edi, [eax*2 + 2]
jne 0x40becc
xor bl, bl
jmp 0x40bf5f
lea eax, [edi + 8]
push eax
mov dword [ebp - 0x18], eax
call fcn.0040c9af
mov esi, eax
add esp, 4
test esi, esi
jne 0x40bee5
xor bl, bl
jmp 0x40bf59
mov dword [esi], 0xa11ce
lea eax, [esi + 8]
mov dword [esi + 4], edi
test edi, edi
je 0x40bf25
test eax, eax
je 0x40bf15
push edi
test ebx, ebx
je 0x40bf0a
push ebx
push eax
call fcn.0040f6c0
add esp, 0xc
jmp 0x40bf25
push 0
push eax
call fcn.0040dad0
add esp, 0xc
call fcn.004166b3
mov dword [eax], 0x16
call fcn.004157ec
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call fcn.0040c716
add esp, 4
test edi, edi
setne bl
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x40bf8f
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfaf
push edx
push ecx
call fcn.0040c708
add esp, 8
mov al, bl
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.0040c42d
mov esp, ebp
pop ebp
ret 0x18
call fcn.004157fc
int3
Function at 0x40bfc0
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
mov edi, ecx
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [edi + 0x14], 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0xc
jb 0x40c01c
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 1
push 0xff
push 0
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c080
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x40c080
push 0
push 0
push esi
push 0x40c0a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c080
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.0040bfc0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c42d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0040c42d
mov esp, ebp
pop ebp
ret

Function at 0x40c1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42a00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp dword [eax + 0x18], 0xffffffff
push edi
mov dword [ebp - 0x10], eax
je 0x40c26a
mov edi, dword [ebp + 0xc]
lea eax, [edi + 8]
push eax
mov dword [ebp - 0xc], eax
call fcn.0040c9af
mov esi, eax
add esp, 4
test esi, esi
je 0x40c26a
mov dword [esi], 0xa11ce
lea eax, [esi + 8]
mov dword [esi + 4], edi
test edi, edi
je 0x40c221
test eax, eax
je 0x40c211
push edi
test ebx, ebx
je 0x40c206
push ebx
push eax
call fcn.0040f6c0
add esp, 0xc
jmp 0x40c221
push 0
push eax
call fcn.0040dad0
add esp, 0xc
call fcn.004166b3
mov dword [eax], 0x16
call fcn.004157ec
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], 0
push esi
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x18]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call fcn.0040c716
add esp, 4
test edi, edi
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c42d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c42d
mov esp, ebp
pop ebp
ret 8
Function at 0x401e19
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
mov esi, dword [edx + 0x28]
movzx ecx, word [edx + 0x26]
nop
xor edi, edi
jmp 0x401d88
xor eax, eax
nop
lodsb al, byte [esi]
nop
cmp al, 0x61
nop
jl 0x401dba
jmp 0x401d9e
nop
jmp 0x401dad
sub al, 0x20
jmp 0x401dba
ror edi, 0xd
add edi, eax
dec ecx
nop
jmp 0x401dce
jne 0x401d88
nop
push edx
nop
jmp 0x401de1
push edi
jmp 0x401df0
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
jmp 0x401e03
add eax, edx
mov eax, dword [eax + 0x78]
jmp fcn.00401e19
test eax, eax
jmp 0x401e2b
je 0x40200c
nop
jmp 0x401e3c
add eax, edx
nop
mov ebx, dword [eax + 0x20]
pop eax
and byte [eax - 0x2cfe6fb0], dl
jmp 0x401e57
mov ecx, dword [eax + 0x18]
nop
jmp 0x401e69
test ecx, ecx
jmp 0x401e7a
je 0x401fe8
nop
jmp 0x401e8f
nop
xor edi, edi
nop
jmp 0x401ea3
dec ecx
nop
mov esi, dword [ebx + ecx*4]
jmp 0x401eb9
add esi, edx
jmp 0x401ecc
nop
jmp 0x401ede
xor eax, eax
nop
ror edi, 0xd
lodsb al, byte [esi]
add edi, eax
nop
jmp 0x401ef6
cmp al, ah
jmp 0x401f02
jne 0x401ecc
jmp 0x401f16
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
nop
jmp 0x401f31
jne 0x401e5a
nop
jmp 0x401f48
nop
pop eax
nop
mov ebx, dword [eax + 0x24]
jmp 0x401f5f
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
jmp 0x401f76
add ebx, edx
nop
jmp 0x401f8b
mov eax, dword [ebx + ecx*4]
jmp 0x401f9f
add eax, edx
nop
jmp 0x401fb3
mov dword [esp + 0x24], eax
jmp 0x401fca
pop ebx
nop
pop ebx
popal
pop ecx
nop
pop edx
jmp 0x401fe3
push ecx
nop
jmp eax
nop
jmp 0x401ffd
pop eax
nop
jmp 0x40200c
nop
jmp 0x40201a
pop edi
jmp 0x40202b
pop edx
mov edx, dword [edx]
jmp 0x402042
jmp 0x401d73
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x401404
Capabilities:
Identify system language via api
Read .ini file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x3c]
mov ecx, ebp
call fcn.00404554
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
mov ebx, str.Startup
push str.copy
push ebx
call edi
test eax, eax
setne al
mov ecx, ebp
mov byte [esi + 6], al
call fcn.00404554
push eax
push 1
push str.engine
push ebx
call edi
neg eax
sbb al, al
and byte [esp + 0x10], 0
inc al
lea edi, [esp + 0x11]
mov byte [esi + 5], al
xor eax, eax
mov ecx, ebp
stosw word es:[edi], ax
call fcn.00404554
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea eax, [esp + 0x14]
push 3
push eax
push 0x407460
push str.EnableLangDlg
push ebx
call edi
cmp eax, 1
jne 0x401496
cmp byte [esp + 0x10], 0x79
je 0x401492
cmp byte [esp + 0x10], 0x59
jne 0x401496
mov byte [esi + 8], 1
mov ecx, ebp
call fcn.00404554
push eax
lea eax, [esi + 0x48]
push 0x1f4
push eax
push 0x407460
push str.AppName
push ebx
call edi
mov ecx, ebp
call fcn.00404554
push eax
push 0
mov ebx, str.Languages
push str.count
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
and dword [esp + 0x14], 0
mov dword [esi + 0x244], eax
test eax, eax
jle 0x401542
lea eax, [esi + 0x248]
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push str.key_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, ebp
call fcn.00404554
push eax
lea eax, [esp + 0x20]
push 0xa
push eax
lea eax, [esp + 0x34]
push 0x407460
push eax
push ebx
call edi
lea eax, [esp + 0x1e]
push eax
call fcn.00404a00
inc dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x18]
add dword [esp + 0x18], 2
mov word [ecx], ax
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x244]
jl 0x4014e8
mov ecx, ebp
call fcn.00404554
push eax
lea eax, [esp + 0x20]
push 0xa
push eax
push str.0x0409
push str.Default
push ebx
call edi
lea eax, [esp + 0x1e]
push eax
call fcn.00404a00
mov word [esi + 0x240], ax
mov ax, word [esi + 0x23c]
pop ecx
push eax
mov ecx, esi
call fcn.004015ed
test al, al
jne 0x4015d0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea edi, [esi + 0x312]
push eax
mov ecx, esi
mov word [edi], ax
call fcn.004015ed
test al, al
jne 0x4015e5
mov ax, word [edi]
mov ecx, esi
and eax, 0x3ff
or ah, 4
push eax
mov word [edi], ax
call fcn.004015ed
test al, al
jne 0x4015e5
push edi
mov ecx, esi
call fcn.0040161b
test al, al
jne 0x4015e5
mov ax, word [esi + 0x240]
mov word [edi], ax
jmp 0x4015e5
mov ax, word [esi + 0x23c]
mov byte [esi + 0x23e], 1
mov word [esi + 0x312], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x401b5a
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x401b75
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, byte [esi]
push edi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp al, 0x22
jne 0x401b9d
push esi
call edi
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
je 0x401b91
test al, al
jne 0x401b82
cmp byte [esi], 0x22
jne 0x401bab
push esi
call edi
mov esi, eax
jmp 0x401bab
cmp al, 0x20
jle 0x401bab
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
jg 0x401ba1
mov al, byte [esi]
test al, al
je 0x401bb5
cmp al, 0x20
jle 0x401b96
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
pop edi
je 0x401bd0
movzx eax, word [ebp - 0x14]
jmp 0x401bd3
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401c84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x22a], bl
jne 0x401d8b
mov ax, word [esi + 0x580]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push eax
push 0x6b
push 5
push dword [esi + 0x224]
call edi
cmp eax, ebx
jne 0x401cf5
mov ax, word [esi + 0x580]
and ax, 0x3ff
or ah, 4
push eax
push 0x6b
push 5
push dword [esi + 0x224]
call edi
cmp eax, ebx
jne 0x401cf5
push 5
push 0x6b
push dword [esi + 0x224]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x401d8b
push eax
push dword [esi + 0x224]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x401bec
push ebx
push eax
push dword [esi + 0x224]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov dword [esi + 0x540], eax
lea eax, [ebp - 0xc]
push eax
push 0x9003
mov ecx, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00403f76
test al, al
je 0x401d7b
lea eax, [esi + 0x270]
lea ecx, [ebp - 0xc]
push eax
call fcn.00404554
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
push 0x9102
push dword [esi + 0x540]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [ebp - 0x18]
call fcn.0040114d
lea ecx, [ebp - 0xc]
call fcn.0040114d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402da3
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x22f], bl
jne 0x402f30
cmp byte [esi + 0x22b], bl
jne 0x402f30
cmp byte [esi + 0x22e], bl
je 0x402f30
cmp byte [esi + 0x228], bl
jne 0x402f30
lea eax, [ebp - 0x270]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x402f30
lea eax, [ebp - 0x16c]
push eax
push ebx
lea eax, [ebp - 0x270]
push str.Setup
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x402f30
lea eax, [ebp - 0x16c]
push ebx
push eax
lea ecx, [esi + 0x240]
call fcn.00404554
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402f30
push edi
push ebx
push 0x4000000
push 3
push ebx
push 1
lea eax, [ebp - 0x16c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x10
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push str.__clone_of_
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x68], 0x44
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24c]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.004016f4
push 0x407278
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.004016f4
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esi + 0x234]
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004016f4
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
call fcn.00404554
push eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x14]
call fcn.0040114d
lea ecx, [ebp - 0x24]
call fcn.00402f36
cmp dword [ebp - 8], 0xffffffff
pop edi
je 0x402f2c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x402f32
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x40405d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, SysReAllocStringLen
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x4040b2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x407460
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40410d
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x4040e7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x4040f5
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x40410f
cmp dword [ebp - 4], edi
je 0x404107
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x40412c
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.00404a00
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x404129
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5426cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x544168
sub eax, eax
test esi, esi
je 0x5427a4
sub eax, 1
test ecx, ecx
je 0x5427a2
test esi, 3
je 0x54270a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x5426ef
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x542789
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x542714
mov ecx, edx
test ecx, ecx
je 0x5427a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x54278f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x5427ac
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0054282f
jae 0x5427ba
xor ecx, ecx
call fcn.0054282f
jae 0x5427e9
xor eax, eax
call fcn.0054282f
jae 0x5427f9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0054282f
adc al, al
jae 0x5427db
jne 0x542825
stosb byte es:[edi], al
jmp 0x5427bd
call fcn.0054283b
sub ecx, ebx
jne 0x542802
call fcn.00542839
jmp 0x542821
lodsb al, byte [esi]
shr eax, 1
je 0x54284b
adc ecx, ecx
jmp 0x54281e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00542839
cmp eax, 0x7d00
jae 0x54281e
cmp ah, 5
jae 0x54281f
cmp eax, 0x7f
ja 0x542820
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5427bd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x40410f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40411e
pop dword [ebp - 0x24]
mov eax, 0xd4c2ae92
sub eax, 0xd4826d74
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3aafe
push 0
mov eax, 0x463d2a1c
add eax, 0xba03c674
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xf1c6afaf
sub ecx, 0xf1c65ee7
mov edx, eax
mov edi, 0x41aa00
add edi, dword [ebp - 0x24]
mov esi, 0xe35afe49
sub dword [ebp - 0x20], 0x99297db3
mov ebx, dword [edi]
sub dword [ebp - 0x1c], 0x4eb9e34a
add ebx, esi
add dword [ebp - 0x18], 0xa3a22cc2
mov dword [edx], ebx
xor dword [ebp - 0x20], edi
add edx, 0x29cabe6c
sub edx, 0x29cabe68
add edi, 0xfb868d1d
add edi, 0x47972e7
loop 0x404171
add eax, 0x25aad62e
add eax, 0xda565fc5
mov ebx, eax
add eax, 5
mov ecx, 0xa1a4b4f1
add ecx, 0x5e9b4b0f
add ecx, dword [ebp - 0x24]
call ebx
leave
ret