joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10066630
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10096283
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.1008a02f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.1008f6e1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.10090bfd
test eax, eax
je 0x1006674c
mov ecx, dword [esp + 0x3c]
call fcn.1008f70e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10066710
push edi
mov ecx, esi
call fcn.1008cd61
mov ecx, esi
call fcn.100668b0
cmp dword [esp + 0x38], 1
jne 0x10066745
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.1008ce9c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x10069160
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10069193
push esi
call fcn.1006c270
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1006918c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x10069219
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10069202
mov eax, dword [esi + 8]
test eax, eax
je 0x100691b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x100691fe
cmp eax, 2
je 0x10069202
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100691aa
cmp eax, 3
je 0x100691dd
cmp eax, 1
jne 0x100691aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x100691aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x100691aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10069240
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10069228
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10069240
add esp, 4
pop esi
ret

Function at 0x100744d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x100744dc
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x1007456f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], pe_nt_image_headers32
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x10074539
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.10074580
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x1007450e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x100745a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x1007469d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x100745f2
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x1007461e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.10074580
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x1007465f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x100745e1
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x10075660
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x100b42e4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x10075673
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x100756b4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x100b438c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x100756e6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x100756ea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x100756db
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x10075708
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1007570c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x100756fd
xor ecx, ecx
mov eax, 0x100b42f4
xor ebx, ebx
mov bl, byte [ecx + 0x100b439c]
cmp byte [esp + ebx + 0x14], 0
je 0x10075737
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x100b43b4]
cmp byte [esp + ebx + 0x14], 0
je 0x1007574e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x1007571e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x100756a7
lea edx, [esp + 0x84]
push edx
call fcn.10075790
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x1008ae24
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1008ae5c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10088edb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10088eb3
jmp 0x1008ae68
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1008c51e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1008c560
call fcn.10091fe8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1008c560
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1008c557
xor eax, eax
jmp 0x1008c568
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1008c56e
pop edi
pop esi
pop ebx
ret 4
Function at 0x401320
Capabilities:
Create shortcut via ishelllink
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40258b
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x4036e8
push 1
push 0
push 0x4036d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4014af
push ebx
push esi
lea ecx, [esp + 0x1c]
push 0x100
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [esp + 0xc]
push 0x404090
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x4036f8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4014a3
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 8]
mov dword [esp + 0x32c], ebx
push eax
push 0xf003f
push ebx
push str.softwaremicrosoftwindowscurrentversionexplorer_shell_folders
push 0x80000001
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013f1
mov ebx, dword [esp + 8]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x18]
push edi
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.desktop
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, 0x404028
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x120]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test ebx, ebx
je 0x401491
push ebx
call esi
xor ebx, ebx
test ebx, ebx
mov dword [esp + 0x32c], 0xffffffff
je 0x4014a3
push ebx
call esi
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
add esp, 0x328
ret
Function at 0x401d59
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x84
push edi
push 1
push 1
push 0x404158
call sub.MPR.dll_WNetCancelConnection2A
push 0x404254
lea eax, [esp + 0x28]
push str.sepdb_bjnet_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 1
push ecx
lea edx, [esp + 0xc]
push 0x40422c
push edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 0x404158
mov dword [esp + 0x28], str.10.51.14.9dlsc
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
pop edi
je 0x401dd7
push 0
push 0
push 0x404118
call sub.MFC42.DLL_AfxMessageBox
mov eax, 0xb
add esp, 0x84
ret
mov eax, dword [esp + 0x88]
test eax, eax
je 0x401ded
mov ecx, dword [0x4042a4]
call fcn.00401e30
xor eax, eax
add esp, 0x84
ret

Function at 0x401f70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
mov ecx, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
dec ecx
neg ecx
sbb ecx, ecx
push edx
and cl, 4
push 1
push 0
add ecx, 0x100
push eax
push 0x80000002
mov dword [esp + 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401fb2
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0x14]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x20]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401fe8
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
Function at 0x403000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433e6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00410453
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x40308b
push eax
push esi
call fcn.00410ab8
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00410667
int3
Function at 0x40e010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00411d8b
mov esi, eax
add esp, 4
test esi, esi
je 0x40e05f
push 1
mov dword [ebp - 4], 0
call fcn.004109b8
add esp, 4
mov dword [esi + 4], eax
jmp 0x40e061
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x41ff3e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41ff7d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ff7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ff7d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41ff7d
cmp dword [ecx + 0x74], 0xe
jbe 0x41ff7d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4252bd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439c3c
push 0x439c34
push str.FlsAlloc
push 0x1f
call fcn.004250e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4252f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x435190]
call esi
jmp 0x4252f7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42533b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439c4c
push 0x439c44
push str.FlsGetValue
push 0x21
call fcn.004250e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425372
push dword [ebp + 8]
mov ecx, esi
call dword [0x435190]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42537a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439c54
push 0x439c4c
push str.FlsSetValue
push 0x22
call fcn.004250e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4253b4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x435190]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x426ee0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00412bc0
mov eax, dword [0x44507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004248b6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x426f22
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42707e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004335e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x446d78]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00427edd
mov ecx, dword [esi*4 + 0x446d78]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x427077
cmp eax, dword [ecx + edi + 0x24]
jne 0x427077
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427077
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00427edd
add esp, 0x14
test edx, edx
jl 0x427077
jg 0x426fed
test eax, eax
jb 0x427077
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x427077
jl 0x427007
cmp dword [ebp - 0x1008], eax
ja 0x427077
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x427025
test ebx, ebx
je 0x42705e
cmp ecx, edi
jae 0x42705e
mov al, byte [ecx]
cmp al, 0xd
jne 0x42703f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42704b
cmp byte [ecx + 1], 0xa
jne 0x42704b
inc ecx
jmp 0x42704b
movzx eax, al
movsx eax, byte [eax + 0x445310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x427025
cmp edx, ebx
jne 0x427025
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42707c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412293
leave
ret
Function at 0x427375
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x446d78]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4273b5
cmp byte [ebx], 0xa
jne 0x4273b5
or byte [edi + eax + 0x28], 4
jmp 0x4273ba
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4274b9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42749c
inc eax
cmp dl, 0xd
je 0x4273e6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42740c
cmp eax, ecx
jae 0x42741a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4273ce
jmp 0x4274b9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427497
cmp dword [ebp - 0x10], 0
je 0x427497
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x446d78]
test byte [eax + edi + 0x28], 0x48
je 0x427471
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42745c
mov byte [esi], dl
jmp 0x42746d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x446d78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4274b9
cmp byte [ebp - 1], 0xa
jne 0x427480
cmp esi, ebx
jne 0x427480
mov byte [esi], 0xa
jmp 0x4274b8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00427efb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4274b9
mov byte [esi], 0xd
jmp 0x4274b8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x446d78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4274b6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4274b9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4274c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x446d78]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x427508
cmp word [ebx], dx
jne 0x427508
or byte [eax + edi + 0x28], 4
jmp 0x42750d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x427670
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x427650
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42754e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x427584
cmp eax, edx
jae 0x427592
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x427529
jmp 0x427670
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42764b
cmp dword [ebp - 0x18], 0
je 0x42764b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x446d78]
test byte [eax + edi + 0x28], 0x48
je 0x427621
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4275e5
mov word [esi], cx
jmp 0x42761c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x446d78]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x446d78]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x446d78]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x427670
pop eax
cmp word [ebp - 4], ax
jne 0x427631
cmp esi, ebx
jne 0x427631
mov word [esi], ax
jmp 0x42766d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00427efb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x427670
push 0xd
pop eax
jmp 0x42762c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x446d78]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42766a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x427670
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret