joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40746a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
mov esi, ecx
mov ebx, edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4074d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097e2
leave
ret 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x21c], esi
cmp esi, edi
je 0x4074c4
push str.WSHGetWSAProtocolInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x407509
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4074c4
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x214]
push ecx
push ebx
mov dword [ebp - 0x210], edi
call eax
test eax, eax
je 0x407534
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x4074c6
cmp dword [ebp - 0x210], edi
jle 0x407560
xor esi, esi
mov eax, dword [ebp - 0x214]
mov ebx, dword [ebp - 0x218]
add eax, esi
call fcn.00407fa9
inc edi
add esi, 0x274
cmp edi, dword [ebp - 0x210]
jl 0x40753e
xor edi, edi
inc edi
jmp 0x407524
Function at 0x4076bc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x40e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x490], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str._SystemRoot_System32wshnetbs.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4078db
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x494], edi
cmp edi, ebx
je 0x40774f
push str.WSHEnumProtocols
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x484], eax
cmp eax, ebx
jne 0x407756
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4078da
push esi
lea ecx, [ebp - 0x488]
push ecx
push ebx
mov esi, str.NetBIOS
push esi
push ebx
mov dword [ebp - 0x48c], ebx
mov dword [ebp - 0x488], ebx
call eax
cmp eax, 0xffffffff
jne 0x4078bd
push dword [ebp - 0x488]
call fcn.004097d1
pop ecx
mov dword [ebp - 0x48c], eax
cmp eax, ebx
jne 0x4077a9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
pop ecx
xor eax, eax
jmp 0x4078d9
push dword [ebp - 0x488]
mov edi, dword [sym.imp.MSVCR100.dll_memset]
push ebx
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x488]
push eax
push dword [ebp - 0x48c]
push esi
push ebx
call dword [ebp - 0x484]
cmp eax, ebx
jle 0x4078bd
mov esi, dword [ebp - 0x48c]
add esi, 8
mov dword [ebp - 0x484], eax
jmp 0x4077ec
xor ebx, ebx
push 0x274
lea eax, [ebp - 0x480]
push ebx
push eax
call edi
mov eax, dword [esi - 8]
and eax, 0xffffefff
add esp, 0xc
or eax, 0x20000
cmp dword [esi + 8], 2
jne 0x407816
push 8
pop ecx
jmp 0x407818
xor ecx, ecx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x480], eax
mov eax, dword [esi - 4]
mov dword [ebp - 0x434], eax
mov eax, dword [esi]
mov dword [ebp - 0x430], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x42c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x470], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x458], 1
mov ebx, str.DATAGRAM
cmp eax, 2
je 0x407872
mov ebx, str.SEQPACKET
push ecx
call dword [sym.imp.MSVCR100.dll_abs]
push eax
push ebx
push dword [esi + 0x14]
lea eax, [ebp - 0x40c]
push str.MSAFD_NETBIOS___s___s__d
push 0x200
push 0x100
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
mov ebx, dword [ebp - 0x490]
add esp, 0x20
lea eax, [ebp - 0x480]
call fcn.00407fa9
add esi, 0x20
dec dword [ebp - 0x484]
jne 0x4077ea
push dword [ebp - 0x48c]
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 0x494]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004097e2
leave
ret 4
Function at 0x4097e2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e034]
jne 0x4097ec
repz ret
jmp fcn.00409cbb

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x401c66
pop dword [ebp - 0xc]
mov eax, 0x3b83867b
sub eax, 0x3b436a15
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x1a3cb2b2
add dword [ebp - 0x1c], 0x34159299
mov dword [ebp - 0x18], 0xe6213b73
sub dword [ebp - 0x18], 0xb3edef2e
mov dword [ebp - 0x14], 0x76e9c524
sub dword [ebp - 0x14], 0x2a9d80f6
mov dword [ebp - 0x10], 0xecfc1701
add dword [ebp - 0x10], 0x1303e8ff
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x717568
add eax, 0xffcebaec
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x1f3bf9d8
add dword [ebp - 0x1c], 0x55366f7e
mov dword [ebp - 0x18], 0x89bfcb04
add dword [ebp - 0x18], 0xb7ac9671
mov dword [ebp - 0x14], 0xc1124c18
add dword [ebp - 0x14], 0xa25d2054
mov dword [ebp - 0x10], 0xa317b52a
sub dword [ebp - 0x10], 0xa317b52a
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x5de0363f
add eax, 0xa25ff9ed
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x37736
push 0
call eax
mov ecx, 0x4be1
xor edx, edx
add edx, eax
mov esi, 0x7ecaa276
sub esi, 0x7e8a3276
add esi, dword [ebp - 0xc]
mov ebx, 0x994b08c1
sub ebx, 0xbc9dc4b0
add dword [ebp - 8], 0x304776a1
mov edi, dword [esi]
xor edi, ebx
sub dword [ebp - 4], 0xbc707884
mov dword [edx], edi
add dword [ebp - 8], esi
add edx, 4
add esi, 0x5450298e
add esi, 0xabafd676
loop 0x401d84
add eax, 0xe780696b
sub eax, 0xe77f4714
mov ebx, eax
add eax, 0x56f6ce1d
add eax, 0xa90931e8
mov ecx, 0x5eda5326
add ecx, 0xa165acda
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x401334
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
call sym.___main
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 2
jmp 0x40136c
mov eax, dword [esp + 0x18]
and eax, 1
test eax, eax
jne 0x401367
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], eax
add dword [esp + 0x18], 2
cmp dword [esp + 0x18], 0x64
jle 0x401354
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0x403024
call sym._printf
mov dword [esp], str.pause
call sym._system
mov eax, 0
leave
ret

Function at 0x401580
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sym._fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x4015e0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4016d6
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401650
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401625
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sym._memcpy
cmp byte [esp + 0x1f], 0
je 0x401635
cmp byte [esp + 0x1e], 0
je 0x401635
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
jmp 0x401635
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
nop
Function at 0x401970
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x405030
call sym._EnterCriticalSection_4
mov ebx, dword [0x405048]
sub esp, 4
test ebx, ebx
je 0x4019bb
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 0x4019b4
test esi, esi
je 0x4019b4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401990
mov dword [esp], 0x405030
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x403e59
pop dword [ebp - 0x18]
mov eax, 0x403e59
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x95913e45
add dword [ebp - 0x28], 0xb8c10706
mov dword [ebp - 0x24], 0xd689e30c
add dword [ebp - 0x24], 0x5ba96939
mov dword [ebp - 0x20], 0x2bc17d5b
sub dword [ebp - 0x20], 0xdf75392d
mov dword [ebp - 0x1c], 0xce0ccf6c
add dword [ebp - 0x1c], 0x31f33094
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xe4ce94bc
sub dword [ebp - 0x28], 0x705c2b66
mov dword [ebp - 0x24], 0x422ffbed
add dword [ebp - 0x24], 0xff3c6588
mov dword [ebp - 0x20], 0x7093a981
add dword [ebp - 0x20], 0xf2dbc2eb
mov dword [ebp - 0x1c], 0xd8e4bc02
sub dword [ebp - 0x1c], 0xd8e4bc02
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3aec9
push 0
call eax
mov ecx, 0xd976440d
sub ecx, 0xd975eb58
xor ebx, ebx
add ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x18]
mov edx, 0x2d05fc39
sub edx, 0x49215575
xor dword [ebp - 0xc], ecx
mov edi, dword [esi]
add dword [ebp - 0x14], ebx
add edi, edx
sub dword [ebp - 8], edx
mov dword [ebx], edi
sub dword [ebp - 4], eax
add ebx, 0x32ff640f
sub ebx, 0x32ff640b
add esi, 4
loop 0x403f68
add eax, 0xa4372071
add eax, 0x5bca3536
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x73230a7
sub ecx, 0x6f230a7
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x100259d0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x218
mov eax, dword [0x10037d20]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10039504], 0
mov eax, dword [esp + 0x21c]
je 0x10025a12
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.100269f6
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.10025250
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x10025a60
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10025a60
cmp dword [esp + 4], 0xffffffff
je 0x10025a60
push eax
call fcn.1002934b
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100269f6
add esp, 0x218
ret 4
Function at 0x10025c90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xa70
mov eax, dword [0x10037d20]
xor eax, esp
mov dword [esp + 0xa6c], eax
cmp dword [0x10039504], 0
mov ecx, dword [esp + 0xa88]
mov eax, dword [esp + 0xa74]
push ebx
mov ebx, dword [esp + 0xa84]
push ebp
mov ebp, dword [esp + 0xa8c]
push esi
mov esi, dword [esp + 0xa84]
push edi
mov edi, dword [esp + 0xa8c]
mov dword [esp + 0x10], ecx
je 0x10025cf0
push ecx
push ebp
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x10025ed4
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x870]
mov dword [esp + 0x870], 0
mov dword [esp + 0x874], 0
call fcn.10025250
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x230]
mov dword [esp + 0x230], 0
mov dword [esp + 0x234], 0
call fcn.10025250
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.10025250
push 0xffffffffffffffff
push dword [esp + 0x14]
lea ecx, [esp + 0x444]
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
call fcn.10025250
push ebp
push ebx
lea ecx, [esp + 0x658]
call fcn.10025040
push dword [esp + 0x440]
mov eax, dword [esp + 0x868]
add eax, eax
shr eax, 1
push eax
push dword [esp + 0x65c]
push dword [esp + 0x24]
push dword [esp + 0x23c]
push dword [esp + 0x880]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x650]
mov esi, eax
call fcn.100251e0
mov edx, dword [esp + 0x654]
lea eax, [esp + 0x658]
cmp edx, eax
je 0x10025dfa
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x10025dfa
cmp dword [esp + 0x650], 0xffffffff
je 0x10025dfa
push edx
call fcn.1002934b
add esp, 4
mov ecx, dword [esp + 0x440]
lea eax, [esp + 0x444]
mov dword [esp + 0x654], 0
cmp ecx, eax
je 0x10025e33
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10025e33
cmp dword [esp + 0x43c], 0xffffffff
je 0x10025e33
push ecx
call fcn.1002934b
add esp, 4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x440], 0
cmp ecx, eax
je 0x10025e63
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10025e63
cmp dword [esp + 0x14], 0xffffffff
je 0x10025e63
push ecx
call fcn.1002934b
add esp, 4
mov ecx, dword [esp + 0x22c]
lea eax, [esp + 0x230]
mov dword [esp + 0x18], 0
cmp ecx, eax
je 0x10025e99
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10025e99
cmp dword [esp + 0x228], 0xffffffff
je 0x10025e99
push ecx
call fcn.1002934b
add esp, 4
mov ecx, dword [esp + 0x86c]
lea eax, [esp + 0x870]
mov dword [esp + 0x22c], 0
cmp ecx, eax
je 0x10025ed2
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10025ed2
cmp dword [esp + 0x868], 0xffffffff
je 0x10025ed2
push ecx
call fcn.1002934b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xa7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100269f6
add esp, 0xa70
ret 0x18
Function at 0x10025ef0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10037d20]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10039504], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x10025f3a
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.100269f6
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.10025040
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
call fcn.100251e0
mov esi, eax
test esi, esi
jle 0x10025f6c
dec esi
lea ecx, [esp + 4]
call fcn.100251e0
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x10025f9a
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10025f9a
cmp dword [esp + 4], 0xffffffff
je 0x10025f9a
push eax
call fcn.1002934b
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100269f6
add esp, 0x21c
ret 8
Function at 0x10026160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x440
mov eax, dword [0x10037d20]
xor eax, esp
mov dword [esp + 0x43c], eax
cmp dword [0x10039504], 0
mov eax, dword [esp + 0x450]
mov ecx, dword [esp + 0x454]
mov edx, dword [esp + 0x448]
push ebx
mov ebx, dword [esp + 0x448]
push ebp
mov ebp, dword [esp + 0x454]
push esi
mov esi, dword [esp + 0x464]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x100261c6
push esi
push ecx
push eax
push ebp
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
jmp 0x1002635f
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x240]
mov dword [esp + 0x240], 0
mov dword [esp + 0x244], 0
call fcn.10025250
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push dword [esp + 0x24c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x10026331
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10026316
cmp eax, 2
jbe 0x10026298
cmp eax, 7
jne 0x10026316
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.10025040
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x10026285
lea ecx, [esp + 0x20]
call fcn.100250c0
jmp 0x10026331
cmp dword [esp + 0x24], 0
je 0x10026306
push ecx
lea ecx, [esp + 0x24]
call fcn.10025180
jmp 0x10026300
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.10025040
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x100262f0
lea ecx, [esp + 0x20]
call fcn.100250c0
jmp 0x10026331
cmp dword [esp + 0x24], 0
je 0x10026306
lea ecx, [esp + 0x20]
call fcn.100251e0
mov ecx, eax
mov dword [esp + 0x10], ecx
lea eax, [ecx + ecx]
lea ecx, [esp + 0x20]
mov dword [esi], eax
call fcn.100250c0
jmp 0x10026331
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov edi, eax
mov ecx, dword [esp + 0x23c]
lea eax, [esp + 0x240]
cmp ecx, eax
je 0x1002635f
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1002635f
cmp dword [esp + 0x238], 0xffffffff
je 0x1002635f
push ecx
call fcn.1002934b
add esp, 4
mov ecx, dword [esp + 0x44c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100269f6
add esp, 0x440
ret 0x18
Function at 0x10026380
Capabilities:
Delete directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x10037d20]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10039504], 0
mov eax, dword [esp + 0x21c]
je 0x100263c2
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.100269f6
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.10025250
cmp dword [esp + 0x214], 0x104
jl 0x100263fb
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x10026407
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1002642c
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1002642c
cmp dword [esp + 4], 0xffffffff
je 0x1002642c
push edx
call fcn.1002934b
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100269f6
add esp, 0x218
ret 4

Function at 0x10026450
Capabilities:
Set current directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x10037d20]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10039504], 0
mov eax, dword [esp + 0x21c]
je 0x10026492
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.100269f6
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.10025250
cmp dword [esp + 0x214], 0x104
jl 0x100264cb
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x100264d7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x100264fc
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x100264fc
cmp dword [esp + 4], 0xffffffff
je 0x100264fc
push edx
call fcn.1002934b
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100269f6
add esp, 0x218
ret 4