joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405420
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
push 0x41cf38
push eax
call fcn.00408608
add esp, 8
test eax, eax
jne 0x40544f
push str.GetFunctionName___Function_string_has_not_been_defined_n
mov ecx, esi
call sub.KERNEL32.dll_OutputDebugStringA
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esp + 0xc]
push edi
call fcn.00402cb0
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x405df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00405d60
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00402800
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x405e82
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407a56
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.00407d40
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407af1
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 [0x426a2c]
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 0x407af1
cmp eax, 1
je 0x407b12
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 0x407af1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407abe
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407aed
xor eax, eax
inc eax
jmp 0x407b31
cmp edi, eax
jae 0x407af5
xor eax, eax
jmp 0x407b31
cmp eax, esi
jae 0x407afc
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 [0x426a2c]
jmp 0x407b15
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 0x408876
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41e360
call fcn.0040a4f8
mov edi, 0x94
mov eax, edi
call fcn.00407d40
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 [0x426a2c], ecx
mov eax, dword [esi + 4]
mov dword [0x426a38], eax
mov edx, dword [esi + 8]
mov dword [0x426a3c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x426a30], esi
cmp ecx, 2
je 0x4088d6
or esi, 0x8000
mov dword [0x426a30], esi
shl eax, 8
add eax, edx
mov dword [0x426a34], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x408911
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408911
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x408929
cmp eax, 0x20b
je 0x408916
mov dword [ebp - 0x1c], esi
jmp 0x40893d
cmp dword [ecx + 0x84], 0xe
jbe 0x408911
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x408937
cmp dword [ecx + 0x74], 0xe
jbe 0x408911
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040b10b
pop ecx
test eax, eax
jne 0x408951
push 0x1c
call fcn.00408852
pop ecx
call fcn.0040c94b
test eax, eax
jne 0x408962
push 0x10
call fcn.00408852
pop ecx
call fcn.0040d82c
mov dword [ebp - 4], esi
call fcn.0040d62e
test eax, eax
jge 0x40897b
push 0x1b
call fcn.0040882d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4282c0], eax
call fcn.0040d50c
mov dword [0x426a0c], eax
call fcn.0040d46a
test eax, eax
jge 0x4089a1
push 8
call fcn.0040882d
pop ecx
call fcn.0040d237
test eax, eax
jge 0x4089b2
push 9
call fcn.0040882d
pop ecx
push 1
call fcn.0040ae00
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4089c8
push eax
call fcn.0040882d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040d1da
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4089e9
movzx eax, word [ebp - 0x40]
jmp 0x4089ec
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401ec0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x408a0a
push edi
call fcn.0040af2d
call fcn.0040af4f
jmp 0x408a3c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040a533
ret
Function at 0x40ae6a
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41e588
call fcn.0040a4f8
push 8
call fcn.0040b0c0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x426a6c], esi
jne 0x40ae9e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x426a68], esi
mov al, byte [ebp + 0x10]
mov byte [0x426a64], al
cmp dword [ebp + 0xc], edi
jne 0x40aee8
cmp dword [0x42808c], edi
je 0x40aed8
mov eax, dword [0x428088]
sub eax, 4
mov dword [0x428088], eax
cmp eax, dword [0x42808c]
jb 0x40aed8
mov eax, dword [eax]
cmp eax, edi
je 0x40aeb9
call eax
jmp 0x40aeb9
push 0x423078
mov eax, 0x423070
call fcn.0040ade8
pop ecx
push 0x423084
mov eax, 0x42307c
call fcn.0040ade8
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40af19
cmp dword [ebp + 0x10], edi
jne 0x40af27
mov dword [0x426a6c], esi
push dword [ebp + 8]
call fcn.0040ada6
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40af26
push 8
call fcn.0040b00b
pop ecx
ret
call fcn.0040a533
ret
Function at 0x40bc9a
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 0x40bcc8
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 0x40bccf
cmp ebx, dword [eax + 4]
jae 0x40bccf
xor eax, eax
jmp 0x40bebf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40bce0
xor eax, eax
inc eax
jmp 0x40bebe
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40bcf6
cmp ecx, edx
jae 0x40be3b
cmp dword [eax + 4], 0
je 0x40bcff
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40bce7
cmp dword [ebp + 8], 0
je 0x40bd21
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40be3b
cmp eax, esi
jae 0x40be3b
mov eax, dword [0x426bc8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40bd46
cmp dword [esi*4 + 0x426bd0], edi
je 0x40be3f
inc esi
cmp esi, eax
jl 0x40bd34
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bebb
cmp dword [ebp - 8], 0x1000000
jne 0x40bebb
test byte [ebp - 0xc], 0xcc
je 0x40bdc4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40bebb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40bebb
cmp word [eax + 0x18], 0x10b
jne 0x40bebb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40bebb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40bdc4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40bdc4
test byte [ecx + 0x27], 0x80
jne 0x40be3b
push 1
push 0x426c10
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40bcd8
mov ecx, dword [0x426bc8]
test ecx, ecx
mov edx, ecx
jle 0x40bdf8
lea eax, [ecx*4 + 0x426bcc]
cmp dword [eax], edi
je 0x40bdf8
dec edx
sub eax, 4
test edx, edx
jg 0x40bdec
test edx, edx
jne 0x40be29
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40be05
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40be1d
lea eax, [edx*4 + 0x426bd0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40be0b
cmp ecx, 0x10
jge 0x40be29
inc ecx
mov dword [0x426bc8], ecx
push 0
push 0x426c10
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40bcd8
xor eax, eax
jmp 0x40bebe
test esi, esi
jle 0x40bcd8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x426c10
call ebx
test eax, eax
jne 0x40bcd8
cmp dword [esi*4 + 0x426bd0], edi
je 0x40be95
mov eax, dword [0x426bc8]
lea esi, [eax - 1]
test esi, esi
jl 0x40be83
cmp dword [esi*4 + 0x426bd0], edi
je 0x40be7f
dec esi
jns 0x40be73
test esi, esi
jge 0x40be93
cmp eax, 0x10
jge 0x40be8e
inc eax
mov dword [0x426bc8], eax
lea esi, [eax - 1]
jmp 0x40be95
je 0x40bead
xor ecx, ecx
test esi, esi
jl 0x40bead
lea eax, [ecx*4 + 0x426bd0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40be9b
push 0
push 0x426c10
call ebx
jmp 0x40bcd8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cec6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x423b80]
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 + 0x4240e8]
je 0x40cefb
inc eax
cmp eax, 0x13
jb 0x40ceec
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4240e8]
jne 0x40d021
mov eax, dword [0x426a14]
cmp eax, 1
je 0x40cff9
cmp eax, edx
jne 0x40cf2b
cmp dword [0x423a40], 1
je 0x40cff9
cmp ecx, 0xfc
je 0x40d021
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 0x40cf61
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040e2d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00409e10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40cf95
mov eax, edi
push eax
call fcn.00409e10
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ebd8
push edi
call fcn.00407dc0
add esp, 0x10
push edi
call fcn.00409e10
push dword [esi + 0x4240ec]
mov ebx, eax
call fcn.00409e10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407d40
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040e2d0
push edi
push ebx
call fcn.0040e2e0
push 0x41ebb8
push ebx
call fcn.0040e2e0
push dword [esi + 0x4240ec]
push ebx
call fcn.0040e2e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00410100
add esp, 0x2c
jmp 0x40d021
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4240ec]
push dword [esi]
call fcn.00409e10
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.00409dfe
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x410100
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x426ea8], ebx
push esi
push edi
jne 0x410180
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4101bb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f524
push edi
call esi
test eax, eax
mov dword [0x426ea8], eax
je 0x4101bb
push str.GetActiveWindow
push edi
call esi
push 0x41f500
push edi
mov dword [0x426eac], eax
call esi
cmp dword [0x426a2c], 2
mov dword [0x426eb0], eax
jne 0x410180
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x426eb8], eax
je 0x410180
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x426eb4], eax
mov eax, dword [0x426eb4]
test eax, eax
je 0x4101c5
call eax
test eax, eax
je 0x4101ac
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x426eb8]
test eax, eax
je 0x4101ac
test byte [ebp - 8], 1
jne 0x4101c5
cmp dword [0x426a38], 4
jb 0x4101bf
or byte [ebp + 0x12], 0x20
jmp 0x4101e4
xor eax, eax
jmp 0x4101f4
or byte [ebp + 0x12], 4
jmp 0x4101e4
mov eax, dword [0x426eac]
test eax, eax
je 0x4101e4
call eax
mov ebx, eax
test ebx, ebx
je 0x4101e4
mov eax, dword [0x426eb0]
test eax, eax
je 0x4101e4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x426ea8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41035c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x423b80]
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 0x41038d
xor eax, eax
jmp 0x410516
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 + 0x427f60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4103c9
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004115b1
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4104a4
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4104e2
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 0x41042d
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41041e
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 0x4103fe
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 0x41046d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x410476
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4103ef
jmp 0x410478
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x410511
cmp dword [ebp - 0x6c], edi
je 0x4104e2
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4104d7
call fcn.0040a150
mov dword [eax], 9
call fcn.0040a159
mov dword [eax], esi
jmp 0x41050c
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 0x4104cc
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x410478
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x410478
push dword [ebp - 0x6c]
call fcn.0040a162
pop ecx
jmp 0x41050c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4104fa
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4104fa
xor eax, eax
jmp 0x410514
call fcn.0040a150
mov dword [eax], 0x1c
call fcn.0040a159
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x410514
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00409dfe
add ebp, 0x3a0
leave
ret
Function at 0x412798
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4127b1
or eax, 0xffffffff
jmp 0x412812
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41280e
push 0x3d
push esi
call fcn.00409ebb
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41280e
cmp esi, eax
je 0x41280e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x426a4c]
sete cl
cmp eax, dword [0x426a50]
mov dword [ebp - 8], ecx
jne 0x4127f4
mov edi, eax
call fcn.00412737
mov dword [0x426a4c], eax
cmp eax, ebx
jne 0x41284d
cmp dword [ebp + 0xc], ebx
je 0x412816
cmp dword [0x426a54], ebx
je 0x412816
call fcn.00411886
test eax, eax
je 0x41284d
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41281f
xor eax, eax
jmp 0x412811
push 4
call fcn.004079d3
cmp eax, ebx
pop ecx
mov dword [0x426a4c], eax
je 0x41280e
mov dword [eax], ebx
cmp dword [0x426a54], ebx
jne 0x41284d
push 4
call fcn.004079d3
cmp eax, ebx
pop ecx
mov dword [0x426a54], eax
je 0x41280e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x426a4c]
call fcn.004126ea
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4128ae
cmp dword [esi], ebx
je 0x4128ae
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004079e5
cmp dword [ebp - 8], ebx
pop ecx
jne 0x412891
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4128ef
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x412888
mov eax, edi
shl eax, 2
push eax
push dword [0x426a4c]
call fcn.00409f36
cmp eax, ebx
pop ecx
pop ecx
je 0x4128ef
jmp 0x4128ea
cmp dword [ebp - 8], ebx
jne 0x41295a
cmp edi, ebx
jge 0x4128bd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x426a4c]
call fcn.00409f36
cmp eax, ebx
pop ecx
pop ecx
je 0x41280e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x426a4c], eax
cmp dword [ebp + 0xc], ebx
je 0x412944
push dword [ebp - 4]
call fcn.00409e10
inc eax
inc eax
push eax
call fcn.004079d3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x412944
push dword [ebp - 4]
push esi
call fcn.0040e2d0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41293d
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004079e5
pop ecx
cmp dword [ebp - 8], ebx
je 0x412952
push dword [ebp - 4]
call fcn.004079e5
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x412811
push dword [ebp - 4]
call fcn.004079e5
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41281b
Function at 0x414e45
Capabilities:
Get disk information

Disassembly:
mov eax, 0x41b8b2
call fcn.00409e9c
sub esp, 0x150
mov eax, dword [0x423b80]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x414e8d
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x414e91
cmp eax, esi
jb 0x414e98
xor eax, eax
jmp 0x414f6d
call fcn.0041445f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.00414e03
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x414f5d
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x414eec
xor esi, esi
jmp 0x414f60
test byte [ebp - 0x158], 2
jne 0x414efc
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x414f5d
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x414f5d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x414ee8
cmp dword [ebp - 0x154], edi
jbe 0x414ee8
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x414ee8
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401180
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00409dfe
leave
ret 8
Function at 0x415225
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0040a0f0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x41d58c]
je 0x41532c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x415295
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x41529c
cmp ebx, ebx
jne 0x41529c
xor eax, eax
jmp 0x41532f
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x4152a9
mov byte [esi + 0x20], bl
jmp 0x4152bd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040691d
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040691d
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040691d
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x415318
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x41532c
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41986a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x423b80]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x4198b9
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x4198b9
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4198c5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00409dfe
leave
ret 8