joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d20e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x3138160]
xor edx, edx
cmp eax, edx
jne 0x5d2106
xor eax, eax
mov byte [eax + 0x3138060], al
inc eax
cmp eax, 0x100
jl 0x5d20ee
mov dword [0x3138160], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x3138060
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5d2197
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5d216a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5d2138
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5d21a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5d21f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5d21da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5d8b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x612fee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005d9490
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x3018bec
call fcn.006035e1
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5d8c03
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006035e1
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5d8bfc
push 0
mov ecx, eax
call fcn.005cfd10
mov dword [esi + 0xc], eax
jmp 0x5d8c05
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5d8c05
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x1005e9e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.01005c02
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.01005bb7
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1005ee0
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
invalid
invalid
cld
Function at 0x402670
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6fbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], edi
mov ecx, 0x524e73
mov dword [ebp - 0x20], 0
call fcn.004e6414
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test eax, eax
je 0x402844
mov ecx, dword [ebp - 0x1c]
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + esi - 0x14], al
inc esi
mov ah, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], dh
cmp esi, 3
jne 0x402785
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, dl
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor esi, esi
mov byte [ebp - 0x16], cl
nop word [eax + eax]
cmp dword [0x523dcc], 0x10
mov ecx, 0x523db8
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x523db8]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.00403240
inc esi
cmp esi, 4
jl 0x402750
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov dh, byte [ebp - 0xe]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4026f0
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x402844
mov eax, 3
sub eax, esi
mov dword [ebp + 8], eax
cmp esi, 3
jge 0x4027c6
push eax
lea eax, [ebp - 0x14]
add eax, esi
push 0
push eax
call fcn.004bc490
mov cl, byte [ebp - 0x12]
add esp, 0xc
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x4027c9
mov cl, byte [ebp - 0xf]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x402830
xor esi, esi
cmp dword [0x523dcc], 0x10
mov ecx, 0x523db8
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x523db8]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.00403240
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x402803
mov esi, dword [ebp - 0x1c]
cmp esi, 3
jge 0x402844
push 0x3d
mov ecx, edi
call fcn.00403240
sub dword [ebp + 8], 1
jne 0x402835
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
mov ecx, 0x524220
push edi
mov edi, edx
call fcn.004e6414
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403d45
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403d45
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403d32
cmp esi, edx
jae 0x403d45
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403d20
cmp esi, edx
jae 0x403d45
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x404760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e70fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
push esi
mov esi, ecx
mov ecx, 0x524e73
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
call fcn.004e6414
mov dword [ebp - 4], 1
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x40483d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x814]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004bc490
add esp, 0xc
lea eax, [ebp - 0x814]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40482c
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404800
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00408c90
push 1
push 0x50fad0
mov ecx, esi
call fcn.00408e20
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403bc0
int3

Function at 0x404850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e70fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
push esi
mov esi, ecx
mov ecx, 0x524e73
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
call fcn.004e6414
mov dword [ebp - 4], 1
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x40492d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x814]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004bc490
add esp, 0xc
lea eax, [ebp - 0x814]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40491c
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4048f0
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00408c90
push 1
push 0x50fad0
mov ecx, esi
call fcn.00408e20
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403bc0
int3
Function at 0x404940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e70fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
push esi
mov esi, ecx
mov ecx, 0x524e73
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
call fcn.004e6414
mov dword [ebp - 4], 1
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x404a1d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x814]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004bc490
add esp, 0xc
lea eax, [ebp - 0x814]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404a0c
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4049e0
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00408c90
push 1
push 0x50fad0
mov ecx, esi
call fcn.00408e20
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403bc0
int3

Function at 0x404cf0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e716e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, 0x524e73
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], 0
call fcn.004e6414
mov dword [ebp - 4], 1
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x404df7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x404de6
mov edx, dword [ebp - 0x18]
xor eax, eax
push edi
mov edi, dword [ebp - 0x1c]
test edx, edx
je 0x404d94
lea ecx, [edi + 8]
cmp dword [ecx], 0
je 0x404d87
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x404d78
jmp 0x404d94
lea eax, [eax + eax*2]
movq xmm0, qword [edi + eax*4]
movq qword [ebp - 0x30], xmm0
push edi
mov edi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
call edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 5
push dword [ebp - 0x30]
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x404de5
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x404dc1
xor ecx, ecx
jmp 0x404dd7
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404dc7
sub ecx, ebx
sar ecx, 1
pop ebx
push ecx
push edx
mov ecx, esi
call fcn.00408c90
push dword [ebp - 0x10]
call edi
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403bc0
int3
Function at 0x404e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e71a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
mov esi, ecx
mov ecx, 0x524e73
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 0
call fcn.004e6414
mov dword [ebp - 4], 1
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x404f98
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004bc490
add esp, 0xc
lea eax, [ebp - 0x120]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x120]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 3
call ebx
lea edi, [eax - 1]
test edi, edi
jle 0x404f02
mov ecx, dword [esi]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x404ed8
push edi
mov ecx, esi
call fcn.00408db0
push edi
push dword [esi]
lea eax, [ebp - 0x120]
push 0xffffffffffffffff
push eax
push 0
push 3
call ebx
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x404fa2
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
jmp 0x404f09
mov ecx, esi
call fcn.00408a00
push 2
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00407ce0
mov dword [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [eax]
mov edi, dword [esi]
sub edi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x404f6d
cmp dword [edi + 0xc], 0
jl 0x404f62
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x404f62
call fcn.00408b90
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404f5b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
jmp 0x404f6d
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.00408c90
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
pop edi
test ebx, ebx
pop ebx
jg 0x404f87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403bc0
push 0x80070057
call fcn.00403bc0
int3
Function at 0x405b60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7355
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x524e73
call fcn.004e6414
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push ecx
mov dword [ebp - 4], 0
lea ebx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x50fc64
call fcn.00408410
push ecx
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x10], esi
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00408b90
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.00405210
mov edi, dword [ebp - 0x1c]
add esp, 8
sub edi, dword [ebp - 0x20]
sar edi, 2
mov byte [ebp - 4], 2
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x405d11
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor esi, esi
mov byte [ebp - 4], 3
or ebx, 0xffffffff
test edi, edi
je 0x405ca9
mov eax, dword [ebp - 0x20]
lea edx, [eax + esi*4]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
test esi, esi
jne 0x405c79
cmp ecx, 1
jl 0x405d20
cmp word [eax + 2], 0x3a
jne 0x405ca6
push 0x50fad0
lea ecx, [ebp - 0x14]
call fcn.004079d0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00408e20
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405c9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x405c9d
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00408e20
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x50fad0
lea ecx, [ebp - 0x10]
call fcn.00408e20
inc esi
cmp esi, edi
jb 0x405c18
mov eax, dword [ebp - 0x10]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x405cbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x405d00
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.00409030
mov ecx, dword [ebp - 0x18]
add esp, 4
mov edx, dword [ebp - 0x20]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x405cf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d1b
push ecx
push edx
call fcn.004b8e2a
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403bc0
call fcn.004c05a0
push 0x80070057
call fcn.00403bc0
int3
Function at 0x405d30
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov di, cx
mov ecx, 0x524e73
call fcn.004e6414
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
xor bl, bl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dc4
push dword [ebp + 0xc]
movzx eax, di
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x405dbd
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x405dbd
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405de1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x405df9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, 0x524e73
push edi
call fcn.004e6414
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4061cc
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], 0
jb 0x4061b6
mov esi, dword [esi]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4061e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4062c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e73e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
mov ecx, 0x524e73
mov dword [ebp - 4], 1
call fcn.004e6414
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x40630d
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00408940
mov eax, dword [ebp + 8]
push esi
push edi
push eax
push 0x85
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x10]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push eax
push edi
mov ecx, esi
mov dword [ebp - 0x14], 1
call fcn.00403090
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406386
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x406800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e74ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], dl
mov dword [ebp - 0x28], ecx
mov ecx, 0x524e73
mov dword [ebp - 4], 0
call fcn.004e6414
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
mov edx, 0x50fc24
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x24]
call fcn.00407840
add esp, 4
push 0x50fc24
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004079d0
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4068c8
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x4068bc
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4068bc
call fcn.00408b90
or esi, 0xffffffff
mov dword [ebp - 0x1c], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4068b4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp + 8], eax
jmp 0x4068cb
push dword [edx - 0xc]
lea ecx, [ebp + 8]
push edx
call fcn.00408c90
or esi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4068e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4068ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x14], 0
mov ecx, 0x440
mov eax, 0x40
mov dword [ebp - 0x64], 0x3c
cmovne eax, ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], eax
mov ecx, 5
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x28]
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
xor eax, eax
cmp byte [ebp + 0x10], al
mov dword [ebp - 0x58], 0
cmovne eax, ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x406982
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [edi], eax
cmp byte [ebp - 0x11], 0
je 0x4069a1
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4069bc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret