joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4774d0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4774e1
sub eax, edx
mov esi, eax
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [0x4a2f74]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47750c
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.004774a0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x47758b
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x47757f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push 0
push eax
push ebx
push ecx
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 4]
push 0
lea edx, [ebp - 0x10]
push edx
push esi
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x4a2f78]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x479ca0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x479cc2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x479cb6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x479cf2
cmp dword [esi + 8], 0
jne 0x479ce5
mov ecx, dword [eax + 8]
push 0x484f50
push ecx
call fcn.0042a5ac
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x479ce5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0042b77f
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x479d14
mov eax, dword [esi + 8]
test eax, eax
je 0x479d0e
push eax
call fcn.00429ebe
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x47ceb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x4a2f74]
mov edi, eax
add esp, 4
test edi, edi
jne 0x47cedb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x47cf22
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x47cf25
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x47cf86
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x47cf50
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x47cfbf
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x496fa5
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x496fa6
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x47cf90
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47e5f6
call fcn.0042c7b1
mov dword [eax], esi
call fcn.0042c79e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042a071
add esp, 0x14
push 0x16
pop eax
jmp 0x47e64b
test dword [ebp + 0xc], 0xfffffff9
jne 0x47e5d2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47e623
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c7c4
pop ecx
call fcn.0042c79e
mov eax, dword [eax]
jmp 0x47e64b
test al, 0x10
jne 0x47e649
test al, 1
je 0x47e649
test byte [ebp + 0xc], 2
je 0x47e649
call fcn.0042c7b1
mov dword [eax], 5
call fcn.0042c79e
mov dword [eax], 0xd
jmp 0x47e61a
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4010cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4010f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 3
pop ebp
ret

Function at 0x40162b
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
lea eax, [ebp - 4]
push esi
push eax
push 0x40b330
xor ebx, ebx
push 1
push ebx
push 0x40b320
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40171a
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.00407ab0
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.00407ba0
add esp, 0x10
cmp eax, ebx
je 0x40169b
mov byte [eax], bl
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4016b0
cmp byte [eax], bl
je 0x4016b0
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4016c4
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x40b340
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x401711
lea eax, [ebp - 0x314]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x314]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402585
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [0x40d9f4]
push dword [0x40d9f0]
call fcn.00407ab0
mov esi, dword [ebp + 8]
pop ecx
pop ecx
cmp byte [esi + 0xb], 2
jne 0x4025f1
push dword [0x40da9c]
push dword [0x40d9f0]
call fcn.00407ab0
push 0x5c
push dword [0x40d9f0]
call fcn.00407ba0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4025d4
inc edi
jmp 0x4025da
mov edi, dword [0x40d9f0]
push 0
push esi
call fcn.00402550
push eax
push edi
call fcn.00407ab0
add esp, 0x10
jmp 0x4027c3
movzx eax, byte [esi + 8]
dec eax
je 0x402790
dec eax
je 0x402628
dec eax
jne 0x4027a1
lea eax, [ebp + 8]
push eax
push 0x14
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push dword [0x40d9f0]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
jmp 0x4027a1
push 1
push 0x30c
call fcn.00407dbb
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4027a1
lea eax, [edi + 0x104]
push 0
push esi
mov dword [ebp - 4], eax
lea ebx, [edi + 0x208]
call fcn.00402550
push dword [0x40d9f0]
mov esi, eax
call fcn.00405cf1
push 0x5c
push esi
call fcn.00407ba0
add esp, 0x14
test eax, eax
je 0x402679
inc eax
mov dword [ebp + 8], eax
jmp 0x40267c
mov dword [ebp + 8], esi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push dword [0x40d9f0]
push ebx
push dword [ebp + 8]
push 1
call sub.VERSION.dll_VerFindFileA
mov ebx, eax
shr ebx, 1
and ebx, 1
cmp byte [edi], 0
je 0x402719
push edi
call fcn.00405cca
push dword [ebp + 8]
push edi
call fcn.00407ac0
push edi
push dword [0x40d9f0]
call fcn.00407ab0
push 0
push dword [0x40d9f0]
call section..text
add esp, 0x1c
cmp eax, 0xffffffff
je 0x4026fb
push eax
call fcn.0040121f
push edi
call fcn.00407d8c
pop ecx
pop ecx
jmp 0x40278c
mov esi, dword [ebp - 4]
cmp byte [esi], 0
je 0x4027c3
push esi
call fcn.00405cca
push dword [ebp + 8]
push esi
call fcn.00407ac0
push edi
jmp 0x40277f
push esi
push dword [0x40d9f0]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
call fcn.00407d8c
push dword [0x40d9f0]
call fcn.00405cca
push dword [ebp + 8]
push dword [0x40d9f0]
call fcn.00407ac0
push 0
push dword [0x40d9f0]
call section..text
add esp, 0x18
cmp eax, 0xffffffff
je 0x402762
push eax
call fcn.0040121f
jmp 0x4026f5
mov esi, dword [ebp - 4]
cmp byte [esi], 0
je 0x4027c3
push esi
call fcn.00405cca
push dword [ebp + 8]
push esi
call fcn.00407ac0
push dword [0x40d9f0]
push esi
call fcn.00407d00
add esp, 0x14
test eax, eax
jne 0x4027c3
mov eax, ebx
jmp 0x4027c5
push 0x104
push dword [0x40d9f0]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x40d9f0]
call fcn.00405cca
push 0
push esi
call fcn.00402550
push eax
push dword [0x40d9f0]
call fcn.00407ac0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4027ca
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
push 1
pop edi
lea eax, [ebp + 8]
push eax
push 0x800
mov dword [ebp - 0xc], edi
call fcn.00405d4a
pop ecx
test eax, eax
pop ecx
jne 0x4027f6
mov eax, edi
jmp 0x402932
lea eax, [ebp - 0x14]
push eax
push dword [0x40d9f0]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x402925
push eax
call fcn.00407e38
mov edi, eax
pop ecx
test edi, edi
mov dword [ebp - 0x10], edi
je 0x402925
push ebx
push edi
push dword [ebp - 4]
push dword [ebp - 0x14]
push dword [0x40d9f0]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40291b
test byte [esi + 0xd], 2
je 0x4028c0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x40d18c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4028c0
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x22]
mov ecx, dword [eax + 0x10]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
cmp ecx, edx
ja 0x402890
jne 0x402879
cmp eax, dword [esi + 0x26]
ja 0x402890
cmp ecx, edx
jne 0x4028c0
cmp eax, dword [esi + 0x26]
jne 0x4028c0
mov eax, dword [esi + 0x1a]
cmp edi, eax
ja 0x402890
jne 0x4028c0
cmp ebx, dword [esi + 0x1e]
jbe 0x4028c0
push dword [0x40d9f0]
push 0x1d
push 6
call fcn.004012a5
pop ecx
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x124
push dword [ebp + 8]
call fcn.004013bc
add esp, 0x14
cmp eax, 6
jne 0x402917
test byte [esi + 0xd], 4
je 0x40291b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40291b
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp dword [esi + 0x2a], eax
je 0x40291b
push dword [0x40d9f0]
push 0x1e
push 6
call fcn.004012a5
pop ecx
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x24
push dword [ebp + 8]
call fcn.004013bc
add esp, 0x14
cmp eax, 6
je 0x40291b
and dword [ebp - 0xc], 0
push dword [ebp - 0x10]
call fcn.00407d8c
pop ecx
pop ebx
lea eax, [ebp + 8]
push eax
call fcn.00405d7d
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x403d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 0xc]
push edi
push 2
pop edi
push str.Start_Menu
push esi
call fcn.00407d00
pop ecx
test eax, eax
pop ecx
jne 0x403d46
push 0xb
jmp 0x403d59
push str.Startup
push esi
call fcn.00407d00
pop ecx
test eax, eax
pop ecx
jne 0x403d5c
push 7
pop edi
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test esi, esi
je 0x403d9e
cmp byte [esi], 0
je 0x403d9e
lea eax, [ebp - 0x104]
push eax
call fcn.00405cca
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00407ac0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.00405cf1
lea eax, [ebp - 0x104]
push eax
call fcn.00407bc7
pop ecx
test eax, eax
pop ecx
je 0x403deb
lea eax, [ebp - 0x104]
push eax
call fcn.00405cca
lea eax, [ebp - 0x104]
push eax
call fcn.00405ef2
lea eax, [ebp - 0x104]
push eax
call fcn.00407bc7
add esp, 0xc
test eax, eax
jne 0x403e71
lea eax, [ebp - 0x104]
push eax
call fcn.00405cca
lea eax, [ebp - 0x104]
push eax
call fcn.00407a30
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x104]
push eax
call fcn.00407ac0
lea eax, [ebp - 0x104]
push str..lnk
push eax
call fcn.00407ac0
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.0040162b
add esp, 0x28
cmp dword [ebp + 0x1c], 0xffffffff
je 0x403e71
test esi, esi
je 0x403e4f
and byte [ebp + esi - 0x105], 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x1c]
call fcn.00402167
lea eax, [ebp + esi - 0x104]
push eax
push dword [ebp + 0x1c]
call fcn.00402167
add esp, 0x10
pop edi
pop esi
leave
ret
Function at 0x4040d2
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
xor ebx, ebx
cmp dword [0x40dacc], ebx
push esi
push edi
je 0x404105
cmp dword [ebp + 8], ebx
jne 0x4040fe
push 4
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x404281
push 5
push dword [ebp + 8]
jmp 0x4040f0
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [ebp + 0xc]
call edi
cmp dword [ebp + 8], ebx
je 0x40412f
lea eax, [ebp - 0x310]
push esi
push eax
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp + 8], ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
je 0x404187
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x310]
push eax
push str.Rename
call esi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
call esi
jmp 0x404281
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40d1fc
push str.Rename
call esi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
call esi
lea eax, [ebp - 0x108]
push 2
push eax
call section..text
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
mov dword [ebp - 4], esi
je 0x404281
push esi
call fcn.0040114d
mov edi, eax
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x200]
push eax
call fcn.00405d1d
add esp, 0xc
test eax, eax
je 0x404278
push edi
push dword [ebp + 8]
push esi
call fcn.00401077
add esp, 0xc
test eax, eax
jne 0x40426e
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], ebx
lea ebx, [edi - 4]
test ebx, ebx
jbe 0x40426e
cmp byte [esi], 0x78
jne 0x40423f
cmp byte [esi + 1], 0x79
jne 0x40423f
cmp byte [esi + 2], 0x7a
jne 0x40423f
cmp byte [esi + 3], 0x3d
jne 0x40423f
lea eax, [ebp - 0x20c]
push eax
call fcn.00407a30
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00408160
add esp, 0x10
test eax, eax
je 0x40424a
inc dword [ebp + 0xc]
inc esi
cmp dword [ebp + 0xc], ebx
jb 0x404204
jmp 0x40426e
push 0
mov byte [esi], 0x4e
push dword [ebp - 4]
mov byte [esi + 1], 0x55
mov byte [esi + 2], 0x4c
call fcn.00401114
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004010cd
add esp, 0x14
lea eax, [ebp + 8]
push eax
call fcn.00405d7d
pop ecx
push dword [ebp - 4]
call fcn.0040121f
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d94
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
or esi, 0xffffffff
push edi
cmp byte [ebx], 0x5c
jne 0x405de0
cmp byte [ebx + 1], 0x5c
jne 0x405de0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x405e3d
mov esi, dword [ebp + 8]
imul esi, dword [ebp - 8]
shr esi, 8
imul esi, dword [ebp - 4]
shr esi, 2
jmp 0x405e3d
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x405e3d
push ebx
push edi
call fcn.00407ab0
cmp byte [edi + 1], 0x3a
pop ecx
pop ecx
jne 0x405e0a
and byte [edi + 3], 0
mov byte [edi + 2], 0x5c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x405e36
mov esi, dword [ebp + 8]
imul esi, dword [ebp - 8]
shr esi, 8
imul esi, dword [ebp - 4]
shr esi, 2
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405e44
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x20
cmp byte [ebx], 0x5c
pop edi
jne 0x405e8f
cmp byte [ebx + 1], 0x5c
jne 0x405e8f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x405eeb
mov edi, dword [ebp + 8]
imul edi, dword [ebp - 4]
add edi, 0x3ff
shr edi, 0xa
jmp 0x405eeb
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x405eeb
push ebx
push esi
call fcn.00407ab0
cmp byte [esi + 1], 0x3a
pop ecx
pop ecx
jne 0x405eb9
and byte [esi + 3], 0
mov byte [esi + 2], 0x5c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x405ee4
mov edi, dword [ebp + 8]
imul edi, dword [ebp - 4]
add edi, 0x3ff
shr edi, 0xa
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4062ea
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor ebx, ebx
push 5
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4063ca
lea eax, [ebp - 0x208]
mov esi, 0x80000000
push eax
push dword [ebp + 0xc]
push esi
call fcn.004063cf
add esp, 0xc
test eax, eax
jne 0x4063ca
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push str._shellopencommand
push eax
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.004063cf
add esp, 0xc
test eax, eax
jne 0x4063ca
lea eax, [ebp - 0x208]
push str.__1_
push eax
call fcn.00408800
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x4063ab
lea eax, [ebp - 0x208]
push 0x40d3f8
push eax
call fcn.00408800
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x4063ab
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x209]
jmp 0x4063ad
mov byte [esi], bl
push 0x40d3f4
push esi
call edi
push dword [ebp + 8]
push esi
call edi
lea eax, [ebp - 0x208]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4063cf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40640e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x407f04
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407f2f
test byte [esp + 8], 0x80
je 0x407f1e
and al, 0xfe
jmp 0x407f20
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x407f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004089e1
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408065
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004089e1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408086
test byte [esp + 8], 2
je 0x408086
mov dword [0x40db04], 0xd
mov dword [0x40db08], 5
jmp 0x408061
xor eax, eax
ret
Function at 0x40a711
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d948
cmp edx, dword [eax]
je 0x40a733
add eax, 8
inc ecx
cmp eax, 0x40d9d8
jl 0x40a724
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d948]
jne 0x40a861
mov eax, dword [0x40db58]
cmp eax, 1
je 0x40a83b
test eax, eax
jne 0x40a764
cmp dword [0x40d424], 1
je 0x40a83b
cmp edx, 0xfc
je 0x40a861
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a79b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407ab0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407a30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a7de
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407a30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b650
push edi
call fcn.00408270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407ab0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407ac0
lea eax, [ebp - 0xa0]
push 0x40d108
push eax
call fcn.00407ac0
push dword [esi + 0x40d94c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407ac0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ad6a
add esp, 0x2c
pop edi
jmp 0x40a861
lea eax, [ebp + 8]
lea esi, [esi + 0x40d94c]
push 0
push eax
push dword [esi]
call fcn.00407a30
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