joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11018840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x38], 0
mov cl, byte [eax + 0x34]
push ebx
push esi
mov dword [ebp - 4], 0
mov ebx, 1
jle 0x1101888a
mov edx, dword [eax + 0x260]
push edi
movzx edi, cl
mov esi, edx
shr esi, 0x18
xor esi, edi
shl edx, 8
xor edx, dword [esi*4 + 0x112792c8]
mov esi, dword [ebp - 4]
add esi, ebx
mov dword [eax + 0x260], edx
mov dword [ebp - 4], esi
cmp esi, dword [eax + 0x38]
jl 0x11018865
pop edi
mov edx, dword [eax + 0x34]
mov byte [eax + edx + 0x58], bl
mov esi, dword [eax + 0x38]
mov edx, esi
sub edx, ebx
je 0x11018918
sub edx, ebx
je 0x110188fa
sub edx, ebx
je 0x110188ee
mov byte [esi + eax + 0x54], bl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [edx + esi], cl
add dword [eax + 0x44], ebx
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [edx + esi], cl
add dword [eax + 0x44], ebx
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [edx + esi], cl
add dword [eax + 0x44], ebx
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [edx + esi], cl
add dword [eax + 0x44], ebx
mov cl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
sub cl, 4
mov byte [esi + edx], cl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [edx + esi], cl
add dword [eax + 0x44], ebx
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [edx + esi], cl
add dword [eax + 0x44], ebx
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [edx + esi], cl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
mov byte [edx + esi], cl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1101a330
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
jne 0x1101a33b
xor al, al
ret
lea ecx, [eax + edi]
cmp ecx, 0x40
jbe 0x1101a397
cmp eax, 0x40
ja 0x1101a385
lea eax, [esi + 0x44]
push esi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
push eax
mov eax, dword [esi + 0x40]
call fcn.1101a1b0
lea eax, [esi + 0x44]
push ebx
push eax
mov eax, edi
call fcn.1101a1b0
add dword [esi + 0x40], edi
mov al, 1
ret
push edi
add eax, esi
push ebx
push eax
call sub.MSVCR100.dll_memcpy
add dword [esi + 0x40], edi
add esp, 0xc
mov al, 1
ret

Function at 0x1101a3b0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x40]
cmp eax, 0xffffffff
je 0x1101a443
cmp eax, 0x40
jbe 0x1101a3d6
push esi
lea esi, [edi + 0x44]
push edi
call fcn.1101a220
mov dword [edi + 0x40], 0x14
pop esi
mov eax, dword [edi + 0x40]
mov ecx, 0x40
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
xor dword [edi + eax*4], 0x36363636
inc eax
cmp eax, 0x10
jb 0x1101a3f0
lea eax, [edi + 0x44]
push edi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
push eax
mov eax, 0x40
call fcn.1101a1b0
mov dword [edi + 0x40], 0xffffffff
test ebx, ebx
je 0x1101a456
mov edx, dword [ebp + 8]
lea eax, [edi + 0x44]
push edx
push eax
mov eax, ebx
call fcn.1101a1b0
pop ebp
ret 4

Function at 0x1101a460
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x1101a48b
push ebx
push 0
xor ebx, ebx
call fcn.1101a3b0
pop ebx
lea ecx, [ebp - 0x18]
lea esi, [edi + 0x44]
push ecx
call fcn.1101a220
xor eax, eax
lea esp, [esp]
xor dword [edi + eax*4], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x1101a4a0
push edi
push esi
mov eax, 0x40
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
call fcn.1101a1b0
lea edx, [ebp - 0x18]
push edx
push esi
mov eax, 0x14
call fcn.1101a1b0
lea eax, [ebp - 0x18]
push eax
call fcn.1101a220
mov eax, dword [ebp + 0xc]
pop edi
pop esi
test eax, eax
je 0x1101a51b
mov edx, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 8
Function at 0x1101dda0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0x10]
mov ecx, 0x41
mov esi, 0x11285bb8
mov edi, 0x11285cbc
rep movsd dword es:[edi], dword [esi]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1101de7f
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x10]
push ecx
call edi
test eax, eax
je 0x1101ddf9
xor eax, eax
nop
cmp esi, 0x104
jae 0x1101de01
mov dl, byte [ebp + eax - 0x10]
mov byte [esi + 0x11285bb8], dl
inc eax
inc esi
cmp eax, 8
jl 0x1101dde0
cmp esi, 0x104
jb 0x1101ddd3
xor eax, eax
jmp 0x1101de10
movzx edx, byte [eax + 0x11285cbc]
movzx ecx, byte [eax + 0x11285cbd]
not dl
xor byte [eax + 0x11285bb8], dl
movzx edx, byte [eax + 0x11285cbe]
not cl
xor byte [eax + 0x11285bb9], cl
movzx ecx, byte [eax + 0x11285cbf]
not dl
xor byte [eax + 0x11285bba], dl
movzx edx, byte [eax + 0x11285cc0]
not cl
xor byte [eax + 0x11285bbb], cl
not dl
xor byte [eax + 0x11285bbc], dl
add eax, 5
cmp eax, 0x104
jl 0x1101de10
mov edi, 0x11285bb8
call fcn.1101dec0
mov edi, 0x11285cbc
call fcn.1101dec0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.MSVCR100.dll_rand_s]
lea eax, [ebp - 4]
push eax
call edi
add esp, 4
test eax, eax
jne 0x1101dea9
mov cl, byte [ebp - 4]
mov byte [esi + 0x11285bb8], cl
inc esi
cmp esi, 0x104
jb 0x1101de85
jmp 0x1101de01
push 0xd7
xor ecx, ecx
call fcn.110014b0
int3
Function at 0x1101dfc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [eax + 8]
push esi
push edi
mov edi, dword [eax + 4]
test ebx, ebx
je 0x1101e11b
mov eax, dword [0x11285dc0]
lea esp, [esp]
mov esi, 0x104
sub esi, eax
cmp ebx, esi
jae 0x1101dfed
mov esi, ebx
push esi
lea eax, [eax + 0x11285cbc]
push eax
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [0x11285dc0]
add eax, esi
add edi, esi
add esp, 0xc
sub ebx, esi
mov dword [ebp - 8], edi
mov dword [0x11285dc0], eax
cmp eax, 0x104
jne 0x1101e113
mov ecx, 0x41
mov esi, 0x11285bb8
mov edi, 0x11285cbc
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x10]
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1101e073
lea ecx, [ecx]
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1101e069
xor eax, eax
cmp esi, 0x104
jae 0x1101e09a
mov cl, byte [ebp + eax - 0x10]
mov byte [esi + 0x11285bb8], cl
inc eax
inc esi
cmp eax, 8
jl 0x1101e050
cmp esi, 0x104
jb 0x1101e040
jmp 0x1101e09a
lea edx, [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_rand_s]
add esp, 4
test eax, eax
jne 0x1101e122
mov al, byte [ebp - 4]
mov byte [esi + 0x11285bb8], al
inc esi
cmp esi, 0x104
jb 0x1101e073
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + 0x11285cbc]
movzx edx, byte [eax + 0x11285cbd]
not cl
xor byte [eax + 0x11285bb8], cl
movzx ecx, byte [eax + 0x11285cbe]
not dl
xor byte [eax + 0x11285bb9], dl
movzx edx, byte [eax + 0x11285cbf]
not cl
xor byte [eax + 0x11285bba], cl
movzx ecx, byte [eax + 0x11285cc0]
not dl
xor byte [eax + 0x11285bbb], dl
not cl
xor byte [eax + 0x11285bbc], cl
add eax, 5
cmp eax, 0x104
jl 0x1101e0a0
mov edi, 0x11285bb8
call fcn.1101dec0
mov edi, 0x11285cbc
call fcn.1101dec0
mov edi, dword [ebp - 8]
xor eax, eax
mov dword [0x11285dc0], eax
test ebx, ebx
jne 0x1101dfe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xd7
xor ecx, ecx
call fcn.110014b0
int3
Function at 0x11026f00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
test esi, esi
jne 0x11026f1a
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov byte [ebp - 1], 0
xor edi, edi
call ebx
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.111886d0
test eax, eax
je 0x11026fa1
inc edi
cmp edi, dword [ebp + 0xc]
jge 0x11026f73
call ebx
mov esi, eax
sub esi, dword [ebp - 8]
cmp esi, 0x4b
jb 0x11026f59
push 0x407
call dword [sym.imp.USER32.dll_GetQueueStatus]
test eax, eax
jne 0x11026f6f
cmp esi, 0xfa
jae 0x11026f73
mov ecx, dword [ebp + 8]
call fcn.111886d0
test eax, eax
jne 0x11026f38
jmp 0x11026f73
mov byte [ebp - 1], 1
test edi, edi
je 0x11026fa1
mov ecx, dword [ebp + 8]
push edi
call fcn.1117be60
test eax, eax
je 0x11026fa1
cmp byte [ebp - 1], 0
jne 0x11026fa1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0xc]
push 0
add ecx, 0x10
push 0
push 0x501
call edx
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x110274a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x110274c3
push 0x151
push str.e:_nsmsrc_nsm14101410fctl32wndclass.h
push 0x111f761c
call fcn.11067750
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop esi
pop ebp
ret 8
Function at 0x11030420
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x18], eax
call fcn.1113dd30
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
lea edx, [ebp - 0x68]
push edx
push 0x110303a0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x48], edi
mov byte [ebp - 0x20], bl
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x110304c1
cmp dword [ebp - 0x5c], ebx
je 0x110304bc
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x110304bc
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetRgnBox]
cmp eax, 1
jne 0x110304bc
mov dword [ebp - 0x5c], ebx
mov edx, dword [ebp - 0x5c]
mov dword [esi], edx
cmp byte [ebp - 0x20], bl
je 0x110304cc
call dword [sym.imp.GDI32.dll_GdiFlush]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x110304da
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x44]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x110304eb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x58]
call fcn.1113cd80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret

Function at 0x11030f90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0
jne 0x11030fb6
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x11030f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
mov ecx, esi
mov byte [esi + 0x2a], 0
call fcn.1102fca0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x11032d50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x404]
sub esp, 0x2c
test ecx, ecx
jne 0x11032e88
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, 1
push esi
mov word [ebx + 8], dx
lea edx, [ecx + 0x12]
push edi
add eax, 0x418
lea ecx, [ebx + 8]
mov edi, dword [ecx]
cmp edi, dword [eax]
jne 0x11032da3
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x11032d81
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x11032da3
mov al, byte [eax + 1]
cmp al, byte [ecx + 1]
je 0x11032dfa
mov ecx, dword [ebp + 8]
xor eax, eax
mov byte [ecx + 0x409], 0
mov edx, dword [ebx + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov dx, word [ebx + 0x18]
push eax
push ecx
mov word [ebp - 0x1c], dx
call fcn.11031980
add esp, 8
cmp word [ebx + 0xa], 1
jne 0x11032e62
mov edi, dword [ebx + 4]
shr edi, 1
lea eax, [edi*4]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x11032e76
xor eax, eax
test edi, edi
jle 0x11032e48
jmp 0x11032e30
mov cx, word [ebx + eax*2 + 0x1a]
mov word [esi + eax*4], cx
mov dx, word [ebx + eax*2 + 0x1a]
mov word [esi + eax*4 + 2], dx
inc eax
cmp eax, edi
jl 0x11032e30
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
push esi
push ecx
call fcn.11032cc0
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x10
jmp 0x11032e76
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 8]
push edx
add ebx, 0x1a
push ebx
push eax
call fcn.11032cc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx + 0x234], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x11034fb0
Capabilities:
Check os version

Disassembly:
cmp dword [0x1127a584], 0
jne 0x11034fe6
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x11034fe9
push str.AudioCapture.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1127a584], eax
test eax, eax
jne 0x11034fdd
mov eax, 2
ret
call fcn.11034e90
test eax, eax
jne 0x11034fe8
xor eax, eax
ret
mov eax, 1
ret

Function at 0x11035060
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x530]
push eax
call fcn.11144330
add esp, 4
test eax, eax
je 0x11035160
push 0
push 0
push 0
lea ecx, [ebp - 0x530]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
mov dword [0x1127a55c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x110350d2
xor ecx, ecx
mov word [eax + 2], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [0x1127a55c]
push eax
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x514]
push str._sNSSilence.exe__u__u
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea edx, [ebp - 0x574]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0x20
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp - 0x574]
push ecx
push 0
push 0
push 0x4000000
push 1
push 0
push 0
lea edx, [ebp - 0x514]
push edx
push 0
mov dword [ebp - 0x574], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x11035160
mov eax, dword [ebp - 0x524]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x520]
push ecx
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret

Function at 0x110354c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0xc]
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
je 0x110354f8
mov edi, dword [ebp + 8]
mov edi, edi
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x110354f0
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x110354fa
inc edx
add eax, 0x28
cmp edx, esi
jb 0x110354e0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x11035af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
jne 0x11035b0f
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x11035b0a
mov eax, dword [esi + 8]
jmp 0x11035b0f
mov eax, 1
cmp byte [esi + 0x18], 0
jne 0x11035be4
mov ecx, dword [esi + 0x2c]
cmp ecx, dword [esi + 0x44]
ja 0x11035be4
jb 0x11035b33
mov edx, dword [esi + 0x28]
cmp edx, dword [esi + 0x40]
jae 0x11035be4
push ebx
mov ebx, dword [esi + 0x38]
test eax, eax
jle 0x11035bd8
mov dword [ebp + 8], eax
push edi
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x44]
ja 0x11035bc6
jb 0x11035b55
mov ecx, dword [esi + 0x28]
cmp ecx, dword [esi + 0x40]
jae 0x11035bc6
mov eax, dword [esi + 0x10]
lea edx, [ebx + ebx*4]
mov ecx, dword [eax + edx*4 + 0x10]
lea edi, [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [edi], 0
mov dword [edi + 4], 0
mov edx, dword [esi + 0x28]
mov dword [edi + 8], edx
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov cl, 0x20
call fcn.111d9330
push edi
mov dword [edi + 0xc], eax
mov eax, dword [esi + 4]
push 0
push eax
imul eax, ebx
add eax, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x11035bbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x11035bbc
cmp eax, 0x3e5
je 0x11035bbc
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 4]
add dword [esi + 0x28], ecx
adc dword [esi + 0x2c], 0
inc ebx
cmp ebx, dword [esi + 8]
jl 0x11035bce
xor ebx, ebx
dec dword [ebp + 8]
jne 0x11035b43
pop edi
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x30]
pop ebx
pop esi
pop ebp
ret 4
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x11036000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
mov eax, 1
je 0x11036116
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 8]
push edi
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
lea edi, [ecx + eax*4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x34]
jb 0x11036077
ja 0x11036042
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x30]
jb 0x11036077
mov eax, dword [esi + 0xc]
push 1
lea edx, [ebp - 4]
push edx
push edi
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1103606e
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi]
jae 0x11036077
mov dword [esi + 0x24], 1
jmp 0x11036077
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], eax
cmp dword [esi + 0x24], 0
je 0x11036085
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [esi + 0x18]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov cl, 0x20
call fcn.111d9330
mov dword [edi + 0xc], eax
mov eax, dword [esi]
imul eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
add eax, dword [esi + 0x14]
push edi
add ecx, 0xfff
push 0
and ecx, 0xfffff000
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x110360ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x110360ff
push edi
push edi
push str.Error__d__x_x__writing_file_n
call fcn.111bd7b0
add esp, 0xc
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x28]
cdq
add dword [esi + 0x18], eax
mov dword [esi + 0x28], 0
mov eax, 1
adc dword [esi + 0x1c], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x11036120
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
xor eax, eax
push esi
mov esi, ecx
cmp dword [esi + 0x24], eax
push edi
sete al
cmp dword [esi + 0xc], 0xffffffff
mov edi, eax
mov dword [ebp - 4], edi
je 0x11036247
cmp dword [esi + 0x14], 0
je 0x11036247
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test edi, edi
je 0x11036166
mov ecx, esi
call fcn.11036000
mov dword [ebp - 4], eax
mov edi, dword [esi + 4]
xor eax, eax
push ebx
test edi, edi
jle 0x11036191
mov ecx, dword [esi + 8]
mov edx, edi
add ecx, 0x10
jmp 0x11036180
mov ebx, dword [ecx]
mov dword [ebp + eax*4 - 0x90], ebx
inc eax
add ecx, 0x14
cmp eax, edx
jl 0x11036180
push 0xffffffffffffffff
push 1
lea edx, [ebp - 0x90]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
cmp dword [esi + 4], edi
jle 0x11036212
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 8]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
lea eax, [ecx + eax*4]
push 1
lea ecx, [ebp - 8]
push ecx
mov dword [ebp + edi*4 - 0x90], edx
mov edx, dword [esi + 0xc]
push eax
push edx
mov dword [ebp - 8], 0
call ebx
test eax, eax
jne 0x110361ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x11036204
inc dword [esi + 0x20]
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 4]
jl 0x110361fc
mov dword [esi + 0x20], 0
inc edi
cmp edi, dword [esi + 4]
jl 0x110361b0
jmp 0x11036212
mov dword [esi + 0x24], 0x70
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push 0
push 0
push ecx
push eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
pop ebx
test eax, eax
jne 0x11036233
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x11036247
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x1103626d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x11036266
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], eax
mov dword [esi + 0xc], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret