joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405df0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
push esi
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ecx, dword [0x42abbc]
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea edx, [esp + 0x11c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
lea eax, [edi + 4]
push eax
call fcn.00418532
mov esi, eax
add esp, 4
test esi, esi
jne 0x405e99
push eax
call fcn.00418537
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
push 0
lea ecx, [esp + 0x124]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x405ec1
push esi
call fcn.00418537
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x41f6f8
push esi
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
push esi
je 0x405eaf
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
and ecx, 0xffff
mov dword [edx], ecx
movzx ecx, word [eax + 0xe]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x14]
and eax, 0xffff
mov dword [ecx], eax
call fcn.00418537
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405f50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [esp + 0xc], ecx
mov esi, 0x4270f0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
push SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 0x104
call edi
test eax, eax
lea eax, [esp + 0x14]
je 0x405fd2
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x405ffb
add esi, 8
cmp esi, 0x427108
jl 0x405f67
pop edi
mov eax, 1
pop esi
add esp, 0x110
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405fd5
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
add ecx, 4
call fcn.00401d30
pop edi
xor eax, eax
pop esi
add esp, 0x110
ret
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406002
mov ecx, dword [esp + 0xc]
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
add ecx, 4
call fcn.00401d30
pop edi
xor eax, eax
pop esi
add esp, 0x110
ret
Function at 0x406030
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.00405f50
test eax, eax
jne 0x40608d
push 0x41fbf8
add esi, 4
lea eax, [esp + 8]
push esi
push eax
call fcn.00404940
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, 0x10
jb 0x406062
mov eax, dword [eax + 4]
jmp 0x406065
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, eax
cmp dword [esp + 0x1c], 0x10
jb 0x406082
mov ecx, dword [esp + 8]
push ecx
call fcn.00418537
add esp, 4
test esi, esi
je 0x40608d
xor eax, eax
pop esi
add esp, 0x1c
ret
mov eax, 3
pop esi
add esp, 0x1c
ret
Function at 0x408230
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov eax, dword [ecx + 0xc0]
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 4], esi
jle 0x4083f9
push ebx
push ebp
push edi
lea ebp, [ecx + 0xd0]
lea esp, [esp]
mov eax, dword [ebp + 0x14]
mov ebx, 0x10
cmp eax, ebx
jb 0x408271
mov eax, dword [ebp]
jmp 0x408273
mov eax, ebp
mov edx, dword [ebp - 8]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408295
mov dword [ebp + 0x50], esi
jmp 0x4083c5
cmp dword [ebp + 0x30], ebx
mov dword [esp + 0x1c], 0x104
jb 0x4082a7
mov eax, dword [ebp + 0x1c]
jmp 0x4082aa
lea eax, [ebp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4082d2
mov dword [ebp + 0x50], esi
jmp 0x4083c5
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4082e4
sub eax, edx
cmp byte [esp + eax + 0x43], 0x5c
jne 0x408311
lea eax, [esp + 0x44]
lea edx, [eax + 1]
jmp 0x408300
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408300
sub eax, edx
push eax
lea ecx, [esp + 0x48]
push ecx
jmp 0x40833f
lea edi, [esp + 0x44]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408316
mov dx, word [0x41f6f8]
lea eax, [esp + 0x44]
mov word [edi], dx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408330
sub eax, edx
push eax
lea eax, [esp + 0x48]
push eax
lea esi, [ebp + 0x34]
mov ecx, esi
call fcn.00401d30
push str.opera.exe
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.00404940
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, ebx
jb 0x408368
mov eax, dword [eax + 4]
jmp 0x40836b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40837b
xor eax, eax
jmp 0x408386
and al, 0x10
xor edx, edx
cmp al, 0x10
setne dl
mov eax, edx
test eax, eax
mov eax, dword [esp + 0x40]
sete bl
cmp eax, 0x10
jb 0x4083a1
mov eax, dword [esp + 0x2c]
push eax
call fcn.00418537
add esp, 4
xor eax, eax
xor esi, esi
test bl, bl
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], eax
mov byte [esp + 0x2c], al
jne 0x4083c2
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [ebp + 0x50], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0xc0]
inc eax
add ebp, 0xb0
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x408260
cmp dword [esp + 0x18], esi
pop edi
pop ebp
pop ebx
je 0x4083f9
xor eax, eax
pop esi
add esp, 0x138
ret
mov eax, 1
pop esi
add esp, 0x138
ret
Function at 0x40dcb7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040deb0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dd52
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42a6f8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40dd52
cmp eax, 1
je 0x40dd73
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dd52
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40dd1f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40dd4e
xor eax, eax
inc eax
jmp 0x40dd92
cmp edi, eax
jae 0x40dd56
xor eax, eax
jmp 0x40dd92
cmp eax, esi
jae 0x40dd5d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42a6f8]
jmp 0x40dd76
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e346
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4215b0
call fcn.0040f07c
mov edi, 0x94
mov eax, edi
call fcn.0040deb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42a6f8], ecx
mov eax, dword [esi + 4]
mov dword [0x42a704], eax
mov edx, dword [esi + 8]
mov dword [0x42a708], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42a6fc], esi
cmp ecx, 2
je 0x40e3a6
or esi, 0x8000
mov dword [0x42a6fc], esi
shl eax, 8
add eax, edx
mov dword [0x42a700], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40e3e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e3e1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40e3f9
cmp eax, 0x20b
je 0x40e3e6
mov dword [ebp - 0x1c], esi
jmp 0x40e40d
cmp dword [ecx + 0x84], 0xe
jbe 0x40e3e1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40e407
cmp dword [ecx + 0x74], 0xe
jbe 0x40e3e1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040ff4e
pop ecx
test eax, eax
jne 0x40e421
push 0x1c
call fcn.0040e322
pop ecx
call fcn.0041113b
test eax, eax
jne 0x40e432
push 0x10
call fcn.0040e322
pop ecx
call fcn.004133e0
mov dword [ebp - 4], esi
call fcn.004131e2
test eax, eax
jge 0x40e44b
push 0x1b
call fcn.0040e2fd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42bf80], eax
call fcn.004130c0
mov dword [0x42a6dc], eax
call fcn.0041301e
test eax, eax
jge 0x40e471
push 8
call fcn.0040e2fd
pop ecx
call fcn.00412deb
test eax, eax
jge 0x40e482
push 9
call fcn.0040e2fd
pop ecx
push 1
call fcn.0040fb09
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40e498
push eax
call fcn.0040e2fd
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00412d8e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40e4b9
movzx eax, word [ebp - 0x40]
jmp 0x40e4bc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00406fb0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40e4da
push edi
call fcn.0040fc36
call fcn.0040fc58
jmp 0x40e50c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f0b7
ret
Function at 0x40fb73
Capabilities:
Terminate process

Disassembly:
push 8
push 0x421638
call fcn.0040f07c
push 8
call fcn.004100f2
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42a738], esi
jne 0x40fba7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42a734], esi
mov al, byte [ebp + 0x10]
mov byte [0x42a730], al
cmp dword [ebp + 0xc], edi
jne 0x40fbf1
cmp dword [0x42bd4c], edi
je 0x40fbe1
mov eax, dword [0x42bd48]
sub eax, 4
mov dword [0x42bd48], eax
cmp eax, dword [0x42bd4c]
jb 0x40fbe1
mov eax, dword [eax]
cmp eax, edi
je 0x40fbc2
call eax
jmp 0x40fbc2
push 0x427074
mov eax, 0x42706c
call fcn.0040faf1
pop ecx
push 0x427080
mov eax, 0x427078
call fcn.0040faf1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40fc22
cmp dword [ebp + 0x10], edi
jne 0x40fc30
mov dword [0x42a738], esi
push dword [ebp + 8]
call fcn.0040faaf
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40fc2f
push 8
call fcn.0041003d
pop ecx
ret
call fcn.0040f0b7
ret
Function at 0x411eb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x411ede
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x411ee5
cmp ebx, dword [eax + 4]
jae 0x411ee5
xor eax, eax
jmp 0x4120d5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x411ef6
xor eax, eax
inc eax
jmp 0x4120d4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x411f0c
cmp ecx, edx
jae 0x412051
cmp dword [eax + 4], 0
je 0x411f15
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x411efd
cmp dword [ebp + 8], 0
je 0x411f37
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x412051
cmp eax, esi
jae 0x412051
mov eax, dword [0x42a8b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x411f5c
cmp dword [esi*4 + 0x42a8c0], edi
je 0x412055
inc esi
cmp esi, eax
jl 0x411f4a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4120d1
cmp dword [ebp - 8], 0x1000000
jne 0x4120d1
test byte [ebp - 0xc], 0xcc
je 0x411fda
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4120d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4120d1
cmp word [eax + 0x18], 0x10b
jne 0x4120d1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4120d1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x411fda
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x411fda
test byte [ecx + 0x27], 0x80
jne 0x412051
push 1
push 0x42a900
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x411eee
mov ecx, dword [0x42a8b8]
test ecx, ecx
mov edx, ecx
jle 0x41200e
lea eax, [ecx*4 + 0x42a8bc]
cmp dword [eax], edi
je 0x41200e
dec edx
sub eax, 4
test edx, edx
jg 0x412002
test edx, edx
jne 0x41203f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41201b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x412033
lea eax, [edx*4 + 0x42a8c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x412021
cmp ecx, 0x10
jge 0x41203f
inc ecx
mov dword [0x42a8b8], ecx
push 0
push 0x42a900
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x411eee
xor eax, eax
jmp 0x4120d4
test esi, esi
jle 0x411eee
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42a900
call ebx
test eax, eax
jne 0x411eee
cmp dword [esi*4 + 0x42a8c0], edi
je 0x4120ab
mov eax, dword [0x42a8b8]
lea esi, [eax - 1]
test esi, esi
jl 0x412099
cmp dword [esi*4 + 0x42a8c0], edi
je 0x412095
dec esi
jns 0x412089
test esi, esi
jge 0x4120a9
cmp eax, 0x10
jge 0x4120a4
inc eax
mov dword [0x42a8b8], eax
lea esi, [eax - 1]
jmp 0x4120ab
je 0x4120c3
xor ecx, ecx
test esi, esi
jl 0x4120c3
lea eax, [ecx*4 + 0x42a8c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4120b1
push 0
push 0x42a900
call ebx
jmp 0x411eee
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412a7a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4278f0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x427e58]
je 0x412aaf
inc eax
cmp eax, 0x13
jb 0x412aa0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x427e58]
jne 0x412bd5
mov eax, dword [0x42a6e4]
cmp eax, 1
je 0x412bad
cmp eax, edx
jne 0x412adf
cmp dword [0x4278e4], 1
je 0x412bad
cmp ecx, 0xfc
je 0x412bd5
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412b15
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00411c00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040e8a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412b49
mov eax, edi
push eax
call fcn.0040e8a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x421d00
push edi
call fcn.0040da00
add esp, 0x10
push edi
call fcn.0040e8a0
push dword [esi + 0x427e5c]
mov ebx, eax
call fcn.0040e8a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040deb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00411c00
push edi
push ebx
call fcn.00411c10
push 0x421ce0
push ebx
call fcn.00411c10
push dword [esi + 0x427e5c]
push ebx
call fcn.00411c10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00415726
add esp, 0x2c
jmp 0x412bd5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x427e5c]
push dword [esi]
call fcn.0040e8a0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040e88e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x413fa2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x413fd0
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x413fd5
cmp eax, 1
je 0x413fd5
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x413fd9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4278f0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x414051
push ebx
call fcn.00413fa2
test eax, eax
pop ecx
jne 0x414020
call fcn.0040fcaa
mov dword [eax], 0xf
call fcn.0040fca1
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040e88e
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x414063
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x414013
inc eax
cmp eax, 0x104
ja 0x414013
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41409b
cmp eax, dword [ebp + 0x10]
jg 0x41407e
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040dca5
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4140b0
call fcn.0040fca1
mov dword [eax], 0xc
jmp 0x414013
cmp eax, dword [ebp + 0x10]
jle 0x4140b0
call fcn.0040fca1
mov dword [eax], 0x22
jmp 0x414013
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00411c00
pop ecx
pop ecx
jmp 0x414015
Function at 0x415257
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4278f0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x415288
xor eax, eax
jmp 0x415411
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42bc20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4152c4
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00416557
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41539f
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4153dd
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x415328
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x415319
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4152f9
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415368
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x415371
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4152ea
jmp 0x415373
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41540c
cmp dword [ebp - 0x6c], edi
je 0x4153dd
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4153d2
call fcn.0040fca1
mov dword [eax], 9
call fcn.0040fcaa
mov dword [eax], esi
jmp 0x415407
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4153c7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x415373
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x415373
push dword [ebp - 0x6c]
call fcn.0040fcb3
pop ecx
jmp 0x415407
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4153f5
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4153f5
xor eax, eax
jmp 0x41540f
call fcn.0040fca1
mov dword [eax], 0x1c
call fcn.0040fcaa
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41540f
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040e88e
add ebp, 0x3a0
leave
ret
Function at 0x415726
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42ab7c], ebx
push esi
push edi
jne 0x4157a6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4157e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4226e4
push edi
call esi
test eax, eax
mov dword [0x42ab7c], eax
je 0x4157e1
push str.GetActiveWindow
push edi
call esi
push 0x4226c0
push edi
mov dword [0x42ab80], eax
call esi
cmp dword [0x42a6f8], 2
mov dword [0x42ab84], eax
jne 0x4157a6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42ab8c], eax
je 0x4157a6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42ab88], eax
mov eax, dword [0x42ab88]
test eax, eax
je 0x4157eb
call eax
test eax, eax
je 0x4157d2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42ab8c]
test eax, eax
je 0x4157d2
test byte [ebp - 8], 1
jne 0x4157eb
cmp dword [0x42a704], 4
jb 0x4157e5
or byte [ebp + 0x12], 0x20
jmp 0x41580a
xor eax, eax
jmp 0x41581a
or byte [ebp + 0x12], 4
jmp 0x41580a
mov eax, dword [0x42ab80]
test eax, eax
je 0x41580a
call eax
mov ebx, eax
test ebx, ebx
je 0x41580a
mov eax, dword [0x42ab84]
test eax, eax
je 0x41580a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42ab7c]
pop edi
pop esi
pop ebx
leave
ret