joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426c80
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x57ed30
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], 2
lea eax, [esp + 0x30]
push eax
mov ecx, str.SoftwareSshXHome
call fcn.004026a0
mov byte [esp + 0x1c], 3
mov ebx, 1
push ebx
push str.IsGlobal
push str.Update
call fcn.00402260
test al, al
je 0x426ceb
push 7
push 0x632d1c
lea ecx, [esp + 0x38]
push ecx
jmp 0x426cf7
push 4
push str.Nus
lea edx, [esp + 0x38]
push edx
call fcn.00411d70
mov eax, dword [esp + 0x24]
cmp dword [eax - 4], ebx
mov esi, dword [eax - 0xc]
jle 0x426d19
mov eax, esi
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00402a30
mov eax, dword [esp + 0x24]
lea edx, [esi + esi]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edx
push eax
mov eax, dword [esp + 0x38]
push ebx
push 0x632d38
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], ebx
mov edi, dword [eax - 0xc]
jle 0x426d53
mov ecx, edi
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00402a30
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
lea ecx, [edi + edi]
push ecx
push eax
push ebx
push 0x632d44
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov eax, dword [esp + 0x2c]
cmp dword [eax - 4], ebx
mov edi, dword [eax - 0xc]
jle 0x426d87
mov eax, edi
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00402a30
mov eax, dword [esp + 0x2c]
lea edx, [edi + edi]
push edx
push eax
mov eax, dword [esp + 0x38]
push ebx
push str.Date
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test ebp, ebp
je 0x426dcd
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426da7
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push ebp
push ebx
push 0x632d50
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov byte [esp + 0x1c], 2
lea ecx, [esp + 0x30]
call fcn.00402750
mov byte [esp + 0x1c], bl
lea ecx, [esp + 0x24]
call fcn.00402750
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x28]
call fcn.00402750
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402750
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x427a30
Capabilities:
Get common file path
Get storage device properties

Disassembly:
mov eax, 0x2f30
call fcn.005027c0
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x2f28], eax
push ebx
push esi
push edi
push 0x400
lea eax, [esp + 0x24]
mov edi, ecx
xor ebx, ebx
push eax
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
call fcn.00427b80
add esp, 4
test al, al
je 0x427b5c
mov edx, dword [esp + 0x10]
push edx
push str..PhysicalDrive_d
lea eax, [esp + 0x28]
push 0x400
push eax
call fcn.004ff10b
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push connect
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x427b5c
xor eax, eax
push 0x2710
lea edx, [esp + 0x824]
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00501e30
add esp, 0xc
push ebx
lea eax, [esp + 0x14]
push eax
push 0x2710
lea ecx, [esp + 0x82c]
push ecx
push 0xc
lea edx, [esp + 0x28]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x427b55
mov eax, dword [esp + 0x838]
cmp eax, 0xffffffff
je 0x427b2a
lea ecx, [esp + 0x820]
call fcn.00427e90
mov eax, dword [esp + 0x830]
cmp eax, ebx
je 0x427b4f
cmp byte [edi], bl
jne 0x427b53
lea eax, [esp + eax + 0x820]
push eax
push 0x400
push edi
call fcn.005001d7
add esp, 0xc
cmp byte [edi], bl
je 0x427b55
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2f34]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004fdb4a
add esp, 0x2f30
ret

Function at 0x427e10
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esi], 0
test eax, eax
je 0x427e76
cmp eax, 3
jb 0x427e76
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push esi
push ecx
push ecx
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x26], cx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
setne al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor al, al
call fcn.004fdb4a
add esp, 0x20c
ret
Function at 0x428510
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x57ec8d
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
call fcn.0040cb50
mov ebx, 1
mov dword [esp + 0x254], ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x42858b
push esi
mov ecx, 0x630230
call fcn.004026a0
jmp 0x4285f1
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4285b6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov ecx, 0x630230
call fcn.004026a0
jmp 0x4285f1
cmp dword [esp + 0x24], edi
je 0x4285cd
lea edx, [esp + 0x1c]
push edx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4285b6
jmp 0x4285df
lea edx, [esp + 0x40]
lea edi, [esp + 0x10]
call fcn.004027b0
call fcn.0040cc50
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0040cbb0
mov dword [esp + 0x14], ebx
mov byte [esp + 0x254], 0
lea ecx, [esp + 0x10]
call fcn.00402750
mov eax, esi
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x248
ret

Function at 0x429020
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x57c921
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x14], ebx
mov esi, 1
mov dword [esp + 0x5c], esi
push ebp
call fcn.0040c980
push 0x400
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.004fd2d4
mov ecx, dword [esp + 0x6c]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ecx
mov dword [esp + 0x3c], 0x400
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x4290eb
mov esi, dword [esp + 0x28]
cmp esi, ebx
jne 0x4290d3
xor eax, eax
jmp 0x4290e1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4290d8
sub eax, edx
mov edi, eax
push esi
mov eax, ebp
call fcn.0040ff00
mov edx, dword [esp + 0x28]
push edx
call fcn.004fe853
add esp, 4
mov byte [esp + 0x5c], bl
lea ecx, [esp + 0x68]
call fcn.0040ca90
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x4292d0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x57b2c1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x48]
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
call fcn.0040cb50
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], esi
xor eax, eax
push esi
lea ebx, [esi + 0xa]
mov ebp, 1
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
call fcn.0042f940
mov dword [esp + 0x40], ebp
xor ebp, ebp
mov eax, dword [esp + 0x1c]
mov ebx, 8
cmp dword [esp + 0x30], ebx
jae 0x42935f
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
dec ecx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [esp + 0x2c]
mov esi, eax
lea edx, [ecx - 1]
cmp esi, edx
jbe 0x4293a6
lea ebx, [esi + 1]
cmp ebx, ecx
ja 0x42938f
or eax, 0xffffffff
lea esi, [esp + 0x18]
call fcn.0040c710
jmp 0x42939e
mov eax, ebx
push 0
sub eax, ecx
lea ebx, [esp + 0x1c]
call fcn.0042d540
inc ebp
cmp ebp, 5
jb 0x42934c
jmp 0x4293fb
cmp esi, ecx
jbe 0x4293af
call fcn.004fe843
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebx
jae 0x4293bd
lea eax, [esp + 0x1c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x30], ebx
jb 0x4293d5
mov eax, dword [esp + 0x1c]
mov esi, eax
test eax, eax
jne 0x4293d9
jmp 0x4293ef
lea esi, [esp + 0x1c]
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4293e0
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [esp + 0x10]
push esi
call fcn.004028e0
xor ebx, ebx
mov byte [esp + 0x40], bl
cmp dword [esp + 0x30], 8
jb 0x429415
mov edx, dword [esp + 0x1c]
push edx
call fcn.004fdb3f
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x34
ret
Function at 0x4296f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x57ec40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x14]
push eax
mov ecx, 0x632fb8
call fcn.004026a0
mov dword [esp + 0x20], 0
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0042b340
add esp, 8
mov byte [esp + 0x20], 1
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00402750
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402750
cmp esi, 0xffffffff
jne 0x429789
push ebx
call edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x4297a0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x57ec12
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
push esi
mov dword [esp + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call edi
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x632fb8
call fcn.004026a0
mov dword [esp + 0x28], 0
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], 1
call fcn.0042b340
add esp, 8
mov dword [esp + 0x28], 1
mov eax, dword [eax]
push esi
mov ebx, 3
push eax
mov dword [esp + 0x1c], ebx
call edi
test eax, eax
jne 0x42982f
test ebp, ebp
jne 0x42982f
xor esi, esi
jmp 0x429834
mov esi, 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], ebx
and ebx, 0xfffffffd
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.00402750
mov dword [esp + 0x28], 0xffffffff
test bl, 1
je 0x42986d
and ebx, 0xfffffffe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.00402750
test esi, esi
je 0x429881
cmp dword [0x65236c], 1
jl 0x42989e
push str.CLEAN:_Processing_file:_attributes_changed_successfully
jmp 0x42988f
cmp dword [0x65236c], 1
jl 0x42989e
push str.CLEAN:_Processing_file:_attributes_failed_to_change
push str.Helper::virSetFileAttributes
push 1
call fcn.004fa3c2
add esp, 0xc
test esi, esi
setne al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4298c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x57c801
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x34]
push eax
call fcn.0040cb50
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
mov esi, 1
push edx
mov dword [esp + 0x24], esi
call fcn.0040cbb0
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
lea edx, [esp + 0x1c]
call fcn.0042b200
mov byte [esp + 0x2c], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x429990
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x429983
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x429983
call fcn.00410000
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x42997a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x429990
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004028e0
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4299b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push 0x633050
push ecx
call fcn.00500194
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x4299d4
or eax, 0xffffffff
jmp 0x4299d8
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
push ecx
setne byte [esp + 0x1b]
call edi
cmp eax, 0xffffffff
je 0x4299f0
test al, 0x10
jne 0x4299f0
mov bl, 1
jmp 0x4299f2
xor bl, bl
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jle 0x429a2b
movzx edx, word [eax + 2]
cmp dx, 0x3a
jne 0x429a2b
test ecx, ecx
jl 0x429a4b
movzx eax, word [eax]
push eax
call fcn.0050028a
add esp, 4
test eax, eax
je 0x429a27
cmp byte [esp + 0x17], 0
jne 0x429a27
test bl, bl
je 0x429a55
mov eax, dword [esp + 0x18]
push 0x5c
push eax
call fcn.004fed59
add esp, 8
test eax, eax
je 0x429a62
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
jne 0x429928
jmp 0x429a62
push 0x80070057
call fcn.00401000
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x18]
call fcn.0040e9d0
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x18]
call fcn.00402750
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x429b10
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x57b359
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x28]
push esi
call fcn.0040c980
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 3
push 0
push 0
push connect
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x429bf9
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0x2800
ja 0x429bf2
inc eax
push eax
call fcn.004fe27d
mov edx, dword [esp + 0x14]
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov byte [esi + eax], 0
test esi, esi
jne 0x429bc5
xor eax, eax
jmp 0x429bd9
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429bd0
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x28]
push esi
call fcn.0040ff00
push esi
call fcn.004fe160
mov esi, dword [esp + 0x2c]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x42a030
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5784b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x42a0a2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x42a0a2
mov dword [esp + 0x14], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
mov dword [esp + 0x14], 0xffffffff
test esi, esi
je 0x42a0b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x42a180
Capabilities:
Get number of processors
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57ebb8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov word [esp + 0x1c], ax
push 6
mov eax, str..X:
lea esi, [esp + 0x1c]
mov byte [esp + 0x17], bl
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.0040e430
mov dword [esp + 0x78], ebx
cmp dword [esp + 0x2c], 4
jae 0x42a1ef
call fcn.004fe843
mov eax, dword [esp + 0x1c]
mov ecx, 8
cmp dword [esp + 0x30], ecx
jae 0x42a202
lea eax, [esp + 0x1c]
mov edx, dword [ebp + 8]
mov dx, word [edx]
mov word [eax + 8], dx
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ecx
jae 0x42a21a
lea eax, [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42a2a8
xor eax, eax
push ebx
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x18]
push eax
push 0x28
lea ecx, [esp + 0x4c]
push ecx
push 0xc
lea edx, [esp + 0x48]
push edx
push 0x2d1400
push esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42a2a1
cmp dword [esp + 0x5c], 7
sete byte [esp + 0x13]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x42a2c4
mov eax, dword [esp + 0x1c]
push eax
call fcn.004fdb3f
add esp, 4
mov al, byte [esp + 0x13]
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004fdb4a
mov esp, ebp
pop ebp
ret
Function at 0x42e790
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x57b0bd
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
lea eax, [esi + 0xc]
push eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call fcn.0042e980
xor eax, eax
mov dword [esp + 0x10], eax
mov byte [esi + 0x30], al
mov byte [esi + 0x31], al
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8

Function at 0x42ffe0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x57b01b
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x810]
mov dword fs:[0], eax
push 0x66bbd8
mov dword [esp + 0xc], 0x66bbd8
call fcn.0040cb50
mov dword [esp + 0x818], 0
push 0x400
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.004fed59
add esp, 8
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430062
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xc]
mov ebx, eax
push ecx
mov eax, 0x66bbd8
call fcn.004028e0
push 9
push 0x633158
push 0x66bbd8
call fcn.00411d70
mov edx, dword [0x66bbd8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4300ab
mov byte [0x66ae38], 1
mov eax, dword [0x66bbd8]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4300d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x818], 0xffffffff
mov eax, 0x66bbd8
mov ecx, dword [esp + 0x810]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x814
ret

Function at 0x430110
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x57ea02
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x808], eax
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x810]
mov dword fs:[0], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp + 0x818], 2
mov eax, dword [0x66bbd8]
mov edx, dword [esp + 0x824]
push eax
mov eax, dword [esp + 0x824]
push 0x400
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea ecx, [esp + 0x10]
call fcn.004026a0
mov eax, 1
mov dword [esp + 4], eax
mov byte [esp + 0x818], al
lea ecx, [esp + 0x820]
call fcn.00402750
mov byte [esp + 0x818], 0
lea ecx, [esp + 0x824]
call fcn.00402750
mov eax, esi
mov ecx, dword [esp + 0x810]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x818
ret 8
Function at 0x4301f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x579418
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [0x66bbd8]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402750
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4