joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46baac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x46bb49
push ebx
push esi
call fcn.0046ba68
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00468bf7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x46baf6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46bb48
push edi
push eax
call fcn.00460f35
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x46bb16
call fcn.0045ffc5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46bb47
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00468bf7
add esp, 0x20
test eax, eax
jne 0x46bb35
push edi
call fcn.0045ffc5
jmp 0x46bb3d
push ebx
call fcn.0045ffc5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x46bb4c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x46bb5d
pop esi
ret
push ebx
push edi
push esi
call fcn.0046ba68
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00460f35
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x46bb85
push ebx
push esi
push edi
call fcn.00424680
add esp, 0xc
push 0
call fcn.0045ffc5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x46c466
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046bdf8
Function at 0x47406c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x495c28]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4740ac
cmp byte [ebx], 0xa
jne 0x4740ac
or byte [eax + edi + 0x28], 4
jmp 0x4740b1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4741af
mov al, byte [edx]
cmp al, 0x1a
je 0x474191
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4740e0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x474105
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x47410f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4740c2
jmp 0x4741af
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47418c
cmp dword [ebp - 0xc], 0
je 0x47418c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x495c28]
test byte [eax + edi + 0x28], 0x48
je 0x474166
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x474151
mov byte [esi], dl
jmp 0x474162
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x495c28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4741af
cmp byte [ebp - 1], 0xa
jne 0x474175
cmp esi, ebx
jne 0x474175
mov byte [esi], 0xa
jmp 0x4741ae
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00466d23
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4741af
mov byte [esi], 0xd
jmp 0x4741ae
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x495c28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4741ab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4741af
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4741b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x495c28]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4741fb
cmp word [esi], dx
jne 0x4741fb
or byte [edi + eax + 0x28], 4
jmp 0x474200
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x474353
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x474333
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x474242
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x474278
cmp eax, edx
jae 0x474284
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x47421a
jmp 0x474353
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47432f
cmp dword [ebp - 0x14], 0
je 0x47432f
mov eax, dword [ebx*4 + 0x495c28]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x474307
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4742d0
mov word [esi], cx
jmp 0x474303
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x495c28]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x495c28]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x495c28]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x474353
pop ebx
cmp word [ebp - 4], bx
jne 0x474318
cmp esi, dword [ebp + 0xc]
jne 0x474318
mov word [esi], bx
jmp 0x474350
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00466d23
add esp, 0x10
cmp word [ebp - 4], bx
je 0x474353
push 0xd
jmp 0x47434c
mov ecx, dword [ebx*4 + 0x495c28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47434a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x474353
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x478f80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x478fad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x478fad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10002000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp + 8]
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x228
mov esi, dword [edi]
mov dword [esp], ebx
call sym._build_policy_name
test eax, eax
je 0x100020f9
mov edx, dword [ebp - 0x218]
lea edi, [ebp - 0x214]
mov ebx, eax
mov dword [ebp - 0x21c], edx
mov dword [esp + 4], 0x104
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
movzx ecx, word [0x10008464]
movdqu xmm0, xmmword [str.winsxs_]
mov edx, dword [ebp - 0x21c]
sub esp, 8
cmp word [esi], 0
mov word [ebp + eax*2 - 0x204], cx
movups xmmword [ebp + eax*2 - 0x214], xmm0
lea edx, [edx + eax + 0x20]
je 0x1000208f
mov eax, esi
add eax, 2
cmp word [eax], 0
jne 0x10002080
sub eax, esi
sar eax, 1
add edx, eax
lea eax, [edx + edx]
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x21c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x21c]
test eax, eax
je 0x100020f0
mov dword [esp + 4], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], str._spolicies_s_s.policy
mov dword [esp], eax
mov dword [ebp - 0x21c], eax
call sym._swprintf
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [ebp - 0x21c]
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
xor ecx, ecx
jmp 0x100020e6

Function at 0x10002100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp + 8]
lea esi, [ebp - 0x218]
push ebx
sub esp, 0x214
mov ebx, dword [edi]
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._build_assembly_name
test eax, eax
je 0x1000221f
lea edi, [ebp - 0x214]
mov dword [esp + 4], 0x104
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
movzx edx, word [0x10008464]
movdqu xmm0, xmmword [str.winsxs_]
sub esp, 8
mov word [ebp + eax*2 - 0x204], dx
mov edx, dword [ebp - 0x218]
movups xmmword [ebp + eax*2 - 0x214], xmm0
lea eax, [eax + edx + 0xa]
mov dword [ebp - 0x218], eax
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x10002216
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x10002190
cmp word [esi], 0
mov edx, esi
je 0x100021b9
lea esi, cs:[esi]
add edx, 2
cmp word [edx], 0
jne 0x100021b0
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100021c0
cmp word [esi], 0
mov edx, esi
je 0x100021e9
lea esi, cs:[esi]
add edx, 2
cmp word [edx], 0
jne 0x100021e0
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax + 0x100081b0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100021f0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
xor esi, esi
jmp 0x1000220c
Function at 0x10002580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp + 8]
lea esi, [ebp - 0x218]
push ebx
sub esp, 0x214
mov ebx, dword [edi]
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._build_assembly_name
test eax, eax
je 0x100026cf
lea edi, [ebp - 0x214]
mov dword [esp + 4], 0x104
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
movzx edx, word [0x10008464]
movdqu xmm0, xmmword [str.winsxs_]
sub esp, 8
mov word [ebp + eax*2 - 0x204], dx
mov edx, dword [ebp - 0x218]
movups xmmword [ebp + eax*2 - 0x214], xmm0
lea eax, [eax + edx + 8]
lea edx, [eax + 0x13]
lea eax, [eax + eax + 0x28]
mov dword [ebp - 0x218], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x100026c6
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x10002618
cmp word [esi], 0
mov edx, esi
je 0x10002639
add edx, 2
cmp word [edx], 0
jne 0x10002630
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax + str.manifests_]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10002640
cmp word [esi], 0
mov edx, esi
je 0x10002669
lea esi, cs:[esi]
add edx, 2
cmp word [edx], 0
jne 0x10002660
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10002670
cmp word [esi], 0
mov edx, esi
je 0x10002699
lea esi, cs:[esi]
add edx, 2
cmp word [edx], 0
jne 0x10002690
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax + str..manifest]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100026a0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
xor esi, esi
jmp 0x100026bc
Function at 0x10002ec0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp + 8]
mov esi, edx
lea edx, [ebp - 0x218]
push ebx
sub esp, 0x21c
mov ebx, dword [edi]
mov dword [esp], edx
mov edx, esi
call sym._build_policy_name
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x100030db
lea edx, [ebp - 0x214]
mov dword [esp + 4], 0x104
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
movzx ecx, word [0x10008464]
movdqu xmm0, xmmword [str.winsxs_]
sub esp, 8
cmp word [ebx], 0
mov word [ebp + eax*2 - 0x204], cx
mov ecx, dword [ebp - 0x218]
movups xmmword [ebp + eax*2 - 0x214], xmm0
lea ecx, [eax + ecx + 0x11]
je 0x10002f4f
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10002f40
sub eax, ebx
sar eax, 1
add ecx, eax
lea eax, [ecx + 7]
mov dword [ebp - 0x218], eax
lea eax, [ecx + ecx + 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
lea edx, [ebp - 0x214]
test eax, eax
mov edi, eax
je 0x100030cc
xor eax, eax
lea esi, cs:[esi]
nop
movzx ecx, word [edx + eax]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x10002f80
cmp word [edi], 0
mov edx, edi
je 0x10002fa9
lea esi, cs:[esi]
add edx, 2
cmp word [edx], 0
jne 0x10002fa0
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax + str.policies_]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10002fb0
mov eax, dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [ebp - 0x220], eax
call eax
mov edx, edi
sub esp, 8
cmp word [edi], 0
je 0x10002ff9
lea esi, cs:[esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x10002ff0
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10003000
mov dword [esp + 4], 0
mov dword [esp], edi
mov eax, dword [ebp - 0x220]
call eax
mov edx, edi
sub esp, 8
cmp word [edi], 0
je 0x10003039
nop
add edx, 2
cmp word [edx], 0
jne 0x10003030
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax + 0x100081b0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10003040
cmp word [edi], 0
mov edx, edi
je 0x10003069
lea esi, cs:[esi]
add edx, 2
cmp word [edx], 0
jne 0x10003060
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10003070
cmp word [edi], 0
mov edx, edi
je 0x10003099
lea esi, cs:[esi]
add edx, 2
cmp word [edx], 0
jne 0x10003090
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax + str..policy]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100030a0
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
xor edi, edi
jmp 0x100030c2
Function at 0x10005520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10005578
cmp byte [esi + ebx - 1], 0xa
je 0x1000554c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000b084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
mov ecx, 0x62a668
call fcn.00417930
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
mov dword [0x639a40], ebx
call ebp
mov esi, eax
push 7
add esi, esi
call ebp
mov edi, eax
push 4
add edi, edi
call ebp
mov ecx, dword [0x66a5c8]
mov edx, dword [0x66a5c4]
push 0
push ebx
push 0
push 0
add eax, edi
add ecx, eax
push ecx
add edx, esi
push edx
push 0
push 0x80000000
push 0x2ca0000
push 0x639840
push 0x639a58
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
mov dword [0x63982c], esi
jne 0x40107d
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
mov ecx, 0x58d05c
call fcn.00402110
cmp dword [0x62dcb0], 0
push 0
mov ecx, 0x58d05c
push 0
jne 0x4010ce
push 1
call fcn.00401f10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 2
call fcn.00401f10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x403ee0
Capabilities:
Execute command

Disassembly:
push 0xffffffffffffffff
push 0x55238e
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x6397d4]
xor eax, esp
mov dword [esp + 0x100], eax
push ebp
push esi
push edi
mov eax, dword [0x6397d4]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x124]
cmp ebp, 0xffffffff
mov edi, ecx
jle 0x40400b
mov eax, ebp
imul eax, eax, 0x58
cmp dword [eax + 0x66a800], 0
lea esi, [eax + 0x66a7ac]
je 0x40400e
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 1
call eax
movzx ecx, word [esi + 0x10]
push ecx
push esi
mov ecx, 0x636dc0
call fcn.00508dc0
test eax, eax
jne 0x403f6e
push eax
push 4
mov ecx, edi
call fcn.004031d0
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0
call eax
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
test byte [0x63ad54], 1
movzx ecx, word [esi + 0x52]
mov dword [0x639828], ecx
jne 0x403fba
or dword [0x63ad54], 1
mov ecx, 0x6396fc
mov dword [esp + 0x11c], 0
call fcn.00482880
mov dword [0x63ad50], eax
cmp dword [0x63ad50], 0
jne 0x40400b
push 0xff
lea edx, [esp + 0x15]
push 0
push edx
mov byte [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x14]
push str.taskkill__F__PID__d
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCR80.dll_system]
add esp, 0x10
mov dword [0x58d060], 1
mov dword [edi + 0x54], ebp
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0055160d
add esp, 0x110
ret 4
Function at 0x40ab10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [0x6397d4]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp]
mov edx, dword [eax + 0x60]
push esi
push edi
push 6
mov ecx, ebp
call edx
mov esi, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x60]
push 7
mov ecx, ebp
mov dword [esp + 0x1c], esi
call edx
mov edi, eax
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.0041c270
mov ecx, edi
mov ebx, eax
call fcn.0041c270
mov edi, 0x562815
mov esi, ebx
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x10], eax
je 0x40acdd
mov esi, eax
mov edi, 0x562815
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40acdd
mov edi, 0x562815
mov esi, str.1111
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40acdd
mov byte [esp + 0x21], al
lea eax, [esp + 0x63]
push eax
mov ecx, 0x63aeb0
call fcn.0040fe90
push 0x11
lea ecx, [esp + 0x34]
push ebx
push ecx
mov word [esp + 0x2e], 0x206
mov word [esp + 0x30], 0x1f5
call fcn.005099f0
mov esi, dword [esp + 0x1c]
push 0x11
lea edx, [esp + 0x51]
push esi
push edx
call fcn.005099f0
push 0x11
lea eax, [esp + 0x6e]
push str.1111
push eax
call fcn.005099f0
push 0x10
lea ecx, [esp + 0x9d]
push str.MOSIANG2021
push ecx
call fcn.005099f0
push 0x11
push ebx
push 0x64fa9c
call fcn.005099f0
push 0x11
push esi
push 0x64faad
call fcn.005099f0
mov edx, dword [0x63aadc]
add esp, 0x48
push 0x66
lea eax, [esp + 0x24]
push eax
mov ecx, 0x636dc0
mov dword [esp + 0x34], edx
call fcn.00508f50
push 0x11
push ebx
push 0x639a44
call fcn.005099f0
add esp, 0xc
push 0x123
mov ecx, 0x64aa48
call fcn.004bcff0
push eax
push 3
push 0xfd5
push 0x62adb0
call fcn.00439540
add esp, 0x10
mov edi, eax
push 1
mov ecx, 0x62adb0
mov dword [esp + 0x18], edi
call fcn.004373d0
mov esi, eax
test esi, esi
je 0x40acc4
test edi, edi
je 0x40acc4
movzx ecx, word [esi + 0x22e]
mov edi, dword [edi]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fadd dword [esi + 0x208]
call fcn.00551860
fld dword [esi + 0x204]
push eax
call fcn.00551860
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x24]
push eax
call edx
push 1
mov ecx, 0x63aac8
call fcn.004028a0
push ebx
mov ecx, 0x6359a8
call fcn.004e1350
jmp 0x40ad49
push 0x16a
mov ecx, 0x64aa48
call fcn.004bcff0
push eax
push 1
push 0xfb9
push 0x62adb0
call fcn.00439540
add esp, 0x10
push 1
mov ecx, 0x62adb0
mov edi, eax
call fcn.004373d0
mov esi, eax
test esi, esi
je 0x40ad49
test edi, edi
je 0x40ad49
movzx eax, word [esi + 0x22e]
mov ebx, dword [edi]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fadd dword [esi + 0x208]
call fcn.00551860
fld dword [esi + 0x204]
push eax
call fcn.00551860
mov edx, dword [ebx + 0x24]
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
push 0
call edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
push 0
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
push 1
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055160d
add esp, 0x7c
ret
Function at 0x40fba0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x130
mov eax, dword [0x6397d4]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
mov esi, dword [esp + 0x13c]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x24], esi
je 0x40fd54
cmp byte [esi], bl
je 0x40fd54
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fd54
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40fc24
mov dword [esp + 0xc], 0x64
push edi
xor edi, edi
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
jbe 0x40fd42
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea esp, [esp]
xor eax, eax
push edi
push str._04u
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], al
lea eax, [esp + 0x38]
push 5
push eax
call fcn.0040f840
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fd19
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push str.NetCfgInstanceId
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
je 0x40fcbf
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fd19
push esi
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40fcdc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fd19
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.Characteristics
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], 4
call ebp
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40fd39
mov esi, dword [esp + 0x2c]
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x40fc40
mov edx, dword [esp + 0x18]
pop ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
jmp 0x40fd56
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
pop ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
jmp 0x40fd56
xor eax, eax
mov ecx, dword [esp + 0x134]
pop esi
pop ebx
xor ecx, esp
call fcn.0055160d
add esp, 0x130
ret 4