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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
push edi
test ebx, ebx
jle 0x1006f767
mov eax, ebx
sub eax, esi
push eax
lea eax, [esi + edx]
push eax
push ecx
call fcn.1021dd1c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1006f767
cmp edi, 0xffffffff
jne 0x1006f74f
call fcn.1020368c
cmp dword [eax], 4
jne 0x1006f75d
add esi, edi
cmp esi, ebx
jge 0x1006f767
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
jmp 0x1006f728
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006f7d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.100aa0d0
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0
mov esi, ecx
push 0
push ebx
mov dword [ebp - 0x2010], esi
call fcn.10213ae9
add esp, 0xc
cmp eax, 0xffffffff
je 0x1006f939
push 0
push 0
push esi
call fcn.10213ae9
add esp, 0xc
cmp eax, 0xffffffff
je 0x1006f939
xor eax, eax
mov dword [ebp - 0x200c], eax
push edi
nop dword [eax]
xor esi, esi
mov eax, 0x2000
sub eax, esi
push eax
lea eax, [ebp - 0x2004]
add eax, esi
push eax
push ebx
call fcn.1021dd1c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1006f86f
cmp edi, 0xffffffff
jne 0x1006f865
call fcn.1020368c
cmp dword [eax], 4
jne 0x1006f904
add esi, edi
cmp esi, 0x2000
jl 0x1006f832
test esi, esi
jle 0x1006f902
mov edi, esi
mov dword [ebp - 0x2008], 0
lea ebx, [ebp - 0x2004]
nop dword [eax]
push edi
push ebx
push dword [ebp - 0x2010]
call fcn.10217ebc
add esp, 0xc
cmp eax, 0xffffffff
je 0x1006f8bd
mov ecx, dword [ebp - 0x2008]
test eax, eax
je 0x1006f8cd
add ebx, eax
sub edi, eax
add ecx, eax
mov dword [ebp - 0x2008], ecx
jmp 0x1006f8cd
call fcn.1020368c
cmp dword [eax], 4
jne 0x1006f8e4
mov ecx, dword [ebp - 0x2008]
test edi, edi
jg 0x1006f890
cmp ecx, 0xffffffff
je 0x1006f8e4
add dword [ebp - 0x200c], esi
mov ebx, dword [ebp + 8]
jmp 0x1006f830
pop edi
pop esi
mov dword [0x104e712c], 0xf
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
jns 0x1006f922
pop edi
pop esi
mov dword [0x104e712c], 0xe
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x200c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
xor ecx, ebp
mov dword [0x104e712c], 0xd
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x10074910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
call fcn.10072e40
add esp, 4
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], edx
cmp dword [0x10434958], 0
je 0x100749b3
push 0
push 0x15180
mov eax, dword [0x10434964]
push eax
mov ecx, dword [0x10434960]
push ecx
call fcn.100aa020
mov esi, eax
mov edi, edx
push 0
push 0x15180
mov edx, dword [ebp - 0x444]
push edx
mov eax, dword [ebp - 0x448]
push eax
call fcn.100aa020
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], edx
mov ecx, dword [ebp - 0x454]
cmp ecx, dword [ebp - 0x45c]
jne 0x100749b3
mov edx, dword [ebp - 0x450]
cmp edx, dword [ebp - 0x458]
je 0x10074ae5
mov dword [ebp - 0x428], 0
xor eax, eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.10072e60
add esp, 8
mov byte [ebp - 0x404], 0
push 0x3ff
push 0
lea eax, [ebp - 0x403]
push eax
call fcn.101fd960
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
push ecx
mov edx, dword [ebp - 0x418]
add edx, 1
push edx
mov eax, dword [ebp - 0x414]
add eax, 0x76c
push eax
mov ecx, dword [section..data]
push ecx
push 0x10434924
lea edx, [ebp - 0x440]
push edx
call fcn.1008c6b0
add esp, 4
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
call fcn.10055330
push eax
push str._slog_s__d__04d__02d__02d.log
lea eax, [ebp - 0x404]
push eax
call fcn.100758a0
add esp, 0x20
lea ecx, [ebp - 0x440]
call fcn.10055650
cmp dword [0x10434958], 0
je 0x10074aa8
mov ecx, dword [0x10434958]
push ecx
call fcn.10203b9b
add esp, 4
call fcn.10073cc0
push 0x40
push 0x102f0230
lea edx, [ebp - 0x404]
push edx
call fcn.10203f84
add esp, 0xc
mov dword [0x10434958], eax
cmp dword [0x10434958], 0
jne 0x10074ace
jmp 0x10074b0d
mov eax, dword [ebp - 0x448]
mov dword [0x10434960], eax
mov ecx, dword [ebp - 0x444]
mov dword [0x10434964], ecx
mov edx, dword [0x10434958]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1020423c
add esp, 0x10
mov edx, dword [0x10434958]
push edx
call fcn.10203da9
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x1007d650
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x3c], 0xc
lea edx, [ebp - 0x50]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 0xc]
push eax
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1007d6dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0xc]
push edx
push str.CreateMutex___s_failed:_d__n
push 8
call fcn.10072f60
add esp, 0x10
jmp 0x1007d7b0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1007d722
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
push str.OpenFileMapping_:_s_failured_:_d_n
push 8
call fcn.10072f60
add esp, 0x10
jmp 0x1007d7b0
push 0x2800
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1007d75f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.Read_share_Memery_:_s_failed:_d__n
push 8
call fcn.10072f60
add esp, 0x10
jmp 0x1007d7b0
mov dword [ebp - 0x2c], 0
push 4
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.101fcde0
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x1007d7a8
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x20]
add edx, 4
push edx
lea ecx, [ebp - 0x1c]
call fcn.10063130
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.10055690
lea ecx, [ebp - 0x1c]
call fcn.10055650
xor ecx, ecx
jne 0x1007d6a5
cmp dword [ebp - 0x20], 0
je 0x1007d7c0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x28], 0
je 0x1007d7d0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
je 0x1007d7ea
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x10081470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 1
jl 0x10081488
cmp dword [ebp + 0xc], 8
jg 0x10081488
mov byte [ebp - 1], 1
jmp 0x1008148c
mov byte [ebp - 1], 0
push str.bad_pack_level
movzx eax, byte [ebp - 1]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007e4a0
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x100814d5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af78], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af70], 0x10000
mov eax, 4
imul ecx, eax, 0x7fff
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x4af70], 0
push 0x1fffc
push 0
mov eax, dword [ebp + 8]
add eax, 0x4af70
push eax
call fcn.101fd960
add esp, 0xc
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x102f344a]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af98], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x102f3448]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af9c], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x102f344c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6afa0], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x102f344e]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af94], edx
cmp dword [ebp + 0xc], 2
jg 0x1008156d
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
or edx, 4
mov eax, dword [ebp + 0x10]
mov word [eax], dx
jmp 0x10081582
cmp dword [ebp + 0xc], 8
jl 0x10081582
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
or edx, 2
mov eax, dword [ebp + 0x10]
mov word [eax], dx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af74], 0
mov dword [ebp - 8], 0x8000
mov eax, dword [ebp - 8]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x1af70
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 0
je 0x100815e9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x10081605
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af8c], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], 0
jmp 0x1008167d
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0x106
jae 0x1008162d
mov edx, dword [ebp + 8]
push edx
call fcn.10080a80
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], 0
mov dword [ebp - 8], 0
jmp 0x1008164c
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 2
jae 0x1008167d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x1af70]
xor eax, edx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x10081643
mov esp, ebp
pop ebp
ret
Function at 0x10082a40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x10082a50
xor eax, eax
jmp 0x10082bed
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x10082bae
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x102f3570]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x102f3570]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x102f3570]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x102f3570]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x102f3570]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x102f3570]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x102f3570]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x102f3570]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x10082a59
cmp dword [ebp + 0x10], 0
je 0x10082be7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x102f3570]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x10082bb4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x10082bf0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x102f3570]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 0
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
and ecx, 0xff
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx]
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
imul eax, dword [edx + ecx], 0x8088405
add eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x18
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
mov eax, 4
shl eax, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x102f3570]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
pop ebp
ret
Function at 0x100831a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x2d]
test edx, edx
je 0x10083282
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x100831f1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp + 0xc]
jae 0x100831f1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100a9a1f
add esp, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x3c], 0
jne 0x1008321d
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
call fcn.100a9c5c
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.101fcde0
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x10083246
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x10083279
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x30
push edx
call fcn.10082d10
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 8]
mov byte [edx + ecx], al
jmp 0x1008323d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 0
je 0x100832dd
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x28]
jb 0x100832aa
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0x30000
xor eax, eax
jmp 0x10083312
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x24]
push eax
call fcn.101fcde0
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 0xc]
jmp 0x10083312
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x10083306
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
jmp 0x10083312
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x100838c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x78], 0
je 0x10083976
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x80]
cmp eax, dword [edx + 0x7c]
jb 0x100838ee
xor eax, eax
jmp 0x100839e6
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x7c]
sub eax, dword [edx + 0x80]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jbe 0x1008390e
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x78]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x80]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.101fcde0
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x80]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x6c]
push edx
call fcn.10082a40
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 8]
jmp 0x100839e6
mov edx, dword [ebp - 4]
cmp dword [edx + 0x70], 0
je 0x100839da
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100839a7
xor eax, eax
jmp 0x100839e6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x6c]
push edx
call fcn.10082a40
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0xc]
jmp 0x100839e6
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10084dd0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102e9196
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
call fcn.100558c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.100558c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
add ecx, 0x30
call fcn.100558c0
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x30
call fcn.10062b70
mov ecx, dword [0x1040feb4]
push ecx
mov edx, dword [0x1040feb4]
push edx
push 0x102f467c
lea ecx, [ebp + 8]
call fcn.10089a80
add eax, 1
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.100551f0
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.10055690
lea ecx, [ebp - 0x28]
call fcn.10055650
push str..flock
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.10074c00
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.10055690
lea ecx, [ebp - 0x40]
call fcn.10055650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10055650
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret 0x18