joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10087fa0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10087fb5
xor eax, eax
jmp 0x1008802a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x10087fe2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10088025
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10088023
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1008801f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10088023
xor eax, eax
jmp 0x1008802a
jmp 0x10087fd9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10088280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1020ac28]
mov dword [ebp - 4], eax
jmp 0x10088299
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100882b6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10088290
mov esp, ebp
pop ebp
ret
Function at 0x402ea3
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, 0x405048
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], 0
lea esi, [ebx + 0x5c]
jmp 0x403004
mov eax, dword [eax + 0x24]
test eax, eax
je 0x402ffc
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x10
mov dword [ebp - 0x10], eax
dec eax
jne 0x402ffc
mov edx, dword [edi]
mov ecx, dword [edx + 0x2c]
cmp dword [ecx + 0x34], 0
jne 0x402f18
sub esp, 0xc
push edx
movzx eax, byte [ebx + 5]
push eax
movzx eax, byte [ebx + 4]
push eax
movzx eax, byte [ebx + 3]
push eax
movzx eax, byte [ebx + 2]
push eax
movzx eax, byte [ebx + 1]
push eax
movzx eax, byte [ebx]
push eax
push str.__02x:_02x:_02x:_02x:_02x:_02x_:_is_of_type__s_that_we_have_no_image_for_n
jmp 0x402f5d
cmp dword [ecx], 4
jne 0x402f7e
mov eax, dword [edx + 0x30]
test eax, eax
jne 0x402f26
mov eax, edx
push edx
push edx
push eax
push ecx
call fcn.00403279
add esp, 0x10
test eax, eax
jne 0x402f7e
sub esp, 0xc
push dword [edi]
movzx eax, byte [ebx + 5]
push eax
movzx eax, byte [ebx + 4]
push eax
movzx eax, byte [ebx + 3]
push eax
movzx eax, byte [ebx + 2]
push eax
movzx eax, byte [ebx + 1]
push eax
movzx eax, byte [ebx]
push eax
push str.__02x:_02x:_02x:_02x:_02x:_02x_:_is_of_type__s_that_we_have_no_image_for__ce__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x30
mov byte [ebx + 0x14], 0x99
mov dword [ebp - 0x10], 0
jmp 0x40300e
sub esp, 0xc
push ebx
call fcn.004015e0
mov eax, dword [edi]
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x18], eax
add esp, 0x10
cmp dword [0x408008], 0
jle 0x402fab
sub esp, 0xc
push 0x406b1e
call sub.msvcrt.dll_system
add esp, 0x10
sub esp, 0xc
push dword [ebx + 0x18]
movzx eax, byte [ebx + 5]
push eax
movzx eax, byte [ebx + 4]
push eax
movzx eax, byte [ebx + 3]
push eax
movzx eax, byte [ebx + 2]
push eax
movzx eax, byte [ebx + 1]
push eax
movzx eax, byte [ebx]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push str.__02x:_02x:_02x:_02x:_02x:_02x_:_type__s_router_detected_n
push eax
call sub.msvcrt.dll_fprintf
mov eax, dword [edi]
add esp, 0x30
mov eax, dword [eax + 0x28]
test eax, eax
je 0x40300e
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call eax
add esp, 0x10
jmp 0x40300e
mov eax, dword [edi]
add edi, 4
add esi, dword [eax + 0x34]
mov eax, dword [edi]
test eax, eax
jne 0x402ec3
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4033b7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, 0x200
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x2c]
sub eax, ecx
cmp eax, 0x1ff
ja 0x4033d9
mov esi, eax
mov edx, dword [ebx + 0x24]
xor edi, edi
cmp edx, ecx
jb 0x4033ef
lea eax, [esi + ecx]
mov edi, esi
cmp edx, eax
jae 0x4033ef
mov edi, edx
sub edi, ecx
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x2c]
cmp dword [eax + 0x28], 0
je 0x403461
mov eax, dword [ebx + 0x1c]
test eax, eax
js 0x403491
test edi, edi
jle 0x40347f
push edx
push 0
add ecx, dword [ebx + 0x30]
push ecx
push eax
call sub.msvcrt.dll__lseek
add esp, 0xc
push edi
push dword [ebp + 8]
push dword [ebx + 0x1c]
call sub.msvcrt.dll__read
add esp, 0x10
cmp edi, eax
je 0x40347f
call sub.msvcrt.dll__errno
sub esp, 0xc
or esi, 0xffffffff
push dword [eax]
call sub.msvcrt.dll_strerror
push eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x2c]
push dword [eax + 0x28]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str.Error___reading_from_file__s:__s_n
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x20
jmp 0x403494
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x403491
test edi, edi
jle 0x40347f
add eax, ecx
add eax, dword [ebx + 0x30]
push ecx
push edi
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0x10
cmp edi, esi
je 0x403494
mov ecx, esi
xor eax, eax
sub ecx, edi
add edi, dword [ebp + 8]
cld
rep stosb byte es:[edi], al
jmp 0x403494
or esi, 0xffffffff
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403518
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
push 0x10000
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x14], eax
pop eax
pop edx
push 0x8000
push dword [ebp + 8]
call sub.msvcrt.dll__open
add esp, 0x10
mov esi, eax
test eax, eax
jns 0x403577
call sub.msvcrt.dll__errno
sub esp, 0xc
or edi, 0xffffffff
push dword [eax]
call sub.msvcrt.dll_strerror
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp + 8]
add eax, 0x40
push str.Error___cant_open_image_file__s:__s_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x20
jmp 0x403673
push eax
push 0x10000
push dword [ebp - 0x14]
push esi
call sub.msvcrt.dll__read
add esp, 0x10
mov edi, eax
test eax, eax
js 0x4035a5
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor ebx, ebx
add eax, 0x40
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], eax
jmp 0x40363a
call sub.msvcrt.dll__errno
sub esp, 0xc
push dword [eax]
call sub.msvcrt.dll_strerror
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp + 8]
add eax, 0x40
push str.Error___cant_read_image_file__s:__s_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x20
jmp 0x403667
cmp dword [eax + 0x24], 0
je 0x403639
push eax
push 2
push 0
push esi
call sub.msvcrt.dll__lseek
add esp, 0x10
mov edx, eax
test eax, eax
jns 0x403612
call sub.msvcrt.dll__errno
sub esp, 0xc
push dword [eax]
call sub.msvcrt.dll_strerror
push eax
push dword [ebp + 8]
push str.Unable_to_retrieve_file_size_of__s:__s_n
push dword [ebp - 0x18]
call sub.msvcrt.dll_fprintf
add esp, 0x20
jmp 0x403639
push edx
push edi
push dword [ebp - 0x14]
mov eax, dword [ebx*4 + 0x405174]
push eax
call dword [eax + 0x24]
add esp, 0x10
dec eax
jne 0x403639
mov eax, dword [ebx*4 + 0x405174]
mov edx, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov byte [ebp - 0xd], 1
inc ebx
mov eax, dword [ebx*4 + 0x405174]
test eax, eax
jne 0x4035d3
xor edi, edi
cmp byte [ebp - 0xd], 0
jne 0x403667
push ebx
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp + 8]
add eax, 0x40
push str.Unsupported_image__s:_ignoring_file_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
sub esp, 0xc
push esi
call sub.msvcrt.dll__close
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0x14]
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403688
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x403717
mov dword [eax + 0x38], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx*4 + 0x405174]
cmp dword [eax + 0x24], 0
je 0x403714
mov edx, dword [eax]
test edx, edx
je 0x403714
cmp edx, 4
jne 0x4036c3
mov dword [eax + 0x30], 0x66
mov eax, dword [ebp - 0x10]
mov esi, dword [eax*4 + 0x405174]
push eax
push 0xa
movzx eax, word [esi + 0x30]
push eax
push 0
call sub.KERNEL32.dll_FindResourceA
mov ebx, eax
pop eax
test ebx, ebx
je 0x403714
push edi
push edi
push ebx
push 0
call sub.KERNEL32.dll_LoadResource
push ecx
push eax
call sub.KERNEL32.dll_LockResource
sub esp, 0xc
mov edi, eax
push ebx
push 0
call sub.KERNEL32.dll_SizeofResource
add esp, 0x18
push eax
push eax
push edi
push esi
call dword [esi + 0x24]
add esp, 0x10
dec eax
jne 0x403714
mov dword [esi + 0x2c], edi
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx*4 + 0x405174]
test eax, eax
jne 0x40369a
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x7ea2ac0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x7ea2c8d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
or ebp, 0xffffffff
jmp 0x7ea2aea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7ea2af1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ea2ae0
mov eax, 1
add ebx, ebx
jne 0x7ea2b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7ea2af8
jne 0x7ea2b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7ea2af8
xor ecx, ecx
sub eax, 3
jb 0x7ea2b28
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7ea2b9a
mov ebp, eax
add ebx, ebx
jne 0x7ea2b33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x7ea2b40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x7ea2b64
inc ecx
add ebx, ebx
jne 0x7ea2b50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7ea2b45
jne 0x7ea2b61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7ea2b45
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7ea2b84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7ea2b75
jmp 0x7ea2ae6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7ea2b84
add edi, ecx
jmp 0x7ea2ae6
pop esi
mov edi, esi
mov ecx, 0xc33
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7ea2ba2
cmp byte [edi], 7
jne 0x7ea2ba2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7ea2ba7
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x7ea2c1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22774]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x228a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7ea2bd4
mov ecx, edi
jns 0x7ea2c03
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x228a4]
or eax, eax
je 0x7ea2c19
mov dword [ebx], eax
add ebx, 4
jmp 0x7ea2bf1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7ea2c50
cmp al, 0xef
ja 0x7ea2c43
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7ea2c25
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7ea2c32
mov ebp, dword [esi + 0x228a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7ea2c84
sub esp, 0xffffff80
jmp 0x7e8d163
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x50ce50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.QNhjSkbP
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x50ce72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ce79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ce68
mov eax, 1
add ebx, ebx
jne 0x50ce8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ce80
jne 0x50ce9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ce80
xor ecx, ecx
sub eax, 3
jb 0x50ceb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50cf22
mov ebp, eax
add ebx, ebx
jne 0x50cebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50cec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ceec
inc ecx
add ebx, ebx
jne 0x50ced8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cecd
jne 0x50cee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cecd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50cf0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cefd
jmp 0x50ce6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50cf0c
add edi, ecx
jmp 0x50ce6e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50cf6b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50cf29
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50cf65
mov dword [ebx], eax
add ebx, 4
jmp 0x50cf46
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50cf9f
sub esp, 0xffffff80
jmp section.bUItIFMf

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41f386
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f028

Function at 0x41f391
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f1b7

Function at 0x41f78b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040afa0
mov eax, dword [0x451b00]
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.0041c994
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f7cd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41f929
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429640
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 + 0x453758]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042095b
mov ecx, dword [esi*4 + 0x453758]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41f922
cmp eax, dword [edi + ecx + 0x24]
jne 0x41f922
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f922
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042095b
add esp, 0x14
test edx, edx
jl 0x41f922
jg 0x41f898
test eax, eax
jb 0x41f922
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41f922
jl 0x41f8b2
cmp dword [ebp - 0x1008], eax
ja 0x41f922
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f8d0
test ebx, ebx
je 0x41f909
cmp ecx, edi
jae 0x41f909
mov al, byte [ecx]
cmp al, 0xd
jne 0x41f8ea
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41f8f6
cmp byte [ecx + 1], 0xa
jne 0x41f8f6
inc ecx
jmp 0x41f8f6
movzx eax, al
movsx eax, byte [eax + 0x451dc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f8d0
cmp edx, ebx
jne 0x41f8d0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41f927
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a419
leave
ret
Function at 0x41fdf9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x453758]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41fe39
cmp byte [ebx], 0xa
jne 0x41fe39
or byte [eax + edi + 0x28], 4
jmp 0x41fe3e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ff3c
mov al, byte [edx]
cmp al, 0x1a
je 0x41ff1e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41fe6d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41fe92
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41fe9c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41fe4f
jmp 0x41ff3c
push 0
lea eax, [ebp - 0xc]
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 0x41ff19
cmp dword [ebp - 0xc], 0
je 0x41ff19
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x453758]
test byte [eax + edi + 0x28], 0x48
je 0x41fef3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41fede
mov byte [esi], dl
jmp 0x41feef
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x453758]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ff3c
cmp byte [ebp - 1], 0xa
jne 0x41ff02
cmp esi, ebx
jne 0x41ff02
mov byte [esi], 0xa
jmp 0x41ff3b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420979
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ff3c
mov byte [esi], 0xd
jmp 0x41ff3b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x453758]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ff38
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ff3c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ff45
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x453758]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ff88
cmp word [esi], dx
jne 0x41ff88
or byte [edi + eax + 0x28], 4
jmp 0x41ff8d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4200e0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4200c0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ffcf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420005
cmp eax, edx
jae 0x420011
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ffa7
jmp 0x4200e0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4200bc
cmp dword [ebp - 0x14], 0
je 0x4200bc
mov eax, dword [ebx*4 + 0x453758]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420094
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42005d
mov word [esi], cx
jmp 0x420090
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x453758]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x453758]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x453758]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4200e0
pop ebx
cmp word [ebp - 4], bx
jne 0x4200a5
cmp esi, dword [ebp + 0xc]
jne 0x4200a5
mov word [esi], bx
jmp 0x4200dd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420979
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4200e0
push 0xd
jmp 0x4200d9
mov ecx, dword [ebx*4 + 0x453758]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4200d7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4200e0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret