joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4110ed
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x414020
call fcn.0041249c
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, 1
mov esi, ecx
mov byte [ebp - 0xd], bl
je 0x411142
cmp edi, 2
je 0x411142
cmp edi, 4
je 0x411142
cmp edi, 0x100
je 0x411142
cmp edi, 8
je 0x411142
cmp edi, 0x10
je 0x411142
push 0x41a614
push str._wType__0x0001____wType__0x0002____wType__0x0004____wType__0x0100____wType__0x0008____wType__0x0010_
push 0x41a448
push str.Y:_silib_slib_src_seventlog.cpp
call fcn.004054c0
add esp, 0x10
push ecx
push ecx
fldz
fstp qword [esp]
call fcn.004115f0
pop ecx
test al, al
pop ecx
je 0x411188
mov esi, dword [esi + 0x118]
cmp esi, ebx
je 0x41122f
push dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x18]
push 1
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
setne byte [ebp - 0xd]
jmp 0x41122f
mov eax, 0x41a630
mov dword [ebp + 0x18], eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 0x18]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00405e15
movzx eax, word [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405f03
add esp, 0x10
lea ecx, [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00403b3f
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.004112cd
push dword [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.00404bf6
mov ecx, esp
mov dword [ebp + 0x14], esp
mov dword [ebp + 0x10], ebx
mov dword [ecx], ebx
push dword [ebp + 0x1c]
call fcn.00403e21
mov ecx, esi
call fcn.00411589
push dword [ebp + 0x1c]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 1
call fcn.00404bf6
push dword [ebp + 8]
mov dword [ebp + 0x1c], ebx
mov byte [ebp - 4], bl
call fcn.00404bf6
push dword [ebp + 0x18]
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], ebx
call fcn.00404bf6
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18
Function at 0x4116cd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x41a630
xor ebx, ebx
call fcn.00403e21
lea eax, [ebp - 0x14c]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x411727
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x14c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x411727
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x41172b
xor al, al
jmp 0x4117a9
push esi
push edi
lea eax, [ebp - 0x14c]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4117a0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4117a0
cmp dword [ebp - 0x14], ebx
je 0x4117a0
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x48]
push str.StringFileInfo_04x_04xResourceVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4117a0
cmp dword [ebp - 4], ebx
je 0x4117a0
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
call fcn.00404084
mov bl, 1
push esi
call fcn.004121ae
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5e3a7d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e3a98
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124a8cbd]
pop edx
test eax, eax
je 0x5e3b6a
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e3b59
test dword [ebp - 0x2a8], 1
jne 0x5e3b59
and dword [ebp - 0x2a8], 0x100
jne 0x5e3b59
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2a11]
pop edx
pop esi
test eax, eax
je 0x5e3afc
jmp 0x5e3b59
cmp word [esi], 0x5a4d
jne 0x5e3b59
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e3b59
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2bfd]
pop edx
test eax, eax
je 0x5e3b59
lea eax, [ebp - 0x28c]
push eax
call fcn.005e39d9
test eax, eax
jne 0x5e3b52
jmp 0x5e3b59
mov eax, esi
jmp 0x5e3b6a
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e3a98
pop esi
leave
ret 4
Function at 0x402e93
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
and byte [esi + 4], 0
mov edi, eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x402ed5
cmp eax, 0xb7
jne 0x402eda
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
inc al
mov byte [esi + 4], al
jmp 0x402ede
cmp eax, 0x78
jne 0x402ede
mov byte [esi + 4], 1
mov eax, esi
pop edi
pop esi
ret 4

Function at 0x4034bb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [0x41a078]
mov dword [ebp - 4], esi
call fcn.0040a6f5
cmp ax, 0x500
jb 0x4034f0
mov ecx, dword [0x41a078]
call fcn.0041159a
test al, al
je 0x4034f0
mov byte [ebp - 5], 1
jmp 0x4034f4
and byte [ebp - 5], 0
mov eax, dword [0x41a098]
push ebx
mov dword [ebp - 0xc], eax
inc dword [eax]
cmp byte [ebp - 5], 0
je 0x403532
push 0x42b82c
lea ecx, [ebp - 0xc]
call fcn.004010ce
mov eax, dword [0x41a098]
lea ecx, [ebp - 0x14]
push 1
mov dword [ebp - 0x14], eax
inc dword [eax]
pop ebx
push ebx
push 0x178c
call fcn.0040b406
lea eax, [ebp - 0x14]
jmp 0x403551
push 1
mov dword [ebp - 0x10], eax
inc dword [eax]
push 0x178c
lea ecx, [ebp - 0x10]
call fcn.0040b406
lea ecx, [ebp - 0x10]
push 2
pop ebx
call fcn.0040b596
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 0xc
dec ecx
push ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0040c1c4
test bl, 2
je 0x403574
lea ecx, [ebp - 0x10]
and ebx, 0xfffffffd
call fcn.0040c13a
test bl, 1
pop ebx
je 0x403582
lea ecx, [ebp - 0x14]
call fcn.0040c13a
cmp byte [ebp - 5], 0
je 0x40358f
push 0x42bbcc
jmp 0x403594
push 0x42bbc8
lea ecx, [ebp - 0xc]
call fcn.004017c3
lea ecx, [ebp - 0xc]
push edi
call fcn.004017c3
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push esi
push esi
push 0x20
push esi
push esi
add eax, 0xc
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4035e0
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
lea ecx, [ebp - 0xc]
call fcn.0040c13a
pop edi
pop esi
leave
ret
Function at 0x404fe6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
mov ebx, ecx
mov edi, eax
sub ebx, eax
neg edi
add ebx, edx
mov edx, dword [ebp + 8]
and edi, 3
mov dword [ebp - 8], eax
add edx, edi
cmp edx, ebx
jbe 0x40505a
test ecx, ecx
je 0x40504d
lea eax, [ebp - 0x2c]
mov ebx, 0x1000
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ebp - 0x28]
mov ecx, dword [esi + 8]
push 4
push ebx
inc eax
imul eax, dword [ebp - 0x28]
add eax, ecx
push eax
mov dword [ebp - 4], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x405051
xor eax, eax
jmp 0x405063
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
lea ecx, [eax + edi]
add ecx, dword [ebp + 8]
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4053b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
dec eax
je 0x40557e
mov eax, dword [0x41a098]
add ecx, 0x1d4
mov dword [ebp - 8], eax
push ebx
inc dword [eax]
mov edx, dword [ecx]
push edi
mov edx, dword [edx + 4]
dec edx
je 0x405403
xor ebx, ebx
push ebx
push ecx
lea ecx, [ebp - 8]
call fcn.0040c287
mov ecx, eax
call fcn.0040b50d
mov ecx, eax
call fcn.0040b4ae
jmp 0x40542d
push 1
mov dword [ebp + 8], eax
inc dword [eax]
push 0x178b
lea ecx, [ebp + 8]
call fcn.0040b406
lea eax, [ebp + 8]
lea ecx, [ebp - 8]
push eax
call fcn.0040c287
lea ecx, [ebp + 8]
call fcn.0040c13a
xor ebx, ebx
mov eax, dword [0x41a098]
mov dword [ebp + 8], ebx
mov dword [ebp - 4], eax
inc dword [eax]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
dec ecx
mov dword [ebp - 0x18], ecx
je 0x40552a
push 2
lea ebx, [eax + 0xc]
lea edi, [eax + 0xe]
pop esi
mov ax, word [ebx]
cmp ax, 0x25
jne 0x405504
mov ax, word [edi]
cmp ax, 0x31
je 0x4054f0
cmp ax, 0x44
je 0x4054f0
cmp ax, 0x46
jne 0x40548b
mov eax, dword [ebp - 0xc]
inc dword [ebp + 8]
add edi, esi
add ebx, esi
add eax, 0x1d4
mov eax, dword [eax]
jmp 0x4054fa
cmp ax, 0x4e
jne 0x4054b5
mov eax, dword [ebp - 0xc]
inc dword [ebp + 8]
add eax, 0x1d4
add edi, esi
add ebx, esi
mov ecx, dword [eax]
add ecx, 0xc
call fcn.0040b72b
push eax
lea ecx, [ebp - 4]
call fcn.004017c3
jmp 0x405515
cmp ax, 0x53
jne 0x405515
mov eax, dword [ebp - 0xc]
inc dword [ebp + 8]
add edi, esi
add ebx, esi
mov ecx, dword [eax + 0x194]
call fcn.00414540
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.00412e7e
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004017c3
push dword [ebp - 0x10]
call fcn.0040b346
pop ecx
jmp 0x405515
inc dword [ebp + 8]
mov eax, dword [ebp - 8]
add edi, esi
add ebx, esi
mov ecx, dword [eax + 4]
dec ecx
add eax, 0xc
push ecx
jmp 0x40550c
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.0040c1c4
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add edi, esi
add ebx, esi
cmp eax, dword [ebp - 0x18]
jb 0x405452
xor ebx, ebx
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x68]
mov dword [ebp - 0x6c], 0x44
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 4]
push ebx
push ebx
push 0x20
push ebx
push ebx
add eax, 0xc
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop ebx
test eax, eax
je 0x40556e
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
lea ecx, [ebp - 4]
call fcn.0040c13a
lea ecx, [ebp - 8]
call fcn.0040c13a
pop esi
leave
ret 4
Function at 0x406c20
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetACP]
mov eax, dword [esi + 0x1d8]
cmp eax, 0xffffffff
jne 0x406c42
call edi
jmp 0x406c4a
push eax
mov ecx, esi
call fcn.00404707
test eax, eax
jne 0x406c50
call edi
push dword [esi + 0x1dc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040f0e0
mov eax, dword [esi + 0x1d4]
lea edi, [esi + 0x1d4]
add eax, 0xc
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040f15b
test al, al
jne 0x406cef
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str._n_nError_
mov edx, edi
lea ecx, [ebp - 4]
mov ebx, eax
call fcn.00401795
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.0040bfdc
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x20], eax
call fcn.004017c3
mov eax, dword [ebp - 4]
push 3
lea ecx, [ebp - 0x23c]
lea edi, [eax + 0xc]
call fcn.0040c476
mov esi, dword [esi + 4]
mov ebx, eax
test esi, esi
mov eax, esi
jne 0x406ccd
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0
push 0
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea ecx, [ebp - 4]
call fcn.0040c13a
lea ecx, [ebp - 0x1c]
call fcn.0040f102
xor al, al
pop ebx
jmp 0x406d42
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x130]
push eax
call fcn.00418b78
lea ecx, [ebp - 0x1c]
call fcn.0040f102
mov ecx, esi
call fcn.00405fd8
push edi
lea ecx, [esi + 0x24]
call fcn.00402d66
test al, al
je 0x406d2a
push 0x8000
push 0x40651a
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [edi]
add ecx, 0xc
call fcn.0040b784
mov dword [esi + 0x1cc], eax
mov dword [esi + 0x1d0], edx
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x406fd7
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
lea ecx, [ebp - 0x208]
call fcn.00406d46
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040a842
or dword [ebp - 0x20], 0xffffffff
and dword [ebp - 0x1c], 0
push 1
pop esi
cmp dword [ebp - 0x10], esi
jbe 0x407049
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + esi*4]
cmp word [eax], 0x2d
jne 0x407049
movzx eax, word [eax + 2]
cmp eax, 0x63
je 0x407035
cmp eax, 0x6c
jne 0x407043
mov eax, dword [ecx + esi*4]
lea ecx, [eax + 4]
call fcn.0040c2f2
mov dword [ebp - 0x20], eax
jmp 0x407043
mov eax, dword [ecx + esi*4]
lea ecx, [eax + 4]
call fcn.0040c2f2
mov dword [ebp - 0x1c], eax
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x40700b
mov eax, dword [0x41a098]
push edi
mov dword [ebp - 4], eax
inc dword [eax]
cmp esi, dword [ebp - 0x10]
jae 0x4070cd
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + esi*4]
mov ecx, edi
call fcn.00404674
lea ecx, [ebp - 4]
push eax
push edi
call fcn.0040c174
lea ecx, [ebp - 4]
call fcn.004062c5
test al, al
jne 0x4070cd
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x10]
jae 0x4070b9
lea eax, [ebp - 8]
push 1
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0x20
call fcn.0040c1c4
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [eax + edi*4]
call fcn.004017c3
lea ecx, [ebp - 4]
call fcn.004062c5
test al, al
jne 0x4070b6
inc edi
jmp 0x40707f
cmp edi, dword [ebp - 0x10]
jne 0x4070cb
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [eax + esi*4]
call fcn.004010ce
jmp 0x4070cd
mov esi, edi
inc esi
pop edi
cmp esi, dword [ebp - 0x10]
jae 0x407129
mov eax, dword [0x41a098]
mov dword [ebp - 8], eax
inc dword [eax]
cmp esi, dword [ebp - 0x10]
jae 0x407116
lea eax, [ebp - 0x24]
push 1
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 0x24], 0x22
call fcn.0040c1c4
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push dword [eax + esi*4]
call fcn.004017c3
lea ecx, [ebp - 8]
push 0x42bbcc
call fcn.004017c3
inc esi
jmp 0x4070de
mov eax, dword [ebp - 8]
lea ecx, [eax + 0xc]
call fcn.004034bb
lea ecx, [ebp - 8]
call fcn.0040c13a
push dword [ebp - 0x20]
lea eax, [ebp - 4]
lea ecx, [ebp - 0x208]
push dword [ebp - 0x1c]
push eax
call fcn.00406f01
test al, al
pop esi
jne 0x407163
lea ecx, [ebp - 4]
call fcn.0040c13a
lea ecx, [ebp - 0x18]
call fcn.004071e5
lea ecx, [ebp - 0x208]
call fcn.00407207
or eax, 0xffffffff
leave
ret
mov ecx, 0x41a080
call fcn.00407197
lea ecx, [ebp - 4]
call fcn.0040c13a
lea ecx, [ebp - 0x18]
call fcn.004071e5
lea ecx, [ebp - 0x208]
call fcn.0041112a
lea ecx, [ebp - 0x208]
call fcn.00407207
xor eax, eax
leave
ret
Function at 0x407197
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
lea eax, [ebp - 0x24]
push esi
mov esi, ecx
push eax
mov dword [ebp - 0x20], 0x1000
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 8]
mov ebx, dword [ebp - 0x20]
cmp eax, ebx
jbe 0x4071e1
mov ecx, dword [esi + 0xc]
cmp ecx, eax
jb 0x4071c5
mov eax, ecx
push edi
mov edi, dword [esi]
sub eax, ebx
push 0x4000
push eax
lea eax, [edi + ebx]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407aad
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
and word [ebp - 0x260], 0
push ebx
push esi
lea eax, [ebp - 0x260]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp + 0x10]
lea ebx, [esi + 4]
push ebx
lea edx, [ebp - 0x468]
call fcn.00407c0c
and dword [ebp - 0x58], 0
push 0x15
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov ecx, dword [0x41a078]
call fcn.0040a6f5
cmp ax, 0x500
mov ecx, dword [0x41a078]
sbb eax, eax
and al, 0xf4
add eax, 0x58
cmp byte [esi + 0x211], 0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x468]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x104
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0x407ca6
mov dword [ebp - 0x24], 0x803064
jne 0x407b66
call fcn.0040a725
test al, al
je 0x407b66
or byte [ebp - 0x22], 8
mov dword [ebp - 0x10], 0x69
jmp 0x407b6d
mov dword [ebp - 0x10], 0x600
and byte [esi + 0x210], 0
mov dword [0x41a070], esi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call esi
lea eax, [ebp - 0x58]
push eax
call sub.comdlg32.dll_GetOpenFileNameW
mov edi, eax
test edi, edi
jne 0x407bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x41a070]
cmp byte [edx + 0x210], 0
lea ecx, [edx + 0x210]
jne 0x407bc5
test byte [ebp - 0x22], 8
je 0x407bc5
and byte [ebp - 0x22], 0xf7
mov dword [ebp - 0x10], 0x600
and byte [ecx], 0
push edi
jmp 0x407b82
test eax, eax
je 0x407bf3
cmp eax, 0x12
je 0x407bf3
cmp eax, 0x57
je 0x407bf3
cmp eax, 0x583
je 0x407bf3
movzx eax, byte [edx + 0x210]
push eax
lea eax, [ebp + 0x13]
push 0x42ce88
push eax
call fcn.0041110e
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0xc
Function at 0x407db8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
and word [ebp - 0x260], 0
push ebx
push esi
lea eax, [ebp - 0x260]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp + 0x10]
lea ebx, [esi + 4]
push ebx
lea edx, [ebp - 0x468]
call fcn.00407c0c
and dword [ebp - 0x58], 0
push 0x15
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov ecx, dword [0x41a078]
call fcn.0040a6f5
cmp ax, 0x500
mov ecx, dword [0x41a078]
sbb eax, eax
mov edi, str.Save_File_As
and al, 0xf4
add eax, 0x58
cmp byte [esi + 0x215], 0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x468]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x104
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0x407f23
mov dword [ebp - 0x24], 0x800866
mov ebx, 0x600
jne 0x407e7b
call fcn.0040a725
test al, al
je 0x407e7b
or byte [ebp - 0x22], 8
mov dword [ebp - 0x10], 0x6a
jmp 0x407e81
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], ebx
and byte [esi + 0x214], 0
mov dword [0x41a06c], esi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call esi
lea eax, [ebp - 0x58]
push eax
call sub.comdlg32.dll_GetSaveFileNameW
test eax, eax
mov dword [ebp + 8], eax
jne 0x407f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x41a06c]
cmp byte [edx + 0x214], 0
lea ecx, [edx + 0x214]
jne 0x407eda
test byte [ebp - 0x22], 8
je 0x407eda
and byte [ebp - 0x22], 0xf7
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], ebx
and byte [ecx], 0
push 0
jmp 0x407e96
test eax, eax
je 0x407f08
cmp eax, 0x12
je 0x407f08
cmp eax, 0x57
je 0x407f08
cmp eax, 0x583
je 0x407f08
movzx eax, byte [edx + 0x214]
push eax
lea eax, [ebp + 0x13]
push str.SaveFileDlg::DoModal_FAILED_end__dlgEverOpened__d
push eax
call fcn.0041110e
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
setne al
leave
ret 0xc

Function at 0x40a483
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40a4a9
cmp eax, 0xffffffff
je 0x40a4a9
test byte [esi + 0xc], 4
je 0x40a4a4
call fcn.0040a4bf
push dword [esi + 0x14]
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40a4b3
push eax
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a793
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x20], 0x1000
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
push 4
push 0x2000
push eax
push 0
mov dword [esi + 0xc], eax
call edi
push 4
push 0x1000
push dword [esi + 8]
mov dword [esi], eax
push eax
call edi
test eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
jne 0x40a7e7
and dword [esi + 8], eax
pop edi
pop esi
leave
ret 4

Function at 0x40ada5
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x41a078]
mov esi, edi
call fcn.0041159a
test al, al
je 0x40adc4
mov ecx, edi
call fcn.0040acb1
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp esi, edi
mov ebx, eax
je 0x40add8
push esi
call fcn.0040b346
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x40adde
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040af03
mov edi, dword [ebp + 8]
mov ecx, dword [0x41a078]
mov dword [ebp - 4], edi
call fcn.0041159a
test al, al
je 0x40ae0c
mov ecx, edi
call fcn.0040acb1
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 0xc], bl
push ebx
push 0x8000080
setne al
add eax, 3
push eax
push ebx
push 3
push 0x80000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x40ae42
push eax
call fcn.0040b346
pop ecx
cmp edi, 0xffffffff
mov dword [esi], edi
je 0x40aeff
lea eax, [ebp - 8]
mov dword [ebp + 0xc], ebx
push eax
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], ebx
lea edi, [esi + 8]
mov dword [edi], eax
jne 0x40ae6f
cmp eax, 0x80000000
jb 0x40aea6
mov ecx, dword [ebp + 8]
push ebx
push 0x2002
call fcn.0040b72b
push eax
push str.File_is_too_large_to_be_loaded__nRetry_loading_the_1st_64KB_only__nBE_CAREFUL_NOT_TO_ERASE_THE_FILE____
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxExW]
cmp eax, 4
jne 0x40aea1
mov eax, 0x10000
mov dword [ebp + 0xc], eax
mov dword [edi], eax
jmp 0x40aea6
cmp eax, 3
je 0x40aeff
cmp dword [edi], ebx
jne 0x40aeb6
mov dword [esi + 0xc], edi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40aed5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40aefc
push dword [ebp + 0xc]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x40aead
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi]
mov dword [esi + 4], ebx
call edi
or dword [esi], 0xffffffff
xor al, al
jmp 0x40aeaf