joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
or eax, eax
je 0x401e06
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401d55
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401d65
cmp byte [esp + 0x1e], 0
je 0x401d65
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 sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401d65
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cb0
nop

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x460034
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x46004c]
sub esp, 4
test ebx, ebx
je 0x4020eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
push eax
pop esi
call sub.KERNEL32.dll_GetLastError
or eax, eax
jne 0x4020e4
test esi, esi
je 0x4020e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020c0
mov dword [esp], 0x460034
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x408ea7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x408eb6
pop dword [ebp - 0x14]
mov eax, 0x22813510
sub eax, 0x2240a65a
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3bb6f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x3d6b
mov edi, eax
mov edx, 0xb1bbcefd
add edx, 0x4e87b303
add edx, dword [ebp - 0x14]
mov esi, 0x8e2b98ff
xor dword [ebp - 8], eax
mov ebx, dword [edx]
xor ebx, esi
add dword [ebp - 0xc], edx
mov dword [edi], ebx
add dword [ebp - 0x10], 0xb092afec
add edi, 0x5cd23e6c
add edi, 0xa32dc198
add edx, 4
loop 0x408f04
add eax, 0x2a2fcb50
sub eax, 0x2a2ee2d1
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4184d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push str.IMAGE
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4184fd
xor eax, eax
jmp 0x4185fd
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41852c
xor eax, eax
jmp 0x4185fd
mov eax, dword [ebp - 0x10]
push eax
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x418552
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4185fd
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x418578
cmp dword [ebp - 8], 0
jne 0x418590
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4185fd
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004dcb20
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x4185e1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x4185fd
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00418730
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8
Function at 0x41bb40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa1fe
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x548a04]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x158], ecx
lea eax, [ebp - 0x13c]
push eax
push 0xf003f
push 0
push 0x500fcc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x144], eax
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x140]
call fcn.00404680
mov dword [ebp - 4], 0
push 0x501054
lea ecx, [ebp - 0x140]
call fcn.0040e670
lea ecx, [ebp - 0x134]
call fcn.004c89d4
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x140]
call fcn.00418b20
push eax
lea ecx, [ebp - 0x134]
call fcn.004c8a4c
mov byte [ebp - 0xd], 1
push 0x14
call fcn.00406ab0
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14c], 0
je 0x41bc2f
mov ecx, dword [ebp - 0x14c]
call fcn.004c8d26
mov dword [ebp - 0x15c], eax
jmp 0x41bc39
mov dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x138], ecx
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x41bcdc
lea ecx, [ebp - 0x134]
call fcn.004c885b
test eax, eax
setne al
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x134]
call fcn.004c8999
test eax, eax
jne 0x41bcd7
lea ecx, [ebp - 0x134]
call fcn.0041d2d0
test eax, eax
je 0x41bcd7
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x134]
call fcn.004c8c86
mov dword [ebp - 0x160], eax
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x164], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x164]
push eax
mov ecx, dword [ebp - 0x138]
call fcn.0041d2a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x150]
call fcn.00404700
jmp 0x41bc55
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x154], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.004c89fa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.00404700
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d91e2
mov esp, ebp
pop ebp
ret
Function at 0x41d150
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x800c
call fcn.004dc850
mov eax, dword [0x548a04]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x800c], ecx
mov dword [ebp - 4], 0x7fff
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x8008]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x41d19f
push str.Error_getting_computer_name_n
mov ecx, dword [ebp - 0x800c]
add ecx, 0x23c
call fcn.0041fd20
lea edx, [ebp - 0x8008]
push edx
mov ecx, dword [ebp - 0x800c]
add ecx, 0x23c
call fcn.0040e670
push 0x7fff
push 0
lea eax, [ebp - 0x8008]
push eax
call fcn.004d9ad0
add esp, 0xc
mov dword [ebp - 4], 0x7fff
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x8008]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x41d1ff
push str.Error_getting_user_name_n
mov ecx, dword [ebp - 0x800c]
add ecx, 0x240
call fcn.0041fd20
lea eax, [ebp - 0x8008]
push eax
mov ecx, dword [ebp - 0x800c]
add ecx, 0x240
call fcn.0040e670
mov ecx, dword [ebp - 0x800c]
add ecx, 0x240
call fcn.00418b20
push eax
push str._t_User_Details:
mov ecx, dword [ebp - 0x800c]
add ecx, 0x23c
call fcn.00418b20
push eax
push str.Computer_Name:
push 0
mov ecx, dword [ebp - 0x800c]
mov ecx, dword [ecx + 0x90]
call fcn.0040ed70
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d91e2
mov esp, ebp
pop ebp
ret

Function at 0x41d390
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.0041d3f0
test eax, eax
je 0x41d3c9
mov ecx, dword [ebp + 0xc]
call fcn.0041d3f0
test eax, eax
je 0x41d3c9
mov ecx, dword [ebp + 8]
call fcn.0041d410
movzx eax, al
test eax, eax
je 0x41d3c9
mov ecx, dword [ebp + 0xc]
call fcn.0041d410
movzx ecx, al
test ecx, ecx
jne 0x41d3cd
xor al, al
jmp 0x41d3eb
mov ecx, dword [ebp + 0xc]
call fcn.0041d3f0
push eax
mov ecx, dword [ebp + 8]
call fcn.0041d3f0
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x42a720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x548a04]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x13c]
push eax
push 0xf003f
push 0
push str.SOFTWAREMatrikon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x144], eax
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x140]
call fcn.00404680
mov dword [ebp - 4], 0
push str.MatrikonLicenses.
lea ecx, [ebp - 0x140]
call fcn.0040e670
lea ecx, [ebp - 0x134]
call fcn.004c89d4
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x140]
call fcn.00418b20
push eax
lea ecx, [ebp - 0x134]
call fcn.004c8a4c
mov byte [ebp - 0xd], 1
push 0x14
call fcn.00406ab0
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14c], 0
je 0x42a809
mov ecx, dword [ebp - 0x14c]
call fcn.004c8d26
mov dword [ebp - 0x158], eax
jmp 0x42a813
mov dword [ebp - 0x158], 0
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x138], ecx
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x42a8b6
lea ecx, [ebp - 0x134]
call fcn.004c885b
test eax, eax
setne al
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x134]
call fcn.004c8999
test eax, eax
jne 0x42a8b1
lea ecx, [ebp - 0x134]
call fcn.0041d2d0
test eax, eax
je 0x42a8b1
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x134]
call fcn.004c8c86
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x160], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x138]
call fcn.0041d2a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x150]
call fcn.00404700
jmp 0x42a82f
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x154], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.004c89fa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.00404700
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d91e2
mov esp, ebp
pop ebp
ret
Function at 0x432219
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
push edi
xor ebx, ebx
push 0x64
lea eax, [ebp - 0xbc]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.004d9ad0
push 0x28
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004d9ad0
push 0x1e
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.004d9ad0
lea eax, [ebp - 0xbc]
push eax
push 0x51b8e4
call fcn.004320de
lea eax, [ebp - 0x38]
push eax
push 0x51b914
call fcn.004320de
lea eax, [ebp - 0x58]
push eax
push 0x51b924
call fcn.004320de
add esp, 0x3c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xbc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4322b2
cmp dword [ebp - 4], ebx
je 0x43235f
jmp 0x432356
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x38]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x432356
cmp dword [ebp - 8], ebx
je 0x432356
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x432356
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x38]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x43234f
cmp dword [ebp - 0xc], 7
jne 0x43234f
cmp byte [edi], bl
mov esi, edi
je 0x432335
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x43232e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], bl
lea esi, [esi + eax + 1]
jne 0x43230c
jmp 0x432335
mov dword [ebp - 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], ebx
je 0x43234a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x432361
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437b59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbfc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jne 0x437b73
push 0x1e
jmp 0x437c84
push 0x20
push ebx
call fcn.004deef0
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x437c82
lea eax, [ebp - 4]
inc edi
push eax
lea eax, [ebp - 0xbfc]
push eax
push edi
mov dword [ebp - 4], 0xbb8
call fcn.00462305
add esp, 0xc
test eax, eax
jne 0x437c82
mov eax, dword [ebp - 4]
push 0x10
pop esi
cmp eax, esi
jle 0x437c82
lea eax, [ebp + eax - 0xc0c]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004dcb20
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0xc]
xor byte [ebp + eax - 0x14], cl
inc eax
cmp eax, 8
jl 0x437bd0
and byte [edi], 0
lea eax, [ebp - 0x44]
push esi
push eax
push ebx
call fcn.004d9400
pop ecx
push eax
push ebx
call fcn.004634ec
add esp, 0x10
test eax, eax
jne 0x437c82
lea eax, [ebp - 0x24]
push esi
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0046241f
add esp, 0x10
test eax, eax
jne 0x437c82
mov ecx, dword [ebp - 4]
mov ebx, esi
mov eax, ecx
add ecx, 0xfffffff0
cdq
idiv ebx
imul eax, eax, 0x16
inc eax
push eax
lea eax, [ebp - 0x24]
push edi
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xbfc]
push ecx
push eax
call fcn.00462988
mov edi, eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.004621c5
add esp, 0x20
test edi, edi
jne 0x437c82
lea eax, [ebp - 0x34]
push esi
push eax
push dword [ebp + 0xc]
call fcn.004d9400
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.004634ec
add esp, 0x10
test eax, eax
jne 0x437c82
mov cl, byte [ebp + eax - 0x14]
cmp cl, byte [ebp + eax - 0x34]
jne 0x437c82
inc eax
cmp eax, 8
jl 0x437c6e
xor eax, eax
jmp 0x437c85
push 0x14
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b952
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push 1
pop edx
mov al, byte [ecx]
cmp dword [ebp + 0xc], edx
mov byte [ebp + 0xb], al
jle 0x43b971
xor al, byte [edx + ecx]
inc edx
cmp edx, dword [ebp + 0xc]
mov byte [ebp + 0xb], al
jl 0x43b965
lea eax, [ebp + 0xb]
push 1
push eax
lea eax, [ebp + 0xe]
push eax
call fcn.0046c08d
mov al, byte [ebp + 0xe]
add esp, 0xc
pop ebp
ret
Function at 0x43ba42
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
call fcn.0048b624
cmp eax, 1
jne 0x43bb59
lea eax, [ebp - 0x18]
push eax
call fcn.0045f6fd
test eax, eax
pop ecx
je 0x43ba6e
push 0x68
jmp 0x43bbd1
lea eax, [ebp - 8]
mov ebx, 0xf003f
push eax
push ebx
push 0
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push str.SOFTWARENtpadHELPMENU
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43baa6
push dword [ebp - 0x14]
push 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
mov edi, str.SOFTWARENtpadHELPMENUxtras
push eax
lea eax, [ebp - 0x38]
push eax
push edi
push esi
mov dword [ebp - 4], 0x1e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x43bad3
push dword [ebp + 8]
push 0x51bdd0
jmp 0x43bbbf
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x43bafb
mov eax, 0xc8001007
jmp 0x43bbd2
push ebx
call fcn.004efa24
push eax
mov ebx, 0x51bdd0
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004dd565
lea eax, [ebp - 0x38]
push eax
call fcn.004d9400
add esp, 0x14
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x43bb47
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004dedfb
add esp, 0xc
xor esi, esi
jmp 0x43bb4c
mov esi, 0xc8001007
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x43bbd2
lea eax, [ebp - 4]
mov edi, str.SOFTWARENtpadHELPMENUxtras
push eax
lea eax, [ebp - 0x38]
push eax
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push edi
push esi
mov dword [ebp - 4], 0x1e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x43bac6
push 0
call fcn.0043f5b1
push eax
mov ebx, 0x51bdd0
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004dd565
lea eax, [ebp - 0x38]
push eax
call fcn.004d9400
add esp, 0x14
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x43bbcf
push dword [ebp + 8]
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.004dedfb
add esp, 0xc
xor eax, eax
jmp 0x43bbd2
push 0x69
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43bdd1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
or esi, 0xffffffff
call fcn.0048b624
cmp eax, 1
jne 0x43be5b
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push 6
push eax
call fcn.0043e14c
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43be5b
push ebx
mov ebx, dword [ebp + 8]
push edi
and byte [ebx + 0x88], al
lea esi, [ebx + 0x88]
xor edi, edi
movsx ax, byte [ebp + edi - 8]
and eax, 0xff
push eax
push str._02hx
push esi
call fcn.004d9400
pop ecx
lea eax, [eax + ebx + 0x88]
push eax
call fcn.004dd565
add esp, 0xc
cmp edi, 5
jge 0x43be48
push 0x51c940
push esi
call fcn.004dd760
pop ecx
pop ecx
inc edi
cmp edi, 6
jl 0x43be0e
push esi
call fcn.0044ffcb
pop ecx
pop edi
xor eax, eax
pop ebx
jmp 0x43be5d
mov eax, esi
pop esi
leave
ret

Function at 0x43be60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
or esi, 0xffffffff
call fcn.0048b624
cmp eax, 1
jne 0x43bee6
lea eax, [ebp - 8]
push 6
push eax
call fcn.0043e19c
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x43bee6
push ebx
mov ebx, dword [ebp + 8]
push edi
and byte [ebx + 0x88], al
lea esi, [ebx + 0x88]
xor edi, edi
movsx ax, byte [ebp + edi - 8]
and eax, 0xff
push eax
push str._02hx
push esi
call fcn.004d9400
pop ecx
lea eax, [eax + ebx + 0x88]
push eax
call fcn.004dd565
add esp, 0xc
cmp edi, 5
jge 0x43bed3
push 0x51c940
push esi
call fcn.004dd760
pop ecx
pop ecx
inc edi
cmp edi, 6
jl 0x43be99
push esi
call fcn.0044ffcb
pop ecx
pop edi
xor eax, eax
pop ebx
jmp 0x43bee8
mov eax, esi
pop esi
leave
ret

Function at 0x43e1f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
mov edi, 0x20019
push eax
push edi
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x43e272
lea eax, [ebp - 4]
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x43e26b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp + 8]
push dword [ebp + 8]
push eax
push 0
push str.ServiceName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43e276
cmp dword [ebp + 8], 1
jne 0x43e276
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
xor eax, eax
pop edi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x43e272