joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ef090
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
movzx ecx, word [esi + 0x6244]
mov edx, dword [esi]
xor eax, eax
push edi
mov edi, dword [esp + 0x24]
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx + 8]
push edi
push eax
call ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x1c]
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x100ef280
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x1c]
push eax
call ecx
add esp, 4
sub eax, 0x4d
jne 0x100ef280
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x1c]
push eax
call ecx
add esp, 4
sub eax, 0x52
jne 0x100ef280
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x1c]
push ebp
push eax
call ecx
imul eax, eax, 0x101
push esi
mov word [esi + 0x6244], ax
call fcn.100d8280
mov edx, dword [esi]
mov ecx, dword [edx + 0x18]
lea edi, [eax + edi + 8]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x30], edi
call ecx
mov ebp, eax
add esp, 0xc
cmp ebp, edi
jge 0x100ef25b
push ebx
xor edi, edi
lea ebx, [edi + 4]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x1c]
push eax
call ecx
shl edi, 8
add esp, 4
or edi, eax
sub ebx, 1
jne 0x100ef148
push esi
call fcn.100d8280
add esp, 4
mov dword [esp + 0x1c], eax
cmp edi, 0x505244
je 0x100ef1fe
cmp edi, 0x545457
je 0x100ef1dd
cmp edi, 0x574247
jne 0x100ef22a
push esi
call fcn.100d8280
lea edx, [esi + 0x6495]
push str.A200
push edx
call fcn.10106e60
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 3
xor edi, edi
push esi
call fcn.100d81e0
movzx eax, ax
mov ecx, edi
sar ecx, 1
mov dword [esp + 0x1c], eax
xor ecx, edi
xor ecx, ebx
fild dword [esp + 0x1c]
inc edi
add esp, 4
cmp edi, 4
fstp dword [esi + ecx*4 + 0xe6c4]
jl 0x100ef1b2
jmp 0x100ef22a
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x18]
push eax
call ecx
push eax
push esi
call fcn.100eeaa0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov dword [esi + 0x6590], edx
jmp 0x100ef22a
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 8]
push 1
push 8
push ecx
call edx
push esi
call fcn.100d81e0
movzx eax, ax
push esi
mov dword [esp + 0x24], eax
call fcn.100d81e0
movzx ecx, ax
add esp, 0x14
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
lea ecx, [eax + ebp + 8]
mov eax, dword [esi + 4]
push 0
push ecx
mov ecx, dword [edx + 8]
push eax
call ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x18]
push eax
call ecx
mov ebp, eax
add esp, 0x10
cmp ebp, dword [esp + 0x28]
jl 0x100ef143
pop ebx
mov dx, word [esp + 0xc]
mov ax, word [esp + 0x10]
mov cx, word [esp + 0x1c]
mov word [esi + 0x65fc], dx
mov word [esi + 0x65fe], ax
mov word [esi + 0x6244], cx
pop ebp
pop edi
pop esi
add esp, 0x14
ret

Function at 0x100fa953
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ecx]
push dword [eax - 0xc]
push eax
call fcn.100fa54c
pop ecx
pop ecx
test eax, eax
jne 0x100fa969
jmp fcn.100071b0
ret
Function at 0x1010583a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102832a0]
jne 0x10105844
repz ret
jmp fcn.1011153a

Function at 0x10121296
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x101212c7
call fcn.1010e1f6
mov dword [eax], esi
call fcn.1010e1e3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10111b6d
add esp, 0x14
push 0x16
pop eax
jmp 0x1012131c
test dword [ebp + 0xc], 0xfffffff9
jne 0x101212a3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x101212f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1010e209
pop ecx
call fcn.1010e1e3
mov eax, dword [eax]
jmp 0x1012131c
test al, 0x10
jne 0x1012131a
test al, 1
je 0x1012131a
test byte [ebp + 0xc], 2
je 0x1012131a
call fcn.1010e1f6
mov dword [eax], 5
call fcn.1010e1e3
mov dword [eax], 0xd
jmp 0x101212eb
xor eax, eax
pop esi
pop ebp
ret

Function at 0x101220ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10113dc7
and dword [ebp - 4], 0
cmp dword [0x102af504], 0
mov ebx, eax
jne 0x1012215f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10122210
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101dc348
push edi
call esi
test eax, eax
je 0x10122210
push eax
call fcn.10113d55
mov dword [esp], 0x101dc338
push edi
mov dword [0x102af504], eax
call esi
push eax
call fcn.10113d55
mov dword [esp], 0x101dc324
push edi
mov dword [0x102af508], eax
call esi
push eax
call fcn.10113d55
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102af50c], eax
call esi
push eax
call fcn.10113d55
pop ecx
mov dword [0x102af514], eax
test eax, eax
je 0x1012215f
push 0x101dc2f0
push edi
call esi
push eax
call fcn.10113d55
pop ecx
mov dword [0x102af510], eax
mov eax, dword [0x102af510]
cmp eax, ebx
je 0x101221b7
cmp dword [0x102af514], ebx
je 0x101221b7
push eax
call fcn.10113dd0
push dword [0x102af514]
mov esi, eax
call fcn.10113dd0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101221b7
test edi, edi
je 0x101221b7
call esi
test eax, eax
je 0x101221ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101221ae
test byte [ebp - 0xc], 1
jne 0x101221b7
or dword [ebp + 0x10], 0x200000
jmp 0x101221f0
mov eax, dword [0x102af508]
cmp eax, ebx
je 0x101221f0
push eax
call fcn.10113dd0
pop ecx
test eax, eax
je 0x101221f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101221f0
mov eax, dword [0x102af50c]
cmp eax, ebx
je 0x101221f0
push eax
call fcn.10113dd0
pop ecx
test eax, eax
je 0x101221f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102af504]
call fcn.10113dd0
pop ecx
test eax, eax
je 0x10122210
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10122212
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1012edb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x1012ef5a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x1012ee08
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x1012ee1b
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x1012ee2f
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x1012ee76.3
jmp 0x1012ee40
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x1012ee4c
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x1012ee51
mov esi, 1
inc eax
cmp eax, edi
jl 0x1012ee40
cmp si, cx
je case.0x1012ee76.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x1012ee76.3
movzx eax, byte [eax + 0x1012ef74]
jmp dword [eax*4 + 0x1012ef60]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x1012ee76.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x1012ee90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x1012ee76.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x1012eed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x1012ee76.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x1012eef6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x1012ee76.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x1012ef20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10139160
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1013918f
push esi
call fcn.101398e0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x10139188
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x10139209
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x101391f9
mov eax, dword [esi + 8]
test eax, eax
je 0x101391b4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x101391f5
cmp eax, 2
je 0x101391f9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x101391a5
cmp eax, 3
je 0x101391dc
cmp eax, 1
jne 0x101391a5
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x101391a5
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x101391a5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.10138e30
pop esi
ret
cmp eax, 0xcc
je 0x1013922b
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.10138e30
pop esi
ret

Function at 0x10141ba0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x10141bc7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x10141bd3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x10141cc9
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x10141c1c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x10141c3d
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
dec ebp
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.10141a10
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x10141c67
inc ebx
mov ecx, ebp
mov eax, ebx
call fcn.10141a10
mov ecx, eax
cmp esi, ecx
jg 0x10141c57
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
inc esi
cmp esi, 0xff
jle 0x10141c53
cmp dword [esp + 0x10], 0
je 0x10141cac
mov eax, 1
lea ecx, [edi - 1]
jmp 0x10141c90
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
inc eax
dec ecx
cmp eax, 0xff
jle 0x10141c90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
inc eax
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x10141c10
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x101b0570
Capabilities:
Hash data with crc32

Disassembly:
xor ecx, ecx
lea edx, [esi + 0xa48]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x101b0586
xor eax, 0xedb88320
test al, 1
je 0x101b0593
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b0595
shr eax, 1
test al, 1
je 0x101b05a2
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05a4
shr eax, 1
test al, 1
je 0x101b05b1
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05b3
shr eax, 1
test al, 1
je 0x101b05c0
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05c2
shr eax, 1
test al, 1
je 0x101b05cf
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05d1
shr eax, 1
test al, 1
je 0x101b05de
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05e0
shr eax, 1
test al, 1
je 0x101b05ed
shr eax, 1
xor eax, 0xedb88320
jmp 0x101b05ef
shr eax, 1
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x101b0578
mov byte [esi + 0xe48], 1
ret

Function at 0x101b0610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
cmp byte [esi + 0xe48], 0
push edi
mov edi, ecx
jne 0x101b0629
call fcn.101b0570
xor eax, eax
test ebx, ebx
jle 0x101b064b
nop
movzx ecx, byte [eax + ebp]
xor ecx, edi
and ecx, 0xff
shr edi, 8
xor edi, dword [esi + ecx*4 + 0xa48]
inc eax
cmp eax, ebx
jl 0x101b0630
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x5251ae
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x4010d0
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 0x4010e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401124
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401120
lea ebx, [ebx]
cmp esi, eax
jae 0x401124
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401110
cmp esi, eax
jb 0x40112a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406500
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40656e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40653f
cmp eax, 2
jne 0x40655a
mov eax, dword [esp]
test esi, esi
je 0x406568
test eax, eax
je 0x406563
test al, 1
jne 0x40655a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x406568
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x406a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x491fc8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4b7a40]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x406a84
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402720
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
setne cl
mov esi, ecx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004602bb
add esp, 8
test eax, eax
jl 0x406afb
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x406afb
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406ae8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
push 0x80070057
call fcn.004010b0
int3
Function at 0x406b10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4939a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b7a40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.00442d9a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406b56
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x20], 0
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406c23
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x406bb6
push 0x104
lea ecx, [esp + 0x10]
call fcn.00402310
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004602bb
add esp, 8
test eax, eax
jl 0x406c19
cmp eax, dword [esi - 8]
jg 0x406c19
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add esi, 0xfffffff0
push esi
call fcn.00402360
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406c53
mov ecx, dword [esi]
push esi
jmp 0x406c4c
push 0x80070057
call fcn.004010b0
push 0x49e6f4
mov ecx, ebx
call fcn.00401bc0
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c53
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x407900
Capabilities:
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x494fb0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b7a40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.00402360
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00406a40
add esp, 4
test eax, eax
jne 0x407960
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.main.7z
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00405860
add esp, 0xc
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 1
push eax
mov eax, dword [esp + 0x10]
call fcn.00407a10
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00430510
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x407a10
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push edi
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407a37
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
call fcn.00447014
movzx ecx, word [esp + 0x18]
mov esi, dword [eax + 0xc]
push 0x49ef0c
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x408ad0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x493848
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4b7a40]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov eax, dword [0x4b7a40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
call fcn.00442d9a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408b21
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x42
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00402260
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408c04
push str.YouXunBoxYouxun.exe
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00405860
add esp, 0xc
push str.RUNASADMIN
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00401bc0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408bdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0045ff59
add esp, 0x24
ret