joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a23c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0x10]
call fcn.00403dcc
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40a2a5
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00404190
jne 0x40a274
lea eax, [ebx + 0x10]
call fcn.00403dcc
jmp 0x40a2ad
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00404190
jne 0x40a290
lea eax, [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00403e20
cmp dword [ebx + 0x10], 0
jne 0x40a2ad
lea eax, [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00403e20
jmp 0x40a2ad
lea eax, [ebx + 0x10]
call fcn.00403dcc
mov eax, ebx
call fcn.0040a08c
mov eax, dword [0x40b158]
inc dword [eax]
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a307
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a34a
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x75d7
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a38d
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
test edi, edi
je 0x40a3b7
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, 0x40a3f0
call fcn.00404090
mov eax, ebx
call fcn.00409f64
mov ebp, eax
push 0x200
call sub.kernel32.dll_Sleep
jmp 0x40a251

Function at 0x40354a
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
mov al, byte [esi]
cmp al, 0x22
jne 0x403573
mov al, byte [esi + 1]
inc esi
test al, al
je 0x40356b
cmp al, 0x22
jne 0x40355f
cmp byte [esi], 0x22
jne 0x40357d
inc esi
jmp 0x40357d
cmp al, 0x20
jle 0x40357d
inc esi
cmp byte [esi], 0x20
jg 0x403577
mov al, byte [esi]
test al, al
je 0x403587
cmp al, 0x20
jle 0x403570
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401df7
push 0x404004
push section..data
call fcn.00403530
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4035b7
movzx eax, word [ebp - 0x14]
jmp 0x4035ba
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004035dd
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4013d4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4140e0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x414327
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x18
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xbc
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x3f
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xaf
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb5
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe1
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xce
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x8b
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb3
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x18
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 2
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xcf
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x2a
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x3a
push str.Aristo_Halloween_Beats
push 0x5170c0
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe2
inc edi
cmp edi, ebx
jb 0x414100
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x4036f2
Capabilities:
Terminate process

Disassembly:
jmp 0x454de9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x454dfa
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405af6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x4013d4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4140e0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x414327
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
sub byte [edi + ebp], 0xa
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xcc
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x72
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x2c
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x1a
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xed
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x28
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x70
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x15
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb7
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x77
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x7f
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xf9
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x4b
push str.Aristo_Halloween_Beats
push 0x50b590
call fcn.00402e37
push eax
call fcn.0040632f
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x6b
inc edi
cmp edi, ebx
jb 0x414100
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x4036f2
Capabilities:
Terminate process

Disassembly:
jmp 0x454de9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x454dfa
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405af6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x402920
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ec55
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], 0x4c205c
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x4c2064
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
call dword [eax + 4]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4029bf
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4029c7
call ebx
mov esi, eax
test esi, esi
jne 0x4029e0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4029ea
call ebx
mov esi, eax
mov eax, 0xc
mov dword [edi + eax], esi
jmp 0x4029f6
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00402ea0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x4c2064
test eax, eax
je 0x402a0f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x4c205c
test eax, eax
je 0x402a34
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4040a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49efe0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404127
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404127
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404107
cmp esi, edx
jae 0x404127
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4040f5
cmp esi, edx
jae 0x404127
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f066
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4e4050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x30], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
push 0
mov dword [ebp - 0x38], esi
push 0
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov edi, eax
test edi, edi
je 0x40476f
push edi
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00404be0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x28]
push edi
push ecx
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
dec eax
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], eax
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
mov word [ecx + eax*2], dx
xor eax, eax
movups xmm0, xmmword [ebp - 0x28]
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
setae al
test al, al
je 0x404759
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40474f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047bd
push ecx
push edx
call fcn.0047e2e1
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x4047a0
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047de56
mov esp, ebp
pop ebp
ret
call fcn.0048312f
int3
Function at 0x405db0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
push edi
push eax
push 0x23
push 0
mov esi, edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x405e51
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x405e49
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x405e49
push 0x20a
call fcn.0047e324
add esp, 4
mov dword [esi + 4], eax
mov dword [esi], 0x105
push 0
push 0x23
push eax
push 0
call edi
test eax, eax
je 0x405e3d
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x405e3d
nop
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x405e20
test edx, edx
je 0x405e3d
cmp word [esi + edx*2 - 2], 0x5c
je 0x405e3d
mov dword [esi + edx*2], 0x5c
cmp eax, 1
pop edi
sete al
pop esi
add esp, 8
ret
pop edi
xor al, al
pop esi
add esp, 8
ret
push 0x20a
call fcn.0047e324
add esp, 4
mov dword [esi + 4], eax
mov dword [esi], 0x105
push eax
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
test edi, edi
je 0x405ea1
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x405ea1
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x405e84
test edx, edx
je 0x405ea1
cmp word [esi + edx*2 - 2], 0x5c
je 0x405ea1
mov dword [esi + edx*2], 0x5c
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 8]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp edi, 1
pop edi
sete al
pop esi
add esp, 8
ret
Function at 0x406010
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x49f326
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4e4050]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e6440]
cmp eax, dword [ecx + 4]
jle 0x4060e2
push 0x4e6440
call fcn.0047dfba
add esp, 4
cmp dword [0x4e6440], 0xffffffff
jne 0x4060e2
mov dword [ebp - 4], 1
xor eax, eax
mov dword [0x4e6444], 0
mov dword [0x4e6454], 0
mov dword [0x4e6458], 0
mov dword [0x4e6454], 0
mov dword [0x4e6458], 7
mov word [0x4e6444], ax
mov byte [ebp - 4], 1
push 0x4b5210
call fcn.0047e2cc
mov byte [ebp - 4], 0
push 0x4e6440
call fcn.0047df70
add esp, 8
cmp dword [0x4e6454], 0
jne 0x406207
lea eax, [ebp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x406207
add eax, eax
cmp eax, 0x208
jae 0x406245
xor ecx, ecx
mov word [ebp + eax + 0x30], cx
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], ecx
lea ecx, [ebp + 0x30]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406130
sub ecx, edx
lea eax, [ebp + 0x30]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x18]
call fcn.004039f0
mov dword [ebp - 4], 4
lea eax, [ebp + 0x18]
push 1
sub esp, 0x18
mov dword [ebp - 0x14], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00404fc0
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.00421d30
add esp, 0x18
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.00422190
mov byte [ebp - 4], 8
lea eax, [ebp]
cmp dword [ebp + 0x14], 8
mov ecx, 0x4e6444
push dword [ebp + 0x10]
cmovae eax, dword [ebp]
push eax
call fcn.004051f0
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.00403f40
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x2c]
cmp ecx, 8
jb 0x4061f3
mov edx, dword [ebp + 0x18]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4061e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40624a
push ecx
push edx
call fcn.0047e2e1
add esp, 8
xor eax, eax
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
push 0x4e6444
mov ecx, edi
call fcn.00404fc0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.0047de56
lea esp, [ebp + 0x23c]
pop ebp
ret
call fcn.0047e44f
call fcn.0048312f
int3
Function at 0x406320
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f499
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4e4050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], 0
cmp dword [edx + 0x14], 8
jb 0x406370
mov edx, dword [edx]
lea ecx, [ebp - 0x218]
push ecx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4063b7
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 1
jmp 0x4064d9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x21c], 0
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406400
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004039f0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x238], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.00404fc0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00421d30
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.00422190
mov byte [ebp - 4], 3
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4064bc
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4064b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064f6
push ecx
push edx
call fcn.0047e2e1
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047de56
mov esp, ebp
pop ebp
ret
call fcn.0048312f
int3