joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40561b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402fb6
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x4056ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405776
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405776
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x4056ce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405727
cmp dword [0x40b7e8], ecx
je 0x405727
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405727
test ebx, ebx
je 0x405727
call edi
test eax, eax
je 0x40571e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40571e
test byte [ebp - 8], 1
jne 0x405727
or dword [ebp + 0x10], 0x200000
jmp 0x40575a
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x40575a
push eax
call esi
test eax, eax
je 0x40575a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40575a
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x40575a
push eax
call esi
test eax, eax
je 0x40575a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x405776
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405778
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040237a
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x6bbd18bb
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0xdc1671b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4010d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0x104
push 0x40f27c
push eax
mov dword [0x40f278], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x40f27c
call fcn.00402880
add esp, 8
test eax, eax
je 0x401102
mov byte [eax], 0
push 0x40f27c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
pop ebp
ret

Function at 0x401390
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x40f424]
push esi
xor esi, esi
test eax, eax
jne 0x4013bb
push 0x40f380
mov dword [0x40f380], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [0x40f424], 1
cmp dword [0x40f390], 2
jne 0x4013db
mov ecx, dword [0x40f384]
mov eax, 1
cmp ecx, 5
jb 0x4013dd
mov eax, 2
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x4015f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
test edi, edi
mov dword [ebp - 8], eax
jne 0x401621
mov eax, 0x57
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00401390
mov esi, eax
cmp esi, 2
jne 0x401648
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push edi
push edx
call fcn.00401740
add esp, 0xc
mov dword [ebp - 4], eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x40b454
push eax
push ecx
call fcn.004013e0
add esp, 0xc
mov edi, eax
test esi, esi
jne 0x401673
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
jmp 0x4016de
cmp esi, 1
jne 0x4016db
push 0x28
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4016db
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4016cf
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4016cf
push edi
lea edx, [ebp - 0x10]
push 0
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0xc
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4016de
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4016de
mov edi, dword [ebp + 8]
test edi, edi
je 0x40171b
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40170d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40170d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xba
pop esi
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop esi
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401a60
add esp, 4
mov dword [ebp - 4], eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x18]
or ecx, 1
push eax
push ecx
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f0d
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
push eax
mov eax, dword [ebp + 0x18]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0x18]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x401f10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x401f21
mov eax, 0x57
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401f32
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401f43
xor eax, eax
pop ebp
ret
push eax
call fcn.00401a60
add esp, 4
pop ebp
ret

Function at 0x401f50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
test eax, eax
je 0x401fc8
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x401fc8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401f80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401a60
add esp, 4
pop esi
pop ebp
ret
test al, 1
mov dword [esi], 0
je 0x401f90
mov dword [esi], 1
test al, 2
je 0x401f97
or dword [esi], 2
test al, 4
je 0x401f9e
or dword [esi], 4
test al, 0x10
je 0x401fa5
or dword [esi], 0x10
test al, 0x20
je 0x401fac
or dword [esi], 0x20
test ah, 0x10
je 0x401fb7
or dword [esi], 0x2000000
test ah, 4
je 0x401fc3
mov eax, dword [esi]
or ah, 0x10
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret
mov eax, 0x57
pop esi
pop ebp
ret

Function at 0x401fd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
test ecx, ecx
je 0x402010
mov eax, dword [ebp + 8]
test eax, eax
je 0x402010
mov esi, dword [ebp + 0x10]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x402004
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401a60
add esp, 4
pop esi
pop ebp
ret
cmp esi, eax
pop esi
sbb eax, eax
and eax, 0x1005
pop ebp
ret
mov eax, 0x57
pop esi
pop ebp
ret
Function at 0x402020
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
and esi, 0xffff
and edi, 0xffff
test ebx, ebx
mov dword [ebp + 0x14], esi
mov dword [ebp + 0xc], edi
je 0x402088
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x402088
push esi
push ebx
push str.HOSTNAME
call fcn.00401fd0
add esp, 0xc
test eax, eax
je 0x402088
cmp eax, 0xcb
jne 0x4020d4
push esi
push ebx
push str.COMPUTERNAME
call fcn.00401fd0
add esp, 0xc
test eax, eax
je 0x402088
cmp eax, 0xcb
jne 0x4020d4
mov esi, dword [ebp + 8]
test esi, esi
je 0x4020d2
lea ecx, [ebp + 0xc]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4020d2
push edi
push esi
push str.USER
call fcn.00401fd0
add esp, 0xc
test eax, eax
je 0x4020d2
cmp eax, 0xcb
jne 0x4020d4
push edi
push esi
push 0x40b4b0
call fcn.00401fd0
add esp, 0xc
test eax, eax
je 0x4020d2
cmp eax, 0xcb
jne 0x4020d4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401b10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401b5b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b54
test esi, esi
je 0x401b54
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b30
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d40
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e68
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401dce
cmp eax, 4
jne 0x401df0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401dde
cmp edx, 4
je 0x401dde
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d40

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x100296c
Capabilities:
Terminate process

Disassembly:
mov eax, 0x100793b
call sub.MSVCRT.dll__EH_prolog
push ecx
sub esp, 0x228
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push 0x1003306
mov dword [ebp - 0x14], edi
call dword [sym.imp.MSVCRT.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.0100271d
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x238]
push esi
mov byte [ebp - 4], 2
push dword [ebp + 8]
call fcn.0100274b
cmp dword [ebp - 0x24], edi
jne 0x10029c9
cmp dword [ebp - 0x20], edi
je 0x10029e0
push dword [esi]
call fcn.01002611
xor eax, eax
cmp dword [ebp - 0x24], edi
sete al
push eax
call dword [sym.imp.MSVCRT.dll_exit]
pop ecx
push 0x10012d4
push dword [ebp - 0x234]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
cmp eax, edi
pop ecx
jne 0x1002a05
push esi
push dword [ebp + 8]
call fcn.01001f29
mov dword [ebp - 0x14], eax
jmp 0x1002a14
push dword [esi]
call fcn.01002611
push edi
call dword [sym.imp.MSVCRT.dll_exit]
pop ecx
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.0100231b
jmp 0x1002a59
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCRT.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
xor eax, eax
cmp dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
setge al
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1002a90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013a0
push 0x1002d00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x100c514], 0xffffffff
mov dword [0x100c518], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x100a0c4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x100a0c0]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x100c51c], ecx
call fcn.01002ca0
mov eax, dword [0x100a078]
test eax, eax
jne 0x1002b21
push 0x1002c90
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.01002c70
push 0x100a030
push 0x100a02c
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x100a0bc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x100a0b8]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
add esp, 0x14
push 0x100a028
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0100296c
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x1002bc0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003d81
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
mov edi, ecx
push 0
call esi
mov eax, dword [edi + 0x224]
test eax, eax
jne 0x1003d9d
push 6
jmp 0x1003dad
push dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1003db3
push eax
call esi
xor eax, eax
jmp 0x1003db6
push 1
pop eax
pop edi
pop esi
ret 4

Function at 0x1003edb
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
mov edi, ecx
push 0
call esi
mov edx, dword [edi + 0x224]
test edx, edx
jne 0x1003ef7
push 6
jmp 0x1003f1a
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push dword [eax + 4]
push 1
push 0
push dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1003f20
push eax
call esi
xor eax, eax
jmp 0x1003f23
push 1
pop eax
pop edi
pop esi
ret 8
Function at 0x1003f28
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1007aac
call sub.MSVCRT.dll__EH_prolog
push ecx
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov dword [ebp - 0x10], esp
mov ebx, ecx
push esi
call edi
mov eax, dword [ebx + 0x224]
cmp eax, esi
jne 0x1003f5a
push 6
jmp 0x1004009
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push esi
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x1004008
cmp dword [ebp - 0x18], 1
je 0x1003f8a
cmp dword [ebp - 0x18], 7
je 0x1003f8a
cmp dword [ebp - 0x18], 2
jne 0x1004008
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
and dword [ebp - 4], 0
shr eax, 1
cmp eax, dword [edi + 8]
jbe 0x1003fa2
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push dword [edi + 4]
push eax
push 0
push dword [ebp + 8]
push dword [ebx + 0x224]
call esi
test eax, eax
je 0x1003fe0
jle 0x1003fca
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
xor ecx, ecx
push 0x1008050
push eax
mov dword [ebp - 0x20], ecx
call sub.MSVCRT.dll__CxxThrowException
shr dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
dec eax
mov ecx, edi
push eax
call fcn.01003072
push 1
pop eax
jmp 0x100400d
push eax
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x1005f67
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1007e73
call sub.MSVCRT.dll__EH_prolog
push ecx
sub esp, 0x248
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], ebx
push dword [esi + 4]
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call fcn.01006578
cmp eax, ebx
jne 0x1005fa8
push dword [esi + 4]
push 0xc2
jmp 0x100602f
push dword [esi + 0x218]
lea edi, [esi + 0x218]
push dword [esi + 4]
call fcn.0100669d
cmp eax, ebx
jne 0x1005fcf
push dword [esi + 4]
push dword [edi]
push 0xc3
jmp 0x1006125
cmp dword [esi + 0x644], ebx
jne 0x1005fec
call fcn.010067e3
cmp eax, ebx
jne 0x1005fec
push 0x10019f0
push 0xd4
jmp 0x100602f
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0x42c]
call fcn.010075ee
cmp eax, ebx
jge 0x1006015
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
xor ecx, ecx
push 0x1008050
push eax
mov dword [ebp - 0x1c], ecx
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x100603d
push dword [esi + 0x42c]
push 0xcc
push esi
call fcn.010063b5
add esp, 0xc
jmp 0x100612e
cmp dword [esi + 0xe60], ebx
jne 0x1006095
push 0x19a0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x1006075
mov eax, 0x8007000e
xor ecx, ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x1008050
push eax
mov dword [ebp - 0x1c], ecx
call sub.MSVCRT.dll__CxxThrowException
cmp edi, ebx
je 0x100608d
lea eax, [esi + 0x428]
mov ecx, edi
push eax
lea eax, [esi + 0x214]
push eax
push esi
call fcn.01005af2
jmp 0x100608f
xor eax, eax
mov dword [esi + 0xe60], eax
mov ecx, dword [esi + 0xe60]
add ecx, 0xc
call fcn.01005990
cmp eax, ebx
je 0x10060c0
mov eax, dword [esi + 0xe60]
push dword [eax + 0x8b0]
push dword [eax + 0xacc]
push 0xd3
jmp 0x1006125
mov ecx, dword [esi + 0xe60]
call fcn.010059bd
cmp eax, ebx
jne 0x100613f
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0x42c]
call fcn.010075ee
cmp eax, ebx
jge 0x10060f3
lea eax, [ebp - 0x44]
push 0x10019e8
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [esi + 0xe60]
push ebx
push 0x100000
push dword [eax + 0x1994]
push dword [eax + 0x1990]
call fcn.01006910
cmp eax, 0xa
mov dword [ebp - 0x1c], edx
ja 0x100611b
push 0xa
pop eax
push eax
lea eax, [ebp - 0x44]
push eax
push 0xc5
push esi
call fcn.010063b5
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01006479
push 1
pop eax
jmp 0x10061ae
xor edi, edi
jmp 0x1006166
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xe5c], edi
jge 0x10061a0
push 1
push edi
lea ecx, [ebp - 0x258]
call fcn.01002ed3
push 0xffffffffffffffff
push ebx
push dword [eax + 4]
lea ecx, [esi + 0x648]
mov byte [ebp - 4], 3
call fcn.010030f4
mov dword [ebp - 0x258], 0x10012f8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01006479
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1006ce6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1007f84
call sub.MSVCRT.dll__EH_prolog
push esi
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x1006d08
and dword [esi + 0x14], 0
test byte [esi + 0x14], 0x10
je 0x1006d6e
push dword [ebp + 8]
mov ecx, esi
call fcn.01006d97
cmp dword [esi + 8], 0
jne 0x1006d22
xor eax, eax
jmp 0x1006d2e
dec dword [esi + 8]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + eax*4]
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x1006d57
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.01006e0a
test eax, eax
je 0x1006d5f
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1006d18
or dword [ebp - 4], 0xffffffff
push 0
jmp 0x1006d66
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1006d88
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 4]
test eax, eax
jne 0x1006d88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x264], eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10072d1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
lea esi, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call fcn.01007246
test eax, eax
je 0x1007323
cmp word [ebp - 0x208], 0x5c
je 0x100731b
mov eax, 0x80070057
jmp 0x10073dd
lea esi, [ebp - 0x206]
jmp 0x100736f
lea eax, [ebp - 0x20c]
push eax
call fcn.01007276
test eax, eax
je 0x100736f
mov eax, dword [ebp - 0x208]
lea esi, [ebp - 0x208]
test ax, ax
je 0x1007351
cmp ax, 0x5c
je 0x1007351
inc esi
inc esi
mov ax, word [esi]
jmp 0x100733f
cmp word [esi], 0x5c
jne 0x100736f
inc esi
inc esi
mov ax, word [esi]
test ax, ax
je 0x1007367
cmp ax, 0x5c
jne 0x1007357
cmp word [esi], 0x5c
jne 0x100736f
inc esi
inc esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ax, word [esi]
test ax, ax
je 0x1007387
cmp ax, 0x5c
je 0x1007387
inc esi
inc esi
jmp 0x1007375
xor ebx, ebx
cmp word [esi], 0x5c
lea eax, [ebp - 0x20c]
push 0
sete bl
and word [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10073c9
call edi
cmp eax, 0xb7
je 0x10073c9
call edi
test eax, eax
jg 0x10073ba
call edi
jmp 0x10073c6
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10073da
mov word [esi], 0x5c
inc esi
inc esi
cmp dword [ebp - 4], 0
jge 0x1007375
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4