joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018b0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x63
push eax
lea edi, [esi + 4]
push edi
mov dword [esi], 0x48e770
call fcn.00469d32
add esp, 0xc
push edi
mov word [esi + 0xca], 0
mov dword [esi], 0x48e77c
call dword [sym.imp.kernel32.dll_lstrlenW]
mov edi, eax
mov eax, 0x4a6110
lea ecx, [esi + 0xcc]
mov edx, dword [eax]
mov dword [ecx], edx
add eax, 4
add ecx, 4
cmp eax, 0x4a6158
jl 0x4018f3
mov eax, 0x4a6158
lea ecx, [esi + 0x114]
nop
mov edx, 0x100
mov ebx, dword [eax]
mov dword [ecx], ebx
add eax, 4
add ecx, 4
sub edx, 1
jne 0x401915
cmp eax, 0x4a7158
jl 0x401910
xor ecx, ecx
lea ebp, [esi + 0xd0]
mov dword [esp + 0x18], 6
jmp 0x401940
lea eax, [ecx + 1]
cdq
idiv edi
lea ebx, [ecx + 2]
mov al, byte [esi + edx*2 + 4]
movzx edx, word [esi + ebx*2]
shl edx, 8
and eax, 0xff
or eax, edx
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, ebx
cdq
idiv edi
mov al, byte [esi + edx*2 + 4]
mov edx, dword [esp + 0x10]
and eax, 0xff
or edx, eax
shl edx, 8
mov dword [esp + 0x10], edx
lea eax, [ecx + 3]
cdq
idiv edi
mov eax, dword [esp + 0x10]
mov dl, byte [esi + edx*2 + 4]
and edx, 0xff
or eax, edx
xor dword [ebp - 4], eax
lea eax, [ecx + 4]
cdq
idiv edi
mov ecx, edx
lea eax, [ecx + 1]
cdq
idiv edi
lea ebx, [ecx + 2]
mov al, byte [esi + edx*2 + 4]
movzx edx, word [esi + ebx*2]
shl edx, 8
and eax, 0xff
or eax, edx
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, ebx
cdq
idiv edi
mov al, byte [esi + edx*2 + 4]
mov edx, dword [esp + 0x10]
and eax, 0xff
or edx, eax
shl edx, 8
mov dword [esp + 0x10], edx
lea eax, [ecx + 3]
cdq
idiv edi
mov eax, dword [esp + 0x10]
mov dl, byte [esi + edx*2 + 4]
and edx, 0xff
or eax, edx
xor dword [ebp], eax
lea eax, [ecx + 4]
cdq
idiv edi
mov ecx, edx
lea eax, [ecx + 1]
cdq
idiv edi
lea ebx, [ecx + 2]
mov al, byte [esi + edx*2 + 4]
movzx edx, word [esi + ebx*2]
shl edx, 8
and eax, 0xff
or eax, edx
shl eax, 8
mov dword [esp + 0x10], eax
mov eax, ebx
cdq
idiv edi
mov al, byte [esi + edx*2 + 4]
mov edx, dword [esp + 0x10]
and eax, 0xff
or edx, eax
shl edx, 8
mov dword [esp + 0x10], edx
lea eax, [ecx + 3]
cdq
idiv edi
mov eax, dword [esp + 0x10]
add ebp, 0xc
mov dl, byte [esi + edx*2 + 4]
and edx, 0xff
or eax, edx
xor dword [ebp - 8], eax
lea eax, [ecx + 4]
cdq
idiv edi
sub dword [esp + 0x18], 1
mov ecx, edx
jne 0x401940
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
lea edi, [esi + 0xd0]
mov ebx, 9
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00401050
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [edi - 4], edx
mov dword [edi], eax
add edi, 8
sub ebx, 1
jne 0x401a80
lea edi, [esi + 0x118]
mov ebp, 4
mov ebx, 0x80
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00401050
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [edi - 4], eax
mov dword [edi], ecx
add edi, 8
sub ebx, 1
jne 0x401ab6
sub ebp, 1
jne 0x401ab1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x401c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x401c49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
test esi, esi
jne 0x401c5d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401c80
cmp esi, eax
jae 0x401c57
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401c70
cmp esi, eax
jae 0x401c57
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402520
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489c30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
sub eax, 0x10
mov dword [ebp - 0x10], esp
push eax
call fcn.00401ee0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00402120
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, 1
jne 0x40258e
test eax, eax
jge 0x402584
push 0x80070057
call fcn.00401c10
cmp word [ecx], 0x5c
jne 0x40258e
xor bl, bl
jmp 0x402590
mov bl, 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4025cc
push 0x48ee88
call fcn.00469d6f
add esp, 4
push eax
push 0x48ee88
lea ecx, [ebp - 0x14]
call fcn.00402190
push 0x48ee70
call fcn.00469d6f
add esp, 4
push eax
push 0x48ee70
lea ecx, [ebp - 0x14]
call fcn.00402190
lea eax, [ebp - 0x14]
push eax
call fcn.00403640
mov ecx, dword [ebp - 0x14]
add esp, 4
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0047c96f
mov edx, dword [ebp - 0x14]
push 0
push 0x1001
push edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0047c985
test eax, eax
je 0x402670
push 0x48ee4c
lea ecx, [ebp - 0x2c]
call fcn.0047cb3c
push 0x48ee48
lea ecx, [ebp - 0x2c]
call fcn.0047cb3c
mov eax, dword [esi + 4]
test eax, eax
jl 0x4026bc
cmp eax, dword [esi + 0x10]
jge 0x4026bc
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0047cb3c
push 0x48ee48
lea ecx, [ebp - 0x2c]
call fcn.0047cb3c
lea ecx, [ebp - 0x2c]
call fcn.0047cd0a
mov esi, dword [esi]
push esi
call dword [sym.imp.shlwapi.dll_PathMakeSystemFolderW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0047cd46
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4026a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.0047b130
Function at 0x403640
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
call edi
test al, 1
mov ebx, dword [sym.imp.kernel32.dll_SetFileAttributesW]
je 0x403664
and al, 0xfe
push eax
mov eax, dword [esi]
push eax
call ebx
mov eax, dword [esi]
push eax
call edi
test al, 4
je 0x403675
mov ecx, dword [esi]
and al, 0xfb
push eax
push ecx
call ebx
mov eax, dword [esi]
push eax
call edi
test al, 2
je 0x403686
mov edx, dword [esi]
and al, 0xfd
push eax
push edx
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x403690
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x438
mov eax, dword [0x4a9198]
push esi
mov esi, dword [sym.imp.kernel32.dll_lstrcpyW]
push edi
mov dword [esp + 0x43c], eax
xor eax, eax
mov word [esp + 0x28], 0
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x2c]
push edx
call esi
xor eax, eax
mov word [esp + 0x230], 0
mov ecx, 0x81
lea edi, [esp + 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x234]
push edx
call esi
lea edx, [esp + 8]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x230]
push edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], 0x65c
call dword [sym.imp.shell32.dll_SHFileOperationW]
mov ecx, dword [esp + 0x43c]
test eax, eax
sete al
call fcn.0046a6a2
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x489d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00402d10
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401ee0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4039b2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4039d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x489d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x4a9198]
mov ecx, dword [esp + 0x50]
push esi
push 3
mov dword [esp + 0x44], eax
push 0
lea eax, [esp + 0xc]
push eax
call fcn.00402c10
push 0xa
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0xc
lea edx, [esp + 0x40]
push edx
push eax
mov dword [esp + 0x6c], 0
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 8]
push 0x48ef2c
push edx
call fcn.00402db0
add esp, 0xc
lea ecx, [esp + 4]
call fcn.00403890
mov esi, dword [esp + 4]
push 0x48ef78
push esi
call fcn.0046a6b0
add esp, 8
test eax, eax
jne 0x403a93
lea eax, [esi - 0x10]
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x20
jmp 0x403ae1
push 0x48ef6c
push esi
call fcn.0046a6b0
add esp, 8
or edx, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
jne 0x403ace
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ac7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x40
jmp 0x403ae1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403adf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x40]
pop esi
call fcn.0046a6a2
add esp, 0x4c
ret
Function at 0x404300
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x489e66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [0x4a9198]
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], eax
call fcn.0047b692
mov dword [esp + 0x23c], 0
call fcn.0047c701
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov esi, dword [ebp + 8]
mov word [esp + 0x20], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
push 1
push esi
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x248], 1
stosw word es:[edi], ax
call fcn.0047b8bd
mov eax, dword [esi]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov esi, dword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
lea esp, [esp]
lea ecx, [esp + 0x20]
push ecx
call esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xc]
push 0x48ef2c
push eax
call fcn.00402db0
add esp, 0xc
push 1
lea ecx, [esp + 0xc]
push ecx
push 0
lea ecx, [esp + 0x18]
call fcn.0047b8bd
mov edx, dword [esp + 8]
cmp dword [edx - 0xc], 3
jne 0x4043a0
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov edi, eax
jg 0x404454
mov eax, dword [ebp + 8]
push eax
call fcn.00403bf0
mov esi, eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x23c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40441a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0047b6e4
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
mov eax, esi
call fcn.0046a6a2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
test esi, esi
jl 0x404496
cmp esi, eax
jge 0x404496
mov eax, dword [esp + 0x10]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0xc]
call fcn.00402230
lea ecx, [esp + 8]
push ecx
call fcn.00403bf0
add esp, 4
test eax, eax
jne 0x40448a
mov edx, dword [esp + 8]
push eax
push edx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
add esi, 1
cmp esi, edi
jl 0x404450
jmp 0x4043e6
jmp fcn.0047b130
Function at 0x4044a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x489e78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push ebx
sub eax, 0x10
push esi
push eax
call fcn.00401ee0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], esi
push 1
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call fcn.00402120
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, 1
jne 0x40450b
test eax, eax
jge 0x404501
push 0x80070057
call fcn.00401c10
cmp word [ecx], 0x5c
jne 0x40450b
xor bl, bl
jmp 0x40450d
mov bl, 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40452b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40454f
push 0x48ee88
call fcn.00469d6f
add esp, 4
push eax
push 0x48ee88
lea ecx, [esp + 0x24]
call fcn.00402190
mov esi, dword [esp + 0x1c]
push 1
push 0
push 0
push esi
push 0x48efbc
push 0
call dword [sym.imp.shell32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404585
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404d40
Capabilities:
Access peb ldr_data
Create directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x489f20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, dword [esp + 0x38]
push edi
push esi
mov dword [esp + 0xc], 0
call fcn.004039d0
add esp, 4
push 3
mov edi, eax
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00402c10
cmp edi, 0x40
mov dword [esp + 0x30], 0
jne 0x404da3
push 0x48efe4
call fcn.00469d6f
add esp, 4
push eax
push 0x48efe4
jmp 0x404db6
push 0x48efd8
call fcn.00469d6f
add esp, 4
push eax
push 0x48efd8
lea ecx, [esp + 0x10]
call fcn.00402190
lea ecx, [esp + 8]
push ecx
call fcn.00403bf0
add esp, 4
test eax, eax
jne 0x404e1e
mov edx, dword [esp + 8]
push eax
push edx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov eax, dword [esp + 8]
push 6
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
lea ecx, [esp + 0xc]
call fcn.004023a0
push 7
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.004022a0
lea ecx, [esp + 0xc]
call fcn.00402520
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.00401f40
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.00401ee0
mov esi, dword [esp + 0x3c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4066f0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x48a198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
call fcn.00406010
test eax, eax
je 0x406727
mov eax, 3
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push esi
call fcn.00403640
add esp, 4
push esi
mov ecx, esi
call fcn.00405e80
test al, al
jne 0x406804
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.shlwapi.dll_PathIsDirectoryEmptyW]
push eax
call edi
test eax, eax
push esi
je 0x406775
call fcn.00403640
mov eax, dword [esi]
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004051f0
lea edx, [esp + 8]
push esi
push edx
mov dword [esp + 0x1c], 0
call fcn.004045a0
lea eax, [esp + 0x10]
push eax
call fcn.00403bf0
add esp, 0xc
test eax, eax
je 0x4067c8
mov ecx, dword [esp + 8]
push ecx
call edi
test eax, eax
je 0x4067c8
lea edx, [esp + 8]
push edx
call fcn.00403640
mov eax, dword [esp + 0xc]
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x4a9198]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x21c], eax
lea eax, [esp + 8]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4079b1
mov edx, dword [esp + 8]
mov word [esp + 0x10], ax
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
mov eax, esi
call fcn.0046a6a2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407ab0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x4a9198]
push esi
push edi
mov dword [esp + 0x41c], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x103
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0x48f974
push 0x80000000
call fcn.00407930
add esp, 0xc
test eax, eax
jne 0x407b8e
mov edi, dword [sym.imp.kernel32.dll_lstrcatW]
push 0x48f94c
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 8]
push edx
mov eax, edx
push eax
push 0x80000000
call fcn.00407930
add esp, 0xc
test eax, eax
jne 0x407b8e
lea ecx, [esp + 8]
push 0x48f940
push ecx
call fcn.0046a7bd
mov esi, eax
add esp, 8
test esi, esi
jne 0x407b6b
lea edx, [esp + 8]
push 0x48f938
push edx
call fcn.0046a7bd
mov esi, eax
add esp, 8
test esi, esi
jne 0x407b6b
lea eax, [esp + 8]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
lea esi, [esp + eax*2 + 6]
jmp 0x407b70
mov word [esi], 0
push 0x48f934
push esi
call edi
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push esi
call edi
push 1
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_WinExec]
mov ecx, dword [esp + 0x41c]
call fcn.0046a6a2
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4082c0
Capabilities:
Set registry value

Disassembly:
push esi
push 4
lea eax, [esp + 0x10]
push eax
push 4
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], 4
mov dword [esi + 0x10], 4
pop esi
mov eax, ecx
ret 8

Function at 0x408300
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 0
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], ecx
pop esi
jne 0x408369
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov dword [edx], eax
mov eax, 1
add esp, 0xc
ret 8
xor eax, eax
add esp, 0xc
ret 8
Function at 0x409060
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a5a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], esp
push 0x1001
xor esi, esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.0047d58d
xor eax, eax
mov ecx, 0x1e
lea edi, [ebx + 0xc]
push esi
mov byte [ebp - 4], 1
rep stosd dword es:[edi], eax
call fcn.0046a98b
push eax
call fcn.0046a95c
add esp, 8
cmp esi, 0x1e
jge 0x4090d0
cmp esi, 8
je 0x4090cb
call fcn.0046a969
mov dword [ebx + esi*4 + 0xc], eax
add esi, 1
jmp 0x4090b8
push 0x78
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebx + 0x2c], 0x378
call fcn.0047ceb1
lea ecx, [ebp - 0x24]
call fcn.0047d0fc
mov ebx, dword [ebx + 4]
push 6
push ebx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0047d19d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c0
mov eax, dword [0x4a9198]
push esi
push edi
mov dword [esp + 0x2c4], eax
mov ecx, 0x1d
mov esi, 0x490ff0
lea edi, [esp + 0x248]
lea eax, [esp + 0xc]
push eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x264]
push edx
push 0x80000001
mov dword [esp + 0x30], 0
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409bf2
mov ecx, 0x8c
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, 0xa
mov byte [esp + 0x2c], al
mov byte [esp + 0x30], al
mov al, 0xa1
push 0x234
mov byte [esp + 0x48], al
mov byte [esp + 0x54], al
lea eax, [esp + 0x14]
push eax
push 3
mov cl, 4
push 0
mov byte [esp + 0x49], cl
mov byte [esp + 0x5c], cl
mov ecx, dword [esp + 0x18]
mov dl, 6
push 0x490fd8
push ecx
mov byte [esp + 0x28], 0x11
mov byte [esp + 0x2c], 0x5c
mov byte [esp + 0x34], 0x24
mov byte [esp + 0x38], 0x1b
mov byte [esp + 0x3c], 0x4a
mov byte [esp + 0x40], 1
mov byte [esp + 0x45], dl
mov byte [esp + 0x49], 0xf
mov byte [esp + 0x4c], 5
mov byte [esp + 0x50], 0x62
mov byte [esp + 0x54], 0x26
mov byte [esp + 0x58], 2
mov byte [esp + 0x5d], dl
mov byte [esp + 0x60], 0x56
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2c4]
call fcn.0046a6a2
pop edi
pop esi
mov esp, ebp
pop ebp
ret