joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ee50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov esi, ecx
lea eax, [edi + 1]
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
cmp eax, dword [esi + 0x120]
jbe 0x41ee99
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x12c]
add edx, 0x20
push edx
push 0x4b30c4
push eax
xor edi, edi
call fcn.00476e30
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x32
jae 0x41eea7
mov ecx, 0x2094
mov eax, edi
jmp 0x41eeaf
mov ecx, 0x29f2
lea eax, [edi - 0x32]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edx
push edx
lea edx, [eax + eax*4]
lea eax, [ecx + edx*8]
mov ecx, dword [esi]
push eax
push ecx
call ebx
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp - 8]
push edx
add eax, 0x20
push 0x28
push eax
mov dword [ebp + 8], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ee71
cmp edi, 0x32
jae 0x41eef0
mov eax, 0x2864
mov ecx, edi
jmp 0x41eef8
mov eax, 0x319a
lea ecx, [edi - 0x32]
mov edx, dword [esi]
push 0
push 0
lea ecx, [eax + ecx*4]
push ecx
push edx
mov dword [ebp - 4], 0
call ebx
mov edx, dword [esi]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ee71
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x12c], eax
cmp edi, 0x32
jae 0x41ef41
mov eax, 0x292c
jmp 0x41ef49
mov eax, 0x325e
add edi, 0xffffffce
push 0
push 0
lea edx, [eax + edi*2]
mov eax, dword [esi]
push edx
push eax
mov dword [ebp - 4], 0
call ebx
mov eax, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ee71
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
mov dword [edx + 0x144], ecx
mov ecx, dword [esi + 0x12c]
push str.TDF_Switch_Parsed:__s
push ecx
call fcn.00476e30
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41f0a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jne 0x41f0c1
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
mov eax, ecx
push edi
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41f0d0
sub eax, edi
mov edi, dword [ebp + 8]
push edi
push str.Checksum__i
inc eax
push eax
push ecx
call fcn.004010b0
mov ecx, dword [esi]
add esp, 0x10
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [edi*4 + 0xbc4]
push eax
push ecx
call ebx
mov ecx, dword [esi]
push 0
lea edx, [ebp - 8]
push edx
push 4
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f187
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push 0
push 0
lea ecx, [edi*4 + 0xbec]
mov dword [eax + 0x140], edx
mov edx, dword [esi]
push ecx
push edx
call ebx
mov edx, dword [esi]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f187
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push 0
push 0
lea edx, [edi*4 + 0xc14]
mov dword [ecx + 0x138], eax
mov eax, dword [esi]
push edx
push eax
call ebx
mov eax, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push 4
lea edx, [ebp - 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f192
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41f19c
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
pop edi
dec eax
pop esi
mov dword [ecx + 0x13c], eax
mov dword [ecx + 0x148], 0x10
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41f680
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c75d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x118], ebx
cmp edi, ebx
je 0x41f81c
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0042e03c
mov edx, dword [ebp - 0x10c]
push ebx
lea ecx, [ebp - 0x108]
push ecx
add edx, 0x15
push ebx
push edx
call fcn.00475880
add esp, 0x1c
push str.FormLib.tff
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.00401210
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
jne 0x41f747
push 0x10
push 0x4b320c
push str.Could_not_open_axis_lib
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x110], ebx
jmp 0x41f81c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x201
call fcn.0042dbdc
push 0x201
mov ebx, eax
push 0
push ebx
call fcn.0042e03c
add esp, 0x10
push 0
shl edi, 9
push 0
sub edi, 0x200
push edi
mov edi, dword [ebp - 0x114]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x118]
push edx
push 0x200
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f7a9
mov dword [ebp - 0x110], eax
jmp 0x41f81c
push 4
mov ecx, esi
call fcn.004139a0
lea eax, [ebp - 0x10c]
push eax
push 0x4b3230
push ebx
mov dword [ebp - 0x10c], 0
call dword [sym.imp.MSVCR100.dll_strtok_s]
add esp, 0xc
push eax
push 0
mov ecx, esi
call fcn.00413220
mov edi, 2
cmp dword [esi + 0x134], edi
jb 0x41f81c
lea esp, [esp]
lea ecx, [ebp - 0x10c]
push ecx
push 0x4b3234
push 0
call dword [sym.imp.MSVCR100.dll_strtok_s]
add esp, 0xc
push eax
lea edx, [edi - 1]
push edx
mov ecx, esi
call fcn.00413220
inc edi
cmp edi, dword [esi + 0x134]
jbe 0x41f7f0
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x41f836
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x425c90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, 1
push edi
mov edi, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
test esi, esi
je 0x425d9d
mov eax, dword [edi + 4]
test eax, eax
je 0x425da5
cmp eax, 0xffffffff
je 0x425da5
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x201
call fcn.0042dbdc
push 0x201
mov ebx, eax
push 0
push ebx
call fcn.0042e03c
mov eax, dword [edi + 4]
add esp, 0x10
push 0
push 0
shl esi, 9
sub esi, 0x200
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [edi + 4]
push 0
lea ecx, [ebp - 8]
push ecx
push 0x200
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x425d24
xor esi, esi
jmp 0x425d8d
mov edi, dword [ebp + 0x10]
push 4
mov ecx, edi
call fcn.004139a0
lea eax, [ebp + 8]
push eax
push 0x4b3a20
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.MSVCR100.dll_strtok_s]
add esp, 0xc
push eax
push 0
mov ecx, edi
call fcn.00413220
mov esi, 2
cmp dword [edi + 0x134], esi
jb 0x425d8a
lea ecx, [ebp + 8]
push ecx
push 0x4b3a24
push 0
call dword [sym.imp.MSVCR100.dll_strtok_s]
add esp, 0xc
push eax
lea edx, [esi - 1]
push edx
mov ecx, edi
call fcn.00413220
inc esi
cmp esi, dword [edi + 0x134]
jbe 0x425d61
mov esi, dword [ebp - 4]
test ebx, ebx
je 0x425d9a
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4c75d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x22e
mov esi, ecx
lea ecx, [ebp - 0x232]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x234], ax
call fcn.0042e03c
mov edx, dword [ebp + 8]
inc edx
add esp, 0xc
cmp edx, dword [esi + 0x124]
ja 0x42633c
mov edx, dword [esi]
push ebx
lea eax, [ebp - 0x238]
push eax
push 0x230
lea ecx, [ebp - 0x234]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42633c
mov cl, 0x20
lea eax, [ebx + 0x31]
cmp byte [ebp - 0x1ff], cl
jne 0x4262f5
nop
cmp eax, ebx
jl 0x4262f5
mov byte [ebp + eax - 0x230], bl
dec eax
cmp byte [ebp + eax - 0x230], cl
je 0x4262e0
push 0x32
lea eax, [ebp - 0x230]
push eax
mov ecx, edi
call fcn.00417ae0
mov ecx, dword [ebp - 0x1fe]
movzx edx, word [ebp - 0x1fa]
add ecx, 0xfffa3c00
mov dword [edi + 0x12c], ecx
mov dword [edi + 0x144], edx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x270c]
add edi, 0x20
push edi
push str.TDF_Switch_Parse_FAILED:_Title__s
push eax
call fcn.00476e30
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret 8
Function at 0x42dbe7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c75d0]
jne 0x42dbf1
repz ret
jmp fcn.0042e25b

Function at 0x433260
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac81f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c75d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor edi, edi
push 0xc
mov dword [esi + 4], edi
call fcn.0042dc54
add esp, 4
cmp eax, edi
je 0x4333fe
mov dword [esi], eax
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 4], eax
mov dword [esi + 0xc], edi
push 0xc
mov dword [ebp - 4], edi
mov dword [esi + 0x14], edi
call fcn.0042dc54
add esp, 4
cmp eax, edi
je 0x4333d9
mov dword [esi + 0x10], eax
mov dword [eax], eax
mov eax, dword [esi + 0x10]
mov dword [eax + 4], eax
mov dword [esi + 0x1c], edi
push 0xc
mov byte [ebp - 4], 1
mov dword [esi + 0x24], edi
call fcn.0042dc54
add esp, 4
cmp eax, edi
je 0x4333b4
mov dword [esi + 0x20], eax
mov dword [eax], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 4], eax
mov dword [esi + 0x2c], edi
push 0xc
mov byte [ebp - 4], 2
mov dword [esi + 0x34], edi
call fcn.0042dc54
add esp, 4
cmp eax, edi
je 0x43338f
mov dword [esi + 0x30], eax
mov dword [eax], eax
mov eax, dword [esi + 0x30]
mov dword [eax + 4], eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], edi
call fcn.0042fd20
lea ecx, [esi + 0x7ec]
mov byte [ebp - 4], 4
call fcn.0042fcb0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 5
call fcn.0042f930
mov ecx, esi
call fcn.004310a0
fld dword [0x4b4120]
push 0x64
fstp dword [esi + 0x40]
lea eax, [esi + 0x91c]
push edi
push eax
mov dword [esi + 0x910], edi
mov dword [esi + 0x918], edi
call fcn.0042e03c
add esp, 0xc
mov dword [esi + 0x9e4], edi
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
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c1fe0
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0042e16e
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c1fe0
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0042e16e
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c1fe0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0042e16e
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c1fe0
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0042e16e
int3
Function at 0x4354a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 4]
push ebx
xor ebx, ebx
lea eax, [esi + 0x10]
mov dword [esi + 0x1814], eax
cmp ecx, ebx
jne 0x4354f0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0x800
jbe 0x4354c8
mov edi, 0x800
mov ecx, dword [esi + 8]
push edi
push ecx
push eax
mov dword [ebp - 4], edi
call fcn.0042e036
sub dword [esi + 0xc], edi
add esp, 0xc
add dword [esi + 8], edi
mov byte [edi + esi + 0x10], bl
mov edx, dword [ebp - 4]
pop edi
mov byte [edx + esi + 0x11], bl
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea edx, [ebp - 4]
push edx
push 0x800
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
mov byte [eax + esi + 0x10], bl
mov ecx, dword [ebp - 4]
mov byte [ecx + esi + 0x11], bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436780
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac9c9
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c75d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [edi], vtable.CUndoManager.0
mov dword [edi + 4], vtable.CUndoEvictNotification.0
xor eax, eax
mov dword [ebp - 4], eax
push 1
lea esi, [edi + 8]
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
call fcn.004065e0
lea esi, [edi + 0x18]
xor eax, eax
mov byte [ebp - 4], 1
push 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.004065e0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
lea eax, [edi + 4]
push 0x19
lea esi, [edi + 8]
mov dword [edi + 0x28], 1
mov dword [edi + 8], eax
mov dword [edi + 0x18], eax
call fcn.004065e0
push 0x19
lea esi, [edi + 0x18]
call fcn.004065e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4379a0
Capabilities:
Check for time delay via queryperformancecounter
Resolve function by parsing pe exports

Disassembly:
test ecx, ecx
jne 0x43684a
mov eax, 0x80004005
ret
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0xc]
mov dword [eax + 0x1c], 0
mov edx, dword [ecx]
add eax, 0x10
push eax
mov eax, dword [edx + 0x3c]
call eax
ret
push edi
test edx, edx
jne 0x4379ac
mov eax, 0x80004005
pop edi
ret
mov dword [eax + 0x24], 0
mov ecx, dword [edx + 0xc]
cmp ecx, 0x40000
ja 0x4379ed
je 0x4379e5
cmp ecx, 0x10000
je 0x4379db
cmp ecx, 0x20000
jne 0x4379a5
mov edi, edx
mov ecx, eax
call fcn.00436dc0
pop edi
ret
push edx
mov ecx, eax
call fcn.00437a10
pop edi
ret
mov ecx, eax
pop edi
jmp fcn.004376f0
cmp ecx, 0x80000
je 0x437a05
cmp ecx, 0x100000
jne 0x4379a5
mov ecx, edx
pop edi
jmp 0x436840
mov ecx, eax
pop edi
jmp fcn.00437310

Function at 0x437bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
xor eax, eax
push ebx
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
cmp dword [edi + 0x244], eax
jbe 0x437c69
xor ebx, ebx
mov eax, dword [edi + 0x240]
mov ecx, dword [eax + ebx + 0x10]
sub ecx, dword [eax + ebx + 0xc]
xor esi, esi
sar ecx, 3
mov dword [eax + ebx + 4], ecx
mov edx, dword [edi + 0x240]
cmp dword [ebx + edx + 4], esi
lea eax, [ebx + edx]
jbe 0x437c48
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + esi*8]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + esi*8 + 4]
push 0
lea eax, [esp + 0x10]
push eax
push 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [edi + 0x1f8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x437c64
mov eax, dword [edi + 0x240]
inc esi
add eax, ebx
cmp esi, dword [eax + 4]
jb 0x437c09
mov eax, dword [esp + 8]
inc eax
add ebx, 0x1c
mov dword [esp + 8], eax
cmp eax, dword [edi + 0x244]
jb 0x437be3
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x1f8]
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x1f8]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea ecx, [ebp - 4]
push ecx
push 0x38
lea edx, [esi + 0x208]
push edx
push eax
call ebx
mov eax, dword [esi + 0x244]
test eax, eax
je 0x437d30
test edi, edi
jne 0x437ccb
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x240]
lea edx, [ecx*4 + 0x38]
mov dword [eax + 8], edx
jmp 0x437ce9
mov edx, dword [esi + 0x240]
lea ecx, [edi*8]
sub ecx, edi
lea eax, [edx + ecx*4]
mov ecx, dword [eax - 0x18]
mov edx, dword [eax - 0x14]
lea ecx, [edx + ecx*8]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x240]
lea eax, [edi*8]
sub eax, edi
add eax, eax
add eax, eax
mov edx, dword [ecx + eax + 0x10]
sub edx, dword [ecx + eax + 0xc]
push 0
sar edx, 3
mov dword [ecx + eax + 4], edx
mov edx, dword [esi + 0x240]
lea ecx, [ebp - 4]
push ecx
push 0xc
add edx, eax
mov eax, dword [esi + 0x1f8]
push edx
push eax
call ebx
mov eax, dword [esi + 0x244]
inc edi
cmp edi, eax
jb 0x437cb2
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437d50
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4c75d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x4b5afc
lea ecx, [ebp - 0x108]
push ecx
call edi
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.unique
push str.test
push str._s_s.xdlcache
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004010b0
add esp, 0x14
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push edx
call edi
lea edx, [ebp - 0x108]
mov eax, 0x104
mov ecx, esi
call fcn.004a0810
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret

Function at 0x4385d0
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
mov esi, eax
push 0x80000000
lea eax, [esi + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x1f8], eax
cmp eax, 0xffffffff
je 0x43861c
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x1fc], eax
test eax, eax
jne 0x438625
call fcn.00438520
mov eax, 0x80004005
pop edi
pop esi
pop ebx
ret
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x200], eax
test eax, eax
je 0x43861c
mov ebx, esi
call fcn.00438210
mov edi, eax
test edi, edi
js 0x438658
mov edi, esi
call fcn.00437f60
mov edi, eax
test edi, edi
jns 0x43865f
call fcn.00438520
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x438c60
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [edi + 0x5c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov dword [ebp - 4], 0
jne 0x438dc3
mov eax, dword [edi + 0x50]
push 0
push 0
push 0x28
push eax
call ebx
mov ecx, dword [edi + 0x50]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
jae 0x438ca6
mov edx, dword [edi + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [edi + 0x50]
push 0
lea eax, [ebp - 4]
push eax
push 4
lea esi, [edi + 0x48]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x438e08
cmp dword [ebp - 4], 4
jne 0x438e08
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi], eax
jbe 0x438db4
mov dword [ebp - 0xc], eax
mov edi, edi
mov edx, dword [ebp - 8]
cmp edx, dword [edi + 0x48]
jae 0x438e08
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x438e08
mov esi, dword [ebp - 0xc]
add esi, eax
je 0x438e08
mov eax, dword [esi + 0x28]
test al, 7
jne 0x438d10
shr eax, 3
mov ebx, eax
jmp 0x438d16
shr eax, 3
lea ebx, [eax + 1]
push ebx
call fcn.0042dbdc
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x438d36
mov edx, dword [esi + 0x24]
push ebx
push edx
push eax
call fcn.0042e036
add esp, 0xc
jmp 0x438d38
xor ebx, ebx
push 0
lea eax, [ebp - 4]
push eax
push 0x21
mov word [esi + 0x20], bx
mov ecx, dword [edi + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push ecx
call ebx
test eax, eax
je 0x438e08
cmp dword [ebp - 4], 0x21
jne 0x438e08
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x438d9a
movzx ecx, word [esi + 0x20]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [edi + 0x50]
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x438e08
movzx eax, word [esi + 0x20]
cmp dword [ebp - 4], eax
jne 0x438e08
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x2c
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [edi + 0x48]
jb 0x438ce0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [edi + 0x50]
push 1
push 0
push 0
push edx
call ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x50]
push 0
push 0
push 0
push eax
call ebx
mov edx, dword [edi + 0x50]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x28
push edi
push edx
mov dword [edi], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x438e08
cmp dword [ebp - 4], 0x28
jne 0x438e08
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x50]
push 0
push 0
push eax
push ecx
call ebx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret