joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429e84
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x42db80
call fcn.0042a138
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x429ee4
cmp eax, 0xffffffff
je 0x429ee4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x429edd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x429edd
cmp edx, 0x10000000
jae 0x429edd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x429eda
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x429f40
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x429f7e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x429f76
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x429f80
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x429f66
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42a050
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x42a081
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42a081
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x42a081
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401110
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
sub esp, 0x10c
mov dword [0x40c4d8], eax
mov dword [0x40c4dc], ecx
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
mov dword [0x40c4d4], ebx
call fcn.004024e0
push 0
push str.Red_Alert_2_Uninstall_Launcher
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x40116f
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 0x10
push ebx
call fcn.004020e0
add esp, 4
test al, al
jne 0x40118b
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret 0x10
mov ecx, 0x4b
xor eax, eax
mov edi, 0x40c194
push 0x324
rep stosd dword es:[edi], eax
call fcn.004026d3
mov esi, eax
add esp, 4
test esi, esi
je 0x4011bd
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push ebx
mov ecx, esi
call section..text
jmp 0x4011bf
xor eax, eax
push eax
mov dword [0x40bc50], eax
call fcn.00401d70
add esp, 4
test al, al
jne 0x401203
mov esi, dword [0x40bc50]
test esi, esi
je 0x4011f5
mov ecx, esi
call fcn.004010c0
push esi
call fcn.004026c8
add esp, 4
mov dword [0x40bc50], 0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 0x10
mov ecx, dword [0x40bc50]
test ecx, ecx
je 0x401238
push 0
call fcn.004010f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40c2c0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401249
push 0x104
push 0x40c2c0
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x40c2c0
call fcn.00402581
push 0
lea edx, [esp + 0x30]
push 0
lea eax, [esp + 0x28]
push edx
push eax
push 0x40c2c0
call fcn.004024f0
mov esi, dword [0x40bc50]
add esp, 0x28
test esi, esi
je 0x4012a0
mov ecx, esi
call fcn.004010c0
push esi
call fcn.004026c8
add esp, 4
mov dword [0x40bc50], 0
mov eax, dword [0x40c4d8]
test eax, eax
jne 0x4012ae
call fcn.004013a0
lea ecx, [esp + 0x10]
call fcn.00401340
lea ecx, [esp + 0x10]
mov dword [0x40c4c8], ecx
call fcn.004012e0
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 0x10

Function at 0x4013a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x28
mov eax, dword [0x40c4d4]
push 1
push eax
mov dword [esp + 8], 3
mov dword [esp + 0xc], 0x401d00
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x18], eax
lea eax, [esp]
push eax
mov dword [esp + 0x20], 6
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x409040
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x401419
push 0
call fcn.0040270e
add esp, 0x28
ret
Function at 0x4023b8
Capabilities:
Check os version

Disassembly:
mov ecx, 0x40c5f0
jmp 0x4023b0
sub esp, 0x98
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x10]
push edi
lea ebp, [esi + 0x99]
xor ebx, ebx
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x94], bl
mov byte [esi + 0x95], bl
mov byte [esi + 0x96], bl
mov byte [esi + 0x97], bl
mov byte [esi + 0x98], bl
mov byte [ebp], bl
mov byte [esi + 0x14], bl
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov dword [esi], eax
lea ecx, [eax + eax*4]
mov dword [esi + 4], edx
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xc], ecx
mov ecx, 1
cmp edi, ecx
jne 0x402460
cmp eax, 4
mov byte [esi + 0x94], cl
jne 0x40244d
cmp edx, ebx
jne 0x402456
mov byte [esi + 0x95], cl
jmp 0x40247a
jg 0x402458
cmp eax, 4
jne 0x40247a
cmp edx, ebx
jle 0x40247a
mov byte [esi + 0x96], cl
jmp 0x40247a
cmp edi, 2
jne 0x40247a
cmp eax, 5
mov byte [esi + 0x97], cl
jne 0x40247a
cmp edx, ebx
jl 0x40247a
mov byte [esi + 0x98], cl
mov dx, word [esi + 4]
xor ecx, ecx
mov word [esp + 0x10], dx
mov dl, 0xf
test byte [esp + 0x10], dl
jne 0x402499
shr word [esp + 0x10], 4
inc ecx
cmp ecx, 4
jl 0x402487
mov ecx, dword [esp + 0x10]
and ecx, 0xffff
push ecx
push eax
push str._x._x
push ebp
call fcn.004027e3
lea eax, [esp + 0x38]
push 0x7f
push eax
lea eax, [esi + 0x14]
push eax
call fcn.00402bd0
add esp, 0x1c
mov byte [esi + 0x93], bl
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x5b73b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x5b743d
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00591fe0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x5b7400
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x5b7422
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x5b7498
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.005b7108
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x5b7484
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x5b7498
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x5b73c1
pop esi
pop ebx
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x10005580
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100055af
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100055af
push 0x10
push eax
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebp
ret
mov eax, 1
pop ebp
ret
Function at 0x100095c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001f080]
jne 0x100095cf
repz ret
jmp fcn.1000a874

Function at 0x1001138c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001f080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000d23c
and dword [ebp - 0x14], 0
cmp dword [0x10021afc], 0
mov dword [ebp - 0x18], eax
jne 0x1001143f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100114e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100114e7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10021afc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10021b00], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10021b04], eax
call edi
push eax
call esi
mov dword [0x10021b0c], eax
test eax, eax
je 0x1001143f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10021b08], eax
mov eax, dword [0x10021b08]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10011498
cmp dword [0x10021b0c], ecx
je 0x10011498
push eax
call esi
push dword [0x10021b0c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10011498
test ebx, ebx
je 0x10011498
call edi
test eax, eax
je 0x1001148f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001148f
test byte [ebp - 8], 1
jne 0x10011498
or dword [ebp + 0x10], 0x200000
jmp 0x100114cb
mov eax, dword [0x10021b00]
cmp eax, dword [ebp - 0x18]
je 0x100114cb
push eax
call esi
test eax, eax
je 0x100114cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100114cb
mov eax, dword [0x10021b04]
cmp eax, dword [ebp - 0x18]
je 0x100114cb
push eax
call esi
test eax, eax
je 0x100114cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10021afc]
call esi
test eax, eax
je 0x100114e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100114e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100095c5
leave
ret
Function at 0x10011e5d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x10011e65
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10011b77
xchg esi, eax
pop ebx
test al, 0xd8
lea eax, [ebp - 0x40]
push eax
call fcn.10011b87
push eax
push esi
push dword [ebp + 8]
call fcn.10011b3c
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.10011b77
outsb dx, byte [esi]
stosd dword es:[edi], eax
ljmp 0x5d88

Function at 0x100120f5
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x10012366
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x1001211c
cmp dword [eax + 0xc], ebx
je 0x100121bf
mov edi, dword [eax + 0xc]
invalid

Function at 0x10013ba7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x10013bc6
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x10013c0d
lea eax, [ebp - 0x714]
push eax
call fcn.10011b87
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.10011b3c
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x10013c18
jmp 0x10013c1d
jmp 0x10013519
cmp dword [ebp - 0x37c], 0
jne 0x10013cc7
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10011d53
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x10013cb3
lea eax, [ebp - 0x714]
push eax
call fcn.10011b87
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.10011c1c
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401df9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4101b0
cmp edx, dword [eax]
je 0x401e1b
add eax, 8
inc ecx
cmp eax, 0x410240
jl 0x401e0c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4101b0]
jne 0x401f49
mov eax, dword [0x4111b8]
cmp eax, 1
je 0x401f23
test eax, eax
jne 0x401e4c
cmp dword [0x4100e4], 1
je 0x401f23
cmp edx, 0xfc
je 0x401f49
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401e83
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402470
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004025f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401ec6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004025f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c5e0
push edi
call fcn.00403600
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402470
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402480
lea eax, [ebp - 0xa0]
push 0x40c5c0
push eax
call fcn.00402480
push dword [esi + 0x4101b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402480
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403571
add esp, 0x2c
pop edi
jmp 0x401f49
lea eax, [ebp + 8]
lea esi, [esi + 0x4101b4]
push 0
push eax
push dword [esi]
call fcn.004025f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
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 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040b97d
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 - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040b97d
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
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 0x40b97d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40b98c
pop dword [ebp - 0x18]
mov eax, 0xba82af89
add eax, 0x45be0a03
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x38e5a
push 0
mov eax, 0xd4dce33a
sub eax, 0xd499630a
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x3fd1
xor edx, edx
add edx, eax
mov ebx, 0x7add9389
sub ebx, 0x7a98cd89
add ebx, dword [ebp - 0x18]
mov esi, 0x4e0f6866
add esi, 0xbe0de6f3
xor dword [ebp - 0x14], 0x868a23a
mov edi, dword [ebx]
mov dword [ebp - 0x14], 0x4e5d25bb
add edi, esi
xor dword [ebp - 4], esi
mov dword [edx], edi
mov dword [ebp - 0x10], 0x48275a43
add edx, 0x928c5757
sub edx, 0x928c5753
add ebx, 0x41471d71
add ebx, 0xbeb8e293
loop 0x40b9e7
add eax, 0x4dc77557
sub eax, 0x4dc68340
mov ebx, eax
add eax, 5
mov ecx, 0x21fdcef9
sub ecx, 0x21bdcef9
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x42893c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4c22f9
call fcn.004c1d38
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x7f1e
cmp dword [ebp - 0x18], 0x7fe0
jle 0x4289b0
xor edi, edi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x14], 0x7827
mov eax, esi
xor eax, edi
cdq
push edx
push eax
mov ecx, 0xad3018
call fcn.0041fa28
add esi, ebx
dec dword [ebp - 0x14]
jne 0x428974
inc ebx
cmp ebx, 0x4bc3
jl 0x42896b
inc edi
cmp edi, 0x4b47
jl 0x428969
push 0x1c34
push 0
push 0
call dword [0xad6020]
mov esi, dword [ebp - 0x1c]
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x7d75
jge 0x4289cc
mov edx, 0xab9720
mov ecx, 0xad3018
call fcn.004217de
or dword [ebp - 4], 0xffffffff
jmp 0x4289f3
mov dword [esi], 0
xor edi, edi
inc edi
cmp dword [esi], edi
jge 0x428a10
mov edx, dword [ebp - 0x20]
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [eax + ecx*4], edi
inc dword [esi]
cmp dword [esi], edi
jl 0x428a03
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43eb52
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44ede0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x444fdc
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00404620
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.004057b0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x453864]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov ecx, dword [esp + 0x2c]
push 0x21
mov byte [esp + 0x24], 2
call fcn.004046f0
test eax, eax
jne 0x403048
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x403041
or eax, 4
push ebx
push eax
call fcn.00401960
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x4057b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43dd1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44ede0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043b65d
push 4
mov dword [esp + 0x20], 0
call fcn.00414ff1
mov edi, eax
add esp, 4
test edi, edi
je 0x40582e
call fcn.0043b1e8
mov dword [edi], eax
call fcn.0043b016
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0043af3a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405823
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0043af62
jmp 0x405830
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4