joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c4fdb50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x60]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0x64]
mov eax, dword [esi + 0x8c]
mov dword [esp], eax
call sub.avutil_52.dll_av_pix_fmt_desc_get
cmp dword [esp + 0x74], 3
movzx ecx, byte [eax + 6]
je 0x6c4fdc60
mov eax, dword [esi + 0x7c]
add ebx, ebx
add edi, edi
sub eax, ebx
cmp eax, edi
cmovle edi, eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x6c4fdbb3
test byte [esi + 0x120], 2
je 0x6c4fdc49
mov eax, dword [esi + 0x94]
test eax, eax
je 0x6c4fdc49
cmp dword [ebp + 0x58], 3
je 0x6c4fdc90
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x6c4fdc70
mov eax, dword [ebp + 0x20]
imul eax, ebx
mov dword [esp + 0x20], eax
mov eax, ebx
sar eax, cl
imul eax, dword [ebp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call sub.avutil_52.dll_av_get_cpu_flags
test al, 1
je 0x6c4fdc24
emms
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [esi + 0x94]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
mov eax, dword [esi + 0x7c]
sub eax, ebx
cmp eax, edi
cmovle edi, eax
jmp 0x6c4fdbb3
test byte [esi + 0x120], 1
jne 0x6c4fdbd7
mov eax, dword [esp + 0x68]
test eax, eax
je 0x6c4fdc49
mov ebp, dword [esp + 0x68]
jmp 0x6c4fdbd7
cmp dword [esp + 0x74], 3
jne 0x6c4fdbd7
cmp dword [esi + 0x30], 0x18
je 0x6c4fdbd7
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
jmp 0x6c4fdbf1
Function at 0x6c507080
Capabilities:
Contain obfuscated stackstrings
Create thread
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x10]
test ah, 0x10
jne 0x6c5070d5
mov edx, dword [ebx + 0x328]
cmp edx, 1
je 0x6c50716d
test ah, 0x20
jne 0x6c507142
test ah, 0x80
jne 0x6c507102
mov dword [ebx + 0x328], 1
xor eax, eax
mov dword [ebx + 0x330], 0
test al, 1
jne 0x6c507160
add esp, 0x28
xor eax, eax
pop ebx
ret
test dword [ebx + 0x58], 0x90000
jne 0x6c507093
test byte [ebx + 0x5d], 0x80
jne 0x6c507093
mov edx, dword [ebx + 0x328]
cmp edx, 1
je 0x6c50716d
test byte [ebx + 0x32c], 1
je 0x6c5070a2
mov dword [ebx + 0x330], 1
cmp edx, 1
jle 0x6c50712b
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.Application_has_requested__d_threads._Using_a_thread_count_greater_than__d_is_not_recommended._n
mov dword [esp + 4], 0x18
mov dword [esp], ebx
call sub.avutil_52.dll_av_log
mov eax, dword [ebx + 0x330]
test al, 2
je 0x6c5070c6
mov dword [esp + 0x30], ebx
add esp, 0x28
pop ebx
jmp fcn.6c50a710
test byte [ebx + 0x32c], 2
je 0x6c5070ab
mov dword [ebx + 0x330], 2
jmp 0x6c507102
mov dword [esp + 0x30], ebx
add esp, 0x28
pop ebx
jmp fcn.6c508d20
mov dword [ebx + 0x330], 0
jmp 0x6c50712b
Function at 0x6c55e2a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], 0x6c5a3394
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x6c55e300
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x6c55e3f6
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x6c55e370
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x6c55e345
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x6c55e355
cmp byte [esp + 0x1e], 0
je 0x6c55e355
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x6c55e355
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6c55e2a0
nop

Function at 0x6c55e690
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6c65e960
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x6c65e978]
sub esp, 4
test ebx, ebx
je 0x6c55e6db
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x6c55e6d4
test esi, esi
je 0x6c55e6d4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6c55e6b0
mov dword [esp], 0x6c65e960
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6c564baf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [eax]
cmp dword [ebx + 0x30], 0x1c
jne 0x6c564c0d
cmp dword [eax + 0x94], 0
jne 0x6c564bfd
mov dword [esp + 0x14], 0x2d
mov dword [esp + 0x10], str.libavcodec_error_resilience.c
mov dword [esp + 0xc], str.s__quarter_sample
mov dword [esp + 8], 0x6c576b3d
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.avutil_52.dll_av_log
call sub.msvcrt.dll_abort
mov dword [edx], 4
mov eax, dword [eax + 0x10]
shl eax, 2
mov dword [ecx], eax
jmp 0x6c564c18
mov dword [edx], 2
mov eax, dword [eax + 0x1c]
mov dword [ecx], eax
add esp, 0x28
pop ebx
ret
Function at 0x402e07
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x402e2d
cmp al, 0x22
je 0x402e3d
inc esi
mov al, byte [esi]
test al, al
jne 0x402e1c
cmp al, 0x22
jne 0x402e3e
jmp 0x402e3d
cmp al, 0x20
jle 0x402e3e
inc esi
cmp byte [esi], 0x20
jg 0x402e31
jmp 0x402e3e
cmp al, 0x20
jg 0x402e44
inc esi
mov al, byte [esi]
test al, al
jne 0x402e39
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402eb2
push 0x405004
push section..data
call fcn.00402e98
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x402e74
movzx eax, word [ebp - 0x14]
jmp 0x402e77
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00402eca
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403016
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405010]
jne 0x403020
repz ret
jmp fcn.004030fe
Function at 0xc34abcc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 0
push 0xc34b0c6
call dword [sym.imp.USER32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0xc34abfe
push 6
call fcn.0c359609
add esp, 4
mov eax, dword [0xc3773e6]
push eax
mov ebx, eax
call fcn.0c341d9f
pop eax
sub ebx, eax
push ecx
push ebx
push eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.0c3595fd
add esp, 4
pop esi
mov edi, eax
pop ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
test ecx, ecx
je 0xc34ac9a
push eax
lodsd eax, dword [esi]
push esi
push edi
push ecx
push eax
push 0x14
call fcn.0c3595fd
add esp, 4
pop esi
mov edi, eax
push eax
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0xc34ac6b
push eax
mov ebx, eax
call fcn.0c34138e
inc eax
push eax
call fcn.0c3595fd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0xc34ac8a
push eax
mov ebx, eax
call fcn.0c34138e
inc eax
push eax
call fcn.0c3595fd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop ecx
pop edi
pop esi
stosd dword es:[edi], eax
dec ecx
jne 0xc34ac32
pop eax
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0xc34acbb
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0xc34acb7
imul eax, dword [ebx]
jmp 0xc34acac
mov ecx, eax
test ecx, ecx
je 0xc34acfe
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0xc34acd9
push ebx
call fcn.0c3595f7
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0xc34aced
push ebx
call fcn.0c3595f7
add esp, 4
pop ebx
call fcn.0c3595f7
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0xc34acc1
call fcn.0c3595f7
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [0xc3773e6]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0xc34ad2d
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0xc34ad29
imul eax, dword [ebx]
jmp 0xc34ad1e
mov ecx, eax
test ecx, ecx
je 0xc34ad70
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0xc34ad4b
push ebx
call fcn.0c3595f7
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0xc34ad5f
push ebx
call fcn.0c3595f7
add esp, 4
pop ebx
call fcn.0c3595f7
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0xc34ad33
call fcn.0c3595f7
add esp, 4
mov eax, 0xc376313
mov dword [0xc3773e6], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.0c348150
jmp 0xc34ad91
mov esp, ebp
pop ebp
ret 4
Function at 0xc359cb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0c35c780
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0xc359e00
test ecx, ecx
je 0xc359e00
inc ecx
push ecx
call fcn.0c36a7a7
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0c35ec30
mov edi, eax
add esp, 0xc
test edi, edi
je 0xc359d29
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0xc359ded
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.0c36a7a7
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0xc359db1
cmp eax, 0xea
jne 0xc359dd9
push esi
call fcn.0c36a7d0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0c36a7a7
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0xc359d7c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0xc359dbf
cmp eax, 2
jne 0xc359dd9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.0c35c6f0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.0c36a7d0
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.0c36a7d0
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0xc359e2e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0xc359e3a
mov edx, dword [esp + 0x40]
test edx, edx
je 0xc359e3a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0c35c6f0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0xc359e80
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0xc35a550
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0xc35a56e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0xc35a563
pop esi
ret
Function at 0xc35a920
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0xc35a933
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.0c35ca40
add esp, 4
test eax, eax
jne 0xc35a945
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0xc35a954
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0xc35a9ab
mov ebx, dword [ebx + 4]
push edi
call fcn.0c36a7a7
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0xc35a98e
push ebp
call fcn.0c36a7d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.0c35c800
push ebp
mov esi, eax
call fcn.0c36a7d0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0xc35a9ed
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.0c359740
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0xc35a9ea
push esi
call fcn.0c3597d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0xc35aab0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1010
call fcn.0c35f0d0
mov eax, dword [esp + 0x1014]
push ebx
push ebp
mov ebp, dword [esp + 0x1020]
push esi
push edi
xor edi, edi
push 1
push edi
push edi
push eax
mov dword [ebp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0xc35abb2
jmp 0xc35aaef
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x1024]
xor esi, esi
lea ecx, [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0x28]
push 0x1000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xc35abcf
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0xc35ab3b
mov cl, byte [esp + esi + 0x20]
test cl, cl
je 0xc35ab32
inc esi
cmp esi, eax
jb 0xc35ab23
jmp 0xc35ab3b
inc esi
mov dword [esp + 0x14], 1
mov eax, dword [ebp]
mov ebx, edi
add edi, esi
test eax, eax
mov dword [esp + 0x1c], edi
je 0xc35ab57
inc edi
push edi
push eax
call fcn.0c359790
add esp, 8
jmp 0xc35ab61
inc edi
push edi
call fcn.0c359740
add esp, 4
mov edi, eax
lea ecx, [esp + 0x20]
add edi, ebx
push esi
push ecx
push edi
mov dword [ebp], eax
call fcn.0c35efd0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
mov byte [edi + esi], 0
jne 0xc35abe8
cmp dword [esp + 0x18], 0x1000
jb 0xc35ac1b
mov edx, dword [esp + 0x1024]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0xc35aaeb
mov eax, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
mov dword [eax], 0
mov eax, 1
pop ebx
add esp, 0x1010
ret
mov ecx, dword [esp + 0x102c]
pop edi
mov eax, 1
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x1010
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1024]
push 0
add esi, edx
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0x1010
ret
mov edx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
mov dword [edx], 1
mov eax, 1
pop ebx
add esp, 0x1010
ret

Function at 0xc35ac40
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edi
mov dword [esi], 0
call ebx
test eax, eax
je 0xc35accc
cmp dword [esp + 0x14], 4
jb 0xc35accc
mov edx, dword [esp + 0x10]
add edx, 8
push edx
call fcn.0c359740
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi], eax
push 0
push ecx
add eax, 8
push edx
push eax
push edi
call ebx
test eax, eax
je 0xc35acbb
mov esi, dword [esi]
mov dword [esi], 1
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x10]
jne 0xc35accc
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [esi]
push edx
call fcn.0c3597d0
add esp, 4
mov dword [esi], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0xc35b3c0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0c36a7a7
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0xc35b42a
push esi
lea edi, [eax + 0x400]
call fcn.0c36a7d0
push edi
call fcn.0c36a7a7
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0xc35b3fa
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0xc35b446
push ecx
push esi
call fcn.0c35c6f0
add esp, 8
mov ebx, eax
push esi
call fcn.0c36a7d0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0xc35b550
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0xc35b5b9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0c359740
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0xc35b5c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0xc35b652
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0xc35b644
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0xc35b63c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0xc35b605
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0xc35b660
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0xc35b673
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call fcn.0c35ca40
add esp, 4
test eax, eax
jne 0xc35b685
pop esi
add esp, 0x10
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0xc35b746
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0xc35b7c3
lea ebx, [esp + 0x34]
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0xc35b6ce
mov esi, dword [ebx]
jmp 0xc35b6e2
push ebx
call fcn.0c35cae0
mov esi, eax
add esp, 4
test esi, esi
je 0xc35b726
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0xc35b70d
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0xc35b70d
mov dword [esp + 0x10], eax
test ebp, ebp
je 0xc35b71a
push esi
call fcn.0c35f0ff
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0xc35b7c3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0xc35b6be
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
cmp eax, 2
jne 0xc35b7c3
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jle 0xc35b7c3
dec eax
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0xc35b777
mov esi, dword [ebx]
jmp 0xc35b78b
push ebx
call fcn.0c35cae0
mov esi, eax
add esp, 4
test esi, esi
je 0xc35b7b5
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0xc35b7a8
mov eax, dword [esp + 0x18]
push ecx
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
test ebp, ebp
je 0xc35b7b5
push esi
call fcn.0c35f0ff
add esp, 4
mov eax, dword [esp + 0x24]
add ebx, 0xc
dec eax
mov dword [esp + 0x24], eax
jne 0xc35b767
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret