joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe561b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00e56140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e56140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e56140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e56140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xe56bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xe56c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe6887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe56c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe56c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x8de064
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de06a
pop ebp
sub ebp, 6
sub ebp, 0x4de064
jmp 0x8de0c8
jmp 0x8de0d1
mov eax, 0x4de064
add eax, ebp
add eax, 0x93
mov ecx, 0x62b
mov edx, 0xc8d47432
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de0e8
jmp 0x8de0fb
pop eax
jb 0x8de158
xor ah, byte [edx]
xor dh, byte [edx]
pop edx
xor bh, dh
push ds
xor dh, byte [ebx - 0x4c3a253e]
invalid
xor dh, byte [edx]
xor bl, bl
sbb dh, byte [edx]
xor dh, byte [edx]
mov ecx, 0x3ab7b9de
xor dh, byte [edx]
xor bh, byte [ecx + 0x32323ea7]
xor bh, byte [ecx + 0x323222bf]
xor dh, bl
invalid
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
add edx, 0x71
and edx, 0x4f
inc esi
not edi
dec eax
and eax, 0x18
bswap ebx
dec esi
dec edx
rcl ebx, 0x36
add ebx, 0xa5
bswap edx
bswap ebx
and edx, 0xb4
dec edx
rcl ebx, 0x95
rol esi, 0x5d
neg eax
add esi, 0x8e
rcl eax, 0x60
dec edi
imul esi
rcl edi, 0x5f
inc edx
dec ebx
add esi, 0xf6
neg esi
rcr edx, 0xa4
bswap eax
neg eax
imul esi
add eax, 0xee
or edx, 0x5e
sbb eax, 0x5f
rol eax, 0x5a
neg esi
or ebx, 0xa2
not ebx
imul esi
not edi
sbb ebx, 0x7c
bswap eax
imul eax
mov esi, 8
neg ebx
rol esi, 0x82
or edx, 0xa0
neg ebx
not ebx
dec esi
xor ecx, ecx
xor edi, edi
inc ebx
inc edi
imul edx
not edi
imul ebx
mov ebx, 0x4a
not ebx
not edx
bswap ebx
or esi, 0xa4
rcl edi, 0x3a
not edx
imul edi
sbb ebx, 0xe
not ebx
and edi, 0xb4
or esi, 0xda
rcl edi, 0x92
bswap ebx
add ebx, 0x8c
neg ebx
or edx, 0xc9
ror edx, 0x47
sbb edx, 0x8a
bswap esi
or edi, 0xe8
not eax
dec ebx
neg esi
inc edi
dec edi
add esi, 0x69
mov esi, 0x81
mov eax, 0xbe
neg esi
sbb eax, 0x72
rcl ebx, 0x71
or edi, 0x13
ror edx, 0xbe
bswap esi
imul edx
rol edi, 0xea
rcl ebx, 0x42
add eax, 0x43
not ebx
or ebx, 0xf7
bswap edx
and esi, 0x3d
or esi, 0xb9
rcr eax, 0xec
mov ecx, dword [ebp + 0xc]
inc ebx
not ebx
ror edx, 0x8e
dec edi
rol edi, 0xe4
sbb esi, 0x33
inc eax
bswap ebx
neg eax
bswap edx
rcl eax, 0x97
bswap edi
add esi, 0xf3
neg eax
dec edi
neg eax
rcl eax, 6
and ebx, 0x7d
mov esi, 0xfb
rol ebx, 0xee
sbb edi, 0xc1
rcr ebx, 0x36
inc eax
neg ebx
add esi, 0x2b
dec edx
and edx, 0xfd
inc eax
bswap edi
ror ebx, 0x84
bswap edx
mov eax, 0x60
ror ebx, 0xe8
rcl esi, 0x73
rcl edx, 0xe
mov esi, 0x30
and eax, 0xf8
rol edi, 0x80
dec esi
add edi, 0x58
ror esi, 0x99
inc edx
imul eax
imul eax
rcl edx, 0x59
neg edi
bswap edi
inc edi
sbb ebx, 0x3e
add eax, 0xe9
mov edi, dword [ebp + 8]
mov eax, eax
xor esi, ebx
xor ebx, ebx
xor ebx, eax
xor esi, eax
mov esi, eax
xor ebx, ebx
xor ebx, esi
mov ebx, ebx
mov ebx, esi
xor esi, esi
mov eax, esi
not byte [edi]
xor ebx, ebx
mov esi, ebx
mov ebx, eax
mov esi, esi
mov ebx, eax
mov esi, esi
mov eax, esi
xor ebx, eax
mov ebx, esi
add byte [edi], 0x67
mov ebx, ebx
xor ebx, eax
mov esi, ebx
xor eax, esi
mov eax, eax
xor eax, esi
xor eax, esi
xor eax, esi
xor ebx, ebx
sub byte [edi], 0x88
mov eax, eax
mov esi, esi
mov eax, eax
mov ebx, esi
xor eax, ebx
xor eax, ebx
xor esi, ebx
mov ebx, ebx
xor ebx, ebx
imul byte [edi]
inc edi
loop 0x4011be
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404c34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4396f0]
jne 0x404c3e
repz ret
jmp fcn.00409135
Function at 0x4055a3
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.00402ed1
and dword [ebp - 4], 0
cmp dword [0x43a3f4], 0
mov ebx, eax
jne 0x405654
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405705
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40eb90
push edi
call esi
test eax, eax
je 0x405705
push eax
call fcn.00402e5f
mov dword [esp], 0x40eb80
push edi
mov dword [0x43a3f4], eax
call esi
push eax
call fcn.00402e5f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43a3f8], eax
call esi
push eax
call fcn.00402e5f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43a3fc], eax
call esi
push eax
call fcn.00402e5f
pop ecx
mov dword [0x43a404], eax
test eax, eax
je 0x405654
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402e5f
pop ecx
mov dword [0x43a400], eax
mov eax, dword [0x43a400]
cmp eax, ebx
je 0x4056ac
cmp dword [0x43a404], ebx
je 0x4056ac
push eax
call fcn.00402eda
push dword [0x43a404]
mov esi, eax
call fcn.00402eda
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4056ac
test edi, edi
je 0x4056ac
call esi
test eax, eax
je 0x4056a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4056a3
test byte [ebp - 0xc], 1
jne 0x4056ac
or dword [ebp + 0x10], 0x200000
jmp 0x4056e5
mov eax, dword [0x43a3f8]
cmp eax, ebx
je 0x4056e5
push eax
call fcn.00402eda
pop ecx
test eax, eax
je 0x4056e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4056e5
mov eax, dword [0x43a3fc]
cmp eax, ebx
je 0x4056e5
push eax
call fcn.00402eda
pop ecx
test eax, eax
je 0x4056e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43a3f4]
call fcn.00402eda
pop ecx
test eax, eax
je 0x405705
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405707
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40534e
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov edi, edx
lea ecx, [ebp - 4]
push 0x2002
call fcn.00408fff
test al, al
jne 0x405375
xor bl, bl
jmp 0x4053ab
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x405371
push dword [ebp + 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405371
and dword [ebp - 4], 0
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00409020
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40592f
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x40593d
and edx, 0x3fff
jmp fcn.004058a1

Function at 0x405942
Capabilities:
Delete directory

Disassembly:
mov eax, 0x44bf54
call fcn.0044b4c0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408725
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405971
push edi
call esi
test eax, eax
je 0x405971
mov al, 1
jmp 0x4059b5
test ebx, ebx
je 0x4059b3
lea ecx, [ebp - 0x18]
call fcn.00402d43
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040882e
test al, al
push dword [ebp - 0x18]
je 0x4059ad
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.004036ef
test esi, esi
pop ecx
setne al
jmp 0x4059b5
call fcn.004036ef
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4059c4
Capabilities:
Move file

Disassembly:
mov eax, 0x44bf70
call fcn.0044b4c0
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00408725
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00408725
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x405a0d
cmp eax, ebx
je 0x405a0d
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x405a0d
mov al, bl
jmp 0x405a84
test esi, esi
jne 0x405a16
cmp dword [ebp - 0x14], esi
je 0x405a82
lea ecx, [ebp - 0x30]
call fcn.00402d43
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402d43
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x405a36
cmp dword [ebp - 0x14], ebx
jne 0x405a38
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00408d49
test al, al
push dword [ebp - 0x24]
je 0x405a73
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.004036ef
push dword [ebp - 0x30]
call fcn.004036ef
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x405a84
call fcn.004036ef
push dword [ebp - 0x30]
call fcn.004036ef
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405b8f
Capabilities:
Create directory

Disassembly:
mov eax, 0x44bfa0
call fcn.0044b4c0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408725
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405bcd
push 0
push edi
call esi
test eax, eax
je 0x405bc0
mov al, 1
jmp 0x405c16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405c14
test ebx, ebx
je 0x405c14
lea ecx, [ebp - 0x18]
call fcn.00402d43
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040882e
test al, al
je 0x405c0b
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.004036ef
test esi, esi
pop ecx
setne al
jmp 0x405c16
push dword [ebp - 0x18]
call fcn.004036ef
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405d66
Capabilities:
Create directory

Disassembly:
mov eax, 0x44bfe3
call fcn.0044b4c0
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00408725
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x405dab
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405d9e
mov al, 1
jmp 0x405e92
call ebx
cmp eax, 0xb7
je 0x405e41
test edi, edi
je 0x405e41
lea ecx, [ebp - 0x18]
call fcn.00402d43
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.0040882e
test al, al
je 0x405e34
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405de7
mov bl, 1
jmp 0x405e2f
call ebx
cmp eax, 0xb7
je 0x405df4
xor bl, bl
jmp 0x405e2f
lea ecx, [ebp - 0x50]
call fcn.00406532
lea ecx, [ebp - 0x28]
call fcn.00402d43
push 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004069b4
test al, al
jne 0x405e1d
xor bl, bl
jmp 0x405e26
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004036ef
pop ecx
push dword [ebp - 0x18]
jmp 0x405e8a
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.004036ef
pop ecx
call ebx
cmp eax, 0xb7
je 0x405e4e
xor al, al
jmp 0x405e92
lea ecx, [ebp - 0x88]
call fcn.00406532
lea ecx, [ebp - 0x60]
call fcn.00402d43
push 0
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.004069b4
test al, al
jne 0x405e7e
xor bl, bl
jmp 0x405e87
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.004036ef
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405eab
Capabilities:
Delete file

Disassembly:
mov eax, 0x44bff8
call fcn.0044b4c0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00406937
cmp eax, 0xffffffff
je 0x405edf
test al, 0x10
jne 0x405edf
test al, 1
je 0x405edf
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.004058a1
test al, al
je 0x405f40
mov ecx, edi
call fcn.00408725
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x405efe
push edi
call esi
test eax, eax
je 0x405efe
mov al, 1
jmp 0x405f42
test ebx, ebx
je 0x405f40
lea ecx, [ebp - 0x18]
call fcn.00402d43
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040882e
test al, al
push dword [ebp - 0x18]
je 0x405f3a
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.004036ef
test esi, esi
pop ecx
setne al
jmp 0x405f42
call fcn.004036ef
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x44c0d8
call fcn.0044b4c0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408725
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x406963
push edi
call esi
cmp eax, 0xffffffff
jne 0x4069a5
test ebx, ebx
je 0x4069a2
lea ecx, [ebp - 0x18]
call fcn.00402d43
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040882e
test al, al
push dword [ebp - 0x18]
je 0x40699c
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.004036ef
pop ecx
mov eax, esi
jmp 0x4069a5
call fcn.004036ef
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4071d3
Capabilities:
Get disk information

Disassembly:
mov eax, 0x44c1a4
call fcn.0044b4c0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401524
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x4072a9
mov eax, SysReAllocString
cmp ebx, eax
ja 0x40720f
mov eax, ebx
add eax, eax
push eax
call fcn.004036bb
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x4072a2
cmp ebx, dword [ebp - 0x18]
ja 0x4072a2
lea ecx, [ebp - 0x2c]
call fcn.00402d43
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x40728a
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x40727f
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402ec7
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.0042ed50
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401555
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x40724d
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.004036ef
push esi
call fcn.004036ef
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x4072ab
push esi
call fcn.004036ef
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4073a9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ecx + 5], bl
push esi
je 0x4073cb
cmp byte [ecx + 6], bl
je 0x4073cb
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x40740b
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4073ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4073ef
xor al, al
jmp 0x40740d
push 1
push ebx
push ebx
push dword [ebp - 4]
call fcn.0044b7b0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x409720
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
push edi
push 0x2001f
mov dword [ebp - 0xc], ecx
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
push dword [ecx]
lea ecx, [ebp - 4]
call fcn.004096c5
cmp eax, esi
jne 0x4097b7
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 8], 0x105
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4097a4
lea eax, [ebp - 0x220]
lea ecx, [ebp - 4]
push eax
call fcn.00409720
cmp eax, esi
jne 0x4097b7
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x105
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 4]
jmp 0x40976c
lea ecx, [ebp - 4]
call fcn.004096fa
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
call fcn.00409711
lea ecx, [ebp - 4]
mov esi, eax
call fcn.004096fa
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x409808
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x409832
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x40a5fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, SysReAllocStringLen
mov eax, dword [esi]
mov dword [esi + 4], ebx
lea ecx, [ebp - 0x14]
and byte [eax], bl
call fcn.0044ba90
cmp dword [ebp - 0x14], 0x80000004
jb 0x40a656
lea edx, [ebx - 0x7ffffffe]
lea ecx, [ebp - 0x14]
call fcn.0044ba90
lea edi, [ebp - 0x14]
mov dword [ebp - 4], 4
mov edx, dword [edi]
mov ecx, esi
call fcn.0040a6a1
add edi, 4
dec dword [ebp - 4]
jne 0x40a63f
inc ebx
cmp ebx, 3
jb 0x40a627
mov ecx, esi
call fcn.00402960
mov ecx, esi
call fcn.00402923
cmp dword [esi + 4], 0
jne 0x40a69c
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.0044ba90
push 1
pop edi
mov eax, edi
mov ecx, esi
shr eax, 1
xor eax, edi
mov edx, dword [ebp + eax*4 - 0x14]
call fcn.0040a6a1
inc edi
cmp edi, 4
jb 0x40a677
mov ecx, esi
call fcn.00402960
mov ecx, esi
call fcn.00402923
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411bfc
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x44c8b7
call fcn.0044b4c0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402d43
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00402d43
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402d43
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00402d43
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00402d43
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.00402d43
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.00402d43
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x412373
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x44c9c3
call fcn.0044b4c0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00402e5b
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00402e5b
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402e5b
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.00402e5b
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00402e5b
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.00402e5b
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.00402e5b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x417f8a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ecx]
xor edx, edx
push edi
test eax, eax
mov ebx, 0x159a55e5
mov edi, 0x1f123bb5
mov dword [ebp - 4], eax
jbe 0x417fda
mov eax, 0xffff
mov ecx, ebx
and ecx, eax
imul ecx, ecx, 0x9069
shr ebx, 0x10
add ebx, ecx
mov ecx, edi
and ecx, eax
imul ecx, ecx, 0x4650
shr edi, 0x10
add edi, ecx
mov ecx, edi
xor cl, byte [ebp + 8]
mov byte [edx + esi], cl
inc edx
cmp edx, dword [ebp - 4]
jb 0x417fae
pop edi
pop esi
pop ebx
leave
ret 4