joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d818
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d9c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x43d9a4
mov dl, 1
mov eax, dword [0x40be04]
call fcn.00402c14
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004038b4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43d993
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0042c248
test al, al
je 0x43d986
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x43d9d4
lea eax, [ebp - 0x254]
call fcn.0040841c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43d986
xor eax, eax
push ebp
push 0x43d97f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x43da0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43d968
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403ae4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43d968
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403ae4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d986
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43d889
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040ea88
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d9ca
lea eax, [ebp - 0x260]
call fcn.004038b4
ret

Function at 0x43e210
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4437c8]
cmp byte [eax + 0x95], 0
jne 0x43e281
cmp dword [0x4437e4], 0
jne 0x43e242
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43e1cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4437e4], eax
cmp dword [0x4437e0], 0
jne 0x43e25d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4437e0], eax
cmp dword [0x4437e8], 0
jne 0x43e281
push esp
push 0
push 0
push 0x43e170
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4437e8], eax
pop edx
ret
Function at 0x43e378
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43e38f
add esp, 0xfffffff0
call fcn.00402f2c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004119f4
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40bb04]
call fcn.00402c14
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40bb04]
call fcn.00402c14
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x4135f0]
call fcn.00418fdc
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x43e504
mov eax, dword [0x442b1c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004193ac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43fe84
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x442b1c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00409718
test eax, eax
je 0x43e482
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407dd0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409740
test eax, eax
je 0x43e496
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403ae4
mov eax, dword [0x442a40]
cmp byte [eax], 0
jne 0x43e4c7
mov eax, ebx
call fcn.0043e5f0
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43e4f9
call fcn.00402f84
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43e860
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4437c8]
cmp dword [eax + 0x24], 0
je 0x43e903
cmp dword [ebx + 0x84], 0
jne 0x43e8fd
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43e7f0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x43e8fd
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43e8c6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43e8fd
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d1c8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43e8d5
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43f310
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x43f345
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040399c
jmp 0x43f34f
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403908
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4401f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x440230
mov eax, esi
call fcn.00428148
test al, al
je 0x440230
mov eax, dword [ebx + 0x74]
call fcn.00427e4c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x440230
push 0
mov eax, dword [ebx + 0x74]
call fcn.00427e4c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x10017fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x10018064
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100a3f32
add esp, 4
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax + 1]
shl eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10017ff2
xor eax, eax
jmp 0x10018067
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x10018028
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2], 0x5c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
jmp 0x1001803a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100a3f32
add esp, 4
cmp dword [ebp - 4], eax
jae 0x10018064
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov cx, word [esi + ecx*2]
mov word [eax + edx*2], cx
jmp 0x10018031
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10023280
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10118018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [edi], 0
push 0
mov dword [esi], 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push edi
push 0x10121600
push 1
push 0
push 0x101216d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10023396
mov edi, dword [edi]
test edi, edi
je 0x10023396
mov eax, dword [edi]
push ebx
push ecx
lea ecx, [ebp - 0x10]
mov ebx, dword [eax + 0xc]
call fcn.100222a0
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x10023313
mov eax, dword [eax]
jmp 0x10023315
xor eax, eax
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push edi
call ebx
mov edi, dword [ebp - 0x10]
mov ebx, eax
test edi, edi
je 0x10023376
lea ecx, [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10023376
test edi, edi
je 0x10023376
mov eax, dword [edi]
test eax, eax
je 0x10023354
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1002336b
push eax
call fcn.1006fcb1
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.1006fca3
add esp, 8
test ebx, ebx
pop ebx
js 0x10023396
mov eax, dword [esi]
test eax, eax
je 0x10023396
push 0
push 0
push 3
push 3
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1003d7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10119250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.1003dfb0
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.1001cdf0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003e950
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov dword [esi], vtable.JJFe::GMFileMappingEx.0
cmp eax, 0xffffffff
je 0x1003e96f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0xffffffff
mov ecx, dword [esi + 0x2c]
cmp ecx, 0xffffffff
je 0x1003e991
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x1003e982
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esi + 0x2c], 0xffffffff
mov ecx, dword [esi + 0x24]
cmp ecx, 8
jb 0x1003e9c7
mov eax, dword [esi + 0x10]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1003e9bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ea23
mov eax, edx
push ecx
push eax
call fcn.1006fca3
add esp, 8
xor eax, eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 7
mov word [esi + 0x10], ax
mov eax, dword [esi + 8]
mov dword [esi], vtable.JJFe::GMFileMapping.0
test eax, eax
je 0x1003e9f6
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1003ea0b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
test byte [esp + 8], 1
je 0x1003ea1d
push 0x30
push esi
call fcn.1006fca3
add esp, 8
mov eax, esi
pop esi
ret 4
call fcn.1007d9e8
int3

Function at 0x1003f810
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101192ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10055602
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x1003f89d
push eax
push esi
call fcn.100560c7
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.1003f710
push 0x10148490
lea eax, [ebp - 0x1c]
push eax
call fcn.1007351b
int3
Function at 0x10049760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1004978b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1004a110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x100497ad
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100497af
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10049833
jg 0x100497c4
test esi, esi
je 0x10049833
test ecx, ecx
jl 0x1004980d
jg 0x100497ce
test eax, eax
je 0x1004980d
cmp edi, ecx
jg 0x100497e2
jl 0x100497d8
cmp esi, eax
jae 0x100497e2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.10073590
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10049810
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10049833
jg 0x1004981a
test esi, esi
je 0x10049833
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10049833
push eax
push esi
push 1
push edx
call fcn.100a2f7b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10049dd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10049dea
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10049e1c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10049e1c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x28
ret 4
cmp dword [esi + 0x4c], 0
je 0x10049ef8
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10049e44
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10049e6d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100a26b9
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x28
ret 4
mov byte [esp + 0xf], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x10049ef8
cmp eax, 1
jle 0x10049ec7
cmp eax, 3
jne 0x10049ef8
mov edx, dword [esi + 0x4c]
mov cl, byte [esp + 0xf]
call fcn.10048840
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
add esp, 0x28
ret 4
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x14]
sub edi, eax
je 0x10049ee6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100a2f7b
add esp, 0x10
cmp edi, eax
jne 0x10049ef8
lea eax, [esp + 0xf]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
jne 0x10049e11
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 4

Function at 0x1004ab00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x1004ab83
cmp byte [esi + 0x3d], 0
je 0x1004ab83
push 0xffffffffffffffff
call fcn.10049dd0
cmp eax, 0xffffffff
je 0x1004ab4b
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x1004ab53
sub eax, 1
je 0x1004ab57
sub eax, 2
je 0x1004ab83
pop edi
xor al, al
pop esi
add esp, 0x24
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1004ab76
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100a2f7b
add esp, 0x10
cmp edi, eax
jne 0x1004ab4b
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
add esp, 0x24
ret
pop edi
mov al, 1
pop esi
add esp, 0x24
ret

Function at 0x100b20e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b1ce5
Function at 0x100b20eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b1e66

Function at 0x100b95dc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b8db6

Function at 0x100b95e7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b8ff1

Function at 0x100c474a
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100c44d1
Function at 0x100c7630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0x238
mov dword [0x10154920], eax
mov eax, dword [ebp + 0x14]
mov dword [0x10154924], eax
push ebx
push esi
test eax, eax
je 0x100c7677
mov esi, dword [eax]
test esi, esi
je 0x100c7677
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x10154924]
mov ecx, dword [esi]
push esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
movzx ecx, al
shr ax, 8
shl cx, 8
or cx, ax
mov eax, 0x600
cmp cx, ax
jae 0x100c769f
xor bl, bl
jmp 0x100c7726
xor eax, eax
mov dword [esp + 0x28], 0
push eax
push 0x20019
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.100e2010
test al, al
je 0x100c771b
lea eax, [esp + 0x14]
mov dword [esp + 8], 4
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0
push eax
push 0
push str.EnableLUA
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100c7747
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
call fcn.100e2220
mov bl, 1
call fcn.100f18c0
test bl, bl
jne 0x100c775b
test al, al
jne 0x100c775f
xor ecx, ecx
mov eax, 2
push ecx
push eax
call fcn.100d1690
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0
jne 0x100c771b
lea ecx, [esp + 0x18]
call fcn.100e2220
xor bl, bl
jmp 0x100c7726
test al, al
je 0x100c777d
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ecx
push eax
call fcn.100d1690
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov eax, 1
push ecx
push eax
call fcn.100d1690
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c8ba0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0xc]
sub esp, 0x26c
mov dword [0x10154920], eax
mov eax, dword [ebp + 0x14]
mov dword [0x10154924], eax
push esi
test eax, eax
je 0x100c8be6
mov esi, dword [eax]
test esi, esi
je 0x100c8be6
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x10154924]
mov ecx, dword [esi]
push esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.100d17c0
push 0x40
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0x44
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [esp + 0x1c], xmm0
call fcn.10074090
add esp, 0xc
mov dword [esp + 0x4c], 1
xor eax, eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100c8c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
mov dword [esp + 0x14], eax
call fcn.100d1690
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100c8c94
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push dword [esp + 0x10]
call fcn.100d1690
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push dword [esp + 0x10]
call fcn.100d1690
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100c8cb0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0xc]
sub esp, 0x26c
mov dword [0x10154920], eax
mov eax, dword [ebp + 0x14]
mov dword [0x10154924], eax
push esi
test eax, eax
je 0x100c8cf6
mov esi, dword [eax]
test esi, esi
je 0x100c8cf6
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x10154924]
mov ecx, dword [esi]
push esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.100d17c0
push 0x40
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0x44
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [esp + 0x1c], xmm0
call fcn.10074090
add esp, 0xc
mov eax, 1
mov word [esp + 0x50], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100c8d71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
mov dword [esp + 0x14], eax
call fcn.100d1690
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100c8d9f
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push dword [esp + 0x10]
call fcn.100d1690
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push dword [esp + 0x10]
call fcn.100d1690
pop esi
mov esp, ebp
pop ebp
ret