joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031b10
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x348
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x244]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x35c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov dl, byte [0x1004b21a]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov cx, word [0x1004b218]
dec edi
lea eax, [esp + 0x10]
mov word [edi], cx
lea ecx, [esp + 0x254]
push eax
push ecx
mov byte [edi + 2], dl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
xor edx, edx
cmp ebx, 0xffffffff
setne dl
mov ebp, edx
test ebp, ebp
je 0x10031cdf
mov edi, 0x1004b21c
lea esi, [esp + 0x3c]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10031c70
mov edi, 0x1004b220
lea esi, [esp + 0x3c]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10031c70
lea edi, [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x150]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2a
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
lea edi, [esp + 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [esp + 0x10], 0x10
je 0x10031c56
mov ecx, dword [esp + 0x368]
mov edx, dword [esp + 0x364]
mov eax, dword [esp + 0x360]
push ecx
push edx
lea ecx, [esp + 0x158]
push eax
push ecx
call fcn.10031b10
add esp, 0x10
test eax, eax
jne 0x10031cdf
jmp 0x10031c70
mov edx, dword [esp + 0x360]
lea eax, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x10031c9a
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, eax
test ebp, ebp
jne 0x10031b8e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x348
ret
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x368]
not ecx
dec ecx
cmp eax, ecx
jbe 0x10031cdf
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x364]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x348
ret
Function at 0x10035a50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push esi
push eax
push 2
or esi, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10035a75
xor eax, eax
pop esi
add esp, 0x1a0
ret
push edi
mov edi, dword [esp + 0x1ac]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10035ab3
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10035afa
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
lea edi, [esp + 0xc]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1b0]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x16], ax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10035afa
lea edx, [esp + 8]
push 0x10
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10035afa
mov edi, 1
jmp 0x10035afc
xor edi, edi
cmp esi, 0xffffffff
je 0x10035b08
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
pop edi
pop esi
add esp, 0x1a0
ret
Function at 0x10036d80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
mov eax, dword [0x10052c44]
mov dword [esp], str.getaddrinfo
test eax, eax
mov dword [esp + 4], 0x10036420
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10036b40
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x100363d0
je 0x10036ddb
mov eax, dword [esp + 0x230]
and eax, 0xffff
mov eax, dword [eax*8 + 0x1004bccc]
add esp, 0x22c
ret 4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x134]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10036f35
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov ebp, dword [0x1004c1b8]
mov esi, eax
test esi, esi
je 0x10036e7c
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10036ef4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x10036f35
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10036ef4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10036f35
mov ecx, dword [0x1003b5f0]
xor ebx, ebx
test ecx, ecx
jle 0x10036f1f
lea edi, [esp + 0x14]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebp
test eax, eax
mov dword [edi], eax
je 0x10036eeb
mov ecx, dword [0x1003b5f0]
inc ebx
add edi, 8
cmp ebx, ecx
jl 0x10036f04
xor eax, eax
test ecx, ecx
jle 0x10036f35
mov edx, dword [esp + eax*8 + 0x14]
mov dword [eax*8 + 0x1004bccc], edx
inc eax
cmp eax, ecx
jl 0x10036f25
mov eax, dword [esp + 0x240]
pop edi
and eax, 0xffff
pop esi
pop ebp
mov dword [0x10052c44], 1
mov eax, dword [eax*8 + 0x1004bccc]
pop ebx
add esp, 0x22c
ret 4
Function at 0x6d2c1e30
Capabilities:
Check for sandbox and av modules

Disassembly:
push str.pstorec.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
jne 0x6d2c1e51
push str.pstorec.dll
call fcn.6d2c30d0
add esp, 4
test eax, eax
jne 0x6d2c1e51
ret
push str.PStoreCreateInstance
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
ret
Function at 0x6d2c2930
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xfffffffffffffffe
push 0x6d2df8c0
push 0x6d2d943c
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6d2e54cc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 0xff
or ebx, 0xffffffff
push str.Secur32.dll
call fcn.6d2c30d0
add esp, 4
mov dword [ebp - 0x1c], eax
push str.LsaEnumerateLogonSessions
push eax
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call esi
mov edi, eax
push str.LsaGetLogonSessionData
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov dword [ebp - 0x40], eax
push str.LsaFreeReturnBuffer
mov ecx, dword [ebp - 0x1c]
push ecx
call esi
mov dword [ebp - 0x30], eax
xor esi, esi
cmp edi, esi
je 0x6d2c29da
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
call edi
mov ebx, eax
cmp ebx, esi
je 0x6d2c29e5
mov dword [ebp - 0x24], 1
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
cmp ebx, dword [ebp - 0x24]
jge 0x6d2c2a82
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x40]
cmp eax, esi
je 0x6d2c2a82
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
lea ecx, [edx + ebx*8]
push ecx
call eax
cmp eax, esi
jne 0x6d2c2a82
mov edi, dword [ebp - 0x20]
cmp dword [edi + 0x20], esi
je 0x6d2c2a78
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp]
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x6d2c2a57
cmp dx, si
je 0x6d2c2a53
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x6d2c2a57
add eax, 4
add ecx, 4
cmp dx, si
jne 0x6d2c2a31
xor eax, eax
jmp 0x6d2c2a5c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x6d2c2a78
mov eax, dword [edi + 4]
mov dword [ebp - 0x48], eax
mov ecx, dword [edi + 8]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ebx
push edi
call dword [ebp - 0x30]
inc ebx
jmp 0x6d2c29e7
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x6d2c2a8f
mov edx, dword [ebp - 0x28]
push edx
call eax
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x6d2c2a9d
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x6d2c2ace
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.6d2d932c
lea esp, [ebp + 0x204]
pop ebp
ret 8

Function at 0x6d2c2dc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp], 4
je 0x6d2c2dfd
mov eax, 0xd
add esp, 8
ret 8
Function at 0x6d2c2e10
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x6d2c2e23
push 0x80004005
call fcn.6d2c1d60
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x6d2c2e8a
mov ecx, dword [edi]
test ecx, ecx
je 0x6d2c2e87
mov edx, dword [esp + 0x14]
test edx, edx
je 0x6d2c2e82
cmp edx, 2
jbe 0x6d2c2e7b
cmp edx, 7
jne 0x6d2c2e82
cmp ecx, 1
jb 0x6d2c2e82
cmp byte [ecx + esi - 1], 0
jne 0x6d2c2e82
cmp ecx, 1
jbe 0x6d2c2e8a
cmp byte [ecx + esi - 2], 0
jmp 0x6d2c2e80
cmp byte [ecx + esi - 1], 0
je 0x6d2c2e8a
mov eax, 0xd
mov byte [esi], 0
pop esi
pop edi
ret 0xc

Function at 0x6d2c2f50
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x6d2e54cc]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x6d2e5614], 0
jne 0x6d2c2fc0
push 0x94
lea eax, [esp + 4]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
mov ecx, 1
cmp eax, 2
ja 0x6d2c2fb4
jne 0x6d2c2fba
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x6d2c2fb4
jne 0x6d2c2fba
cmp dword [esp + 8], ecx
jb 0x6d2c2fba
mov dword [0x6d2e5610], ecx
mov dword [0x6d2e5614], ecx
mov ecx, dword [esp + 0x94]
mov eax, dword [0x6d2e5610]
xor ecx, esp
call fcn.6d2d932c
add esp, 0x98
ret

Function at 0x6d2c2ff0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x6d2e54cc]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x6d2e561c], 0
je 0x6d2c3027
mov eax, dword [0x6d2e5618]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.6d2d932c
add esp, 0x98
ret
push 0x94
lea eax, [esp + 4]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x6d2c3062
cmp dword [esp + 4], 6
jb 0x6d2c3062
mov eax, 1
jmp 0x6d2c3064
xor eax, eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
mov dword [0x6d2e5618], eax
mov dword [0x6d2e561c], 1
call fcn.6d2d932c
add esp, 0x98
ret
Function at 0x6d2c30d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6d2e54cc]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x6d2c317c
cmp eax, 0x104
ja 0x6d2c317c
push 0x103
lea edx, [esp + 0x10d]
push 0
push edx
mov byte [esp + 0x114], 0
call sub.MSVCR100.dll_memset
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x11c]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.6d2d932c
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.6d2d932c
add esp, 0x20c
ret
Function at 0x6d2c3a90
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x6d2e54cc]
xor eax, esp
mov dword [esp + 0x820], eax
mov eax, dword [esp + 0x82c]
push esi
mov esi, dword [esp + 0x82c]
push edi
push eax
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x434]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll__vsnprintf_s]
add esp, 0x14
test eax, eax
jns 0x6d2c3ada
mov byte [esp + 0x827], 0
lea ecx, [esp + 8]
push 0x20
push ecx
call fcn.6d2c39f0
push 0x6d2db9dc
lea edx, [esp + 0x14]
push 0x20
push edx
call dword [sym.imp.MSVCR100.dll_strcat_s]
mov eax, esi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6d2c3b00
sub eax, edx
cmp eax, 6
jbe 0x6d2c3b45
mov ecx, str.__08x_
lea eax, [esi + eax - 6]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x6d2c3b37
test dl, dl
je 0x6d2c3b33
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x6d2c3b37
add eax, 2
add ecx, 2
test dl, dl
jne 0x6d2c3b17
xor eax, eax
jmp 0x6d2c3b3c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x6d2c3b45
lea edi, [eax + 1]
jmp 0x6d2c3b47
xor edi, edi
lea eax, [esp + 8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6d2c3b50
sub eax, edx
mov esi, eax
mov eax, str.Error:
test edi, edi
jne 0x6d2c3b69
mov eax, 0x6d2db9cb
lea ecx, [esp + 0x428]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov edx, 0x3ff
push 0xffffffffffffffff
sub edx, esi
push edx
lea eax, [esp + esi + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll__snprintf_s]
add esp, 0x20
test eax, eax
jns 0x6d2c3bac
mov dword [esp + 0x423], 0x2e2e2e
push esi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x30]
push edx
call sub.MSVCR100.dll_memcpy
lea edi, [esp + 0x34]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x6d2c3bc4
mov ax, word [0x6d2db9b4]
lea ecx, [esp + 0x28]
push ecx
mov word [edi], ax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x828]
pop edi
pop esi
xor ecx, esp
call fcn.6d2d932c
add esp, 0x824
ret

Function at 0x6d2c3ca0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x6d2c3ce0
push str.Advapi32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x6d2c3ced
push str.RegDeleteKeyTransactedA
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x6d2c3ced
mov ecx, dword [esi]
mov edx, dword [esp + 0xc]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push edx
push ecx
call eax
pop esi
ret 8
cmp dword [esi + 4], 0
je 0x6d2c3ced
pop esi
jmp dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, 1
pop esi
ret 8

Function at 0x6d2c3e30
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8
Function at 0x6d2c3fa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6d2e54cc]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
call fcn.6d2c2ed0
push 0x104
test eax, eax
je 0x6d2c3fd7
lea eax, [esp + 8]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
jmp 0x6d2c3fe2
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x6d2c4016
cmp eax, 0x104
jae 0x6d2c4016
mov edx, dword [esi]
mov ecx, dword [edx + 0x28c]
push eax
lea eax, [esp + 8]
push eax
push esi
call ecx
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.6d2d932c
add esp, 0x20c
ret 8
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.6d2d932c
add esp, 0x20c
ret 8
Function at 0x6d2c4810
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x6d2e54cc]
xor eax, esp
mov dword [esp + 0x30c], eax
cmp dword [0x6d2e5620], 0
jne 0x6d2c494c
lea eax, [esp + 0x104]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
js 0x6d2c494c
lea eax, [esp + 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x6d2c4854
mov ecx, dword [str.jawshtml.html]
mov edx, dword [0x6d2dbae8]
mov dword [eax], ecx
mov ecx, dword [0x6d2dbaec]
mov dword [eax + 4], edx
mov dx, word [0x6d2dbaf0]
mov dword [eax + 8], ecx
push esi
mov word [eax + 0xc], dx
lea eax, [esp + 0x108]
push 0x6d2dbae0
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
push esi
push str._HTML___HTML_
call dword [sym.imp.MSVCR100.dll_fputs]
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0x110]
push eax
mov byte [esp + 0x10], 0
mov byte [esp + 0x218], 0
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jle 0x6d2c493a
lea eax, [esp + 4]
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6d2c48e3
sub eax, esi
cmp byte [esp + 4], cl
je 0x6d2c4901
cmp byte [esp + ecx + 4], 0x20
jne 0x6d2c4901
inc ecx
cmp byte [esp + ecx + 4], 0
jne 0x6d2c48f2
cmp eax, ecx
jle 0x6d2c493a
lea edx, [esp + 4]
lea esp, [esp]
cmp byte [edx + eax - 1], 0x20
jne 0x6d2c491e
dec eax
cmp eax, ecx
jg 0x6d2c4910
jmp 0x6d2c493a
cmp eax, ecx
jle 0x6d2c493a
lea ecx, [esp + ecx + 4]
push ecx
mov byte [esp + eax + 8], 0
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
mov dword [0x6d2e5620], eax
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
pop esi
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.6d2d932c
add esp, 0x310
ret

Function at 0x6d2c4970
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov dword [esp + 4], 0
call fcn.6d2c2ff0
test eax, eax
jne 0x6d2c4988
add esp, 0x10
ret
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d2c49ed
mov eax, 4
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0
push str.EnableLUA
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp + 4], 1
sete al
add esp, 0x10
ret
mov eax, 1
add esp, 0x10
ret
Function at 0x6d2c4a20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x6d2e54cc]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0x114]
mov edx, dword [eax]
push esi
push 0
push ecx
mov byte [esp + 0xc], 0
push eax
mov eax, dword [edx + 0x2a4]
call eax
mov esi, eax
call fcn.6d2c4810
mov eax, dword [0x6d2e5620]
test eax, eax
jne 0x6d2c4a80
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.6d2d932c
add esp, 0x108
ret 0xc
push 1
lea ecx, [esp + 8]
push ecx
push esi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x108]
xor edx, edx
cmp eax, 0x20
setg al
pop esi
xor ecx, esp
call fcn.6d2d932c
add esp, 0x108
ret 0xc

Function at 0x6d2c4af0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x6d2e54cc]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.Control_PanelDesktopWindowMetrics
push SysReAllocString
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d2c4b85
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.Shell_Icon_Size
push ecx
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d2c4b77
mov eax, dword [esp + 8]
cmp eax, 8
jae 0x6d2c4b65
mov byte [esp + eax + 0x10], 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov esi, eax
jmp 0x6d2c4b7a
or esi, 0xffffffff
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
xor ecx, esp
call fcn.6d2d932c
add esp, 0x18
ret 8
Function at 0x6d2c4e00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
mov eax, dword [0x6d2e54cc]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.6d2c2d40
mov ebx, eax
cmp ebx, esi
je 0x6d2c4e65
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x6d2c4e5e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x6d2c4f01
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push esi
push esi
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
push eax
mov dword [esp + 0x3c], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x6d2c4ecc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.6d2c4e00
mov ebx, eax
cmp ebx, esi
jne 0x6d2c4f1b
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
push edx
mov dword [esp + 0x3c], pe_nt_image_headers32
call ebp
test eax, eax
je 0x6d2c4e92
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x6d2c4ee1
push eax
call ebx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.6d2c3d00
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d2c4efe
push eax
call ebx
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6d2d932c
add esp, 0x120
ret 4
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d2c4f2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x6d2c4f00