joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480b60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4e1f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c3008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
mov dword [ebp - 0x10], edi
call fcn.00403910
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00403910
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00403910
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00403910
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00403910
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00403910
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x482960
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4c3008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4829c5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4829a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4829c5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00495473
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00495473
add esp, 8
ret 4
Function at 0x482ac0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a51d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4c3008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x482b09
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x482c5b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x482c26
test eax, eax
je 0x482c26
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x482c29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x482bab
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x482b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x482bab
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x482bb9
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00403910
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x482c26
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x482b64
jmp 0x482c29
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x482c52
test edx, edx
je 0x482c4e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x482b20
mov al, 1
jmp 0x482c5d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x482c5b
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495473
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4873f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a57c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c3008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
mov edi, dword [ebp + 0xc]
push esi
push eax
call fcn.00487cb0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.0046c4e0
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x1c], 0
test eax, eax
jne 0x487474
xor bl, bl
jmp 0x487492
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48748c
cmp eax, 0x80
je 0x48748c
xor bl, bl
jmp 0x487492
mov byte [ebp - 0x14], 1
mov bl, 1
mov byte [ebp - 0x1c], bl
mov byte [ebp - 4], 2
lea eax, [ebp - 0x39]
push eax
push edi
push esi
mov byte [ebp - 0x39], 0
call fcn.00487580
test al, al
jne 0x4874c0
cmp byte [ebp - 0x39], al
je 0x4874c0
cmp dword [esi + 0x14], 8
jb 0x4874b9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
test bl, bl
je 0x4874da
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4874d6
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4874fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x487543
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487539
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x487539
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004954b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495473
mov esp, ebp
pop ebp
ret 8
Function at 0x489050
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4c3008]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4890e7
cmp dword [esp + 8], 6
jb 0x4890e7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00495473
add esp, 0x118
ret
Function at 0x489100
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5a70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4c3008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.wintrust.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402ee0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00470210
mov ecx, eax
call fcn.004702d0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4891b7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4891ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4891ad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004954b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xb
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
push str.crypt32.dll
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00402ee0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00470210
mov ecx, eax
call fcn.004702d0
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x48924e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489241
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x489241
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004954b4
mov eax, dword [ebp - 0x10]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
test edi, edi
je 0x4892e0
test eax, eax
je 0x4892e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [ebx + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push edi
mov dword [ebx + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebx + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [ebx + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebx + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebx + 0x1c], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [ebx + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], eax
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 0x4936e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4936eb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00493700
Function at 0x495170
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fab8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c3008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x2c]
mov dword [esi], 0
push eax
push fcn.0045be70
push 6
mov byte [esi + 4], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x4952a5
cmp dword [ebp - 0x2c], 0
je 0x4952a5
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x28]
push str.9CDB4DA2_ACEA_446E_AA3A_D25628140939__d__p
push eax
call fcn.004662a0
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x495264
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x495295
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49528b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x49528b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x495277
mov byte [esi + 4], 1
jmp 0x49522b
push dword [esi]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
jmp 0x49522b
push edx
push ecx
call fcn.004954b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495473
mov esp, ebp
pop ebp
ret
Function at 0x40566a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4056a4
mov ecx, dword [ebp + 8]
push esi
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
movzx esi, byte [ecx]
and eax, 0xff
xor eax, esi
mov esi, dword [0x41630c]
inc ecx
mov eax, dword [esi + eax*4]
mov esi, dword [ebp + 0x10]
shr esi, 8
xor esi, eax
dec edx
mov dword [ebp + 0x10], esi
jne 0x40567e
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x40598e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [0x41314c]
mov ebx, eax
push ebx
call fcn.004081df
mov esi, eax
pop ecx
test esi, esi
je 0x4059dc
xor edx, edx
test ebx, ebx
jbe 0x4059dc
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x4059c6
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4017e2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x439edc]
xor eax, ebp
mov dword [ebp + 0x88], eax
and dword [ebp - 0x80], 0
push ebx
push esi
mov esi, dword [ebp + 0x98]
mov ebx, ecx
mov edx, dword [ebx]
push edi
mov edi, dword [ebp + 0x94]
mov dword [ebp - 0x7c], edi
test edx, edx
je 0x4018ee
call fcn.00401052
test eax, eax
je 0x4018ee
xor eax, eax
cmp byte [ebp + 0x9c], al
push 0x40
setne al
pop ecx
lea edi, [ebp - 0x78]
lea eax, [eax + eax - 1]
mov dword [ebp - 0x80], eax
xor eax, eax
cmp byte [ebp + 0xa0], al
sete al
dec eax
rep stosd dword es:[edi], eax
jmp 0x40186e
cmp byte [ebp + 0xa0], 0
je 0x401861
xor ecx, ecx
jmp 0x401866
mov ecx, 0xff
movsx eax, al
mov byte [ebp + eax - 0x78], cl
inc esi
mov al, byte [esi]
test al, al
jne 0x401854
cmp byte [ebp + 0x9c], 0
mov eax, dword [ebx + 4]
lea esi, [edx + eax*2 + 0xc]
mov eax, dword [edx + 4]
mov byte [ebp - 0x78], 0xff
lea ecx, [edx + eax*2 + 0xc]
je 0x401893
mov eax, esi
jmp 0x40189a
lea eax, [ecx - 2]
cmp eax, esi
jb 0x4018e6
cmp eax, ecx
jae 0x4018ca
movzx edx, word [eax]
mov edi, 0xff
cmp dx, di
jbe 0x4018b4
movzx edx, byte [ebp + 0xa0]
jmp 0x4018bc
movzx edx, dx
movzx edx, byte [ebp + edx - 0x78]
test edx, edx
jne 0x4018ca
mov edx, dword [ebp - 0x80]
lea eax, [eax + edx*2]
cmp eax, esi
jae 0x40189a
cmp byte [ebp + 0x9c], 0
je 0x4018e6
sub eax, esi
sar eax, 1
push eax
push esi
mov ecx, dword [ebp - 0x7c]
call fcn.0040173c
mov eax, dword [ebp - 0x7c]
jmp 0x4018f7
sub ecx, eax
sar ecx, 1
push ecx
push eax
jmp 0x4018d9
and dword [edi], 0
and dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a3b5
add ebp, 0x8c
leave
ret 0x10
Function at 0x401990
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x52f128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x2c], ebx
xor edi, edi
push 0x56a130
mov dword [esp + 0x64], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x36
mov byte [esp + 0x16], 0x42
mov byte [esp + 0x17], 0x4d
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x70]
push 0x56a210
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], 0x28
lea ecx, [eax + eax*2]
mov word [esp + 0x40], 1
mov word [esp + 0x42], 0x18
mov dword [esp + 0x44], edi
lea ebp, [ecx*8 + 0x1f]
mov ecx, dword [esp + 0x78]
shr ebp, 5
imul eax, ecx
shl ebp, 2
mov edx, ebp
mov dword [esp + 0x3c], ecx
imul edx, ecx
mov ecx, dword [esp + 0x6c]
add edx, 0x36
lea eax, [eax + eax*2]
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x401a6a
push str.Cant_open_file_for_writing
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator_2
jmp 0x401b6f
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea edx, [esp + 0x1a]
push 1
push edx
call edi
push esi
push 1
lea eax, [esp + 0x2b]
push 1
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x40]
push 4
push ecx
call edi
push esi
push 1
lea edx, [esp + 0x54]
push 2
push edx
call edi
add esp, 0x40
lea eax, [esp + 0x20]
push esi
push 1
push 2
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x3c]
push 4
push ecx
call edi
push esi
push 1
lea edx, [esp + 0x58]
push 0x28
push edx
call edi
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
add esp, 0x30
mov dword [esp + 0x74], 0x36
test eax, eax
lea ebx, [ebx + ebx*2]
mov dword [esp + 0x14], 0
jle 0x401b65
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x6c]
push esi
push 1
push ebx
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x401b57
mov ecx, dword [esp + 0x74]
add ecx, ebx
cmp ebx, ebp
mov dword [esp + 0x74], ecx
jae 0x401b3a
sub ebp, ebx
mov eax, ecx
add eax, ebp
mov dword [esp + 0x74], eax
push esi
push 1
lea edx, [esp + 0x78]
push 1
push edx
mov byte [esp + 0x80], 0
call edi
add esp, 0x10
dec ebp
jne 0x401b1c
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x38]
inc eax
add edx, ebx
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], edx
jl 0x401af1
jmp 0x401b65
mov ecx, dword [esp + 0x2c]
push str.fwrite_error_nGiving_up
call sub.MFC42u.DLL_CString::operator_2
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0x10
Function at 0x401cc0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [esi + 0x28]
test byte [eax], 8
jne 0x401ce1
pop edi
pop esi
pop ebp
mov dword [0x57defc], 0x6f
xor eax, eax
pop ebx
ret
push esi
push esi
call fcn.00402400
add esp, 8
test eax, eax
je 0x401e36
lea ecx, [esi + 2]
push ecx
push esi
call fcn.00402400
add esp, 8
test eax, eax
je 0x401e36
mov eax, dword [esi + 0x28]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
xor edi, edi
mov ecx, dword [eax + 0x24]
cmp ecx, edi
je 0x401d29
lea edx, [esp + 0x14]
push 3
push edx
push esi
call ecx
add esp, 0xc
jmp 0x401d3b
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x14]
push eax
push 3
push 1
push ecx
call ebp
add esp, 0x10
cmp eax, 3
jne 0x401e2c
mov edx, dword [esp + 0x14]
mov eax, edx
and eax, 0xff
mov ecx, eax
and eax, 7
and ecx, 0x70
inc ecx
sar ecx, 4
inc ecx
inc eax
mov word [esi + 4], cx
xor cx, cx
mov cl, dh
test dl, 0x80
mov word [esi + 6], cx
je 0x401e3d
mov edx, 1
mov ecx, eax
shl edx, cl
push edi
push edx
call fcn.00406820
add esp, 8
cmp eax, edi
mov dword [esi + 8], eax
jne 0x401d9e
pop edi
pop esi
pop ebp
mov dword [0x57defc], 0x6d
xor eax, eax
pop ebx
ret
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, edi
jle 0x401e40
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x401dc3
lea eax, [esp + 0x14]
push 3
push eax
push esi
call ecx
add esp, 0xc
jmp 0x401dd5
mov ecx, dword [eax + 0x20]
lea edx, [esp + 0x14]
push ecx
push 3
push 1
push edx
call ebp
add esp, 0x10
cmp eax, 3
jne 0x401e19
mov eax, dword [esi + 8]
mov dl, byte [esp + 0x14]
inc ebx
add edi, 3
mov ecx, dword [eax + 8]
mov byte [ecx + edi - 3], dl
mov eax, dword [esi + 8]
mov dl, byte [esp + 0x15]
mov ecx, dword [eax + 8]
mov byte [ecx + edi - 2], dl
mov eax, dword [esi + 8]
mov dl, byte [esp + 0x16]
mov ecx, dword [eax + 8]
mov byte [ecx + edi - 1], dl
mov eax, dword [esi + 8]
cmp ebx, dword [eax]
jl 0x401daa
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov ecx, dword [esi + 8]
push ecx
call fcn.005116b0
add esp, 4
mov dword [esi + 8], 0
mov dword [0x57defc], 0x66
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov dword [esi + 8], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x401e50
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x28]
test byte [ecx], 8
jne 0x401e69
mov dword [0x57defc], 0x6f
xor eax, eax
ret
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x401e7f
lea ecx, [esp + 4]
push 1
push ecx
push edx
call eax
add esp, 0xc
jmp 0x401e95
mov edx, dword [ecx + 0x20]
lea eax, [esp + 4]
push edx
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x401ea7
mov dword [0x57defc], 0x66
xor eax, eax
ret
mov al, byte [esp + 4]
cmp al, 0x21
je 0x401eee
cmp al, 0x2c
je 0x401ede
cmp al, 0x3b
je 0x401ece
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [ecx], 0
mov dword [0x57defc], 0x6b
ret
mov edx, dword [esp + 8]
mov eax, 1
mov dword [edx], 4
ret
mov eax, dword [esp + 8]
mov dword [eax], 2
mov eax, 1
ret
mov ecx, dword [esp + 8]
mov eax, 1
mov dword [ecx], 3
ret