joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d839
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51481c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004577c9
and dword [ebp - 0x14], 0
cmp dword [0x51657c], 0
mov dword [ebp - 0x18], eax
jne 0x45d8ec
push 0x402ab0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45d994
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402aa4
push ebx
call edi
test eax, eax
je 0x45d994
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402a94
push ebx
mov dword [0x51657c], eax
call edi
push eax
call esi
push 0x402a80
push ebx
mov dword [0x516580], eax
call edi
push eax
call esi
push 0x402a64
push ebx
mov dword [0x516584], eax
call edi
push eax
call esi
mov dword [0x51658c], eax
test eax, eax
je 0x45d8ec
push 0x402a4c
push ebx
call edi
push eax
call esi
mov dword [0x516588], eax
mov eax, dword [0x516588]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45d945
cmp dword [0x51658c], ecx
je 0x45d945
push eax
call esi
push dword [0x51658c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45d945
test ebx, ebx
je 0x45d945
call edi
test eax, eax
je 0x45d93c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45d93c
test byte [ebp - 8], 1
jne 0x45d945
or dword [ebp + 0x10], 0x200000
jmp 0x45d978
mov eax, dword [0x516580]
cmp eax, dword [ebp - 0x18]
je 0x45d978
push eax
call esi
test eax, eax
je 0x45d978
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45d978
mov eax, dword [0x516584]
cmp eax, dword [ebp - 0x18]
je 0x45d978
push eax
call esi
test eax, eax
je 0x45d978
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x51657c]
call esi
test eax, eax
je 0x45d994
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45d996
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004546bb
leave
ret
Function at 0x463420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x51481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x513f20
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004497b0
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x4634f6
mov edi, dword [ebp + 8]
cmp ebx, 2
jge 0x4634f6
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test ebx, ebx
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4634ed
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test edi, edi
jne 0x4634b9
lea eax, [edi + 0xd]
jmp 0x4634d9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x4019a4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x4634ed
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc ebx
jmp 0x463472
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463550
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464eeb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x51481c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
call fcn.00430e90
add esp, 0xc
cmp eax, edi
je 0x4636f8
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x4636f8
lea ecx, [ebp - 0x230]
push 0x4019d8
push ecx
call fcn.00431e20
add esp, 8
push 0x4019c8
push 0x4019b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4636f8
push esi
call eax
cmp eax, edi
je 0x46367d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46367d
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - reloc.ntdll.dll_RtlUnwind], dx
call fcn.00454bd0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4636f8
lea edx, [ebp - 0x21c]
push edx
push edi
push edi
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4636f8
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4636f8
push 0x4019a8
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], edi
call fcn.004567f8
add esp, 0xc
test eax, eax
jne 0x4636f8
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x4636f8
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
push 1
push eax
call fcn.004566c0
mov edx, dword [ebp - 0x220]
push edx
call fcn.0045650d
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.0045631e
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
cmp esi, eax
push ecx
sete bl
call fcn.00456116
add esp, 0x1c
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x463723
push eax
call fcn.00454a31
add esp, 4
jmp 0x463723
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004546bb
mov esp, ebp
pop ebp
ret
Function at 0x4638b0
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464f68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x463a97
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4638f3
sub eax, edx
sar eax, 1
je 0x463a97
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463a97
push 0x409
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x463a89
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x463a97
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x463a97
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x463a97
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00430e90
add esp, 0xc
cmp eax, ebx
je 0x463a70
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
je 0x463a70
mov edi, dword [ebp + 8]
push 0x4019a8
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.004567f8
add esp, 0xc
test eax, eax
jne 0x463a70
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x463a70
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push ecx
sub esi, eax
push esi
push 1
push eax
call fcn.004566c0
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.00456116
add esp, 0x14
cmp esi, ebx
je 0x463a70
mov eax, dword [0x515720]
mov edx, dword [eax + 0xc]
mov ecx, 0x515720
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x6b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004292d0
cmp eax, ebx
je 0x463a68
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], ebx
je 0x463a68
push edi
lea ecx, [ebp + 8]
call fcn.00429b00
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0044f480
push esi
lea ecx, [ebp + 8]
call fcn.0044eb40
cmp eax, ebx
je 0x463a60
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x463a60
mov ecx, dword [ebp + 8]
push 1
push ebx
push ebx
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 8]
call fcn.0044dc10
lea ecx, [ebp - 0x1c]
call fcn.004264f0
lea ecx, [ebp - 0x2c]
call fcn.0042e5e0
jmp 0x463a97
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463f90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x51481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x464155
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x463fd3
sub eax, edx
sar eax, 1
je 0x464155
push esi
lea ecx, [ebp - 0x1c]
call fcn.00429b00
mov eax, dword [0x515720]
mov edx, dword [eax + 0xc]
mov ecx, 0x515720
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x515720]
mov edx, dword [eax + 0xc]
mov ecx, 0x515720
mov byte [ebp - 4], 2
call edx
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
push 0x401a40
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00450f60
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0044f810
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x24]
setne bl
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x464079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4640f2
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 1
call fcn.00427080
push 1
push 0x401a40
lea ecx, [ebp + 8]
call fcn.00427080
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x46402a
push 0x401a2c
push 0x401698
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4640da
push 0
push esi
call eax
test eax, eax
jne 0x46416a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46416a
mov dword [ebp - 0x14], 0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464132
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464155
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x46402a
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x46402a
Function at 0x40bba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x43d25c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x432f54
lea eax, [ebp - 0x204]
push 2
push eax
mov dword [0x432f50], 0
call fcn.0041e9d0
push 0x40
lea ecx, [ebp - 0x204]
push 0x432f64
push ecx
call dword [sym.imp.MSVCR100.dll__fsopen]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40bca7
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
push edi
push esi
mov edi, 1
push edi
lea edx, [ebp - 0x2d0]
push 0xc9
push edx
call ebx
add esp, 0x10
test eax, eax
je 0x40bc2f
push esi
push 1
lea eax, [ebp - 0x2d0]
push 0xc9
push eax
inc edi
call ebx
add esp, 0x10
test eax, eax
jne 0x40bc16
mov dword [0x432f50], edi
imul edi, edi, 0xc9
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
push esi
mov dword [0x44b964], eax
call dword [sym.imp.MSVCR100.dll_rewind]
mov ecx, dword [0x44b964]
push esi
push 1
push 0xc9
push ecx
call ebx
add esp, 0x18
test eax, eax
je 0x40bc91
xor edi, edi
jmp 0x40bc70
mov edx, dword [0x44b964]
push esi
push 1
add edi, 0xc9
lea eax, [edi + edx]
push 0xc9
push eax
call ebx
add esp, 0x10
test eax, eax
jne 0x40bc70
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
push 0x40bb70
call fcn.00424e03
add esp, 8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004248f0
mov esp, ebp
pop ebp
ret

Function at 0x40beb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
mov eax, dword [0x43d25c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_strncpy]
mov dword [ebp - 0x598], eax
je 0x40bee5
mov dword [0x432f7c], 1
jmp 0x40bef2
cmp dword [0x432f7c], 1
jne 0x40bf9c
push esi
push str.sysinfo.dat
lea ecx, [ebp - 0x504]
push 2
push ecx
call fcn.0041e9d0
push 0x40
lea edx, [ebp - 0x504]
push 0x432f8c
push edx
call dword [sym.imp.MSVCR100.dll__fsopen]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40bf64
lea eax, [ebp - 0x594]
push eax
push 1
push 0x90
push esi
call fcn.004200b0
push 4
lea ecx, [ebp - 0x594]
push ecx
push 0x44b968
call edi
push esi
mov byte [0x44b96c], 0
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x20
mov dword [0x432f7c], 0
jmp 0x40bf9b
push str.SV_PLANTID
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
push 4
test eax, eax
je 0x40bf8c
push eax
push 0x44b968
call edi
mov dword [0x432f7c], 0
jmp 0x40bf98
push str.0000
push 0x44b968
call edi
add esp, 0xc
pop esi
mov edx, dword [ebp - 0x598]
push 4
push 0x44b968
push edx
call edi
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
call fcn.004248f0
mov esp, ebp
pop ebp
ret
Function at 0x40c110
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [0x433288]
mov edx, dword [0x44b978]
push esi
xor eax, eax
push edi
mov edi, str.unknown_reason
cmp ecx, 0x7f
je 0x40c14a
lea ebx, [ebx]
cmp ecx, edx
je 0x40c143
mov ecx, dword [eax*8 + 0x433290]
inc eax
cmp ecx, 0x7f
jne 0x40c130
jmp 0x40c14a
mov edi, dword [eax*8 + 0x43328c]
cmp dword [0x43376c], edx
jle 0x40c166
xor esi, esi
test edx, edx
jne 0x40c15f
mov eax, str.SUCCESS
jmp 0x40c170
mov eax, str.WARNINGS
jmp 0x40c170
mov eax, str.FATAL_ERROR
mov esi, 1
cmp dword [0x44b97c], 0
jne 0x40c17e
cmp esi, 1
jne 0x40c1cb
cmp edx, 0x78
jne 0x40c1a4
mov eax, dword [0x44b970]
push edx
push eax
push str._s__returning_Code__d___n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
jmp 0x40c1c5
mov ecx, dword [0x44b970]
push edi
push eax
push ecx
push str._s_Exiting_with__s____s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x14
mov edx, dword [0x44b978]
cmp dword [0x44b980], 1
jne 0x40c1d6
mov esi, edx
call dword [sym.imp.ESC.SV.ISAMFacade.Interface.dll__ClearSqlConnectionPools_0]
push esi
call dword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x412d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43d25c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.maxmin.dat
lea eax, [ebp - 0x20c]
push 2
push eax
call fcn.0041e9d0
push 0x40
lea ecx, [ebp - 0x20c]
push 0x4353f0
push ecx
call dword [sym.imp.MSVCR100.dll__fsopen]
mov esi, eax
add esp, 0x18
mov dword [ebp - 0x210], esi
test esi, esi
je 0x412efd
push edi
push 0xa8
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x412ece
push ebx
push esi
push 1
lea edx, [edi + 8]
push 0x73
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x412ede
push 2
lea eax, [edi + 0x1a]
push 0x4353f4
push eax
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x412ec5
lea eax, [edi + 0x21]
push 6
push eax
call fcn.0041cbd0
add esp, 8
test eax, eax
jne 0x412ec5
push 2
lea ecx, [edi + 0x27]
mov eax, 0x20202020
push ecx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
call dword [sym.imp.MSVCR100.dll_strncpy]
lea esi, [edi + 0x7c]
push esi
lea ebx, [esi + 0xc]
push ebx
lea eax, [esi + 0xa]
push eax
lea eax, [edi + 0x21]
push 0x435418
push eax
call dword [sym.imp.MSVCR100.dll_sscanf]
movsx eax, word [esi]
push eax
call fcn.0041ce30
movsx ecx, word [ebx]
movsx edx, word [esi + 0xa]
mov word [esi], ax
push ecx
cwde
push edx
push eax
call fcn.0041cdc0
lea ecx, [esi + 8]
push ecx
lea edx, [esi + 6]
mov word [esi + 2], ax
push edx
add esi, 4
push esi
lea eax, [ebp - 0xc]
push 0x435428
push eax
call dword [sym.imp.MSVCR100.dll_sscanf]
add esp, 0x44
lea esi, [edi + 0x41]
push 6
push esi
call fcn.0041cbd0
add esp, 8
mov dword [edi + 0xa0], eax
test eax, eax
jne 0x412e99
push 2
lea ecx, [edi + 0x47]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_strncpy]
lea eax, [ebp - 0xc]
push eax
lea ecx, [edi + 0x8a]
push esi
push ecx
call fcn.004123d0
add esp, 0x18
lea edx, [edi + 0x29]
push edx
call dword [sym.imp.MSVCR100.dll_atof]
fstp qword [edi + 0x98]
push edi
call fcn.00412230
push 0xa8
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, dword [ebp - 0x210]
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x412d98
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004248f0
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x412ecd
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004248f0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push str.MPDC__s_could_not_be_opened_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
push 0x14
call fcn.0040c090
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.004248f0
mov esp, ebp
pop ebp
ret
Function at 0x413650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x43d25c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4529a0], 0
je 0x41367c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004248f0
mov esp, ebp
pop ebp
ret
push esi
push 0x4356d4
lea eax, [ebp - 0x204]
push 2
push eax
call fcn.0041e9d0
push 0x40
lea ecx, [ebp - 0x204]
push 0x4356e0
push ecx
call dword [sym.imp.MSVCR100.dll__fsopen]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4136cb
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xfffffffc
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004248f0
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fread]
push esi
mov ebx, 1
push ebx
lea edx, [ebp - 0x2f0]
push 0xec
push edx
call edi
add esp, 0x10
test eax, eax
je 0x413709
nop
push esi
push 1
lea eax, [ebp - 0x2f0]
push 0xec
push eax
inc ebx
call edi
add esp, 0x10
test eax, eax
jne 0x4136f0
mov dword [0x4356d0], ebx
imul ebx, ebx, 0xec
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [0x4529a0], eax
test eax, eax
jne 0x413748
call dword [sym.imp.MSVCR100.dll__errno]
pop edi
pop ebx
mov dword [eax], 0xfffffffc
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004248f0
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCR100.dll_rewind]
mov ecx, dword [0x4529a0]
push esi
push 1
push 0xec
push ecx
call edi
add esp, 0x14
test eax, eax
je 0x413791
xor ebx, ebx
lea esp, [esp]
mov edx, dword [0x4529a0]
push esi
push 1
add ebx, 0xec
lea eax, [ebx + edx]
push 0xec
push eax
call edi
add esp, 0x10
test eax, eax
jne 0x413770
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
push 0x413620
call fcn.00424e03
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004248f0
mov esp, ebp
pop ebp
ret
Function at 0x41c6c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x43d25c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5519b8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
jne 0x41c804
mov ebx, dword [sym.imp.MSVCR100.dll_getenv]
push 0x43c324
call ebx
add esp, 4
test eax, eax
je 0x41c7f1
lea edx, [ebp - 0x10c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41c706
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
push str.cem.rc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x88]
push 0x43c334
push ecx
call edi
lea edx, [ebp - 0x88]
push 1
push edx
call fcn.0041c5b0
push 0x43c33c
call ebx
add esp, 0x1c
test eax, eax
je 0x41c773
push eax
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x88]
push str._s__s.rc
push ecx
call edi
lea edx, [ebp - 0x88]
push 1
push edx
call fcn.0041c5b0
add esp, 0x18
push str.esc.rc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x88]
push 0x43c35c
push ecx
call edi
lea edx, [ebp - 0x88]
push 0
push edx
call fcn.0041c5b0
mov eax, dword [0x5519b8]
add esp, 0x18
mov ecx, eax
mov dword [0x5519b0], ecx
test eax, eax
je 0x41c7c2
nop
cmp dword [ecx], 0
jne 0x41c7bc
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x41c7b0
mov dword [0x5519b0], ecx
mov bl, byte [esi]
test bl, bl
jne 0x41c853
test ecx, ecx
jne 0x41c80c
mov dword [0x5519b0], eax
test eax, eax
je 0x41c7f1
lea esp, [esp]
cmp dword [eax], 0
jne 0x41c7ec
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x41c7e0
mov dword [0x5519b0], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004248f0
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5519b0]
jmp 0x41c7c2
mov edx, dword [ecx + 4]
nop
mov al, byte [edx]
mov byte [esi], al
inc edx
inc esi
test al, al
jne 0x41c810
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [0x5519b0], ecx
test ecx, ecx
je 0x41c7f3
lea ebx, [ebx]
cmp dword [ecx], 0
jne 0x41c83c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x41c830
pop edi
pop esi
mov dword [0x5519b0], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004248f0
mov esp, ebp
pop ebp
ret
mov edi, eax
test eax, eax
je 0x41c7f1
lea esp, [esp]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41c899
cmp bl, byte [ecx]
jne 0x41c899
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41c890
test dl, dl
je 0x41c88c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41c890
add eax, 2
add ecx, 2
test dl, dl
jne 0x41c870
xor eax, eax
jmp 0x41c895
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c8b3
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x41c860
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004248f0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004248f0
mov esp, ebp
pop ebp
ret