joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a90
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x493a86
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x206
lea eax, [esp + 0x1a]
push 0
mov dword [esp + 0x230], 0
push eax
mov word [esp + 0x20], 0
call fcn.00463d60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push edx
push 0x49fba0
call fcn.0041dfd0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00413be0
add esp, 0x10
lea edi, [esp + 0xc]
mov byte [esp + 0x228], 1
call fcn.00401cd0
mov byte [esp + 0x228], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401b71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
cmp dword [esi - 0xc], 0
je 0x401b89
push esi
push 0x49fbb4
call fcn.0041dfd0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x49fbf0
call fcn.0041dfd0
lea eax, [esi - 0x10]
add esp, 8
mov dword [esp + 0x228], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401bc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0045eec1
add esp, 0x220
ret

Function at 0x401e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e77
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ea8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401ea4
cmp esi, eax
jae 0x401ea8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401e94
cmp esi, eax
jb 0x401eae
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x402480
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov esi, eax
mov eax, dword [ebp]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x402524
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push edi
push str.idex
push eax
call ebx
cmp dword [esp + 0x10], 1
jne 0x40252d
call fcn.004023a0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x4024e8
mov eax, esi
call fcn.00402080
mov edi, dword [esi]
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push str.idex
push eax
call ebx
test eax, eax
jne 0x402537
mov ecx, dword [esp + 0x18]
shr ecx, 1
mov word [edi + ecx*2], ax
mov edi, esi
call fcn.00404400
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 4
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4

Function at 0x402550
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, eax
lea eax, [esp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMyDriversDriverGenius
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4025fc
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.AppPath
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4025fc
cmp dword [esp + 0xc], 1
jne 0x4025fc
cmp dword [esp + 0x10], 6
jb 0x4025fc
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4025c0
sub eax, edx
sar eax, 1
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
je 0x4025f7
cmp ax, 0x2f
je 0x4025f7
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4025e3
mov ecx, dword [0x49fcd0]
mov dword [edi], ecx
mov esi, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x40260b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x402910
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x492768
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
mov esi, 1
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], str.www.baidu.com
mov dword [esp + 0x18], str.www.qq.com
mov dword [esp + 0x1c], str.www.sina.com
mov dword [esp + 0x20], str.www.sohu.com
mov dword [esp + 0x24], str.www.xunlei.com
mov dword [esp + 0x28], str.www.163.com
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0045f8ad
add esp, 4
call fcn.0045f8ba
xor edx, edx
mov ecx, 6
div ecx
mov edx, dword [esp + edx*4 + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4029e9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
push 0x49fdcc
lea edi, [esp + 0x24]
call fcn.004039f0
mov ebx, dword [esp + 0x24]
add esp, 0x14
call fcn.00402a30
mov esi, eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret

Function at 0x402a30
Capabilities:
Send icmp echo request

Disassembly:
sub esp, 0x404
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [str.test_net]
mov ecx, dword [0x49fddc]
mov dl, byte [0x49fde0]
push ebp
push esi
push 0x3f7
mov dword [esp + 0xc], eax
lea eax, [esp + 0x15]
push 0
push eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call fcn.00463d60
add esp, 0xc
mov ebp, 1
call sub.IPHLPAPI.DLL_IcmpCreateFile
mov esi, eax
cmp esi, 0xffffffff
je 0x402af4
push edi
push 0x41c
call fcn.0045ec2d
mov edi, eax
add esp, 4
test edi, edi
je 0x402ac7
push 0x2710
push 0x41c
push edi
push 0
push 0x400
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
push esi
call sub.IPHLPAPI.DLL_IcmpSendEcho
test eax, eax
je 0x402ac7
xor ebp, ebp
push esi
call sub.IPHLPAPI.DLL_IcmpCloseHandle
test edi, edi
je 0x402ada
push edi
call fcn.0045ef4b
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0045eec1
add esp, 0x404
ret
mov ecx, dword [esp + 0x408]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0045eec1
add esp, 0x404
ret
Function at 0x404480
Capabilities:
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x19c
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x18e
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.00463d60
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4044e0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push str.localhost
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, esi
call fcn.0045eec1
add esp, 0x19c
ret

Function at 0x405190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov esi, ecx
movzx ecx, word [esp + 0x14]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4051b1
pop edi
pop esi
pop ebp
ret
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4051d9
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4051d9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4051e0
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret
push ebx
push eax
lea ecx, [ebx + 1]
call fcn.00403b90
push eax
call fcn.00464c90
add esp, 0xc
mov eax, ebx
call fcn.0040d050
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret
Function at 0x4053b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x493988
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
mov dword [esp + 0x18], ebx
je 0x4054f7
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
push ecx
push edx
push eax
push str._s_d._s
lea edi, [esp + 0x24]
call fcn.004039d0
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4054cf
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x4054c8
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x30], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 0xa]
sub eax, ecx
or eax, edx
jge 0x40547d
mov eax, esi
call fcn.00403bb0
mov eax, dword [esi]
push ebx
lea edx, [esp + 0x34]
push edx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4054ba
cmp dword [esp + 0x30], edi
jne 0x4054ba
mov eax, edi
call fcn.0040d050
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00402360
mov eax, 1
jmp 0x4054fb
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jl 0x405511
mov dword [eax - 0xc], ebx
mov eax, dword [esi]
mov byte [eax], bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x80070057
call fcn.00402340
int3
Function at 0x406320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x495c48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x30], 0
call fcn.004050d0
mov edx, 0x4a0130
mov ecx, eax
call fcn.00405210
test eax, eax
jne 0x4063fd
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.004050d0
mov edx, 0x4a0130
mov ecx, eax
call fcn.004052e0
test eax, eax
jne 0x4063fd
call fcn.004050d0
cmp dword [eax + 4], 0
je 0x4063cc
push esi
call fcn.004050d0
mov edx, dword [eax + 4]
push edx
mov eax, 0x4a0130
lea ecx, [esp + 0x18]
call fcn.00405190
add esp, 8
test eax, eax
jne 0x4063fd
push esi
push 0x400000
mov eax, 0x4a0130
lea ecx, [esp + 0x18]
call fcn.00405190
add esp, 8
test eax, eax
jne 0x4063fd
push 0x4a0130
push esi
call fcn.004050d0
lea ecx, [esp + 0x18]
mov edx, eax
call fcn.004053b0
mov ebx, dword [esp + 0x10]
mov esi, dword [ebx - 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.00464c90
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x14]
push 0x10
mov dword [esp + 0x1c], ecx
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x40646b
mov edx, dword [esp + 0x18]
lea eax, [esi + 4]
push eax
push edx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x40646d
xor esi, esi
mov eax, dword [ebp + 8]
push edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb90
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x495b78
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x30], ebx
call fcn.0040bda0
call fcn.0040dc20
call fcn.0040bda0
mov esi, eax
mov eax, 0x49ff26
call fcn.0040dbc0
lea ecx, [esp + 0x10]
lea edx, [ebx + 2]
call fcn.00404cf0
mov edi, eax
cmp edi, ebx
jne 0x40bc23
lea ecx, [esp + 0x10]
call fcn.0040de00
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x40bc3d
mov eax, esi
mov ecx, dword [eax + 8]
mov esi, dword [esi]
call fcn.0040bc60
or edi, eax
cmp esi, ebx
jne 0x40bc2b
lea ecx, [esp + 0x10]
call fcn.0040de00
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x40cad0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x495ab1
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
or ebx, 0xffffffff
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], bp
lea esi, [esp + 0x18]
mov byte [esp + 0x10c], 1
call fcn.004136d0
lea edi, [esp + 0x14]
mov byte [esp + 0x10c], 2
call fcn.00401cd0
mov byte [esp + 0x10c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 9
push str.kdump.dll
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401ff0
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebp
je 0x40cc2d
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebp
je 0x40cc2d
lea edx, [esp + 0x1c]
push edx
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x40cc18
push 0xc6
lea eax, [esp + 0x3e]
push ebp
push eax
mov word [esp + 0x44], bp
call fcn.00463d60
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x34], 8
jae 0x40cbf5
lea eax, [esp + 0x20]
push 0x64
push eax
lea ecx, [esp + 0x40]
push 0x64
push ecx
call fcn.0046040b
add esp, 0x10
push 0x12c
push 0x12000
lea edx, [esp + 0x40]
push edx
jmp 0x40cc27
push 0x12c
push 0x12000
push str.1212127FE4394dbdB3778D401FDD5155
push 1
call esi
xor ebx, ebx
cmp dword [esp + 0x34], 8
jb 0x40cc41
mov eax, dword [esp + 0x20]
push eax
call fcn.0045eebc
add esp, 4
lea eax, [edi - 0x10]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], bp
mov dword [esp + 0x10c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xec]
xor ecx, esp
call fcn.0045eec1
add esp, 0xfc
ret
Function at 0x40e9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ea4e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40ea1f
cmp eax, 2
jne 0x40ea3a
test esi, esi
mov eax, dword [esp]
je 0x40ea48
test eax, eax
je 0x40ea43
test al, 1
jne 0x40ea3a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40ea48
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x40f1a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [eax]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 4
je 0x40f1ef
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f1ef
cmp dword [esp + 0x10], 4
jne 0x40f1ef
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
lea eax, [esi + 1]
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x40f2d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4949d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
xor ebx, ebx
push 0xd2
lea eax, [esp + 0x2a]
push ebx
push eax
mov word [esp + 0x30], bx
call fcn.00463d60
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x40f33d
xor eax, eax
jmp 0x40f49c
cdq
and edx, 3
add eax, edx
push 0x208
lea edx, [esp + 0x102]
mov esi, eax
push ebx
push edx
sar esi, 2
mov word [esp + 0x108], bx
call fcn.00463d60
mov eax, dword [0x4bacbc]
mov ecx, dword [0x4bacb8]
add esp, 0xc
cmp ecx, eax
lea edi, [esp + 0x24]
mov word [esp + 0x304], bx
mov dword [esp + 0x14], eax
jbe 0x40f395
call fcn.0045f752
mov eax, dword [0x4bacbc]
mov ecx, dword [0x4bacb8]
cmp ecx, eax
mov ebx, 0x4bacb4
mov ebp, ecx
jbe 0x40f3a5
call fcn.0045f752
mov ecx, dword [esp + 0x14]
push ecx
push ebx
push ebp
mov eax, 0x4bacb4
push eax
lea edx, [esp + 0x24]
push edx
push eax
call fcn.004177b0
xor ebx, ebx
cmp esi, ebx
jle 0x40f497
mov dword [esp + 0x14], esi
or ebp, 0xffffffff
jmp 0x40f3d2
xor ebx, ebx
push 0x104
lea eax, [esp + 0x100]
push eax
push edi
mov word [edi + 4], bx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40f489
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x100]
call fcn.004021c0
mov dword [esp + 0x318], ebx
lea ebx, [esp + 0x1c]
mov esi, 0x4bacb4
call fcn.00416ef0
mov dword [esp + 0x318], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f43e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.004021c0
lea ebx, [esp + 0x20]
mov esi, 0x4bacb4
mov dword [esp + 0x318], 1
call fcn.00416ef0
mov dword [esp + 0x318], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f489
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 8
sub dword [esp + 0x14], 1
jne 0x40f3d0
mov eax, 1
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.0045eec1
add esp, 0x308
ret
Function at 0x40fc50
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
push edi
mov edi, dword [esp + 0x10]
je 0x40fc70
push eax
mov eax, dword [esp + 0x10]
push edi
push 1
push eax
call fcn.00460d90
add esp, 0x10
add dword [esi + 4], edi
pop edi
xor eax, eax
pop esi
ret 8

Function at 0x40fc80
Capabilities:
Delete file

Disassembly:
mov eax, dword [edi + 8]
test eax, eax
push esi
lea esi, [edi + 8]
je 0x40fc9a
push eax
call fcn.00460bb5
add esp, 4
mov dword [esi], 0
mov eax, dword [edi + 0xc]
push eax
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0xc]
push 0x4a0c4c
push ecx
push esi
mov dword [esi], 0
mov dword [edi + 4], 0
call fcn.00460af3
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x40fce8
push 2
push 0
push eax
call fcn.00460e99
mov edx, dword [esi]
push edx
call fcn.004610b6
add esp, 0x10
mov dword [edi + 4], eax
pop esi
ret
Function at 0x410310
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x4103b2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call ebx
cmp dword [esp + 0x10], 1
jne 0x4103bb
call fcn.004023a0
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x410377
mov eax, esi
call fcn.00402080
mov edi, dword [esi]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x4103c5
mov edx, dword [esp + 0x1c]
shr edx, 1
mov word [edi + edx*2], ax
mov edi, esi
call fcn.00404400
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8