joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d3c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0xf5d9], 2
je 0x1002d4a0
push 0x44
lea eax, [ebp - 0x164]
push 0
push eax
call sub.MSVCR100.dll_memset
lea ecx, [esi + 0x4c90e0]
push ecx
xor eax, eax
lea edx, [ebp - 0x110]
push str._disable__s
push edx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x164]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x110]
push edx
push str.devcon.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1002d479
push str.Disable_device_failed
push esi
call fcn.10029960
add esp, 8
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x120]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x120]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x11c]
push edx
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10203cc8
mov esp, ebp
pop ebp
ret

Function at 0x1002dde0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ecx
push 0x105e8e88
call dword [sym.imp.MSVCR100.dll_vsprintf]
add esp, 0xc
push 0x105e8e88
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
ret
Function at 0x1003efa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.1002c990
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.1002b700
cmp dword [esi + 0xfc1b], 0
jne 0x1003f038
push 0xec
call fcn.1003a820
cmp eax, 0xdeadbeef
jne 0x1003efdc
push 0x8ec
mov ecx, esi
call fcn.1003a820
mov dword [esi + 0xfc1b], eax
movzx eax, word [esi + 0xfc1d]
add eax, 0xfffffb00
cmp eax, 9
ja case.0x1003effa.1280
movzx eax, byte [eax + 0x1003f1e8]
jmp dword [eax*4 + 0x1003f1d8]
mov dword [esi + 0xfc1b], 2
jmp 0x1003f023
mov dword [esi + 0xfc1b], 3
jmp 0x1003f023
mov dword [esi + 0xfc1b], 1
mov ecx, dword [esi + 0xfc1b]
push ecx
push str._n_chip_version___d
push esi
call fcn.1002dde0
add esp, 0xc
mov ecx, esi
call fcn.10029f10
call fcn.10028d20
call sub.KERNEL32.dll_GetTickCount
mov ecx, esi
mov edi, eax
call sub.KERNEL32.dll_GetTickCount
push edi
push eax
sub eax, edi
push eax
push str.ath_hal_attach_duration:__d_d__d_ms_n
push esi
call fcn.10029960
add esp, 0x14
mov ecx, esi
call fcn.10037110
cmp ebx, 5
ja case.0x1003f075.4
jmp dword [ebx*4 + 0x1003f1f4]
push 0x177a
push esi
call fcn.10037160
mov edx, dword [esi]
mov eax, dword [edx + 0x94]
add esp, 8
mov ecx, esi
call eax
mov ecx, esi
test eax, eax
jle 0x1003f0a5
push 2
call fcn.1002b700
jmp case.0x1003f075.4
push 3
call fcn.1002b700
jmp case.0x1003f075.4
push 0x177b
jmp 0x1003f0f4
mov edx, dword [esi]
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
push eax
push 0x177c
push esi
call fcn.10037160
add esp, 0xc
jmp case.0x1003f075.4
mov edx, dword [esi]
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
push eax
push 0x177d
push esi
call fcn.10037160
add esp, 0xc
jmp case.0x1003f075.4
push 0x1789
push esi
call fcn.10037160
add esp, 8
mov ecx, esi
call fcn.1003e930
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.10038990
push 0x168c
mov ecx, esi
call fcn.10033d00
mov ecx, esi
call fcn.1002b6e0
mov edi, eax
cmp edi, 5
jne 0x1003f153
call fcn.10037d60
test eax, eax
je 0x1003f198
push 0x1789
push esi
call fcn.10037160
add esp, 8
mov ecx, esi
call fcn.1003dd60
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
pop ebp
ret 8
cmp edi, 3
jne 0x1003f18c
call fcn.10037d60
test eax, eax
jne 0x1003f132
mov ecx, esi
call fcn.1003e390
test eax, eax
je 0x1003f198
push 0x177d
push esi
call fcn.10037160
add esp, 8
mov ecx, esi
call fcn.10037db0
test eax, eax
je 0x1003f198
push 0x177a
jmp 0x1003f137
cmp edi, 1
jne 0x1003f17c
push 0x177b
jmp 0x1003f137
mov ecx, esi
call fcn.10033d20
test eax, eax
je 0x1003f1bd
push 0x1776
push esi
call fcn.10037160
add esp, 8
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
pop ebp
ret 8
push edi
mov ecx, esi
mov dword [esi + 0x1520], 1
call fcn.1002b700
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x100410a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xcc
push 0xbb
push 0xaa
push 0x7f
push 3
push 0
lea eax, [ebp - 0x21c]
push str.calData__02x_02x_02x_02x_02x_02x.txt
push eax
mov ebx, ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebx + 0xfb0c]
lea edx, [ebp - 0x110]
add esp, 0x20
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100410f0
lea eax, [ebp - 0x21c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10041102
lea edi, [ebp - 0x110]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10041112
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x110]
push 0x10223978
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x1004116b
lea edx, [ebp - 0x110]
push edx
push str.Could_not_open_calDataFile__s_n
push ebx
call fcn.10029960
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x567278]
mov dword [ebp - 0x220], eax
mov eax, dword [ebx + 0x56727c]
cdq
sub eax, edx
sar eax, 1
xor esi, esi
test eax, eax
jle 0x100411be
jmp 0x10041190
mov ecx, dword [ebp - 0x220]
lea eax, [esi + esi]
movzx edx, word [eax + ecx]
push eax
push edx
push str._04x______04x_n
push edi
call dword [sym.imp.MSVCR100.dll_fprintf]
mov eax, dword [ebx + 0x56727c]
cdq
sub eax, edx
inc esi
sar eax, 1
add esp, 0x10
cmp esi, eax
jl 0x10041190
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fclose]
call edi
lea eax, [ebp - 0x110]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100411d3
mov cx, word [0x1025a930]
sub eax, edx
mov dl, byte [0x1025a932]
lea eax, [ebp + eax - 0x113]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x110]
push 0x1021caa0
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10041239
lea ecx, [ebp - 0x110]
push ecx
push str.Could_not_open_calDataFile__s_to_write_n
push ebx
call fcn.10029960
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x56727c]
mov eax, dword [ebx + 0x567278]
push esi
push edx
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp dword [ebx + 0x56727c], eax
je 0x10041274
lea ecx, [ebp - 0x110]
push ecx
push str.Error_writing_to__s_n
push ebx
call fcn.10029960
add esp, 0xc
xor bl, bl
jmp 0x1004128b
lea edx, [ebp - 0x110]
push edx
push str...._written_to__s_n
push ebx
call fcn.10029960
add esp, 0xc
mov bl, 1
push esi
call edi
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
movzx eax, bl
xor ecx, ebp
pop ebx
call fcn.10203cc8
mov esp, ebp
pop ebp
ret
Function at 0x10043ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 4], 0
cmp cx, ax
jae 0x10043eed
mov ecx, dword [ebp + 8]
movzx edx, ax
mov ax, word [ebp - 4]
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x10043ee0
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10044060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp esi, ecx
jbe 0x10044091
mov edx, dword [ebp + 8]
mov ax, cx
push edi
xor ax, word [edx]
inc ecx
movzx edi, cx
add edx, 2
cmp edi, esi
jb 0x10044078
mov ecx, 0xffff
pop edi
cmp cx, ax
je 0x10044098
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1006ca70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push 0x1021cb20
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x1006caaf
push ebx
push str.Could_not_open__s_to_read_n
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
jmp 0x1006cb2d
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
push edi
push 1
push 1
push eax
call ebx
add esp, 0x10
test eax, eax
je 0x1006cae6
mov esi, dword [ebp + 0xc]
lea ebx, [ebx]
add dword [ebp - 4], eax
push edi
push 1
inc esi
push 1
push esi
call ebx
add esp, 0x10
test eax, eax
jne 0x1006cad0
mov esi, dword [ebp - 8]
push edi
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
je 0x1006cafb
mov esi, 1
jmp 0x1006cb2f
push edi
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 4
test eax, eax
je 0x1006cb1e
mov ecx, dword [ebp + 8]
push ecx
push str.Error_reading__s_n
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
jmp 0x1006cb2d
push str.Unknown_fread_rc_n
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
xor esi, esi
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
neg esi
pop edi
sbb eax, eax
and eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1006cb50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 0x1021caa0
push edi
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x1006cb84
push edi
push str.Could_not_open__s_to_write_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10074890
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
push esi
push 0x44
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
or dword [ebp - 0x28], 0x101
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0x10
push 1
push 0
mov edx, 5
mov word [ebp - 0x24], dx
mov edx, dword [ebp + 8]
push 0
push edx
push 0
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
jne 0x10074909
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x18], 0
push edi
je 0x1007493c
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x18], 0x103
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x18]
push eax
push ecx
call edi
push 0x64
call ebx
cmp dword [ebp + 0x18], 0x103
je 0x10074924
pop ebx
mov edx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 0xc]
push eax
call edi
xor eax, eax
cmp esi, 1
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100775c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add ecx, 0xda98
pop ebp
jmp fcn.1013b6a0

Function at 0x10077a80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
mov dword [ebp - 0x34], eax
call edi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
xor bl, bl
mov dword [ebp - 0x5c], str.LOG_FTM2_START_GSM_MODE_CNF
mov dword [ebp - 0x58], str.LOG_FTM2_SELECT_SPECIFIC_BCCH_CNF
mov dword [ebp - 0x54], str.LOG_FTM2_START_IDLE_MODE_CNF
mov dword [ebp - 0x50], str.LOG_FTM2_CHANNEL_ASSIGN_CNF
mov dword [ebp - 0x4c], str.LOG_FTM2_CHANNEL_RELEASE_CNF
mov dword [ebp - 0x48], str.LOG_FTM2_STOP_GSM_MODE_CNF
mov dword [ebp - 0x44], str.LOG_FTM2_PH_DATA_IND
mov dword [ebp - 0x40], str.LOG_FTM2_FTM_LOG_GSM_BER_DED_RPT
cmp eax, 8
jl 0x10077aed
mov eax, 8
mov eax, dword [ebp + eax*4 - 0x5c]
push eax
push str._Starting_wait_for_GSM_BER_message__s...
lea ecx, [esi + 0xa5e4]
push 4
push ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
call fcn.10115e20
add esp, 0x10
call edi
mov ecx, dword [esi + 0x479c50]
add ecx, dword [ebp - 0x30]
cmp eax, ecx
jae 0x10077b78
lea ecx, [ecx]
test bl, bl
jne 0x10077b78
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.10077930
test al, al
je 0x10077b61
mov eax, dword [ebp - 0x34]
cmp byte [ebp + eax - 0x2c], 1
jne 0x10077b61
dec eax
je 0x10077b5a
sub eax, 2
je 0x10077b54
sub eax, 3
je 0x10077b4e
mov bl, 1
jmp 0x10077b61
cmp byte [ebp - 0x1d], 1
jmp 0x10077b5e
cmp byte [ebp - 0x1f], 0
jmp 0x10077b5e
cmp byte [ebp - 0x24], 1
sete bl
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
mov ecx, dword [esi + 0x479c50]
add ecx, dword [ebp - 0x30]
cmp eax, ecx
jb 0x10077b20
call edi
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
movzx edx, bl
push edx
push eax
mov eax, dword [ebp - 0x38]
push eax
push str._Wait_for_GSM_BER_message__s_took__d_ms__status___d
push 4
push ecx
call fcn.10115e20
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 4
Function at 0x10077c30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
add eax, 0xffffffc0
xor bl, bl
mov dword [ebp - 0x2c], str.FTM_LOG_EGPRS_BER_TBF_IND
mov dword [ebp - 0x28], str.FTM_LOG_EGPRS_BER_MAC_PH_DATA_IND
mov dword [ebp - 0x24], str.FTM_LOG_EGPRS_BER_SERVING_MEAS_IND
mov dword [ebp - 0x20], str.Invalid_EGPRS_BER_Log
mov dword [ebp - 0x10], eax
cmp eax, 2
jbe 0x10077c83
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x2c]
push eax
push str._Starting_wait_for_EGPRS_BER_message__s...
lea ecx, [esi + 0xa5e4]
push 4
push ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
call fcn.10115e20
add esp, 0x10
cmp dword [ebp - 0x10], 3
jge 0x10077d41
call edi
mov ecx, dword [esi + 0x479c50]
add ecx, dword [ebp - 0x14]
cmp eax, ecx
jae 0x10077d20
test bl, bl
jne 0x10077d20
lea edx, [ebp - 0xc]
push edx
mov ecx, esi
call fcn.10077c20
test al, al
je 0x10077d09
mov eax, dword [ebp - 0x10]
cmp byte [ebp + eax - 0xc], 1
jne 0x10077d09
cmp dword [ebp + 8], 0x40
jne 0x10077d07
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10077cf6
movzx ecx, byte [ebp - 7]
cmp ecx, dword [ebp + 0x10]
sete bl
jmp 0x10077d09
cmp eax, 1
jne 0x10077d07
movzx edx, byte [ebp - 8]
cmp edx, dword [ebp + 0x10]
sete bl
jmp 0x10077d09
mov bl, 1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
mov ecx, dword [esi + 0x479c50]
add ecx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x10077cc0
call edi
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
movzx edx, bl
push edx
push eax
mov eax, dword [ebp - 0x18]
push eax
push str._Wait_for_EGPRS_BER_message__s_took__d_ms__status___d
push 4
push ecx
call fcn.10115e20
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100780a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x1021cb20
xor bl, bl
push eax
mov esi, ecx
mov byte [ebp - 1], bl
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x100781ba
push 2
push 0
push edi
call dword [sym.imp.MSVCR100.dll_fseek]
push edi
call dword [sym.imp.MSVCR100.dll_ftell]
push edi
mov ebx, eax
call dword [sym.imp.MSVCR100.dll_rewind]
push ebx
call fcn.10203b14
push edi
push ebx
mov esi, eax
push 1
push esi
call dword [sym.imp.MSVCR100.dll_fread]
movzx ecx, byte [esi + 3]
movzx edx, byte [esi + 2]
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
add esp, 0x28
cmp ecx, 0x335e2263
jne 0x1007819c
movzx eax, byte [esi + 5]
movzx ecx, byte [esi + 4]
shl eax, 8
or eax, ecx
cmp eax, 0xcc99
jne 0x1007819c
movzx edx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl edx, 8
or edx, eax
cmp edx, 0x4d00
jne 0x1007819c
movzx ecx, byte [esi + 8]
movzx edx, byte [esi + 9]
shl ecx, 8
or ecx, edx
cmp ecx, 0xa4d2
jne 0x1007819c
movzx eax, byte [esi + 0xa]
movzx ecx, byte [esi + 0xb]
movzx edx, byte [esi + 0xc]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0xd]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
cmp eax, 0x584be4eb
jne 0x1007819c
movzx edx, byte [esi + 0xe]
movzx eax, byte [esi + 0xf]
shl edx, 8
or edx, eax
mov bl, 1
cmp edx, 0xf4c
je 0x1007819f
mov bl, byte [ebp - 1]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
push str.Failed_to_load__s
push 0x10
add esi, 0xa5e4
push esi
call fcn.10115e20
add esp, 0x10
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100781e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x1021cb20
push eax
mov edi, ecx
xor bl, bl
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10078252
push 2
push 0
push esi
call dword [sym.imp.MSVCR100.dll_fseek]
push esi
call dword [sym.imp.MSVCR100.dll_ftell]
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_rewind]
mov ecx, dword [ebp + 0x10]
add esp, 0x14
cmp edi, dword [ecx]
jge 0x1007823f
mov edx, dword [ebp + 0xc]
push esi
push edi
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov dword [eax], edi
mov bl, 1
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.Failed_to_load__s
push 0x10
add edi, 0xa5e4
push edi
call fcn.10115e20
add esp, 0x10
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x1007ae00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
push 0x1021caa0
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x1007ae71
push edi
push str.fopen___failed_to_open_PC_file__s
push 0x10
add esi, 0xa5e4
push esi
call fcn.10115e20
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0x10
movzx edx, word [esi + 0x47acc4]
push edx
call fcn.10203b14
mov edx, dword [ebp + 8]
mov edi, eax
movzx eax, word [esi + 0x47acc4]
mov ecx, eax
lea ebx, [eax - 0x14]
mov eax, dword [ebp - 0x18]
add esp, 4
cmp dword [esi + 0x479ca4], 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x4134b
jne 0x1007af58
push 0
push 0
mov ecx, esi
call fcn.10073eb0
mov edx, dword [ebp - 0x14]
push eax
push edx
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x10
mov ecx, esi
call fcn.10079ed0
test al, al
jne 0x1007aee0
or eax, 0xffffffff
jmp 0x1007af50
cmp dword [edi + 0x10], 0
jne 0x1007afa9
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
push edx
push eax
lea ecx, [edi + 0x14]
push 1
push ecx
mov dword [ebp - 0x30], eax
call dword [sym.imp.MSVCR100.dll_fwrite]
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov eax, dword [esi + 0x479c98]
add esp, 0x10
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x1007af36
mov edx, dword [esi + 0x479ca0]
push edx
mov edx, dword [ebp - 0x34]
push ecx
push ecx
mov ecx, dword [ebp - 0x24]
push 0
push 4
push ecx
push edx
call eax
mov ecx, dword [ebp - 0x20]
add esp, 0x1c
push ecx
push str._EFS_Read_Transferred__d
lea eax, [esi + 0xa5e4]
push 4
push eax
call fcn.10115e20
mov eax, dword [ebp - 0x30]
add esp, 0x10
cmp eax, ebx
je 0x1007ae71
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1007af64
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp dword [esi + 0x479ca4], 0
je 0x1007af87
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCR100.dll__unlink]
add esp, 4
test edi, edi
je 0x1007af94
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edx, dword [edi + 0x10]
push edx
push str.EFS_Read_error_code__d
push 0x10
add esi, 0xa5e4
push esi
call fcn.10115e20
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1007b380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea ecx, [ebp - 0x408]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x404]
push edx
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x40c], esi
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x408], 0x400
call fcn.1007b1e0
test al, al
jne 0x1007b3e3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x1021caa0
push esi
call dword [sym.imp.MSVCR100.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1007b401
push esi
push str.fopen___failed_to_open_PC_file__s
jmp 0x1007b43c
mov esi, dword [ebp - 0x408]
push ebx
push esi
lea edx, [ebp - 0x404]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
push ebx
mov dword [ebp - 0x408], eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
cmp dword [ebp - 0x408], esi
je 0x1007b462
mov eax, dword [ebp - 0x40c]
push eax
push str.Failed_to_write_item_file_data_to_the_local_file:__s
push 0x10
add edi, 0xa5e4
push edi
call fcn.10115e20
add esp, 0x10
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x479c98]
test eax, eax
je 0x1007b48c
mov ecx, dword [edi + 0x479ca0]
mov edx, dword [ebp - 0x40c]
push ecx
mov ecx, dword [ebp - 0x410]
push esi
push esi
push 0
push 0x27
push edx
push ecx
call eax
add esp, 0x1c
push esi
push str._EFS_Get_Transferred__d
push 4
add edi, 0xa5e4
push edi
call fcn.10115e20
mov ecx, dword [ebp - 4]
add esp, 0x10
pop ebx
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0xc