joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402237
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x402249
xor eax, eax
jmp 0x40235b
cmp dword [0x4061c0], 0
je 0x402257
call fcn.004021e6
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push edi
mov ecx, 0xff
not eax
jb 0x402337
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [esi]
mov edx, eax
sub dword [ebp + 0x10], 8
and edx, ecx
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4074ac]
xor eax, ebx
inc esi
mov edx, eax
movzx ebx, byte [esi]
and edx, ecx
xor edx, ebx
movzx ebx, byte [esi + 1]
mov edx, dword [edx*4 + 0x4074ac]
shr eax, 8
xor edx, eax
inc esi
mov eax, edx
and eax, ecx
xor eax, ebx
movzx ebx, byte [esi + 1]
mov eax, dword [eax*4 + 0x4074ac]
shr edx, 8
xor eax, edx
inc esi
mov edx, eax
and edx, ecx
xor edx, ebx
movzx ebx, byte [esi + 1]
mov edx, dword [edx*4 + 0x4074ac]
shr eax, 8
xor edx, eax
inc esi
mov eax, edx
and eax, ecx
xor eax, ebx
movzx ebx, byte [esi + 1]
mov eax, dword [eax*4 + 0x4074ac]
shr edx, 8
xor eax, edx
inc esi
mov edx, eax
and edx, ecx
xor edx, ebx
movzx ebx, byte [esi + 1]
mov edx, dword [edx*4 + 0x4074ac]
shr eax, 8
xor edx, eax
inc esi
mov eax, edx
and eax, ecx
xor eax, ebx
movzx ebx, byte [esi + 1]
mov eax, dword [eax*4 + 0x4074ac]
shr edx, 8
xor eax, edx
inc esi
mov edx, eax
and edx, ecx
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4074ac]
xor eax, edx
inc esi
dec edi
jne 0x402273
pop ebx
cmp dword [ebp + 0x10], 0
je 0x402358
movzx edi, byte [esi]
mov edx, eax
and edx, ecx
xor edx, edi
shr eax, 8
mov edx, dword [edx*4 + 0x4074ac]
xor eax, edx
inc esi
dec dword [ebp + 0x10]
jne 0x40233d
not eax
pop edi
pop esi
pop ebp
ret

Function at 0x403c24
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
xor eax, eax
push esi
push eax
push eax
push 3
push eax
push eax
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x414ddf
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], ecx
add edi, 0xd56073af
add eax, 4
cmp eax, ebx
jne fcn.00414ddf
sub edx, 0x2a00dac8
ret
Function at 0x4038f5
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x40390f
push dword [ebp + 8]
push 0x403890
call sub.USER32.dll_EnumWindows
jmp 0x403946
mov edi, dword [0x408390]
jmp 0x403942
mov esi, dword [edi]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x403940
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x408390
call fcn.00406070
add esp, 8
mov edi, esi
or edi, edi
jne 0x403917
pop edi
pop esi
pop ebp
ret 4
Function at 0x40646b
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push 0
call sub.USER32.dll_OpenClipboard
or eax, eax
je 0x4064e4
cmp dword [ebp + 8], edi
je 0x4064df
push dword [ebp + 8]
call sub.CRTDLL.dll_strlen
pop ecx
mov dword [ebp - 4], eax
inc eax
push eax
push 0x2002
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 8], eax
or eax, eax
je 0x4064df
call sub.USER32.dll_EmptyClipboard
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0xc], eax
or eax, eax
je 0x4064df
mov eax, dword [ebp - 4]
inc eax
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.CRTDLL.dll_memcpy
add esp, 0xc
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 8]
push 1
call sub.USER32.dll_SetClipboardData
mov edi, eax
call sub.USER32.dll_CloseClipboard
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x100023c0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1001a030]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x214], 0x104
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10002520
add esp, 0x10
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x10002426
mov eax, dword [ebp - 0x21c]
jmp 0x10002508
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x214]
ja 0x10002457
cmp dword [ebp - 0x220], 0
jne 0x10002462
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002508
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x10017fd4
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x10002491
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002508
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xffffffff
jne 0x100024c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002508
push 0
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100024f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100099a4
mov esp, ebp
pop ebp
ret

Function at 0x10002520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [0x1001bb3c]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002554
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100025ae
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x1001bb3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10002576
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100025ae
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x10002595
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100025ae
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x1001bb3c]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x100091c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x100091c9
xor ecx, ecx
jne 0x100091c9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10009210
mov eax, dword [ebp - 0xc]
jmp 0x1000926d
cmp dword [ebp - 4], 1
je 0x10009223
cmp dword [ebp - 4], 2
je 0x10009223
mov eax, 0xd
jmp 0x1000926d
cmp dword [ebp + 0xc], 0
je 0x10009261
cmp dword [ebp - 8], 0
je 0x10009259
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x10009250
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x10009257
mov eax, 0xd
jmp 0x1000926d
jmp 0x10009261
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100099a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001a030]
jne 0x100099ae
repz ret
jmp fcn.1000aeb6
Function at 0x100139c7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000bb32
and dword [ebp - 4], 0
cmp dword [0x1001bb18], 0
mov ebx, eax
jne 0x10013a78
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10013b29
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10013b29
push eax
call fcn.1000bac0
mov dword [esp], 0x10017be4
push edi
mov dword [0x1001bb18], eax
call esi
push eax
call fcn.1000bac0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001bb1c], eax
call esi
push eax
call fcn.1000bac0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001bb20], eax
call esi
push eax
call fcn.1000bac0
pop ecx
mov dword [0x1001bb28], eax
test eax, eax
je 0x10013a78
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000bac0
pop ecx
mov dword [0x1001bb24], eax
mov eax, dword [0x1001bb24]
cmp eax, ebx
je 0x10013ad0
cmp dword [0x1001bb28], ebx
je 0x10013ad0
push eax
call fcn.1000bb3b
push dword [0x1001bb28]
mov esi, eax
call fcn.1000bb3b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10013ad0
test edi, edi
je 0x10013ad0
call esi
test eax, eax
je 0x10013ac7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10013ac7
test byte [ebp - 0xc], 1
jne 0x10013ad0
or dword [ebp + 0x10], 0x200000
jmp 0x10013b09
mov eax, dword [0x1001bb1c]
cmp eax, ebx
je 0x10013b09
push eax
call fcn.1000bb3b
pop ecx
test eax, eax
je 0x10013b09
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10013b09
mov eax, dword [0x1001bb20]
cmp eax, ebx
je 0x10013b09
push eax
call fcn.1000bb3b
pop ecx
test eax, eax
je 0x10013b09
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001bb18]
call fcn.1000bb3b
pop ecx
test eax, eax
je 0x10013b29
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10013b2b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40b054], 1
mov dword [0x40b050], 1
mov dword [0x40b04c], 1
mov dword [0x40b044], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x40b00c], eax
mov eax, dword [0x40b060]
test eax, eax
jne 0x4010b0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40b074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40b05c]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x40801c], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x4018a0
Capabilities:
Write file on windows

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

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40b068]
test esi, esi
jle 0x401a20
mov eax, dword [0x40b06c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401934
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019b7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401920
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401a47
mov eax, dword [0x40b06c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40b06c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a27
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019b0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4019c0
add dword [0x40b068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40b06c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40193e
mov eax, dword [0x40b06c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x401f00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b07c]
sub esp, 4
test ebx, ebx
je 0x401f55
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f4e
test esi, esi
je 0x401f4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f30
mov dword [esp], 0x40b084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407051
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x228
mov eax, 0x42d0df
call fcn.00417f15
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x234], edi
call fcn.00406fda
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x4070a5
lea eax, [ebp - 0x22c]
mov ecx, esi
push eax
call fcn.00406fe9
test eax, eax
je 0x40709d
mov edx, dword [eax]
mov ecx, eax
push edi
push edi
push 0xfffffffffffffffc
push edi
call dword [edx + 0xc]
cmp dword [ebp - 0x22c], edi
jne 0x40707f
cmp dword [esi + 0x58], edi
je 0x4071c0
xor eax, eax
cmp dword [esi + 0x6c], edi
setne al
test eax, eax
jne 0x4070bf
call fcn.00407744
push str.Software_
lea ecx, [ebp - 0x220]
call fcn.00404643
push dword [esi + 0x58]
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], edi
call fcn.00404d61
push 0x437730
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00406db3
push dword [esi + 0x6c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00406db3
add esp, 0x18
mov ecx, dword [ebp - 0x230]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401570
push edi
lea eax, [ebp - 0x228]
mov esi, SysReAllocString
push eax
push esi
call fcn.00406e12
lea eax, [ebp - 0x224]
push eax
push 8
push edi
push dword [ebp - 0x220]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407189
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x40717d
push edi
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.00406e12
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x228]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.00401570
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00401570
xor eax, eax
inc eax
call fcn.00417ebf
ret
Function at 0x41118f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x438
mov eax, 0x42d7d8
call fcn.00417f15
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x42c], ebx
call fcn.0040e44a
push ebx
mov ecx, dword [eax + 4]
call fcn.00406107
mov esi, eax
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x424]
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
push 0x2001f
lea ecx, [ebp - 0x438]
push dword [eax]
push esi
call fcn.00410dd6
mov ecx, dword [ebp - 0x424]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ecx - 0x10]
call fcn.00401570
add bl, 1
je 0x411331
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov esi, ebx
call fcn.0041a3f0
add esp, 0xc
mov dword [ebp - 0x424], 0x104
lea eax, [ebp - 0x424]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x4112ed
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 0x104
push 0
push eax
inc esi
call fcn.0041a3f0
add esp, 0xc
mov dword [ebp - 0x428], 0x104
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041111c
test eax, eax
jne 0x4112d8
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 4]
call fcn.0040fcc1
lea ecx, [ebp - 0x420]
push ecx
mov ecx, eax
call fcn.004025f0
mov dword [ebp - 0x42c], 1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 0x438]
call ebx
test eax, eax
je 0x411262
lea ecx, [ebp - 0x438]
call fcn.004060ed
mov eax, dword [edi]
lea ecx, [ebp - 0x428]
push ecx
mov ecx, edi
call dword [eax + 0x20]
lea ecx, [ebp - 0x444]
push dword [eax]
call fcn.00410434
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
call fcn.00401570
lea ecx, [ebp - 0x438]
call fcn.004060ed
lea ecx, [ebp - 0x444]
call fcn.004060ed
mov eax, dword [ebp - 0x42c]
call fcn.00417ebf
ret
Function at 0x413299
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x42da52
call fcn.00417f15
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x264], esi
test eax, eax
jne 0x4132c7
call fcn.00407744
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x4132c2
lea eax, [ebp - 0x268]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x41330f
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.0041f1ac
push eax
call fcn.00404c33
add esp, 0x14
push ebx
push edi
call fcn.0041326c
xor eax, eax
jmp 0x413432
cmp eax, 0x104
jb 0x41332c
test edi, edi
je 0x413308
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.004025f0
jmp 0x413308
call fcn.004074a7
push eax
lea ecx, [ebp - 0x26c]
call fcn.00401f80
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push esi
call fcn.00413222
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x413427
xor ecx, ecx
lea eax, [ebp - 0x270]
push ecx
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x413397
push ebx
push edi
call fcn.0041326c
lea ecx, [esi - 0x10]
call fcn.00401570
jmp 0x413308
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x4133b3
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x413427
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x413427
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x413383
cmp eax, dword [ebp - 0x264]
jbe 0x413383
lea eax, [ebp - 0x234]
push eax
call fcn.0041ed07
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x41343a
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.0041d037
push eax
call fcn.00404c33
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.00401570
xor eax, eax
inc eax
call fcn.00417ebf
ret 0xc
test edi, edi
je 0x41338a
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.004025f0
jmp 0x41338a

Function at 0x425d08
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004259c8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x438c97
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
mov edi, dword [esp]
add esp, 4
dec esi
add esi, esi
call fcn.00438cdc
push 0x9f338595
mov esi, dword [esp]
add esp, 4
inc esi
xor dword [ebx], edi
dec ecx
add ebx, 1
and ecx, esi
cmp ebx, edx
jne fcn.00438c97
sub ecx, 0x9a767932
push esi
pop esi
ret