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

Disassembly:
mov eax, 8
call fcn.0052c8c0
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x14]
inc ebx
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x54e8ce
mov edx, dword [esp + 0x20]
lea eax, [ebx + edx]
cmp eax, ecx
jbe 0x54e8c1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
add dword [edi + 0xc], edx
add dword [edi + 0x10], edx
sub ecx, edx
mov dword [edi + 4], ecx
jmp 0x54e8d2
cmp ebx, ecx
ja 0x54e8b8
test dword [esi + 0x100], 0x200
mov eax, dword [edi + 0xc]
movzx ebx, byte [eax + ecx - 1]
je 0x54e921
cmp dword [esi + 0x88], 0
jne 0x54e921
mov eax, dword [esi + 0x58]
push 8
add eax, 8
push 0x5ae8ec
push eax
call fcn.004947b0
add esp, 0xc
test eax, eax
jne 0x54e914
test bl, 1
jne 0x54e914
mov eax, dword [esi + 0x58]
or dword [eax], 8
mov eax, dword [esi + 0x58]
test byte [eax], 8
je 0x54e921
test ebx, ebx
je 0x54e921
dec ebx
mov eax, dword [esi + 0x80]
push ebp
push dword [eax]
call fcn.00494bc0
mov ebp, dword [edi + 4]
add esp, 4
mov dword [esp + 0x14], ebp
and eax, 0x200000
je 0x54e953
sub ebp, ebx
mov eax, 1
dec ebp
mov dword [edi + 4], ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x28]
mov edx, ebp
add ecx, ebx
mov eax, ebp
sub edx, ecx
xor eax, ecx
xor edx, ecx
mov ecx, 0xff
or edx, eax
lea eax, [ebp - 1]
xor edx, ebp
shr edx, 0x1f
dec edx
cmp eax, ecx
mov dword [esp + 0x1c], edx
cmovb ecx, eax
xor esi, esi
test ecx, ecx
je 0x54e9d8
mov eax, ebx
shr eax, 0x1f
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
lea edi, [ebp - 1]
add edi, eax
mov ebp, ecx
mov al, byte [esp + 0x28]
lea edi, [edi - 1]
mov edx, ebx
mov ecx, esi
sub edx, esi
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc esi
or dl, al
movzx eax, byte [edi + 1]
xor dl, byte [esp + 0x28]
xor eax, ebx
dec dl
movzx ecx, dl
mov edx, dword [esp + 0x1c]
and ecx, eax
not ecx
and edx, ecx
mov dword [esp + 0x1c], edx
cmp esi, ebp
jb 0x54e995
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
not edx
lea eax, [ebx + 1]
movzx ecx, dl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub ebp, eax
shl eax, 8
or dword [edi], eax
mov eax, ecx
mov dword [edi + 4], ebp
and eax, 1
pop ebp
pop edi
not ecx
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x5564c0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0xc
call fcn.0052c8c0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ebx
push ebp
movzx ebx, byte [ecx + 7]
movzx eax, byte [edx + 7]
movzx ebp, byte [ecx + 3]
sub ebx, eax
movzx eax, byte [edx + 6]
mov dword [esp + 0xc], ebx
movzx ebx, byte [ecx + 6]
sub ebx, eax
mov eax, dword [esp + 0xc]
sar eax, 8
add ebx, eax
movzx eax, byte [edx + 5]
push esi
movzx esi, byte [ecx + 5]
sub esi, eax
movzx eax, byte [edx + 4]
push edi
movzx edi, byte [ecx + 4]
sub edi, eax
movzx eax, byte [edx + 3]
sub ebp, eax
movzx eax, byte [edx + 2]
mov dword [esp + 0x18], eax
mov ah, byte [edx + 1]
mov al, byte [ecx + 2]
mov dl, byte [edx]
mov byte [esp + 0x24], ah
mov ah, byte [ecx + 1]
mov cl, byte [ecx]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x20], ah
mov byte [esp + 0x12], dl
movzx eax, al
test cl, cl
jns 0x556597
mov ecx, ebx
sar ecx, 8
add ecx, esi
and ebx, ecx
sar ecx, 8
add ecx, edi
mov edx, ecx
sar edx, 8
add edx, ebp
and ecx, edx
sar edx, 8
add edx, eax
movzx eax, byte [esp + 0x24]
sub edx, dword [esp + 0x18]
and ecx, edx
sar edx, 8
sub edx, eax
movzx eax, byte [esp + 0x20]
add edx, eax
movzx eax, byte [esp + 0x12]
and ecx, edx
sar edx, 8
sub edx, eax
and ebx, ecx
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 0x14]
add edx, eax
and ebx, edx
not ebx
jmp 0x5565df
mov edx, ebx
sar edx, 8
add edx, esi
or ebx, edx
sar edx, 8
add edx, edi
or ebx, edx
sar edx, 8
add edx, ebp
or ebx, edx
sar edx, 8
add edx, eax
movzx eax, byte [esp + 0x24]
sub edx, dword [esp + 0x18]
or ebx, edx
sar edx, 8
sub edx, eax
movzx eax, byte [esp + 0x20]
add edx, eax
movzx eax, byte [esp + 0x12]
or ebx, edx
sar edx, 8
sub edx, eax
movzx eax, byte [esp + 0x13]
add edx, eax
or ebx, edx
pop edi
pop esi
and edx, 0xffffff00
test bl, bl
pop ebp
pop ebx
je 0x5565f9
or edx, 0x80
mov eax, edx
add esp, 0xc
ret
movzx eax, cl
add eax, edx
add esp, 0xc
ret
Function at 0x559420
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00559610
add esp, 0xc
mov dword [ebp - 4], eax
xor ebx, ebx
lea edi, [eax*4]
test edi, edi
jle 0x55949b
mov ecx, dword [ebp + 8]
lea esi, [esi + edi*4]
add esi, 8
add ecx, 8
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x559455
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
cmp eax, 1
jle 0x559604
add esi, 2
lea edi, [eax - 1]
lea ebx, [ebx]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x5b0838]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b1038]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b0c38]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b1438]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x5b0838]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b1038]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b0c38]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b1438]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x5b0838]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b1038]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b0c38]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b1438]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x5b0838]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b1038]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b0c38]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5b1438]
mov dword [esi + 0xa], ecx
dec edi
jne 0x5594b0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x562800
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x562814
mov dword [esp + 0x18], fcn.00560fd0
jmp fcn.004f2a10
mov dword [esp + 0x18], fcn.00560270
jmp fcn.004f2750
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x1e0262b0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x2a8f281b
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401ca2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov ecx, ebx
push edi
mov dword [esp + 0x1c], edx
mov eax, ecx
mov byte [esp + ecx + 0x30], cl
cdq
idiv dword [ebp + 0xc]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x130], al
inc ecx
cmp ecx, 0x100
jl 0x401cce
mov edi, ebx
mov esi, ebx
mov dl, byte [esp + esi + 0x30]
movzx eax, byte [esp + esi + 0x130]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401d12
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x30]
mov byte [esp + esi + 0x30], al
inc esi
mov byte [esp + edi + 0x30], dl
cmp esi, 0x100
jl 0x401cef
mov edi, ebx
mov dword [esp + 0x20], ebx
mov eax, ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1c]
mov esi, 0x3e8
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x401d57
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x401d6e
lea ecx, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004036b3
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub esi, 1
jne 0x401d48
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
cmp dword [eax], ebx
jle 0x401dfb
mov edi, eax
inc ebx
and ebx, 0x800000ff
jns 0x401d98
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x30]
mov edx, dword [esp + 0x20]
movzx esi, cl
add edx, esi
and edx, 0x800000ff
jns 0x401db5
dec edx
or edx, 0xffffff00
inc edx
mov al, byte [esp + edx + 0x30]
mov byte [esp + ebx + 0x30], al
mov dword [esp + 0x20], edx
mov byte [esp + edx + 0x30], cl
call fcn.00402b8f
push eax
call fcn.00402d52
movzx eax, byte [esp + ebx + 0x34]
mov edx, dword [esp + 0x30]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x24]
movzx eax, al
mov al, byte [esp + eax + 0x30]
xor byte [edx + ecx], al
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi]
jl 0x401d87
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
sub edi, eax
and edi, 0xfffffffc
push edi
push eax
call fcn.004031bc
pop ecx
pop ecx
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c93
mov esp, ebp
pop ebp
ret
Function at 0x401fee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [0x4822b0]
xor ecx, ecx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402063
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004029b8
lea ecx, [esp + 0x14]
call fcn.00401e1e
cmp eax, 0x8aafdc01
je 0x40207a
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402a45
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x40202a
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c93
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402d84
push eax
call fcn.00402ffd
mov eax, dword [ebx + 0x24]
pop ecx
mov ecx, dword [esp + 0xc]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402a45
jmp 0x402065
Function at 0x404bdb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404bfc
jl 0x404bf3
test edi, edi
jne 0x404bfc
xor eax, eax
xor edx, edx
jmp 0x404cbd
cmp dword [ebx + 0x38], 0
je 0x404c11
push eax
push edi
push dword [ebp + 8]
call fcn.00404cc3
jmp 0x404cbd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404c58
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404c58
cmp eax, edi
jb 0x404c32
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407c60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404c5e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404cb2
mov ecx, ebx
call fcn.0040442a
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404c9d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040c66c
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404cb2
jmp 0x404c70
test edx, edx
je 0x404cb2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040c66c
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407a43
Capabilities:
Parse pe header

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

Function at 0x411f3d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421398
push 0x421390
push str.FlsAlloc
push 0x1e
call fcn.00411e26
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f71
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e12c]
call esi
jmp 0x411f77
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411fbb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4213a8
push 0x4213a0
push str.FlsGetValue
push 0x20
call fcn.00411e26
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411ff2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e12c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x413736
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004133d8

Function at 0x413741
Capabilities:
Read file on windows

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

Function at 0x413b3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407bb0
mov eax, dword [0x428040]
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.004125cd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413b7d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413cd9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d260
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 + 0x481f78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414d0b
mov ecx, dword [esi*4 + 0x481f78]
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 0x413cd2
cmp eax, dword [edi + ecx + 0x24]
jne 0x413cd2
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 0x413cd2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414d0b
add esp, 0x14
test edx, edx
jl 0x413cd2
jg 0x413c48
test eax, eax
jb 0x413cd2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413cd2
jl 0x413c62
cmp dword [ebp - 0x1008], eax
ja 0x413cd2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413c80
test ebx, ebx
je 0x413cb9
cmp ecx, edi
jae 0x413cb9
mov al, byte [ecx]
cmp al, 0xd
jne 0x413c9a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413ca6
cmp byte [ecx + 1], 0xa
jne 0x413ca6
inc ecx
jmp 0x413ca6
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413c80
cmp edx, ebx
jne 0x413c80
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413cd7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406c93
leave
ret
Function at 0x4141a9
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 + 0x481f78]
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 0x4141e9
cmp byte [ebx], 0xa
jne 0x4141e9
or byte [eax + edi + 0x28], 4
jmp 0x4141ee
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4142ec
mov al, byte [edx]
cmp al, 0x1a
je 0x4142ce
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41421d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414242
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41424c
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 0x4141ff
jmp 0x4142ec
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 0x4142c9
cmp dword [ebp - 0xc], 0
je 0x4142c9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481f78]
test byte [eax + edi + 0x28], 0x48
je 0x4142a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41428e
mov byte [esi], dl
jmp 0x41429f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481f78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4142ec
cmp byte [ebp - 1], 0xa
jne 0x4142b2
cmp esi, ebx
jne 0x4142b2
mov byte [esi], 0xa
jmp 0x4142eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414d29
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4142ec
mov byte [esi], 0xd
jmp 0x4142eb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481f78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4142e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4142ec
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4142f5
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 + 0x481f78]
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 0x414338
cmp word [esi], dx
jne 0x414338
or byte [edi + eax + 0x28], 4
jmp 0x41433d
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 0x414490
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 0x414470
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41437f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4143b5
cmp eax, edx
jae 0x4143c1
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 0x414357
jmp 0x414490
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 0x41446c
cmp dword [ebp - 0x14], 0
je 0x41446c
mov eax, dword [ebx*4 + 0x481f78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x414444
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41440d
mov word [esi], cx
jmp 0x414440
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481f78]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481f78]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481f78]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414490
pop ebx
cmp word [ebp - 4], bx
jne 0x414455
cmp esi, dword [ebp + 0xc]
jne 0x414455
mov word [esi], bx
jmp 0x41448d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414d29
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414490
push 0xd
jmp 0x414489
mov ecx, dword [ebx*4 + 0x481f78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414487
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414490
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