joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3001086e
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30010f28
call fcn.30010966
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x300128ec
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x3001060d
cmp eax, esi
jne 0x30010600
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30010610
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x300105e7
xor esi, esi
inc esi
mov eax, dword [0x300128e8]
cmp eax, esi
jne 0x30010623
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30010652
mov eax, dword [0x300128e8]
test eax, eax
jne 0x3001064c
mov dword [0x300128e8], esi
push 0x300012b0
push 0x300012a8
call fcn.300a2000
pop ecx
pop ecx
test eax, eax
je 0x30010652
jmp 0x3001077a
mov dword [0x300125ac], esi
mov eax, dword [0x300128e8]
cmp eax, esi
jne 0x30010676
push 0x300012a4
push 0x30001284
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x300128e8], 2
test ebx, ebx
jne 0x30010682
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x300128f8], 0
je 0x300106a6
push 0x300128f8
call fcn.30010c6a
pop ecx
test eax, eax
je 0x300106a6
push 0
push 2
push 0
call dword [0x300128f8]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30010702
test al, al
je 0x300106c0
cmp dword [ebp - 0x1c], 0
jne 0x30010702
mov al, byte [esi]
test al, al
je 0x300106d0
cmp al, 0x20
ja 0x300106d0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x300106c0
test byte [ebp - 0x3c], 1
je 0x300106dc
movzx eax, word [ebp - 0x38]
jmp 0x300106df
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x300125a8], eax
cmp dword [0x3001259c], 0
jne 0x30010756
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30010711
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30010724
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x300106ad
cmp dword [0x300125ac], 0
jne 0x30010765
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x300125a8]
jmp 0x30010786
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300109ab
ret
call fcn.3000ff10
jmp 0x300105ad
Function at 0x401460
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
call sym.___main
mov dword [ebp - 0xc], 0x9000
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x404020
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._memmove
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebp - 0x14], eax
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401b50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x410044
call sym._EnterCriticalSection_4
mov ebx, dword [0x41003c]
sub esp, 4
test ebx, ebx
je 0x401b9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b94
test esi, esi
je 0x401b94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b70
mov dword [esp], 0x410044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ea8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e0e
cmp eax, 4
jne 0x401e30
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e1e
cmp edx, 4
je 0x401e1e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d80
Function at 0x5075e5
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
call fcn.0050746b
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x40
xor eax, eax
cmp dword [ebp - 4], ebx
pop ecx
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x158]
jne 0x507627
push 0x100
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
jmp 0x507633
push eax
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
xor eax, eax
cmp byte [ebp - 0x158], bl
je 0x50766b
inc eax
cmp byte [ebp + eax - 0x158], bl
jne 0x50763d
cmp eax, ebx
je 0x50766b
mov cl, byte [ebp + eax - 0x159]
cmp cl, 0x5c
je 0x50766b
cmp cl, 0x2f
je 0x50766b
mov byte [ebp + eax - 0x158], 0x5c
mov byte [ebp + eax - 0x157], bl
lea eax, [ebp - 0x158]
push 0x502b18
push eax
call esi
lea eax, [ebp - 0x158]
push 0x501830
push eax
call esi
lea eax, [ebp - 0x158]
push 0x5025ac
push eax
call esi
push ebx
push 0x80
push 2
push ebx
push 3
lea eax, [ebp - 0x158]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5076c8
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x507601
jmp 0x50772b
push edi
call fcn.0050737c
pop ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x258]
push 0x502b10
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
lea eax, [ebp - 0x48]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x1c], 0x81
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea eax, [ebp - 0x258]
push ebx
push eax
push ebx
mov word [ebp - 0x18], bx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..wixburn
mov ebx, 0x40c7d0
nop
mov ecx, 0x416d6bca
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..pdata
mov ebx, 0x42f314
nop
nop
mov ecx, 0x16864f72
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x543b10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x543b3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x543b3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x6d1b1e30
Capabilities:
Check for sandbox and av modules

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

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xfffffffffffffffe
push 0x6d1cf8c0
push 0x6d1c943c
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6d1d54cc]
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.6d1b30d0
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 0x6d1b29da
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
call edi
mov ebx, eax
cmp ebx, esi
je 0x6d1b29e5
mov dword [ebp - 0x24], 1
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
cmp ebx, dword [ebp - 0x24]
jge 0x6d1b2a82
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x40]
cmp eax, esi
je 0x6d1b2a82
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
lea ecx, [edx + ebx*8]
push ecx
call eax
cmp eax, esi
jne 0x6d1b2a82
mov edi, dword [ebp - 0x20]
cmp dword [edi + 0x20], esi
je 0x6d1b2a78
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 0x6d1b2a57
cmp dx, si
je 0x6d1b2a53
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x6d1b2a57
add eax, 4
add ecx, 4
cmp dx, si
jne 0x6d1b2a31
xor eax, eax
jmp 0x6d1b2a5c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x6d1b2a78
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 0x6d1b29e7
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x6d1b2a8f
mov edx, dword [ebp - 0x28]
push edx
call eax
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x6d1b2a9d
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 0x6d1b2ace
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.6d1c932c
lea esp, [ebp + 0x204]
pop ebp
ret 8

Function at 0x6d1b2dc0
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 0x6d1b2dfd
mov eax, 0xd
add esp, 8
ret 8
Function at 0x6d1b2e10
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x6d1b2e23
push 0x80004005
call fcn.6d1b1d60
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 0x6d1b2e8a
mov ecx, dword [edi]
test ecx, ecx
je 0x6d1b2e87
mov edx, dword [esp + 0x14]
test edx, edx
je 0x6d1b2e82
cmp edx, 2
jbe 0x6d1b2e7b
cmp edx, 7
jne 0x6d1b2e82
cmp ecx, 1
jb 0x6d1b2e82
cmp byte [ecx + esi - 1], 0
jne 0x6d1b2e82
cmp ecx, 1
jbe 0x6d1b2e8a
cmp byte [ecx + esi - 2], 0
jmp 0x6d1b2e80
cmp byte [ecx + esi - 1], 0
je 0x6d1b2e8a
mov eax, 0xd
mov byte [esi], 0
pop esi
pop edi
ret 0xc

Function at 0x6d1b2f50
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x6d1d5614], 0
jne 0x6d1b2fc0
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 0x6d1b2fb4
jne 0x6d1b2fba
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x6d1b2fb4
jne 0x6d1b2fba
cmp dword [esp + 8], ecx
jb 0x6d1b2fba
mov dword [0x6d1d5610], ecx
mov dword [0x6d1d5614], ecx
mov ecx, dword [esp + 0x94]
mov eax, dword [0x6d1d5610]
xor ecx, esp
call fcn.6d1c932c
add esp, 0x98
ret

Function at 0x6d1b2ff0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x6d1d561c], 0
je 0x6d1b3027
mov eax, dword [0x6d1d5618]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.6d1c932c
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 0x6d1b3062
cmp dword [esp + 4], 6
jb 0x6d1b3062
mov eax, 1
jmp 0x6d1b3064
xor eax, eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
mov dword [0x6d1d5618], eax
mov dword [0x6d1d561c], 1
call fcn.6d1c932c
add esp, 0x98
ret
Function at 0x6d1b30d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6d1d54cc]
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 0x6d1b317c
cmp eax, 0x104
ja 0x6d1b317c
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.6d1c932c
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.6d1c932c
add esp, 0x20c
ret
Function at 0x6d1b3a90
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x6d1d54cc]
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 0x6d1b3ada
mov byte [esp + 0x827], 0
lea ecx, [esp + 8]
push 0x20
push ecx
call fcn.6d1b39f0
push 0x6d1cb9dc
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 0x6d1b3b00
sub eax, edx
cmp eax, 6
jbe 0x6d1b3b45
mov ecx, str.__08x_
lea eax, [esi + eax - 6]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x6d1b3b37
test dl, dl
je 0x6d1b3b33
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x6d1b3b37
add eax, 2
add ecx, 2
test dl, dl
jne 0x6d1b3b17
xor eax, eax
jmp 0x6d1b3b3c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x6d1b3b45
lea edi, [eax + 1]
jmp 0x6d1b3b47
xor edi, edi
lea eax, [esp + 8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6d1b3b50
sub eax, edx
mov esi, eax
mov eax, str.Error:
test edi, edi
jne 0x6d1b3b69
mov eax, 0x6d1cb9cb
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 0x6d1b3bac
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 0x6d1b3bc4
mov ax, word [0x6d1cb9b4]
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.6d1c932c
add esp, 0x824
ret

Function at 0x6d1b3ca0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x6d1b3ce0
push str.Advapi32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x6d1b3ced
push str.RegDeleteKeyTransactedA
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x6d1b3ced
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 0x6d1b3ced
pop esi
jmp dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, 1
pop esi
ret 8

Function at 0x6d1b3e30
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 0x6d1b3fa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
call fcn.6d1b2ed0
push 0x104
test eax, eax
je 0x6d1b3fd7
lea eax, [esp + 8]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
jmp 0x6d1b3fe2
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x6d1b4016
cmp eax, 0x104
jae 0x6d1b4016
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.6d1c932c
add esp, 0x20c
ret 8
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.6d1c932c
add esp, 0x20c
ret 8
Function at 0x6d1b4810
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x30c], eax
cmp dword [0x6d1d5620], 0
jne 0x6d1b494c
lea eax, [esp + 0x104]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
js 0x6d1b494c
lea eax, [esp + 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x6d1b4854
mov ecx, dword [str.jawshtml.html]
mov edx, dword [0x6d1cbae8]
mov dword [eax], ecx
mov ecx, dword [0x6d1cbaec]
mov dword [eax + 4], edx
mov dx, word [0x6d1cbaf0]
mov dword [eax + 8], ecx
push esi
mov word [eax + 0xc], dx
lea eax, [esp + 0x108]
push 0x6d1cbae0
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 0x6d1b493a
lea eax, [esp + 4]
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6d1b48e3
sub eax, esi
cmp byte [esp + 4], cl
je 0x6d1b4901
cmp byte [esp + ecx + 4], 0x20
jne 0x6d1b4901
inc ecx
cmp byte [esp + ecx + 4], 0
jne 0x6d1b48f2
cmp eax, ecx
jle 0x6d1b493a
lea edx, [esp + 4]
lea esp, [esp]
cmp byte [edx + eax - 1], 0x20
jne 0x6d1b491e
dec eax
cmp eax, ecx
jg 0x6d1b4910
jmp 0x6d1b493a
cmp eax, ecx
jle 0x6d1b493a
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 [0x6d1d5620], 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.6d1c932c
add esp, 0x310
ret

Function at 0x6d1b4970
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov dword [esp + 4], 0
call fcn.6d1b2ff0
test eax, eax
jne 0x6d1b4988
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 0x6d1b49ed
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 0x6d1b4a20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x6d1d54cc]
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.6d1b4810
mov eax, dword [0x6d1d5620]
test eax, eax
jne 0x6d1b4a80
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.6d1c932c
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.6d1c932c
add esp, 0x108
ret 0xc

Function at 0x6d1b4af0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x6d1d54cc]
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 0x6d1b4b85
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 0x6d1b4b77
mov eax, dword [esp + 8]
cmp eax, 8
jae 0x6d1b4b65
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 0x6d1b4b7a
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.6d1c932c
add esp, 0x18
ret 8