joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2cab
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d2ce3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d0d38
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d0d10
jmp 0x4d2cef
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d439c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d43de
call fcn.004da11a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d43de
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d43d5
xor eax, eax
jmp 0x4d43e6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d43ec
pop edi
pop esi
pop ebx
ret 4

Function at 0x4da64a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4da678
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4da696
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004da5b0
jmp 0x4da696
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4da696
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004da5b0
test edi, edi
mov eax, edi
jne 0x4da680
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 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 0x401730
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401780
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 4]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401780
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ecx
ret
xor al, al
pop ecx
ret

Function at 0x401790
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push 0x4012f0
push 0x80000001
mov dword [esp + 0x24], esi
call edi
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4017ea
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0
push 0
push 0x4012a8
push edx
call ebp
test eax, eax
jne 0x4017ea
mov eax, dword [esp + 0x1c]
push eax
jmp 0x401827
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push 0x4012f0
push 0x80000002
mov dword [esp + 0x24], esi
call edi
test eax, eax
jne 0x40184a
lea edx, [esp + 0x10]
push edx
push ebx
push eax
push eax
mov eax, dword [esp + 0x2c]
push 0x4012a8
push eax
call ebp
test eax, eax
jne 0x40184a
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x401390
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x40184a
pop edi
pop esi
xor edx, edx
pop ebp
mov word [eax], dx
mov al, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x401860
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x40
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0x44
call fcn.00401430
add esp, 0xc
xor eax, eax
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push edx
push eax
push eax
push 0x8000000
push eax
push eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
push eax
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4018bf
xor al, al
add esp, 0x54
ret
mov edx, dword [esp]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4018b9
mov eax, dword [esp + 0x60]
push ebx
push esi
mov bl, 1
test eax, eax
je 0x4018ed
push eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4018ed
xor bl, bl
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
mov al, bl
pop ebx
add esp, 0x54
ret
Function at 0x401f20
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20c
push 0x104
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jle 0x401fdf
cmp eax, 0x104
jae 0x401fdf
push esi
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00401590
mov esi, eax
add esp, 8
test esi, esi
je 0x401fde
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0xc]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0xc], 0
mov ebp, eax
jle 0x401fdc
mov eax, dword [ebp]
push edi
push esi
push eax
mov edi, 0x4013c8
call fcn.00401640
add esp, 8
test al, al
jne 0x401f9a
mov edi, ebx
jmp 0x401fb5
cmp dword [esp + 0x10], 1
jle 0x401fb5
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrW]
push ebx
call esi
push 0x4013c4
push eax
call esi
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [esp + 0x224], eax
jle 0x401fd4
mov ecx, dword [esp + 0x220]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20c
ret

Function at 0x402180
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x208
lea eax, [esp]
push eax
push 0
push 0x401244
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4021a9
xor al, al
add esp, 0x208
ret
push esi
mov esi, dword [esp + 0x214]
push 0x104
push esi
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x102
ja 0x4021f8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4021f8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4021f8
push 0x4013cc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov al, 1
pop esi
add esp, 0x208
ret
xor al, al
pop esi
add esp, 0x208
ret

Function at 0x402210
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
lea eax, [esp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [esp + 0x214]
dec eax
cmp eax, 0x102
ja 0x402252
lea ecx, [esp + 4]
push esi
push ecx
call fcn.00402180
add esp, 8
test al, al
je 0x402252
mov al, 1
pop esi
add esp, 0x208
ret
mov eax, dword [esp + 0x210]
push 0x104
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x40229b
push eax
lea edx, [esp + 8]
push edx
call fcn.00401590
lea edx, [esp + 0xc]
xor ecx, ecx
push esi
push edx
mov word [eax], cx
call fcn.00402180
add esp, 0x10
pop esi
add esp, 0x208
ret
xor al, al
pop esi
add esp, 0x208
ret
Function at 0x4022b0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x624
push esi
mov esi, dword [esp + 0x62c]
lea eax, [esp + 0x420]
push eax
push esi
call fcn.00402210
add esp, 8
test al, al
jne 0x4022e0
mov eax, 0x65
pop esi
add esp, 0x624
ret
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1a]
push edx
mov word [esp + 0x1c], cx
call fcn.00401430
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22e]
push ecx
mov word [esp + 0x230], ax
call fcn.00401430
push 0x104
lea edx, [esp + 0x234]
push edx
push 0x104
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x448]
push ecx
push esi
call fcn.00401a70
add esp, 0x30
test al, al
jne 0x40234d
mov eax, 0x66
pop esi
add esp, 0x624
ret
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x10], 0x67
call fcn.00401ff0
add esp, 0xc
test al, al
je 0x4023c2
push 4
lea edx, [esp + 0xc]
push edx
push 0x401278
push 0x40136c
push 0x80000001
call fcn.00401730
add esp, 0x14
test al, al
je 0x40239d
cmp word [esp + 8], 0x30
je 0x4023c2
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x218]
push ecx
call esi
lea edx, [esp + 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 4]
pop esi
add esp, 0x624
ret

Function at 0x4023d0
Capabilities:
Terminate process

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40245c
xor al, al
pop esi
pop ecx
ret 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x402472
pop ebx
xor al, al
pop esi
pop ecx
ret 4
mov edx, dword [esi]
mov eax, dword [esi + 4]
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4024c9
push 0
lea edx, [esp + 0x10]
push edx
push edi
push ebx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4024d2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor al, al
pop esi
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test eax, eax
pop ebx
setne al
pop esi
pop ecx
ret 4
Function at 0x40d172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x40d1a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x40d1a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x40ddff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.0040df04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.0040df20
push edx
push dword [ebp + 0x10]
push eax
call fcn.0040deec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040df04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040decb
push ecx
push dword [ebp + 8]
call fcn.0040df04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040df04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040decb
push ecx
push dword [ebp + 8]
call fcn.0040df04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040df04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040decb
push ecx
push dword [ebp + 8]
call fcn.0040df04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040df04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040decb
cmp ecx, 0x2b
jne 0x40de0f
leave
ret 0xc

Function at 0x40f4b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x40f544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x3a10
push 0
call dword [eax + 0x20]
test eax, eax
je 0x40f5d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x3a10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x3a10
call fcn.0040f3fa
push 0x3a10
push dword [ebp + 0xc]
call fcn.0040d1a8
test eax, eax
jne 0x40f5b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x3a10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.0040f5dd
test eax, eax
je 0x40f5d6
jmp 0x40f574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x40f5d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x40f60b
Capabilities:
Terminate process

Disassembly:
call fcn.0040f618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

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 0x1006a94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1006aed
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1006adf
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1006adb
cmp esi, eax
jae 0x1006adf
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1006acd
cmp esi, eax
jb 0x1006ae3
xor eax, eax
jmp 0x1006aec
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1006f47
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1006f62
push 0x80004005
call fcn.01006942
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1006f64
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1007482
Capabilities:
Enumerate threads

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 6
pop ecx
xor ebx, ebx
push ebx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
push 4
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1007501
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
jmp 0x10074ea
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x10074e0
lea eax, [ebp - 4]
push eax
push 0x100746c
push dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_EnumThreadWindows]
cmp dword [ebp - 4], ebx
jg 0x10074f0
lea eax, [ebp - 0x20]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10074be
jmp 0x10074fa
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x1007d2e
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10370ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01006ea5
mov edi, eax
cmp edi, esi
je 0x1007da0
lea ecx, [ebp - 0x214]
call fcn.01006e32
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100f31b
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1007dbe
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.01007d2e
cmp eax, esi
jne 0x1007e09
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x1007da8
lea ecx, [ebp - 0x214]
call fcn.01006e32
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01006dac
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01006e32
mov eax, esi
jmp 0x1007d90
Function at 0x100ab0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x102e557
call fcn.0100f4c9
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x100ab68
call fcn.01006bab
mov esi, eax
jmp 0x100ac71
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x100ab81
call fcn.01006bab
jmp 0x100ac63
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x100ab77
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x100abe7
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100abcd
lea ecx, [ebp - 0x418]
call fcn.01007b86
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.01007a95
mov eax, esi
call fcn.0100f534
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.010093fd
mov dword [ebp - 4], 1
jmp 0x100ac15
cmp dword [ebp - 0x418], esi
jne 0x100ac24
mov esi, 0x8007000e
jmp 0x100ac65
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x100ab77
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0100a642
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100abd2
lea ecx, [ebp - 0x418]
call fcn.01007b86
jmp 0x100abd2
Function at 0x100c5d6
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x102e6d6
call fcn.0100f41b
mov edi, ecx
push dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 0xd], bl
call fcn.0102a430
mov esi, 0x1038044
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x1c], al
call fcn.0101672d
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0100c488
test al, al
je 0x100c6ff
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call fcn.01007482
test al, al
je 0x100c6ff
cmp byte [ebp - 0x1c], bl
je 0x100c6d1
push esi
lea ecx, [ebp + 8]
call fcn.0101672d
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.0100c1fb
mov edi, dword [ebp + 8]
test al, al
je 0x100c6c7
push esi
lea ecx, [ebp - 0x1c]
call fcn.0101672d
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
push 0x1001cb0
push eax
call fcn.0100bd31
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x1c
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x4c], 0x1001ca4
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100c6bf
push dword [ebp - 0x20]
mov byte [ebp - 0xd], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.0100744d
lea ecx, [edi - 0x10]
call fcn.0100744d
jmp 0x100c6ff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x100c6ff
push 0x1001c94
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x100c6f8
push dword [ebp - 0x18]
call eax
mov byte [ebp - 0xd], al
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0100744d
mov al, byte [ebp - 0xd]
call fcn.0100f507
ret 4

Function at 0x100dce0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x100dd01
xor eax, eax
jmp 0x100dd27
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x100d6ef
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x100dd24
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x100e4d4
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.01028491
test al, al
jne 0x100e4e6
xor eax, eax
jmp 0x100e50f
push 0x1001f00
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100e4e2
push dword [ebp + 0x14]
mov ecx, 0x1037f90
call fcn.0100e489
pop ebp
ret 0x10
Function at 0x100e7ff
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10370ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100e740
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100e872
cmp dword [ebp - 0x94], 5
jb 0x100e893
jmp 0x100e88f
cmp dword [ebp - 0x88], 1
jne 0x100e893
cmp dword [ebp - 0x94], 4
ja 0x100e88f
jne 0x100e893
cmp dword [ebp - 0x90], 0
jbe 0x100e893
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001f44
call fcn.01006a2b
test eax, eax
jge 0x100e8b4
mov byte [0x1037f14], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100f31b
leave
ret