joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403820
Capabilities:
Get common file path
Get disk information
Get memory capacity
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x459368]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x45936c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0x9e3779b9
mov dword [ebp - 0x20], edx
call fcn.00403810
mov ecx, dword [0x459370]
mov edx, dword [0x459374]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0x20
jmp 0x403890
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x460b64]
shl esi, 4
add esi, dword [ebp - 0x28]
cmp eax, 0xfa9
jne 0x4038bc
mov dword [0x460b60], 0xedeb2e40
jmp 0x4038d7
cmp eax, 0x3eb
jne 0x4038d7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4605f0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x2c]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x460b64], 0x9e6
mov dword [0x460b5c], 0xf4ea3dee
jne 0x403912
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x460b64], 0x213
jne 0x403988
push 0
push 0
push 0
push 0
call ebx
lea eax, [ebp - 0x548]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [ebp - 0xd48]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x460b64], 0xc
jne 0x40399c
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x20]
xor esi, ecx
cmp dword [0x460b64], 0xb03
jne 0x4039d4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x403890
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403a10
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x460b64]
mov ecx, dword [0x4605f4]
shr eax, 3
sub esp, 8
test eax, eax
jbe 0x403aa3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x460b64], 0x959
jne 0x403a8d
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [ebp - 4]
push eax
call fcn.00403820
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x403a43
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40af6f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458ce0]
jne 0x40af79
repz ret
jmp fcn.0040e68b

Function at 0x40c3a4
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.00407ddb
and dword [ebp - 4], 0
cmp dword [0x45e5e0], 0
mov ebx, eax
jne 0x40c455
push 0x4023d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c506
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023c4
push edi
call esi
test eax, eax
je 0x40c506
push eax
call fcn.00407d69
mov dword [esp], 0x4023b4
push edi
mov dword [0x45e5e0], eax
call esi
push eax
call fcn.00407d69
mov dword [esp], 0x4023a0
push edi
mov dword [0x45e5e4], eax
call esi
push eax
call fcn.00407d69
mov dword [esp], 0x402384
push edi
mov dword [0x45e5e8], eax
call esi
push eax
call fcn.00407d69
pop ecx
mov dword [0x45e5f0], eax
test eax, eax
je 0x40c455
push 0x40236c
push edi
call esi
push eax
call fcn.00407d69
pop ecx
mov dword [0x45e5ec], eax
mov eax, dword [0x45e5ec]
cmp eax, ebx
je 0x40c4ad
cmp dword [0x45e5f0], ebx
je 0x40c4ad
push eax
call fcn.00407de4
push dword [0x45e5f0]
mov esi, eax
call fcn.00407de4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c4ad
test edi, edi
je 0x40c4ad
call esi
test eax, eax
je 0x40c4a4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c4a4
test byte [ebp - 0xc], 1
jne 0x40c4ad
or dword [ebp + 0x10], 0x200000
jmp 0x40c4e6
mov eax, dword [0x45e5e4]
cmp eax, ebx
je 0x40c4e6
push eax
call fcn.00407de4
pop ecx
test eax, eax
je 0x40c4e6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c4e6
mov eax, dword [0x45e5e8]
cmp eax, ebx
je 0x40c4e6
push eax
call fcn.00407de4
pop ecx
test eax, eax
je 0x40c4e6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e5e0]
call fcn.00407de4
pop ecx
test eax, eax
je 0x40c506
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c508
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b642
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov edx, dword [esp]
add esp, 4
add ebx, 0xe112e802
call fcn.0043b67d
or eax, eax
xor dword [esi], edx
mov ebx, 0x69903cb5
sub ebx, eax
inc esi
dec eax
or eax, ebx
cmp esi, ecx
jne fcn.0043b642
dec eax
add ebx, 0xc28aeb93
sub eax, 0x1466eae5
ret
Function at 0x40e2fc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e304
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40e3f1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040b8ec
mov edx, dword [ebp - 8]
mov ecx, 0x40e40c
xor eax, eax
call fcn.0040e1e0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x40e3bf
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40e31e
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0040de08
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00407e04
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040be74
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.0040ddd8
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406c78]
call fcn.00409740
call fcn.00403f88
jmp 0x40e31e
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3f8
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404c90
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c90
ret

Function at 0x40e528
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e54c
mov eax, dword [ebp - 4]
jmp 0x40e54f
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x4018a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x402120
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1074
call fcn.0040ad70
mov eax, dword [0x41a190]
xor eax, esp
mov dword [esp + 0x1070], eax
mov eax, dword [esp + 0x1078]
mov ecx, dword [esp + 0x107c]
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402181
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.0040acd2
add esp, 0x1074
ret
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x4021b2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.0040acd2
add esp, 0x1074
ret
lea edx, [esp + 0x14]
push edx
call fcn.004018a0
add esp, 4
test ebx, ebx
jbe 0x402213
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ebx, [ebx]
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x8c]
push ecx
push esi
call ebp
test eax, eax
je 0x402212
mov eax, dword [esp + 0x10]
push eax
lea edx, [esp + 0x84]
add edi, eax
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00401fd0
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x402212
cmp edi, ebx
jb 0x4021d0
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.004020f0
mov eax, dword [esp + 0x18]
push 0x10
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.00406210
mov ecx, dword [esp + 0x1090]
add esp, 0x14
pop ebx
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0040acd2
add esp, 0x1074
ret

Function at 0x402350
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
push esi
xor edx, edx
push edi
xor eax, eax
mov esi, ecx
jmp 0x402360
mov byte [esi], al
add eax, 1
add esi, 1
cmp ax, 0x100
jl 0x402360
mov byte [ecx + 0x100], dl
mov byte [ecx + 0x101], dl
xor esi, esi
mov edi, ecx
mov dword [esp + 0x10], 0x100
mov eax, dword [esp + 0x18]
mov bl, byte [edi]
movzx edx, dl
movzx eax, byte [edx + eax]
movzx ebp, bl
add eax, esi
add eax, ebp
and eax, 0x800000ff
jns 0x4023a8
dec eax
or eax, 0xffffff00
inc eax
movzx esi, al
mov byte [ecx + 0x102], bl
movzx eax, byte [esi + ecx]
mov byte [edi], al
movzx eax, byte [ecx + 0x102]
mov byte [esi + ecx], al
lea eax, [edx + 1]
cdq
idiv dword [esp + 0x1c]
add edi, 1
sub dword [esp + 0x10], 1
jne 0x402386
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4023e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov al, byte [ecx + 0x100]
mov dl, byte [ecx + 0x101]
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
movzx eax, al
movzx esi, dl
jmp 0x402405
mov esi, dword [esp + 0x14]
lea edx, [eax + 1]
and edx, 0x800000ff
jns 0x402418
dec edx
or edx, 0xffffff00
inc edx
movzx eax, dl
mov bl, byte [eax + ecx]
mov byte [esp + 0x13], bl
movzx ebx, bl
add ebx, esi
and ebx, 0x800000ff
jns 0x402437
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x20], bl
movzx esi, byte [esp + 0x20]
movzx ebx, byte [esp + 0x13]
mov byte [ecx + 0x102], bl
movzx ebx, byte [esi + ecx]
mov byte [eax + ecx], bl
mov bl, byte [ecx + 0x102]
mov byte [esi + ecx], bl
mov dword [esp + 0x14], esi
movsx esi, di
add esi, ebp
mov dword [esp + 0x18], esi
movzx esi, byte [eax + ecx]
movzx ebx, bl
add ebx, esi
and ebx, 0x800000ff
jns 0x402481
dec ebx
or ebx, 0xffffff00
inc ebx
movzx esi, bl
movzx ebx, byte [esi + ecx]
mov esi, dword [esp + 0x18]
xor byte [esi], bl
je 0x4024b8
add edi, 1
cmp di, 0x400
jl 0x402401
mov al, byte [esp + 0x20]
pop edi
pop esi
pop ebp
mov byte [ecx + 0x100], dl
mov byte [ecx + 0x101], al
pop ebx
add esp, 0xc
ret 4
pop edi
pop esi
mov byte [ecx + 0x100], dl
mov dl, byte [esp + 0x18]
pop ebp
mov byte [ecx + 0x101], dl
pop ebx
add esp, 0xc
ret 4

Function at 0x4027e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor esi, esi
cmp ebp, esi
push edi
mov edi, ecx
mov dword [esp + 0x10], esi
jle 0x402822
lea esp, [esp]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 4]
movzx eax, byte [esi + ebx]
mov edx, dword [ecx + edi + 8]
mov edx, dword [edx + 8]
lea ecx, [ecx + edi + 8]
push eax
call edx
mov byte [esi + ebx], al
add esi, 1
cmp esi, ebp
jl 0x402800
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x402890
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
push esi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
cmp eax, esi
jbe 0x4028e6
mov edi, edi
mov eax, dword [edi + 8]
mov ecx, dword [eax + 4]
movzx eax, byte [esi + ebx]
mov edx, dword [ecx + edi + 8]
mov edx, dword [edx + 8]
lea ecx, [ecx + edi + 8]
push eax
call edx
mov byte [esi + ebx], al
mov eax, dword [esp + 0xc]
add esi, 1
cmp esi, eax
jb 0x4028c0
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x402c00
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x8030
call fcn.0040ad70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 8
lea edx, [esp + 0xc]
push edx
push 0x41f6d0
call fcn.004056e0
push 4
lea eax, [esp + 0x10]
push eax
push 0x41f6d0
call fcn.004056e0
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x41f6d0
call fcn.004056e0
push 0x20
lea edx, [esp + 0x38]
push edx
push 0x41f6d0
call fcn.004056e0
push 4
push 0x41f738
push 0x41f6d0
call fcn.004056e0
push 0x20
push 0x41f73c
push 0x41f6d0
call fcn.004056e0
add esp, 0x48
push 0x8000
lea eax, [esp + 0x34]
push eax
push 0x41f6d0
call fcn.004056e0
push 0x41f73c
push 0x41f6d0
call fcn.00405780
mov eax, dword [0x41f738]
add eax, 1
mov dword [0x41f738], eax
and eax, 7
mov eax, dword [eax*4 + 0x41f73c]
add esp, 0x8044
ret

Function at 0x402ce0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
ret
Function at 0x406270
Capabilities:
Get common file path

Disassembly:
sub esp, 0x40c
mov eax, dword [0x41a190]
xor eax, esp
mov dword [esp + 0x408], eax
push esi
mov esi, dword [esp + 0x414]
push 0x100
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x100
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esi], 0x5c
mov dl, byte [esp + 0x20c]
mov al, byte [esp + 0x20d]
mov byte [esp + 4], dl
mov byte [esp + 5], al
mov byte [esp + 6], 0
je 0x406313
push 0
lea ecx, [esp + 0x310]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004059c0
lea eax, [esp + 0x18]
push 0x422170
push eax
call fcn.00405980
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00405980
lea edx, [esp + 0x28]
push edx
push esi
call fcn.00405980
add esp, 0x24
jmp 0x4063c4
cmp byte [esi + 1], 0x3f
lea eax, [esi + 1]
jne 0x406347
cmp byte [esi + 2], 0x3f
jne 0x406347
cmp byte [esi + 3], 0x5c
jne 0x406347
push 0
lea eax, [esp + 0x10]
push esi
push eax
call fcn.004059c0
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.004059c0
add esp, 0x18
jmp 0x4063c4
push 0
push eax
lea edx, [esp + 0x14]
push edx
call fcn.004059c0
lea eax, [esp + 0x18]
push 0x422164
push eax
mov byte [esp + 0x2a], 0
call fcn.00405950
add esp, 0x14
test al, al
push 0
je 0x40639a
lea ecx, [esp + 0x210]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004059c0
lea eax, [esi + 0xb]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405980
push 0
lea edx, [esp + 0x24]
push edx
jmp 0x4063bb
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004059c0
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00405980
push 0
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004059c0
add esp, 0x20
mov ecx, dword [esp + 0x40c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040acd2
add esp, 0x40c
ret 4

Function at 0x4063e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push 0x422180
mov esi, ecx
call fcn.00401580
add esp, 4
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40644d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
add esi, 0x3b08
push esi
push eax
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
mov dword [esp + 0x20], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40644d
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
xor eax, eax
pop esi
add esp, 8
ret 4
Function at 0x406460
Capabilities:
Get common file path

Disassembly:
sub esp, 0x40c
mov eax, dword [0x41a190]
xor eax, esp
mov dword [esp + 0x408], eax
push esi
mov esi, dword [esp + 0x414]
push 0x100
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x100
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esi], 0x5c
mov dl, byte [esp + 0x20c]
mov al, byte [esp + 0x20d]
mov byte [esp + 4], dl
mov byte [esp + 5], al
mov byte [esp + 6], 0
jne 0x406577
cmp byte [esi + 1], 0x3f
lea eax, [esi + 1]
jne 0x4064fa
cmp byte [esi + 2], 0x3f
jne 0x4064fa
cmp byte [esi + 3], 0x5c
jne 0x4064fa
push 0
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.004059c0
push 0
lea edx, [esp + 0x20]
push edx
push esi
call fcn.004059c0
add esp, 0x18
jmp 0x406577
push 0
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004059c0
lea ecx, [esp + 0x18]
push 0x422164
push ecx
mov byte [esp + 0x2a], 0
call fcn.00405950
add esp, 0x14
test al, al
push 0
je 0x40654d
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004059c0
lea ecx, [esi + 0xb]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00405980
push 0
lea eax, [esp + 0x24]
push eax
jmp 0x40656e
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004059c0
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00405980
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.004059c0
add esp, 0x20
mov ecx, dword [esp + 0x40c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040acd2
add esp, 0x40c
ret 4

Function at 0x406630
Capabilities:
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [0x41a190]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
push 0x422294
mov esi, ecx
call fcn.00401580
push eax
push esi
call fcn.004065a0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edi, [esp + 8]
mov ecx, edi
push ecx
call fcn.00405930
add esp, 4
test eax, eax
je 0x406722
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ebx, [ebx]
push edi
push 0x422284
call fcn.00401580
add esp, 4
push eax
push esi
call fcn.004065a0
add esp, 0xc
push edi
call ebx
cmp eax, 6
ja case.default.0x4066b0
jmp dword [eax*4 + 0x406754]
push 0x422274
jmp 0x4066e6
push 0x422260
jmp 0x4066e6
push 0x42224c
jmp 0x4066e6
push 0x42223c
jmp 0x4066e6
push 0x42222c
jmp 0x4066e6
push 0x42221c
jmp 0x4066e6
push 0x42220c
call fcn.00401580
push eax
push esi
call fcn.004065a0
add esp, 0xc
push 0x422200
call fcn.00401580
push eax
push esi
call fcn.004065a0
push edi
call fcn.00405930
lea edi, [edi + eax + 1]
push edi
call fcn.00405930
add esp, 0x14
test eax, eax
jne 0x406690
pop ebx
push 0x4221c8
call fcn.00401580
push eax
push esi
call fcn.004065a0
mov ecx, dword [esp + 0x414]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040acd2
add esp, 0x404
ret
Function at 0x4067d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1018
call fcn.0040ad70
mov eax, dword [0x41a190]
xor eax, esp
mov dword [esp + 0x1014], eax
push ebx
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push 0x422390
mov ebx, ecx
call fcn.00401580
add esp, 4
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40682c
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1014]
xor ecx, esp
call fcn.0040acd2
add esp, 0x1018
ret
push 0x422112
lea ecx, [esp + 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x41c]
push eax
push 0
push 0
push 0x422384
push ecx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406814
push ebp
push esi
push edi
push 0x422328
call fcn.00401580
push eax
push ebx
call fcn.004065a0
push 0x422310
call fcn.00401580
push eax
push ebx
call fcn.004065a0
lea edx, [esp + 0x43c]
push edx
xor edi, edi
call fcn.00405930
add esp, 0x1c
test eax, eax
jbe 0x406987
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov al, byte [esp + edi + 0x424]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push 0
mov byte [esp + 0x24], al
push 0
lea eax, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x31], 0
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4069a5
xor esi, esi
cmp word [esp + 0x24], si
lea eax, [esp + 0x24]
je 0x40690c
lea esp, [esp]
add eax, 2
add esi, 1
cmp word [eax], 0
jne 0x406900
push 0
push 0
push 0x400
lea edx, [esp + 0xc30]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x38]
push eax
push 0
push 0
call ebp
push 0
push 0
push 0x400
lea ecx, [esp + 0x830]
push ecx
push 0xffffffffffffffff
lea edx, [esp + esi*2 + 0x3a]
push edx
push 0
push 0
call ebp
lea eax, [esp + 0x824]
push eax
lea ecx, [esp + 0xc28]
push ecx
push 0x422300
call fcn.00401580
add esp, 4
push eax
push ebx
call fcn.004065a0
lea edx, [esp + 0x434]
push edx
add edi, 1
call fcn.00405930
add esp, 0x14
cmp edi, eax
jb 0x4068b1
mov eax, 1
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040acd2
add esp, 0x1018
ret
xor eax, eax
jmp 0x40698c