joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x414de6
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], eax
add edx, 4
add ecx, 0xdc96d63
inc edi
sub esi, edi
cmp edx, ebx
jne fcn.00414de6
inc ecx
or esi, edi
inc edi
ret
Function at 0x4082e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x44d1fc], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x408329
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x408306
mov dword [edx*4 + 0x44d1f8], eax
inc edx
cmp edx, 0x100
jne 0x4082ff
mov eax, dword [ebp + 8]
not eax
jmp 0x408343
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x44d1f8]
test ebx, ebx
jne 0x408330
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x22214080
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x22230e5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
call dword [sym.imp.GObjs.dll_public:_void___thiscall_GAppNode::constructor_void_]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 8], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 9], 0
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0xa], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x10], 0
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x11], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x12], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], 0
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x18
call fcn.222118c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x28], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x29], 0
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x2a], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x2b], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x2c], 0
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x2d], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x30
call fcn.222118c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x40
call fcn.222118c0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0x50
call dword [sym.imp.GStore.dll_public:_void___thiscall_GStore::constructor_void_]
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x22232ac0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x222141b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x22230e9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call dword [sym.imp.GStore.dll_public:_void___thiscall_GStore::destructor_void_]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.22211960
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.22211960
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.22211960
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.GObjs.dll_public_virtual:_void___thiscall_GAppNode::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x22214a40
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2223105e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call dword [sym.imp.GObjs.dll_public:_void___thiscall_GAppNode::constructor_class_GAppNode_const__]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 8], 0
mov edx, dword [ebp - 0x1c]
mov byte [edx + 9], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0xa], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x10], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x11], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x12], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x14], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x18
call fcn.222118c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x28], 0
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x29], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x2a], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x2b], 0
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x2c], 0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x2d], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x30
call fcn.222118c0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x40
call fcn.222118c0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0x50
call dword [sym.imp.GStore.dll_public:_void___thiscall_GStore::constructor_void_]
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x22232ac0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x222150ee
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0x20c], ecx
mov ecx, dword [ebp - 0x20c]
add ecx, 0x14
call fcn.22211bc0
and eax, 0xff
test eax, eax
je 0x222151f0
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x222151f0
push str.hosts
lea ecx, [ebp - 0x104]
push ecx
push str._sdriversetc_s
push 0x103
lea edx, [ebp - 0x208]
push edx
call fcn.22222224
add esp, 0x14
mov byte [ebp - 0x105], 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x22215187
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [ebp - 0x20c]
add ecx, 0x14
call fcn.222119a0
jmp 0x222151f0
push 0x104
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x222151f0
push str.hosts
lea eax, [ebp - 0x104]
push eax
push 0x2223ddbc
push 0x103
lea ecx, [ebp - 0x208]
push ecx
call fcn.22222224
add esp, 0x14
mov byte [ebp - 0x105], 0
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x222151f0
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x20c]
add ecx, 0x14
call fcn.222119a0
mov esp, ebp
pop ebp
ret
Function at 0x22217630
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
cmp ecx, esi
mov dword [edi], eax
je 0x222176ad
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x222176ad
cmp byte [eax], 0
je 0x222176ad
lea edx, [esp + 0x1c]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x222176ad
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push edi
push ecx
push esi
push edx
push eax
mov dword [esp + 0x24], 4
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x222176a2
cmp dword [esp + 0x18], 4
jne 0x222176a2
mov esi, 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret

Function at 0x222176c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp ebx, esi
mov dword [esp + 0xc], ebp
je 0x222176d6
mov dword [ebx], esi
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x222177e1
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x222177e1
cmp byte [eax], 0
je 0x222177e1
lea edx, [esp + 0x18]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x222177e1
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], esi
push esi
mov esi, dword [esp + 0x30]
push esi
push edx
call edi
test eax, eax
jne 0x222177ce
mov eax, dword [esp + 0x24]
push eax
call fcn.222166f0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x222177ca
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
push 0
push esi
push eax
call edi
test eax, eax
jne 0x222177c1
cmp dword [esp + 0x18], 3
jne 0x222177c1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.222166f0
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x222177c1
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
xor eax, eax
mov esi, ebp
mov dword [edx], ecx
mov edi, dword [ebx]
mov edx, ecx
mov dword [esp + 0x10], 1
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x24]
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.22216702
add esp, 4
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x222197e0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.22219170
mov esi, dword [esp + 0x10]
test esi, esi
je 0x2221981e
mov eax, esi
shr eax, 0x10
jne 0x2221981e
and esi, 0xffff
mov ecx, ebx
push esi
call fcn.2221b610
test eax, eax
jne 0x22219848
push str.Warning:_implicit_LoadString___in_CMsString_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4
push esi
call fcn.22219210
mov edi, eax
test edi, edi
je 0x22219848
push edi
mov ecx, ebx
call fcn.22219560
test eax, eax
je 0x22219848
mov ecx, edi
mov edi, dword [ebx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4

Function at 0x2221fb70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
xor esi, esi
mov eax, 1
push edi
mov dword [esp + 0x14], str.IEGator
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], str.MiniSetup
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], str.Setup
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], str.Uninstall
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], str.Trickler
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], str.PdpSetup
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0x2223e228
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x2223e288
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x2223e660
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], str.OfferCompanion
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], str.PrecisionTime
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], str.DateManager
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], str.Weather
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0x2223e628
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0x2223e624
mov dword [esp + 0x88], eax
lea edi, [esp + 0x14]
mov ebx, 0xf
mov eax, dword [edi]
push eax
call ebp
add edi, 8
dec ebx
lea esi, [esi + eax + 2]
jne 0x2221fc4a
add esi, 0xa
push esi
call fcn.222166f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x2221fcc6
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov esi, ebx
and ecx, 3
mov dword [esp + 0x10], 0xf
rep stosb byte es:[edi], al
lea edi, [esp + 0x14]
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x2221fc9f
mov eax, dword [edi + 4]
test eax, eax
je 0x2221fcb8
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call ebp
mov cl, byte [esp + 0x90]
add esi, eax
mov byte [esi], cl
inc esi
mov eax, dword [esp + 0x10]
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x2221fc8d
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x2221fea0
Capabilities:
Check os version

Disassembly:
mov ecx, dword [esp + 4]
push ebp
xor eax, eax
push esi
test ecx, ecx
push edi
je 0x2221ff52
mov ebp, dword [esp + 0x14]
test ebp, ebp
jle 0x2221ff52
mov edi, dword [esp + 0x18]
test edi, edi
je 0x2221ff52
cmp byte [edi], 0
je 0x2221ff52
mov eax, dword [0x222423d8]
test eax, eax
jne 0x2221fef0
push 0x222423d8
mov dword [0x222423d8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x1c]
mov esi, 0x222420b4
test eax, eax
je 0x2221ff14
cmp dword [0x222423e8], 2
jne 0x2221ff14
cmp dword [0x222423dc], 5
jb 0x2221ff14
mov esi, str.Global_
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebx
mov edx, eax
push edi
mov dword [esp + 0x1c], edx
call ebx
mov ecx, dword [esp + 0x18]
pop ebx
add ecx, eax
cmp ebp, ecx
jle 0x2221ff50
mov edx, dword [esp + 0x10]
push edi
push esi
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x2221ff60
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi], 0
test eax, eax
mov dword [edi], 0
je 0x2221ffa6
cmp byte [eax], 0
je 0x2221ffa6
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x2221ffa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov dword [edi], ecx
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
ret
Function at 0x405cd8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x426bfb
call fcn.0041ba64
push ecx
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 4]
push edi
mov ecx, esi
mov dword [ebp - 0x10], ebx
call fcn.00405c3f
and dword [ebp - 4], 0
lea ecx, [ebx + 0xc]
mov dword [ebx], 0x4016e0
mov dword [esi], 0x4016d4
call fcn.00405b6e
mov byte [ebp - 4], 1
lea edi, [ebx + 0x20]
mov esi, 0x403df0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x30]
push eax
movsd dword es:[edi], dword [esi]
call dword [fcn.0040125c]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405d50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x426c24
call fcn.0041ba64
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4016e0
mov dword [edi], 0x4016d4
mov dword [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
call dword [fcn.00401260]
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00405a82
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00405c85
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x405d5b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x426c24
call fcn.0041ba64
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4016e0
mov dword [edi], 0x4016d4
mov dword [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
call dword [fcn.00401260]
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00405a82
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00405c85
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x408738
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x426e42
call fcn.0041ba64
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x2c]
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], bl
mov byte [esi + 0x21], bl
mov byte [esi + 0x22], bl
mov byte [esi + 0x23], bl
mov byte [esi + 0x24], bl
mov dword [esi + 0x28], ebx
call fcn.004069b2
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004069b2
mov byte [ebp - 4], 2
lea ecx, [esi + 0x34]
call fcn.004069b2
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
call fcn.004069b2
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
lea edi, [esi + 0x3c]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
mov byte [ebp - 4], 5
push ebx
push 0x3e7
push 0xb
push 0x401a44
call dword [fcn.00401244]
push eax
mov ecx, edi
call fcn.004144e5
mov dword [0x42cfcc], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4177b6
Capabilities:
Persist via run registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x42c300]
push ebx
push esi
push edi
mov esi, dword [0x42ceac]
push 0x40
mov dword [ebp + 0x94], eax
pop ecx
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x70], bl
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x74]
push eax
push 0x1a
push ebx
mov dword [ebp - 0x74], ebx
call esi
cmp dword [ebp - 0x74], ebx
jne 0x417858
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push 0x403570
push 0x80000001
call dword [fcn.004010d4]
test eax, eax
jne 0x417845
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x403568
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 0x104
call dword [fcn.004010d8]
test eax, eax
jne 0x417845
cmp dword [ebp - 0x80], 1
je 0x41789e
cmp dword [ebp - 0x74], ebx
jne 0x417858
lea eax, [ebp - 0x74]
push eax
push 5
push ebx
call esi
cmp dword [ebp - 0x74], ebx
je 0x417893
push dword [ebp + 0xa0]
push dword [ebp - 0x74]
call dword [0x42cea8]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], ebx
call dword [0x42ceb0]
test eax, eax
jl 0x41789e
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x41789e
push dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41789e
mov eax, dword [ebp + 0xa0]
mov word [eax], 0xa
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
pop ebx
call fcn.0041b4ee
add ebp, 0x98
leave
ret 4
Function at 0x41950e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 8
call dword [fcn.004012e8]
push eax
call dword [0x401050]
mov edi, eax
test edi, edi
je 0x419572
lea eax, [ebp - 0xc]
push eax
push 0x403974
push 0
call dword [0x401018]
test eax, eax
je 0x419572
push dword [ebp + 8]
and dword [ebp - 0x10], 0
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [0x40101c]
mov edi, eax
cmp dword [ebp - 4], 0
je 0x419581
push dword [ebp - 4]
call dword [fcn.004012ac]
mov eax, edi
pop edi
leave
ret 4

Function at 0x419588
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [fcn.004012e8]
push eax
call dword [0x401050]
mov edi, eax
cmp edi, esi
je 0x419600
lea eax, [ebp - 0xc]
push eax
push 0x403974
push esi
call dword [0x401018]
test eax, eax
je 0x419600
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
neg eax
push esi
sbb eax, eax
push esi
and eax, 2
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
call dword [0x401014]
call dword [fcn.00401258]
test eax, eax
je 0x419600
xor edi, edi
cmp dword [ebp - 4], esi
je 0x41960e
push dword [ebp - 4]
call dword [fcn.004012ac]
mov eax, edi
pop edi
pop esi
leave
ret 4