joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4730b6
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.00465261
and dword [ebp - 4], 0
cmp dword [0x4a95a4], 0
mov ebx, eax
jne 0x473167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x473218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x473218
push eax
call fcn.004651ef
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a95a4], eax
call esi
push eax
call fcn.004651ef
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a95a8], eax
call esi
push eax
call fcn.004651ef
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a95ac], eax
call esi
push eax
call fcn.004651ef
pop ecx
mov dword [0x4a95b4], eax
test eax, eax
je 0x473167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004651ef
pop ecx
mov dword [0x4a95b0], eax
mov eax, dword [0x4a95b0]
cmp eax, ebx
je 0x4731bf
cmp dword [0x4a95b4], ebx
je 0x4731bf
push eax
call fcn.0046526a
push dword [0x4a95b4]
mov esi, eax
call fcn.0046526a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4731bf
test edi, edi
je 0x4731bf
call esi
test eax, eax
je 0x4731b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4731b6
test byte [ebp - 0xc], 1
jne 0x4731bf
or dword [ebp + 0x10], 0x200000
jmp 0x4731f8
mov eax, dword [0x4a95a8]
cmp eax, ebx
je 0x4731f8
push eax
call fcn.0046526a
pop ecx
test eax, eax
je 0x4731f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4731f8
mov eax, dword [0x4a95ac]
cmp eax, ebx
je 0x4731f8
push eax
call fcn.0046526a
pop ecx
test eax, eax
je 0x4731f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a95a4]
call fcn.0046526a
pop ecx
test eax, eax
je 0x473218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47321a
xor eax, eax
pop edi
pop esi
pop ebx
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 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x403024
pop dword [ebp - 0x3c]
mov eax, 0x7e0da1f0
add eax, 0x82328e34
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xd2d2f3da
sub dword [ebp - 0x4c], 0x8480ae8f
mov dword [ebp - 0x48], 0xbb31148f
add dword [ebp - 0x48], 0x770237b6
mov dword [ebp - 0x44], 0x633ccb7b
sub dword [ebp - 0x44], 0x16f0874d
mov dword [ebp - 0x40], 0x87f80da9
add dword [ebp - 0x40], 0x7807f257
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x890f723e
add eax, 0x77310e3a
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x25ed32a8
sub dword [ebp - 0x4c], 0xb17ac952
mov dword [ebp - 0x48], 0xa1bb0f60
sub dword [ebp - 0x48], 0x604eadeb
mov dword [ebp - 0x44], 0x893e1534
add dword [ebp - 0x44], 0xda315738
mov dword [ebp - 0x40], 0x5f9c72fd
add dword [ebp - 0x40], 0xa0638d03
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xfdfcb4ba
add eax, 0x243cbc2
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a330
push 0
call eax
mov ecx, 0x54a5
xor esi, esi
add esi, eax
mov edi, 0x56b7e51e
add edi, 0xa98d2ee2
add edi, dword [ebp - 0x3c]
mov edx, 0x697b88f3
sub edx, 0x8786c72b
xor dword [ebp - 0x38], eax
mov ebx, dword [edi]
xor dword [ebp - 0x28], 0x1b84b1b1
xor ebx, edx
add dword [ebp - 0x10], eax
mov dword [esi], ebx
add dword [ebp - 0x18], 0xd91d71b
add esi, 0x53204f1
add esi, 0xfacdfb13
add edi, 0x370ca883
sub edi, 0x370ca87f
loop 0x403142
add eax, 0x14567
mov ebx, eax
add eax, 0x6b19a259
sub eax, 0x6b19a254
mov ecx, 0x98111982
add ecx, 0x682ee67e
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401110
Capabilities:
Enumerate disk volumes
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x457080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1a2e8e0]
xorps xmm0, xmm0
push ebx
push esi
movlpd qword [ebp - 0x2b8], xmm0
mov eax, dword [eax + 0x1c]
mov ebx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], ecx
push edi
mov edi, dword [ebp - 0x2b4]
test eax, eax
je 0x40115d
nop
add ebx, dword [eax + 8]
adc edi, dword [eax + 0xc]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x401150
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x2b4], eax
test eax, eax
je 0x401334
nop dword [eax]
cmp eax, 0xffffffff
je 0x401334
push 0x90
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x214], 0
xorps xmm0, xmm0
mov dword [ebp - 0x218], 0
push 0
push eax
movq qword [ebp - 0x220], xmm0
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x210]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4011c7
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x4011f0
cmp word [ebp + eax*2 - 0x212], 0x5c
jne 0x4011f0
xor ecx, ecx
mov word [ebp + eax*2 - 0x212], cx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012b5
push 0
lea eax, [ebp - 0x214]
push eax
push 0xc
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4012ae
mov eax, dword [ebp - 0x220]
sub eax, 7
je 0x401252
sub eax, 1
je 0x401252
sub eax, 1
jne 0x4012ae
mov eax, dword [ebp - 0x2bc]
cmp dword [ebp - 0x21c], eax
jne 0x4012ae
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x90
push eax
push 0x90
lea eax, [ebp - 0x2b0]
push eax
push 0
push 0
push 0x70048
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4012ae
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [ebp - 0x2a4]
shrd eax, ecx, 9
sar ecx, 9
cmp ebx, eax
jne 0x4012ae
cmp edi, ecx
je 0x4012dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x2b4]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x401334
mov eax, dword [ebp - 0x2b4]
jmp 0x401180
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0
push 0
push 0
push 0
push 0x90020
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40132e
push str.Failed_to_lock_volume_n
call fcn.00415a40
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004190af
mov esp, ebp
pop ebp
ret
mov dword [0x1a2e8f0], esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004190af
mov esp, ebp
pop ebp
ret
Function at 0x402090
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20dc
call fcn.00419060
mov eax, dword [0x457080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcstoul]
push edi
push 0xa
push 0
push ecx
mov edi, edx
mov dword [ebp - 0x20cc], eax
call esi
add esp, 0xc
mov dword [ebp - 0x20d0], eax
push 0xa
push 0
push edi
call esi
mov esi, dword [ebp - 0x20d0]
add esp, 0xc
mov edi, eax
mov ecx, esi
mov edx, edi
call fcn.00401350
test al, al
jne 0x40210f
push edi
push esi
push str.Failed_to_open_disk__lu_part__lu_n
call fcn.00415a40
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004190af
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 0x1060]
call fcn.00407b70
mov esi, dword [ebp - 0x20cc]
lea ecx, [ebp - 0x20c0]
add esp, 4
mov byte [ebp - 0x20c5], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20c4], 0
mov edx, esi
movlpd qword [ebp - 0x20d8], xmm0
push 1
call fcn.00407be0
add esp, 4
test eax, eax
je 0x40216b
push eax
push str.src_open_failed__d_n
call fcn.00415a40
add esp, 8
xor bl, bl
jmp 0x402293
push 0x428888
lea eax, [ebp - 0x20c4]
push ebx
push eax
call fcn.0041e8b0
add esp, 0xc
test eax, eax
je 0x402198
push str.dst_open_failed_n
call fcn.00415a40
add esp, 4
xor bl, bl
jmp 0x402293
push ebx
push esi
push str.copy__s_____s_n
mov dword [ebp - 0x20cc], 0x800000
call fcn.00401010
mov edx, dword [0x1a2e8f4]
lea eax, [ebp - 0x20cc]
add esp, 0xc
lea ecx, [ebp - 0x20c0]
push eax
push 0x800000
call fcn.004081d0
add esp, 8
mov dword [ebp - 0x20d0], eax
test eax, eax
jne 0x402258
mov edi, dword [ebp - 0x20d4]
mov ebx, dword [ebp - 0x20d8]
push edi
push ebx
call fcn.00416d90
push eax
push str._r__20s
call fcn.00415a40
mov esi, dword [ebp - 0x20cc]
add esp, 0x10
add ebx, esi
adc edi, 0
test esi, esi
je 0x40231e
push dword [ebp - 0x20c4]
push esi
push 1
push dword [0x1a2e8f4]
call fcn.0041ebe0
add esp, 0x10
cmp eax, esi
jb 0x40230e
mov edx, dword [0x1a2e8f4]
lea eax, [ebp - 0x20cc]
push eax
push 0x800000
lea ecx, [ebp - 0x20c0]
call fcn.004081d0
add esp, 8
mov dword [ebp - 0x20d0], eax
test eax, eax
je 0x4021e7
push eax
push str.read_failed__d_n
call fcn.00415a40
mov bl, byte [ebp - 0x20c5]
add esp, 8
push 0x4288f0
call fcn.00415a40
add esp, 4
push dword [ebp - 0x20c4]
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x20c0]
call fcn.00408990
push ecx
xor ecx, ecx
call fcn.00407b70
mov ecx, dword [0x1a2e8e0]
add esp, 4
test ecx, ecx
je 0x4022ad
call fcn.004140a0
mov eax, dword [0x1a2e8f4]
xorps xmm0, xmm0
mov dword [0x1a2e8e0], 0
movlpd qword [0x1a2e8e8], xmm0
test eax, eax
je 0x4022d5
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [0x1a2e8f0]
mov dword [0x1a2e8f4], 0
test ecx, ecx
je 0x4022f5
cmp ecx, 0xffffffff
je 0x4022f5
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004190af
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20d0]
push str.write_failed__d_n
jmp 0x40225e
mov bl, 1
jmp 0x40226c
Function at 0x403460
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x403628
mov eax, dword [edi + 0x478]
cmp eax, 0xffffffff
je 0x403628
cmp dword [edi + 0x47c], 0
je 0x403628
cmp dword [edi + 0x474], 0
push esi
jne 0x403616
cmp dword [edi + 0x470], 0
lea esi, [edi + 0x220]
je 0x4034b7
mov dword [edi + 0x470], 0
jmp 0x4034c7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x403616
test esi, esi
je 0x403616
xor edx, edx
lea ecx, [ebx + 0x16]
lea eax, [esi + 0x2e]
movzx esi, word [eax - 2]
test si, si
je 0x403539
mov word [ecx - 2], si
movzx esi, word [eax]
test si, si
je 0x403538
mov word [ecx], si
movzx esi, word [eax + 2]
test si, si
je 0x403533
mov word [ecx + 2], si
movzx esi, word [eax + 4]
test si, si
je 0x40352e
mov word [ecx + 4], si
movzx esi, word [eax + 6]
test si, si
je 0x403529
mov word [ecx + 6], si
add edx, 5
add eax, 0xa
add ecx, 0xa
cmp edx, 0x104
jb 0x4034d7
jmp 0x403539
add edx, 4
jmp 0x403539
add edx, 3
jmp 0x403539
add edx, 2
jmp 0x403539
inc edx
xor eax, eax
lea esi, [edi + 0x220]
mov word [ebx + edx*2 + 0x14], ax
mov dword [ebx + 0xc], edx
mov eax, dword [esi]
test al, 0x40
je 0x403558
mov dword [ebx + 0x10], 0x2000
jmp 0x40357a
test eax, 0x400
je 0x403568
mov dword [ebx + 0x10], 0xc000
jmp 0x40357a
test al, 0x10
mov ecx, 0x4000
mov eax, 0x8000
cmovne eax, ecx
mov dword [ebx + 0x10], eax
cmp dword [edi + 0x474], 0
jne 0x4035f2
cmp dword [edi + 0x470], 0
je 0x403598
mov dword [edi + 0x470], 0
jmp 0x4035a9
push esi
push dword [edi + 0x478]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4035f2
lea edx, [esi + 0x2c]
mov ecx, 0x1505
lea eax, [esi + 0x234]
cmp edx, eax
je 0x4035dd
nop dword [eax + eax]
movzx esi, word [edx]
add edx, 2
test esi, esi
je 0x4035dd
mov eax, ecx
shl ecx, 5
add ecx, esi
add ecx, eax
lea eax, [edi + 0x454]
cmp edx, eax
jne 0x4035c0
and ecx, 0x7fffffff
mov dword [ebx + 4], ecx
mov dword [edi + 0x470], 1
jmp 0x4035f9
mov dword [ebx + 4], 0x7fffffff
mov eax, 0x220
mov dword [ebx], 0
mov word [ebx + 8], ax
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], ebx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
push 9
call fcn.0041f600
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], 0
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.00419060
mov eax, dword [0x457080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x106d], 0
push 0x429300
lea eax, [ebp - 0x106c]
mov dword [ebp - 0x106c], 0
push edi
push eax
mov esi, edx
call fcn.0041e8b0
add esp, 0xc
test eax, eax
je 0x4036b8
push str.src_open_failed_n
call fcn.00415a40
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004190af
mov esp, ebp
pop ebp
ret
push 0xa
mov edx, esi
lea ecx, [ebp - 0x1068]
call fcn.00407be0
add esp, 4
test eax, eax
je 0x4036ef
push eax
push str.dst_open_failed__d_n
call fcn.00415a40
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004190af
mov esp, ebp
pop ebp
ret
push esi
push edi
push str.copy__s_____s_n
call fcn.00401010
add esp, 0xc
push dword [ebp - 0x106c]
push 0x800000
push 1
push dword [0x1a2e8f4]
call dword [sym.imp.msvcrt.dll_fread]
push 0
push 0
mov esi, eax
call fcn.00416d90
push eax
push str._r__20s
call fcn.00415a40
add esp, 0x20
xor ebx, ebx
mov edi, esi
test esi, esi
je 0x4037a5
nop dword [eax + eax]
mov edx, dword [0x1a2e8f4]
lea eax, [ebp - 0x1074]
push eax
push esi
lea ecx, [ebp - 0x1068]
call fcn.00408590
add esp, 8
test eax, eax
jne 0x4037ea
cmp dword [ebp - 0x1074], esi
jb 0x4037ea
push dword [ebp - 0x106c]
push 0x800000
push 1
push dword [0x1a2e8f4]
call dword [sym.imp.msvcrt.dll_fread]
push ebx
push edi
mov esi, eax
call fcn.00416d90
push eax
push str._r__20s
call fcn.00415a40
add esp, 0x20
add edi, esi
adc ebx, 0
test esi, esi
jne 0x403740
mov byte [ebp - 0x106d], 1
push 0x4288f0
call fcn.00415a40
add esp, 4
push dword [ebp - 0x106c]
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x1068]
call fcn.00408990
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x106d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004190af
mov esp, ebp
pop ebp
ret
push eax
push str.write_failed__d_n
call fcn.00415a40
add esp, 8
jmp 0x4037ac
Function at 0x403d50
Capabilities:
Decompress data using quicklz

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x457080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x10]
push esi
push eax
call dword [sym.imp.msvcrt.dll__time64]
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0041fc10
add esp, 8
test eax, eax
jne 0x403daa
mov eax, dword [ebp - 0x20]
mov dl, byte [ebp - 0x28]
add eax, 0x76c
mov bl, byte [ebp - 0x2c]
mov bh, byte [ebp - 0x30]
movzx ecx, ax
mov al, byte [ebp - 0x24]
mov ah, byte [ebp - 0x34]
inc al
mov byte [ebp - 0x35], ah
jmp 0x403db7
xor al, al
xor ecx, ecx
xor dl, dl
mov byte [ebp - 0x35], al
xor bl, bl
xor bh, bh
movzx esi, cx
sub esi, 0x3c
movzx eax, al
shl esi, 4
or esi, eax
movzx ecx, bh
movzx eax, dl
shl esi, 5
or esi, eax
movzx edx, bl
movzx eax, byte [ebp - 0x35]
shl edx, 6
or edx, ecx
shl esi, 0xb
mov ecx, dword [ebp - 4]
and edx, 0x7ff
or esi, edx
shr eax, 1
shl esi, 5
xor ecx, ebp
or eax, esi
pop esi
pop ebx
call fcn.004190af
mov esp, ebp
pop ebp
ret

Function at 0x406b40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
cmp dword [esi], 0x20494645
jne 0x406c77
cmp dword [esi + 4], 0x54524150
jne 0x406c77
cmp dword [esi + 8], 0x10000
jne 0x406c77
movzx edi, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 0xd]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 0xc]
shl edi, 8
or edi, eax
lea eax, [edi - 0x5c]
cmp eax, 0x1a4
ja 0x406c77
or eax, 0xffffffff
test edi, edi
je 0x406bf9
mov ecx, 0xfffffff0
mov edx, esi
sub ecx, esi
mov dword [ebp - 4], edx
mov esi, ecx
push ebx
lea ecx, [esi + edx]
cmp ecx, 4
jae 0x406bc2
xor bh, bh
jmp 0x406bc4
mov bh, byte [edx]
mov bl, 1
test bl, bh
mov ecx, 0
setne cl
xor eax, ecx
mov edx, eax
mov ecx, eax
shr edx, 1
mov eax, edx
xor eax, 0xedb88320
test cl, 1
cmove eax, edx
add bl, bl
jne 0x406bc6
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 4], edx
sub edi, 1
jne 0x406bb6
mov esi, dword [ebp - 0xc]
pop ebx
movzx edx, byte [esi + 0x13]
not eax
movzx ecx, byte [esi + 0x12]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x11]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x10]
shl edx, 8
or edx, ecx
cmp eax, edx
jne 0x406c77
movzx ecx, byte [esi + 0x57]
movzx eax, byte [esi + 0x56]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x55]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x54]
shl ecx, 8
or ecx, eax
cmp ecx, 0x80
jne 0x406c77
movzx ecx, byte [esi + 0x53]
movzx eax, byte [esi + 0x52]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x51]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x50]
shl ecx, 8
or ecx, eax
cmp ecx, 0x80
ja 0x406c77
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406c80
Capabilities:
Encode data using xor

Disassembly:
push esi
test ecx, ecx
mov eax, 1
push edi
mov esi, edx
mov edi, 0x10
cmovne eax, ecx
mov ecx, eax
lea esi, [esi + 1]
shr ecx, 1
mov edx, ecx
xor edx, 0xa3000000
test al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xa3000000
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xa3000000
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xa3000000
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xa3000000
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xa3000000
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xa3000000
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xa3000000
test dl, 1
cmove eax, ecx
mov byte [esi - 1], al
sub edi, 1
jne 0x406c93
pop edi
pop esi
ret
Function at 0x40c080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x457080]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesdiskEnum
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c0f4
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Count
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004190af
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004190af
mov esp, ebp
pop ebp
ret
Function at 0x419809
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419848
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x419848
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419848
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x419848
cmp dword [ecx + 0x74], 0xe
jbe 0x419848
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419d00
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00419c30
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x50001
jae 0x419d2a
add eax, 0x74
ret
cmp edx, 0x60000
jae 0x419d36
add eax, 0x78
ret
add eax, 0x88
ret

Function at 0x419d40
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00419c30
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60000
jae 0x419d6a
add eax, 0x7c
ret
add eax, 0x8c
ret

Function at 0x41ecc0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x41ecea
mov eax, 2
pop ebp
ret
push esi
call fcn.00419c30
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x41ed0a
jmp dword [eax*4 + 0x41ed40]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.004203c0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x41f3a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x457080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x427b34
push edi
mov dword [ebp - 0x210], edi
call sub.msvcrt.dll_wcspbrk
add esp, 8
test eax, eax
jne 0x41f3e0
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004190af
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor esi, esi
call sub.msvcrt.dll__errno
mov ebx, dword [eax]
call sub.msvcrt.dll__errno
push 0x104
push edi
mov dword [eax], esi
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wfullpath
add esp, 0xc
mov edi, eax
call sub.msvcrt.dll__errno
test edi, edi
je 0x41f41c
mov dword [eax], ebx
mov ebx, dword [ebp - 0x210]
jmp 0x41f44b
cmp dword [eax], 0x22
jne 0x41f55a
call sub.msvcrt.dll__errno
push 0
mov dword [eax], ebx
mov ebx, dword [ebp - 0x210]
push ebx
push 0
call sub.msvcrt.dll__wfullpath
mov esi, eax
add esp, 0xc
mov edi, esi
test edi, edi
je 0x41f55a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f450
sub ecx, edx
sar ecx, 1
cmp ecx, 3
je 0x41f532
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f470
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jb 0x41f55a
movzx eax, word [edi]
cmp eax, 0x5c
je 0x41f499
cmp eax, 0x2f
jne 0x41f55a
movzx eax, word [edi + 2]
cmp eax, 0x5c
je 0x41f4ab
cmp eax, 0x2f
jne 0x41f55a
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x41f55a
cmp eax, 0x2f
je 0x41f55a
movzx eax, word [edi + 6]
lea edx, [edi + 6]
mov edi, eax
test ax, ax
je 0x41f4f2
mov ecx, eax
cmp cx, 0x5c
je 0x41f4ef
cmp cx, 0x2f
je 0x41f4ef
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
mov edi, eax
test ax, ax
jne 0x41f4d1
jmp 0x41f4f2
movzx edi, cx
test di, di
je 0x41f55a
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
je 0x41f55a
cmp cx, 0x5c
je 0x41f523
cmp cx, 0x2f
je 0x41f523
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
mov edi, eax
test ax, ax
jne 0x41f505
jmp 0x41f526
movzx edi, cx
test di, di
je 0x41f532
cmp word [edx + 2], 0
jne 0x41f55a
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
cmp eax, 1
jbe 0x41f55b
call sub.msvcrt.dll_free
add esp, 4
mov al, 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004190af
mov esp, ebp
pop ebp
ret
push esi
call sub.msvcrt.dll_free
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor al, al
pop esi
pop ebx
pop edi
call fcn.004190af
mov esp, ebp
pop ebp
ret

Function at 0x41f930
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0041f960
mov esi, dword [ebp + 8]
test al, al
je 0x41f94e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0041f970
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]