joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101984d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [0x101b0f18], 0x968
mov dword [ebp - 0x10], eax
call fcn.10198a0e
xor ecx, ecx
mov edx, eax
mov dword [0x101b0f18], 0x15f9
mov esi, dword [eax + 0x3c]
mov dword [0x101b0f14], 0xfffff591
mov dword [0x101b0f18], 0x58
mov esi, dword [eax + esi + 0x78]
mov dword [0x101b0f18], 0xfffffbf7
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101b0f14], 0x38ca
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
jne 0x1019855e
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x101985dc
mov al, byte [ebp - 0x41]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x40]
add edx, 1
mov ah, byte [ebp - 0x42]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x3c], edx
jne 0x1019858a
mov al, byte [ebp - 0x42]
test al, 1
jne 0x10198612
jmp 0x101985e5
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov edx, dword [ebp - 0x34]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ecx
jb 0x10198570
jmp 0x10198553
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov dword [0x101b0f14], 0x2457
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101b0f18], 0x163f
mov dword [ebp - 0x24], edi
jmp 0x10198553
Function at 0x10198644
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [0x101b0f14], 0x24f2
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, 0x13da
xor edx, edx
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [0x101b0f14], 0x13da
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x101986a1
xor eax, eax
mov dword [0x101b0f14], 0x1321
mov dword [ebp - 0x1c], eax
jmp 0x101987a4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
je 0x101986e6
mov eax, dword [ebp - 0x20]
add eax, 1
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffe00
mov dword [0x101b0f14], ecx
cmp eax, 0x104
mov edx, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
jl 0x101986a1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x2c], eax
jne 0x1019868d
mov dword [0x101b0f14], 0x5bf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1019868d
mov dword [0x101b0f18], 0x47
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1019868d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1019868d
mov dword [0x101b0f14], 0xfffffa1e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1019868d
mov dword [0x101b0f18], 0x519
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1019868d
mov eax, 1
mov dword [0x101b0f14], 0x24bd
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x1019868d
mov eax, dword [ebp - 0x1c]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x10198ba7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x93e
xor ebx, ebx
mov dword [0x101b0f1c], 0
mov dword [0x101b0f20], 0
mov dword [0x101b0f2c], 0
mov dword [0x101b0f14], 0x1b7a
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
jne 0x10198c1e
mov eax, dword [ebp - 0x28]
mov dword [0x101b0f14], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x109d
mov edi, 0x100
mov ebx, edx
add ebx, 1
mov dword [0x101b0f14], 0xcd7
add eax, 1
mov dword [ebp - 0x30], edx
cdq
idiv edi
mov dword [0x101b0f1c], edx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x34]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x101b0f20], edx
mov dword [0x101b0f14], 0x1a1e
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
mov cl, byte [ecx + edi]
mov byte [0x101b0f24], cl
mov dword [0x101b0f18], 0xfffff974
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x24]
mov byte [edx + edi], cl
mov cl, byte [0x101b0f24]
mov edx, dword [0x101b0f20]
mov edi, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov dword [0x101b0f14], 0x6cf
mov edx, dword [0x101b0f1c]
movzx edx, byte [edi + edx]
mov ecx, dword [0x101b0f20]
movzx ecx, byte [edi + ecx]
add ecx, edx
mov dword [0x101b0f14], 0x257e
and ecx, 0xff
mov dword [0x101b0f2c], ecx
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
xor cl, byte [edx + edi]
mov byte [0x101b0f30], cl
mov dword [0x101b0f18], 0x16d0
mov edx, dword [ebp - 0x20]
mov byte [edx + edi], cl
mov dword [0x101b0f14], 0x22d9
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], esi
je 0x10198c0e
mov eax, dword [0x101b0f20]
mov ecx, dword [0x101b0f1c]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], ecx
jmp 0x10198c1e
Function at 0x10198d41
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x101b0f14], 0x1742
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.10197f28
lea ecx, [0x10197a5b]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x7c], 0x139200
mov edx, dword [0x101b0f00]
mov dword [esp + 0x68], edx
mov edx, dword [0x101b0f04]
mov dword [esp + 0x3c], edx
mov dword [0x101b0f18], 0x848
mov edx, dword [0x101b0f08]
mov dword [esp + 0x6c], edx
mov edx, dword [0x101b0f0c]
mov dword [esp + 0x24], edx
mov edx, dword [0x101b0f10]
mov dword [esp + 0x70], edx
mov dword [0x101b0f14], 0x96b
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x10198e16
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov dword [0x101b0f18], 0x58
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x40], edx
mov dword [0x101b0f14], 0xc36
call fcn.10198644
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x10198e4d
jmp 0x10198ea0
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10198e39
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10198dd7
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10198e16
lea eax, [esp + 0x20]
mov dword [0x101b0f14], 0x996
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10197d32
mov dword [0x101b0f14], 0x26f7
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x101b0f18]
add ecx, 0xfffff46a
mov dword [0x101b0f14], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4078cd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x83d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x4078d7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x40791d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x4078fc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40793c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00437510
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x4079cc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x407982
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x407998
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x4079bf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x407971
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x10008d73
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000bacc
push ebx
push esi
call fcn.1000b9f8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b98c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000ba79
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000bacb
push edi
push eax
call fcn.1000c9ea
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000ba99
call fcn.1000a4d4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000baca
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b98c
add esp, 0x20
test eax, eax
jne 0x1000bab8
push edi
call fcn.1000a4d4
jmp 0x1000bac0
push ebx
call fcn.1000a4d4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000bd39
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013678
push 0x10013670
push str.FlsAlloc
push 0x1f
call fcn.1000bc55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bd6d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001214c]
call esi
jmp 0x1000bd73
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000bdb7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013688
push 0x10013680
push str.FlsGetValue
push 0x21
call fcn.1000bc55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bdee
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001214c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000bdf6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013690
push 0x10013688
push str.FlsSetValue
push 0x22
call fcn.1000bc55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000be30
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001214c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100114b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100114dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100114dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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 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 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 0x497137
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e42
mov eax, dword [0x7827c0]
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.00406258
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x497179
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4972d5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004063b6
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 + 0x786370]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040344a
mov ecx, dword [esi*4 + 0x786370]
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 0x4972ce
cmp eax, dword [edi + ecx + 0x24]
jne 0x4972ce
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 0x4972ce
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040344a
add esp, 0x14
test edx, edx
jl 0x4972ce
jg 0x497244
test eax, eax
jb 0x4972ce
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4972ce
jl 0x49725e
cmp dword [ebp - 0x1008], eax
ja 0x4972ce
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49727c
test ebx, ebx
je 0x4972b5
cmp ecx, edi
jae 0x4972b5
mov al, byte [ecx]
cmp al, 0xd
jne 0x497296
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4972a2
cmp byte [ecx + 1], 0xa
jne 0x4972a2
inc ecx
jmp 0x4972a2
movzx eax, al
movsx eax, byte [eax + 0x782b20]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49727c
cmp edx, ebx
jne 0x49727c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4972d3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040320b
leave
ret
Function at 0x497a14
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 + 0x786370]
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 0x497a54
cmp byte [ebx], 0xa
jne 0x497a54
or byte [eax + edi + 0x28], 4
jmp 0x497a59
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x497b57
mov al, byte [edx]
cmp al, 0x1a
je 0x497b39
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x497a88
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x497aad
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x497ab7
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 0x497a6a
jmp 0x497b57
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 0x497b34
cmp dword [ebp - 0xc], 0
je 0x497b34
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x786370]
test byte [eax + edi + 0x28], 0x48
je 0x497b0e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x497af9
mov byte [esi], dl
jmp 0x497b0a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x786370]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x497b57
cmp byte [ebp - 1], 0xa
jne 0x497b1d
cmp esi, ebx
jne 0x497b1d
mov byte [esi], 0xa
jmp 0x497b56
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004019b5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x497b57
mov byte [esi], 0xd
jmp 0x497b56
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x786370]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x497b53
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497b57
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x497bb3
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 + 0x786370]
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 0x497bf6
cmp word [esi], dx
jne 0x497bf6
or byte [edi + eax + 0x28], 4
jmp 0x497bfb
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 0x497d4e
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 0x497d2e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x497c3d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x497c73
cmp eax, edx
jae 0x497c7f
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 0x497c15
jmp 0x497d4e
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 0x497d2a
cmp dword [ebp - 0x14], 0
je 0x497d2a
mov eax, dword [ebx*4 + 0x786370]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x497d02
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x497ccb
mov word [esi], cx
jmp 0x497cfe
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x786370]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x786370]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x786370]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x497d4e
pop ebx
cmp word [ebp - 4], bx
jne 0x497d13
cmp esi, dword [ebp + 0xc]
jne 0x497d13
mov word [esi], bx
jmp 0x497d4b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004019b5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x497d4e
push 0xd
jmp 0x497d47
mov ecx, dword [ebx*4 + 0x786370]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x497d45
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497d4e
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