joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460bd1
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x460c63
cmp dword [ebp - 0x10], 0
jne 0x460c63
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov edx, dword [ebp + 8]
and edx, 0xffff
imul eax, edx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x460c63
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.00460c7e
add esp, 8
push 0
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00460cde
add esp, 8
test eax, eax
jne 0x460c34
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x460c7a
push 0
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov esp, ebp
pop ebp
ret
Function at 0x468f70
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
xor ebp, ebp
call fcn.00469150
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x468f98
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
lea eax, [edx*4 + 4]
push eax
call sub.MSVCRT.dll_malloc
mov esi, dword [esp + 0x20]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x468fc2
pop edi
pop esi
mov dword [ebx], eax
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [ebx]
xor eax, eax
push 0x8000
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.MSVCRT.dll_malloc
add esp, 4
mov ebx, eax
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
push 0x8000
push ebx
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x469025
mov eax, dword [esp + 0x20]
push ebx
mov dword [eax], 0
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x8000]
cmp eax, ecx
jae 0x46912b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x469127
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call sub.MSVCRT.dll__memicmp
add esp, 0xc
test eax, eax
jne 0x469106
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 8
push ecx
call sub.MSVCRT.dll_malloc
mov ecx, dword [esi]
mov edi, ebx
add esp, 4
mov dword [ecx + ebp*4], eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi]
repne scasb al, byte es:[edi]
mov edi, dword [edx + ebp*4]
not ecx
add ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi]
mov edi, ebx
not ecx
mov edx, dword [eax + ebp*4]
add ecx, 3
mov dword [edx], ecx
mov eax, dword [esi]
mov edx, dword [str.._]
mov ecx, dword [eax + ebp*4]
add ecx, 4
mov dword [ecx], edx
mov al, byte [0x4823dc]
mov byte [ecx + 4], al
mov ecx, dword [esi]
xor eax, eax
mov edx, dword [ecx + ebp*4]
or ecx, 0xffffffff
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
add eax, 0x8000
lea ebx, [ebx + ecx + 1]
cmp ebx, eax
jb 0x469037
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx], ebp
call sub.MSVCRT.dll_free
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x669fc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x171000]
lea eax, [edi + 0x1ddafc]
push dword [eax]
mov dword [eax], 0xc87247c7
push eax
push edi
or ebp, 0xffffffff
jmp 0x669ff2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x669ff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x669fe8
mov eax, 1
add ebx, ebx
jne 0x66a00b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x66a01c
jne 0x66a03b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66a03b
dec eax
add ebx, ebx
jne 0x66a028
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x66a000
add ebx, ebx
jne 0x66a037
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x66a08d
xor ecx, ecx
sub eax, 3
jb 0x66a053
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x66a0c2
sar eax, 1
mov ebp, eax
jmp 0x66a05e
add ebx, ebx
jne 0x66a05e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66a02c
inc ecx
add ebx, ebx
jne 0x66a06c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66a02c
add ebx, ebx
jne 0x66a079
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x66a06e
jne 0x66a08a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x66a06e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x66a0ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x66a09e
jmp 0x669fee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x66a0ac
add edi, ecx
jmp 0x669fee
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x9e33
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x66a0ce
cmp byte [edi], 0x2f
jne 0x66a0ce
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x66a0d3
lea edi, [esi + 0x25b000]
mov eax, dword [edi]
or eax, eax
je 0x66a14b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x26f650]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x26f7e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x66a100
mov ecx, edi
jns 0x66a12f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x26f7f0]
or eax, eax
je 0x66a145
mov dword [ebx], eax
add ebx, 4
jmp 0x66a11d
call dword [esi + 0x26f7ec]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x66a17c
cmp al, 0xef
ja 0x66a16f
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x66a151
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x66a15e
mov ebp, dword [esi + 0x26f7f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x26f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x66a1b0
sub esp, 0xffffff80
jmp 0x510e63
Function at 0x401c87
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [0x417f5c], eax
push 0
push 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xfffffffffffffffc
push 0x3e8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [0x417f6c], eax
push 0x402d1f
push 0xfffffffffffffffc
push 0x3e8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xfffffffffffffffc
push 0xc9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [0x417f70], eax
push 0x402e29
push 0xfffffffffffffffc
push 0xc9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x401d33
xor eax, eax
jmp 0x401de2
mov eax, dword [ebp + 8]
push eax
call fcn.00402f3e
mov ecx, dword [ebp - 4]
push ecx
push 8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [ebp + 8]
push eax
call fcn.0040289f
test eax, eax
jne 0x401d5e
jmp 0x401de0
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
push 0x170
push 0x3ef
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x350]
and edx, 1
test edx, edx
je 0x401dbb
push 0
push 0x407
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x402
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 8]
push edx
call fcn.00402aca
test eax, eax
jne 0x401dca
jmp 0x401dde
mov eax, 1
jmp 0x401de2
mov eax, dword [ebp + 8]
push eax
call fcn.00401de8
xor eax, eax
jmp 0x401de2
jmp 0x401dd1
jmp 0x401dd1
mov esp, ebp
pop ebp
ret 8

Function at 0x401de8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x401df3
jmp 0x401e09
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x417f5c], 0
pop ebp
ret 4
Function at 0x404b9b
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [ebp - 0x10c], 1
lea eax, [ebp - 0x110]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404cfd
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x108], 0x104
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x404c55
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x110]
push eax
call fcn.00404b9b
test eax, eax
jne 0x404c3a
mov dword [ebp - 0x10c], 0
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x108], 0x104
jmp 0x404be6
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x11c], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x404cd4
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x404cb9
mov dword [ebp - 0x10c], 0
mov edx, dword [ebp - 0x228]
add edx, 1
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x11c], 0x104
jmp 0x404c69
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x404cfd
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x10c]
mov esp, ebp
pop ebp
ret 8
Function at 0x405288
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x370], 0
mov dword [eax + 0x374], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x394], 0
mov ecx, dword [ebp - 0x2c]
call fcn.00405193
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x388]
call fcn.004076ba
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x4059e9
push 0
push 0x6a
mov edx, dword [0x417f58]
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x36c], eax
push 5
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x36c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
push 0x4053ba
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x368], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x368]
mov dword [ebp - 8], eax
mov ecx, 1
test ecx, ecx
je 0x4053a1
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40537f
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x36c]
push edx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40537d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40533b
push 0xbf
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40539f
jmp 0x4053a1
jmp 0x405332
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x36c]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4055d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov dword [ebp - 0x330], ecx
mov dword [ebp - 0x214], 0
mov eax, dword [ebp + 8]
push eax
push str.CLSID_sDefaultIcon
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40574d
mov dword [ebp - 8], 1
mov dword [ebp - 0x218], 0x104
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405743
mov dword [ebp - 0x224], 0
jmp 0x40567d
mov edx, dword [ebp - 0x224]
add edx, 1
mov dword [ebp - 0x224], edx
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x224], eax
jge 0x4056c3
mov ecx, dword [ebp - 0x224]
movsx edx, byte [ebp + ecx - 0x328]
cmp edx, 0x2c
jne 0x4056a7
jmp 0x4056c3
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x224]
mov dl, byte [ebp + ecx - 0x328]
mov byte [ebp + eax - 0x10c], dl
jmp 0x40566e
mov eax, dword [ebp - 0x224]
mov byte [ebp + eax - 0x10c], 0
mov ecx, dword [ebp - 0x224]
add ecx, 1
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
lea eax, [ebp + edx - 0x328]
push eax
call fcn.00408df0
add esp, 4
mov dword [ebp - 0x220], eax
push 1
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x32c]
push edx
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.SHELL32.dll_ExtractIconExA]
cmp dword [ebp - 0x21c], 0
je 0x405737
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x214], edx
jmp 0x405743
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 0
jne 0x40576b
push 0x6f
mov edx, dword [0x417f8c]
push edx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov esp, ebp
pop ebp
ret 4

Function at 0x405e66
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push 0xa
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406039
cmp dword [ebp + 0xc], 0
je 0x405ea3
push 0x301
push 0x160
lea edx, [ebp - 0x16c]
push edx
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
jmp 0x405ec0
push 0x300
push 0x160
lea ecx, [ebp - 0x16c]
push ecx
push 0
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x16c]
mov esp, ebp
pop ebp
ret 8
Function at 0x405ecc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov byte [ebp - 0x20c], 0
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406039
push 0
push 0
push 0
push 0
push 0
push 0x104
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp + 8]
add ecx, 0x41
movsx edx, cl
push edx
lea eax, [ebp - 0x20c]
push eax
push str._s_c
push 9
call fcn.004063a8
add esp, 0x10
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00409140
add esp, 8
mov eax, dword [ebp - 0x108]
push eax
call fcn.00406250
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x405f64
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
push 4
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406039
test eax, eax
jne 0x405f8d
xor eax, eax
jmp 0x406017
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 6
ja case.default.0x405fa9
mov edx, dword [ebp - 0xc]
jmp dword [edx*4 + 0x40601d]
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
jmp 0x406017
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
xor eax, eax
jmp 0x406017
mov edx, dword [ebp + 0xc]
mov dword [edx], 2
jmp 0x406012
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
jmp 0x406012
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 4
xor eax, eax
jmp 0x406017
mov edx, dword [ebp + 0xc]
mov dword [edx], 5
xor eax, eax
jmp 0x406017
mov eax, dword [ebp + 0xc]
mov dword [eax], 6
jmp 0x406012
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
xor eax, eax
jmp 0x406017
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x408ac2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 0xc]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x408b1a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov dword [ebp - 4], 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.BootDir
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
jne 0x408b33
push 0x4144b4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esp, ebp
pop ebp
ret 8

Function at 0x408d20
Capabilities:
Terminate process

Disassembly:
cmp dword [0x418154], 1
jne 0x408d2e
call fcn.0040a9e0
mov eax, dword [esp + 4]
push eax
call fcn.0040aa20
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a6d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0040aca0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x414694], eax
je 0x40a728
push 0x74
push 1
call fcn.0040c350
mov esi, eax
add esp, 8
test esi, esi
je 0x40a728
mov eax, dword [0x414694]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40a728
push esi
call fcn.0040a730
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40a750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x414694]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40a7be
push 0x74
push 1
call fcn.0040c350
mov esi, eax
add esp, 8
test esi, esi
je 0x40a7b4
mov ecx, dword [0x414694]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40a7b4
push esi
call fcn.0040a730
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00408cf0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x40aa20
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4146b0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40aa44
add eax, 8
inc ebp
cmp eax, 0x414740
jb 0x40aa35
cmp ecx, dword [ebp*8 + 0x4146b0]
jne 0x40abeb
mov eax, dword [0x418154]
cmp eax, 1
je 0x40abad
test eax, eax
jne 0x40aa70
cmp dword [0x4144bc], 1
je 0x40abad
cmp ecx, 0xfc
je 0x40abeb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aaab
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40aaf4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x413480
add ebx, ecx
push ebx
call fcn.0040cbb0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x413460
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4146b4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040cb20
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x419720]
test eax, eax
je 0x40abbe
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40abc8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4146b4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret