joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401cd7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0x14], edx
call fcn.0040b934
mov ebx, eax
call fcn.0040b934
imul ebx, eax
mov dword [ebp - 8], ebx
call fcn.0040b934
and eax, 7
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp ebx, dword [ebp + 0x14]
jge 0x401fcc
mov edx, dword [ebp + 0x10]
movzx edi, byte [edx + ebx]
mov edx, edi
mov ecx, eax
and cl, 0xff
xor dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [ecx + ebx], dl
mov ecx, dword [ebp - 4]
mov edx, eax
shl edx, cl
and edx, 0xffffffff
mov dword [ebp - 0xc], edx
mov ecx, 0x20
sub ecx, dword [ebp - 4]
shr eax, cl
and eax, 0xffffffff
or eax, dword [ebp - 0xc]
add eax, edi
sar edi, 1
jns 0x401d55
adc edi, 0
lea edx, [edi + edi*2]
add eax, edx
inc ebx
cmp ebx, dword [ebp + 0x14]
jl 0x401d19
jmp 0x401fcc
mov eax, dword [ebp - 0x14]
cmp eax, 0x15
ja 0x401fad
jmp dword [eax*4 + 0x401378]
inc dword [ebp - 0x14]
call fcn.0040b934
mov ebx, eax
and ebx, 3
test ebx, ebx
je 0x401fcc
push esi
call fcn.00401bcd
pop ecx
mov esi, eax
dec ebx
test ebx, ebx
jne 0x401fbe
cmp dword [ebp - 0x10], 0
je 0x401d65
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035df
Capabilities:
Terminate process

Disassembly:
jmp 0x452709
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45271a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405911
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b308
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b319
pop esi
ret
push ebx
push edi
push esi
call fcn.0049b1ef
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fb7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b341
push ebx
push esi
push edi
call fcn.004056f0
add esp, 0xc
push 0
call fcn.0040628a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4057bd
Capabilities:
Parse pe header

Disassembly:
jmp 0x4418d1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x441910
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x441910
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x441910
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x441910
cmp dword [ecx + 0x74], 0xe
jbe 0x441910
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x492f0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d9d
mov eax, dword [0x518834]
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.00405e7f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492f50
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4930ac
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405fdd
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 + 0x51c580]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403251
mov ecx, dword [esi*4 + 0x51c580]
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 0x4930a5
cmp eax, dword [edi + ecx + 0x24]
jne 0x4930a5
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 0x4930a5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403251
add esp, 0x14
test edx, edx
jl 0x4930a5
jg 0x49301b
test eax, eax
jb 0x4930a5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4930a5
jl 0x493035
cmp dword [ebp - 0x1008], eax
ja 0x4930a5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x493053
test ebx, ebx
je 0x49308c
cmp ecx, edi
jae 0x49308c
mov al, byte [ecx]
cmp al, 0xd
jne 0x49306d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x493079
cmp byte [ecx + 1], 0xa
jne 0x493079
inc ecx
jmp 0x493079
movzx eax, al
movsx eax, byte [eax + 0x5193a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x493053
cmp edx, ebx
jne 0x493053
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4930aa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403049
leave
ret
Function at 0x4997e1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x518834]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49982c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499ca3
test al, al
jne 0x499826
sub edx, 2
cmp edx, edi
jne 0x49980c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49984e
lea eax, [edi + 2]
cmp edx, eax
je 0x49984e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004993da
add esp, 0x10
jmp 0x499948
push esi
lea ecx, [ebp - 0x255]
call fcn.00499ca3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499891
push dword [ebp - 0x25c]
jmp 0x49983e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4998ce
cmp word [ebp - 0x226], 0
je 0x4998ef
cmp word [ebp - 0x226], ax
jne 0x4998ce
cmp word [ebp - 0x224], 0
je 0x4998ef
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004993da
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49993b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4998a8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499923
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499948
push 0x498dc2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405533
add esp, 0x10
jmp 0x499918
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403049
leave
ret
Function at 0x4a1ad2
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 + 0x51c580]
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 0x4a1b12
cmp byte [ebx], 0xa
jne 0x4a1b12
or byte [eax + edi + 0x28], 4
jmp 0x4a1b17
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a1c15
mov al, byte [edx]
cmp al, 0x1a
je 0x4a1bf7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a1b46
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a1b6b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a1b75
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 0x4a1b28
jmp 0x4a1c15
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 0x4a1bf2
cmp dword [ebp - 0xc], 0
je 0x4a1bf2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x51c580]
test byte [eax + edi + 0x28], 0x48
je 0x4a1bcc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a1bb7
mov byte [esi], dl
jmp 0x4a1bc8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51c580]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a1c15
cmp byte [ebp - 1], 0xa
jne 0x4a1bdb
cmp esi, ebx
jne 0x4a1bdb
mov byte [esi], 0xa
jmp 0x4a1c14
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040193d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a1c15
mov byte [esi], 0xd
jmp 0x4a1c14
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x51c580]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a1c11
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a1c15
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a1c71
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 + 0x51c580]
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 0x4a1cb4
cmp word [esi], dx
jne 0x4a1cb4
or byte [edi + eax + 0x28], 4
jmp 0x4a1cb9
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 0x4a1e0c
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 0x4a1dec
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a1cfb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a1d31
cmp eax, edx
jae 0x4a1d3d
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 0x4a1cd3
jmp 0x4a1e0c
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 0x4a1de8
cmp dword [ebp - 0x14], 0
je 0x4a1de8
mov eax, dword [ebx*4 + 0x51c580]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a1dc0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a1d89
mov word [esi], cx
jmp 0x4a1dbc
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x51c580]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x51c580]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x51c580]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a1e0c
pop ebx
cmp word [ebp - 4], bx
jne 0x4a1dd1
cmp esi, dword [ebp + 0xc]
jne 0x4a1dd1
mov word [esi], bx
jmp 0x4a1e09
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040193d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a1e0c
push 0xd
jmp 0x4a1e05
mov ecx, dword [ebx*4 + 0x51c580]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a1e03
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a1e0c
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
Function at 0x40251d
Capabilities:
Terminate process

Disassembly:
jmp 0x43d537
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x43d548
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004038b4
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4025ae
Capabilities:
Query environment variable

Disassembly:
jmp 0x446432
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x446443
pop esi
ret
push ebx
push edi
push esi
call fcn.00446319
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402aa9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44646b
push ebx
push esi
push edi
call fcn.00403783
add esp, 0xc
push 0
call fcn.00403d91
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4037f1
Capabilities:
Parse pe header

Disassembly:
jmp 0x407d53
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407d92
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407d92
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407d92
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407d92
cmp dword [ecx + 0x74], 0xe
jbe 0x407d92
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x444319
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x472018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x444364
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004448da
test al, al
jne 0x44435e
sub edx, 2
cmp edx, edi
jne 0x444344
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x444386
lea eax, [edi + 2]
cmp edx, eax
je 0x444386
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00443f12
add esp, 0x10
jmp 0x444480
push esi
lea ecx, [ebp - 0x255]
call fcn.004448da
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4443c9
push dword [ebp - 0x25c]
jmp 0x444376
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x444406
cmp word [ebp - 0x226], 0
je 0x444427
cmp word [ebp - 0x226], ax
jne 0x444406
cmp word [ebp - 0x224], 0
je 0x444427
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00443f12
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x444473
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4443e0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44445b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x444480
push 0x4437f8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403693
add esp, 0x10
jmp 0x444450
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040221b
leave
ret
Function at 0x4572c9
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 + 0x474080]
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 0x457309
cmp byte [ebx], 0xa
jne 0x457309
or byte [eax + edi + 0x28], 4
jmp 0x45730e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x45740c
mov al, byte [edx]
cmp al, 0x1a
je 0x4573ee
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x45733d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x457362
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x45736c
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 0x45731f
jmp 0x45740c
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 0x4573e9
cmp dword [ebp - 0xc], 0
je 0x4573e9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x474080]
test byte [eax + edi + 0x28], 0x48
je 0x4573c3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4573ae
mov byte [esi], dl
jmp 0x4573bf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x474080]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45740c
cmp byte [ebp - 1], 0xa
jne 0x4573d2
cmp esi, ebx
jne 0x4573d2
mov byte [esi], 0xa
jmp 0x45740b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401500
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45740c
mov byte [esi], 0xd
jmp 0x45740b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x474080]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x457408
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45740c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x457468
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 + 0x474080]
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 0x4574ab
cmp word [esi], dx
jne 0x4574ab
or byte [edi + eax + 0x28], 4
jmp 0x4574b0
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 0x457603
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 0x4575e3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4574f2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x457528
cmp eax, edx
jae 0x457534
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 0x4574ca
jmp 0x457603
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 0x4575df
cmp dword [ebp - 0x14], 0
je 0x4575df
mov eax, dword [ebx*4 + 0x474080]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4575b7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x457580
mov word [esi], cx
jmp 0x4575b3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x474080]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x474080]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x474080]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x457603
pop ebx
cmp word [ebp - 4], bx
jne 0x4575c8
cmp esi, dword [ebp + 0xc]
jne 0x4575c8
mov word [esi], bx
jmp 0x457600
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401500
add esp, 0x10
cmp word [ebp - 4], bx
je 0x457603
push 0xd
jmp 0x4575fc
mov ecx, dword [ebx*4 + 0x474080]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4575fa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x457603
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