joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448583
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.0044923b
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.004486e3
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4486cd
test ebx, ebx
jl 0x448671
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xcfe9e7
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x448692
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x448684
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0044a053
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0044a053
add esp, 8
mov ebx, 0x80070057
jmp 0x448671
Function at 0x45efe3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.0045fc9b
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.0045f143
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x45f12d
test ebx, ebx
jl 0x45f0d1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd15447
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45f0f2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x45f0e4
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.00460ab3
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.00460ab3
add esp, 8
mov ebx, 0x80070057
jmp 0x45f0d1
Function at 0x475de3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.00476a9b
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.00475f43
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x475f2d
test ebx, ebx
jl 0x475ed1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd2c247
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x475ef2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x475ee4
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.004778b3
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.004778b3
add esp, 8
mov ebx, 0x80070057
jmp 0x475ed1
Function at 0x48d203
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.0048debb
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.0048d363
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x48d34d
test ebx, ebx
jl 0x48d2f1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd43667
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x48d312
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x48d304
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0048ecd3
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0048ecd3
add esp, 8
mov ebx, 0x80070057
jmp 0x48d2f1
Function at 0x4a40c3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.004a4d7b
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.004a4223
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a420d
test ebx, ebx
jl 0x4a41b1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd5a527
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a41d2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4a41c4
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.004a5b93
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.004a5b93
add esp, 8
mov ebx, 0x80070057
jmp 0x4a41b1
Function at 0x4b92e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c1368
cmp edx, dword [eax]
je 0x4b9303
add eax, 8
inc ecx
cmp eax, 0x4c13f8
jl 0x4b92f4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c1368]
jne 0x4b9431
mov eax, dword [0x4c5cec]
cmp eax, 1
je 0x4b940b
test eax, eax
jne 0x4b9334
cmp dword [0x4c1290], 1
je 0x4b940b
cmp edx, 0xfc
je 0x4b9431
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b936b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004b9cc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004ba150
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b93ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004ba150
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be864
push edi
call fcn.004bc020
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004b9cc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9cd0
lea eax, [ebp - 0xa0]
push 0x4be844
push eax
call fcn.004b9cd0
push dword [esi + 0x4c136c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9cd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bbf94
add esp, 0x2c
pop edi
jmp 0x4b9431
lea eax, [ebp + 8]
lea esi, [esi + 0x4c136c]
push 0
push eax
push dword [esi]
call fcn.004ba150
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401240
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x204
push ebp
push esi
xor esi, esi
push edi
xor eax, eax
mov byte [esp + eax + 0x10], al
inc eax
cmp eax, 0x100
jl 0x40124d
mov edi, dword [esp + 0x218]
mov ebp, dword [esp + 0x214]
xor ecx, ecx
xor edx, edx
mov al, byte [edx + ebp]
mov byte [esp + ecx + 0x110], al
lea eax, [edx + 1]
xor edx, edx
div edi
inc ecx
cmp ecx, 0x100
jl 0x40126b
xor eax, eax
mov cl, byte [esp + eax + 0x10]
xor edx, edx
mov dl, byte [esp + eax + 0x110]
mov edi, ecx
and edi, 0xff
add esi, edx
add esi, edi
and esi, 0x800000ff
jns 0x4012b0
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 0x100
mov byte [esp + esi + 0x10], cl
jl 0x401287
mov ebp, dword [esp + 0x220]
xor ecx, ecx
xor esi, esi
xor eax, eax
test ebp, ebp
jle 0x401350
mov edi, dword [esp + 0x21c]
push ebx
inc ecx
and ecx, 0x800000ff
jns 0x4012ee
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [esp + ecx + 0x14]
mov ebx, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x40130c
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esp + esi + 0x14]
mov byte [esp + 0x10], dl
mov byte [esp + ecx + 0x14], bl
mov ebx, dword [esp + 0x10]
mov byte [esp + esi + 0x14], dl
xor edx, edx
mov dl, byte [esp + ecx + 0x14]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x40133e
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [esp + edx + 0x14]
mov bl, byte [eax + edi]
xor bl, dl
mov byte [eax + edi], bl
inc eax
cmp eax, ebp
jl 0x4012dd
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x204
ret
Function at 0x405ddb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422adc], 0
push esi
jne 0x405e12
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 0x405dec
mov dword [ecx*4 + 0x422ad8], eax
inc ecx
cmp ecx, 0x100
jl 0x405de7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e43
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 + 0x422ad8]
xor eax, esi
inc ecx
dec edx
jne 0x405e25
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x588d4a96
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2996fe4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401f64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0xa
push eax
push dword [0x409d68]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push dword [0x409d68]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
ja 0x401fa6
xor eax, eax
jmp 0x402096
push edi
push dword [0x409d68]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x40
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 8], edi
call fcn.004028d0
sub esi, 0x20
push 0x20
mov dword [ebp - 0xc], esi
lea eax, [edi + esi]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004028d0
add esp, 0x18
xor eax, eax
xor ebx, ebx
movzx ecx, byte [ebp + eax - 0x2c]
add ebx, ecx
inc eax
cmp eax, 0x20
jb 0x401fee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, eax
jne 0x402032
test ebx, ebx
je 0x402053
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x402053
mov al, dl
and al, 0x23
xor al, byte [edx + edi]
or al, byte [ebp + ecx - 0x2c]
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x402027
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x402011
test ecx, ecx
jne 0x402009
jmp 0x402053
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x402053
mov al, byte [ebp + ecx - 0x2c]
xor al, byte [edx + edi]
xor al, dl
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x40204e
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x40203a
mov edi, dword [edi]
mov dword [ebp + 8], edi
add edi, 0x100
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub eax, 4
push eax
mov eax, dword [ebp - 8]
add eax, 4
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00401c26
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40212f
Capabilities:
Link function at runtime on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x40709c
jmp loc.0040b4ee

Function at 0x4024d3
Capabilities:
Copy file
Create directory
Create service
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x40712c
jmp loc.0040b3d8

Function at 0x402656
Capabilities:
Accept command line arguments
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
push 0x4071a0
jmp loc.0040b9f4
Function at 0x403fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c44
call fcn.00405d30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
cmp dword [0x4623c8], 2
jl 0x40411f
movaps xmm4, xmmword [0x460450]
lea ecx, [eax + 4]
movaps xmm5, xmmword [0x460460]
movups xmm3, xmmword [0x460470]
nop dword [eax]
movd xmm0, eax
add eax, 8
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm0, xmm2
andps xmm2, xmm3
pmulld xmm0, xmm5
movaps xmm1, xmm0
packuswb xmm2, xmm2
psrld xmm1, 9
psrld xmm0, 6
andps xmm1, xmm3
packuswb xmm2, xmm2
andps xmm0, xmm3
packuswb xmm1, xmm1
packuswb xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm0, xmm0
xorps xmm1, xmm0
movd xmm0, ecx
paddb xmm1, xmm2
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x50c0c], xmm1
paddd xmm2, xmm4
movaps xmm0, xmm2
andps xmm2, xmm3
pmulld xmm0, xmm5
movaps xmm1, xmm0
packuswb xmm2, xmm2
psrld xmm1, 9
psrld xmm0, 6
andps xmm1, xmm3
packuswb xmm2, xmm2
andps xmm0, xmm3
packuswb xmm1, xmm1
packuswb xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm0, xmm0
xorps xmm1, xmm0
paddb xmm1, xmm2
movd dword [ebp + ecx - 0x50c08], xmm1
add ecx, 8
cmp ecx, 0x50bfc
jb 0x404060
cmp eax, 0x50bfe
jae 0x404142
lea esi, [eax + eax*4]
mov edx, esi
mov ecx, esi
shr edx, 9
add esi, 5
shr ecx, 6
xor dl, cl
add dl, al
mov byte [ebp + eax - 0x50c08], dl
inc eax
cmp eax, 0x50bfe
jb 0x404122
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c3c], 0x50bfe
mov dword [ebp - 0x50c40], eax
lea eax, [ebp - 0x50c40]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
mov dword [ebp - 0x50c24], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404f29
mov esp, ebp
pop ebp
ret
Function at 0x40575b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40579a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40579a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40579a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40579a
cmp dword [ecx + 0x74], 0xe
jbe 0x40579a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40d1b6
Capabilities:
Encode data using xor

Disassembly:
inc edi
inc ebx
invalid
mov cl, 0xd6
jb 0x40d0c0
sar ah, cl
add dword [esi], edi
xchg byte [ebp + 0x36b7ed23], dh
cmpsb byte [esi], byte es:[edi]
xor dword [esi + 0x57], esp
retf
cmpsb byte [esi], byte es:[edi]
aad 0x28
je 0x40d0fa
iretd
dec esi
mov al, 0x4b
cwde
mov dh, 0x4f
sbb byte [edx + edx*8 + 0x53311bcf], ah
push cs
pushal
add eax, 0xc9c771be
mov bh, 0xcd
das
xor ah, byte [eax - 0x61ffb0d]
jo 0x40d14a
movsb byte es:[edi], byte [esi]
push es
insb byte es:[edi], dx
js 0x40d1b8
movsb byte es:[edi], byte [esi]
sar byte [ebx], 0x33
xor dword [ecx], ecx
leave
push 0xf1b0b756
pop es
leave
pushal
aad 0x95
in eax, 0x7b
xchg dword [edi], esi
sbb al, 0x49
add ah, bl
or edx, dword [esi]
xchg ecx, eax
sbb edx, esi
mov edi, 0xf86efd7c
in al, dx
mov gs, word [edi + 0x31]
jns 0x40d223
or al, byte [esi]
inc edi
jecxz 0x40d20c
ja 0x40d160
mov ah, 0x30
xchg esi, eax
mov bl, 0xe3
cmc
jecxz 0x40d1af
shl eax, cl
adc edx, dword [edi + 0x13f7dea0]
dec edx
stosb byte es:[edi], al
jle 0x40d1e5
push ds
in al, dx
dec esi
add eax, 0x1110adb9
test dword [ebx - 0x6f], ecx
scasd eax, dword es:[edi]
ja 0x40d185
mov ebp, 0xc2e4e4bc
xchg esp, eax
mov esp, 0x94c2e4e4
and ecx, dword [eax + edx*4]
arpl word [eax - 0x37], cx
salc
rol dword [ebx + 0x2873f57b], 1
jae 0x40d20f
push edi
sbb ebx, dword [esi]
js 0x40d1d5
adc dword [ecx], ecx
pop ss
push edi
push ss
push ebx
mov byte [0xc6453429], al
cli
invalid
sal byte [ecx - 0x6f9f59b], cl
or al, byte [esi]
stc
lahf
pop ecx
or dh, ah
or byte [eax + edx + 0x1497c2b6], cl
invalid
dec ebp
xchg edx, eax
xchg ecx, eax
outsd dx, dword cs:[esi]
jb 0x40d1c6
scasb al, byte es:[edi]
xchg ecx, eax
mov edi, 0x963042cc
and eax, dword [ecx - 0x97b7b10]
adc esi, edi
rol cl, 0x79
aas
rcr byte [eax + eax*8 + 0x20b51030], cl
sbb al, 5
cmp al, 0x86
in eax, dx
xor byte [edi - 0x79], ch
rcl byte [edx - 0x4c166920]
and dword [edi - 0x20ec613f], edx
mov dword [0xe92391d2], eax
xor dword [edi + 0x61e6a27f], ebp
jmp 0x40d2cd
push 0xffffffffffffffa3
xor byte [eax + eax*4 + 0x7ae89b4], bl
push ds
mov ah, 0xba
test byte [edx + 0x6b93a654], al
dec ecx
ret 0xe4bd