joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c2c0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x42c260
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x42c27e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42c2dc
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x42c2c3
or byte [eax + ecx], 1
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
cmp dword [ebp + 8], ebx
je 0x42c2cc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x42c2d6
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42c2b8
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x42c242
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x42c329
dec eax
je 0x42c320
sub eax, 3
je 0x42c317
mov dword [ebp - 4], 0x40
jmp 0x42c346
mov dword [ebp - 4], 4
jmp 0x42c32c
mov dword [ebp - 4], 0x20
jmp 0x42c32c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x42c378
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x42c2f8
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0042bb89
je 0x42c396
idiv edi
jne 0x42c383
push 1
push esi
call edi
mov eax, esi
jmp 0x42c384
push 0x8000
rcr byte [edi + 0x5e], 0x5b
int 0xf7
invalid

Function at 0x42c77c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0042bb99
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
invalid
invalid
Function at 0x42d524
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x42dc2f
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x42d704
and byte [ebp - 0x77c], 0
cmp dword [ebp - 0x6fc], 1
jne 0x42d7b5
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.0042bb99
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.0042bafa
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x42db01
cmp dword [ebp - 0x6fc], 2
jne 0x42d872
and byte [ebp - 0x79c], 0
and byte [ebp - 0x79b], 0
mov byte [ebp - 0x79a], 0x10
and byte [ebp - 0x799], 0
mov byte [ebp - 0x798], 0xb3
mov byte [ebp - 0x797], 0x8c
mov byte [ebp - 0x796], 0x80
mov byte [ebp - 0x795], 0x81
mov byte [ebp - 0x794], 0x9d
mov byte [ebp - 0x793], 0x8a
mov byte [ebp - 0x792], 0x9c
mov byte [ebp - 0x791], 0xc1
mov byte [ebp - 0x790], 0x8b
mov byte [ebp - 0x78f], 0x83
mov byte [ebp - 0x78e], 0x83
mov byte [ebp - 0x78d], 0xef
call fcn.0042bb89
out 0x97, eax
or dword [esi], ebp
push 0xc
lea eax, [ebp - 0x79c]
push eax
call fcn.0042bb99
pop ecx
push eax
mov eax, dword [ebp - 0x550]
lea eax, [ebp + eax - 0x654]
push eax
call fcn.0042bafa
add esp, 0xc
lea eax, [ebp - 0x654]
mov dword [ebp - 0x3a0], eax
jmp 0x42db01
cmp dword [ebp - 0x6fc], 3
jne 0x42d913
and byte [ebp - 0x7ac], 0
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
invalid
movsd dword es:[edi], dword [esi]
push edi
clc
invalid
invalid
Function at 0x401933
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, section..data
mov ecx, 0x6296
mov esi, 0x5116ef
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0xc
xor byte [eax], dl
inc eax
dec esi
jne 0x401943
pop esi
ret

Function at 0x401a9f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push ebx
mov ebx, eax
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
movzx eax, word [esi + 0x14]
push edi
lea edi, [eax + esi + 0x18]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x401ae6
push 7
push str..custom
push edi
call fcn.00401618
add esp, 0xc
test eax, eax
je 0x401aed
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jl 0x401ac3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [edi + 0xc]
mov esi, dword [eax + ebx]
lea edi, [eax + ebx + 8]
mov ebx, dword [eax + ebx + 4]
push esi
call fcn.00401e2c
and dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
push ecx
push 1
push 5
push edi
lea ecx, [ebp - 0xc]
push ecx
add edi, 5
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0x40195c
mov dword [ebp - 0x14], 0x401967
call fcn.004037de
add esp, 0x28
test eax, eax
je 0x401b4d
push dword [ebp - 4]
call fcn.00401e43
pop ecx
jmp 0x401ae6
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
jmp 0x401ae8

Function at 0x401d80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
je 0x401dbf
push edi
mov edi, dword [esp + 0x14]
sub edi, 0x1b686f8
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov eax, edx
shr eax, 0xc
xor al, byte [edi + esi + 0x1b686f8]
inc esi
mov byte [esi + 0x1b686f7], al
cmp esi, ebx
jb 0x401d9b
pop edi
pop esi
mov byte [ebx + 0x1b686f8], 0
mov eax, 0x1b686f8
pop ebx
ret

Function at 0x401dce
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x401e0c
mov eax, dword [esp + 0x10]
sub eax, 0x1b686f8
push ebx
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov ebx, edx
shr ebx, 0xc
xor bl, byte [eax + esi + 0x1b686f8]
inc esi
mov byte [esi + 0x1b686f7], bl
cmp esi, edi
jb 0x401de8
pop ebx
mov byte [edi + 0x1b686f8], 0
mov byte [edi + 0x1b686f9], 0
pop edi
mov eax, 0x1b686f8
pop esi
ret
Function at 0x401f2e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x401f47
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x401f6a
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x401f6f
inc edi
cmp edi, dword [ebp - 4]
jb 0x401f61
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x402067
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x401fc6
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x401f9a
cmp cl, 0xff
jne 0x401ff1
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x401fff
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x402006
dec ecx
shl edx, cl
and edx, 7
je 0x401f8b
movzx ecx, byte [edx + 0x1656294]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x165628c], 0
mov cl, byte [ebx + 4]
je 0x401fee
test cl, cl
je 0x401fee
cmp cl, 0xff
jne 0x401f8b
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x401f5c
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x40203a
movzx esi, byte [edx + 0x1656294]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x402025
cmp al, 0xff
jne 0x402037
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x401fb8
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x401f5c
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x406553
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
cmp eax, 8
ja case.0x4064ea.1
jmp dword [eax*4 + 0x4065d0]
push dword [ebp + 0xc]
call fcn.004065f9
and dword [0x42c16c], 0
jmp case.0x4064ea.1
mov eax, dword [0x42c16c]
xor ecx, ecx
cmp ecx, dword [ebp + 0x14]
ja case.0x4064ea.1
mov esi, dword [ebp + 0x10]
jb 0x406522
cmp eax, esi
jae case.0x4064ea.1
call fcn.004069b0
add dword [0x42c16c], 0x100000
xor eax, eax
cmp eax, dword [ebp + 0x14]
jb 0x406522
ja case.0x4064ea.1
cmp dword [0x42c16c], esi
jb 0x406522
jmp case.0x4064ea.1
push dword [ebp + 0xc]
call fcn.004065f9
call fcn.004069b0
jmp case.0x4064ea.1
call fcn.004069b0
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0xc]
call fcn.004066ae
mov esi, eax
test esi, esi
jns case.0x4064ea.1
push 0x403c70
jmp 0x4065c0
mov eax, dword [0x42c16c]
xor ecx, ecx
cmp ecx, dword [ebp + 0x14]
ja case.0x4064ea.1
mov esi, dword [ebp + 0x10]
jb 0x406590
cmp eax, esi
jae case.0x4064ea.1
call fcn.004069b0
add dword [0x42c16c], 0x80000
xor eax, eax
cmp eax, dword [ebp + 0x14]
jb 0x406590
ja case.0x4064ea.1
cmp dword [0x42c16c], esi
jb 0x406590
call fcn.004069e3
mov esi, eax
test esi, esi
jns 0x4065c8
push 0x403bf8
push esi
call fcn.0040854a
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x4164c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x41661b
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x416505
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41650a
inc edi
cmp edi, dword [ebp - 8]
jb 0x4164fc
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x4165fb
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x41658e
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x416536
cmp cl, 0xff
jne 0x4165bd
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x4165ce
movzx esi, byte [edx + 0x404eb0]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
mov cl, bl
test cl, cl
je 0x41657e
cmp cl, 0xff
jne 0x4165cb
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x416554
dec ecx
shl edx, cl
and edx, 7
je 0x416523
movzx ecx, byte [edx + 0x404eb0]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x404ea8], 0
mov cl, byte [ebx + 4]
je 0x4165ba
test cl, cl
je 0x4165ba
cmp cl, 0xff
jne 0x416523
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4164f7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4164f7
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0xc

Function at 0x417fd9
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 4]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x417ff5
push ebx
push ebx
push eax
call fcn.00417e48
cmp eax, ebx
jne 0x41804e
push edi
lea edi, [esi + 8]
cmp dword [edi], ebx
jne 0x418009
push ebx
push ebx
push edi
call fcn.00417e48
cmp eax, ebx
jne 0x41804d
lea eax, [esi + 4]
call fcn.00417f72
mov eax, edi
call fcn.00417f72
mov byte [esi + 0x10], bl
cmp dword [esi + 0xc], ebx
je 0x418024
xor eax, eax
jmp 0x41804d
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x417f92
push ebx
push ebx
call fcn.004237af
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x418020
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x41804d
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x4191d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a050]
jne 0x4191df
repz ret
jmp fcn.0041ad54
Function at 0x404c16
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x404c96
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x404c95
push ebx
mov ebx, 0x45bb28
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x420548
mov byte [edi + esi], al
call fcn.0040daae
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x404c38
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00404793
pop edi
pop ebp
ret 0x14

Function at 0x407b83
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 0x407ba4
jl 0x407b9b
test edi, edi
jne 0x407ba4
xor eax, eax
xor edx, edx
jmp 0x407c65
cmp dword [ebx + 0x38], 0
je 0x407bb9
push eax
push edi
push dword [ebp + 8]
call fcn.00407c6b
jmp 0x407c65
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407c00
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407c00
cmp eax, edi
jb 0x407bda
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004093c0
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 0x407c06
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407c5a
mov ecx, ebx
call fcn.0040741d
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407c45
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040f0c3
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 0x407c5a
jmp 0x407c18
test edx, edx
je 0x407c5a
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040f0c3
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 0x408f18
Capabilities:
Parse pe header

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

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

Function at 0x4165b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409370
mov eax, dword [0x459f40]
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.004141be
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4165f7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416753
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041f060
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 + 0x45c4e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417354
mov ecx, dword [esi*4 + 0x45c4e0]
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 0x41674c
cmp eax, dword [edi + ecx + 0x24]
jne 0x41674c
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 0x41674c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417354
add esp, 0x14
test edx, edx
jl 0x41674c
jg 0x4166c2
test eax, eax
jb 0x41674c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41674c
jl 0x4166dc
cmp dword [ebp - 0x1008], eax
ja 0x41674c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4166fa
test ebx, ebx
je 0x416733
cmp ecx, edi
jae 0x416733
mov al, byte [ecx]
cmp al, 0xd
jne 0x416714
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416720
cmp byte [ecx + 1], 0xa
jne 0x416720
inc ecx
jmp 0x416720
movzx eax, al
movsx eax, byte [eax + 0x45a210]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4166fa
cmp edx, ebx
jne 0x4166fa
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416751
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408791
leave
ret
Function at 0x4167f2
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 + 0x45c4e0]
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 0x416832
cmp byte [ebx], 0xa
jne 0x416832
or byte [eax + edi + 0x28], 4
jmp 0x416837
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416935
mov al, byte [edx]
cmp al, 0x1a
je 0x416917
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416866
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41688b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416895
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 0x416848
jmp 0x416935
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 0x416912
cmp dword [ebp - 0xc], 0
je 0x416912
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45c4e0]
test byte [eax + edi + 0x28], 0x48
je 0x4168ec
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4168d7
mov byte [esi], dl
jmp 0x4168e8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45c4e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416935
cmp byte [ebp - 1], 0xa
jne 0x4168fb
cmp esi, ebx
jne 0x4168fb
mov byte [esi], 0xa
jmp 0x416934
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417372
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416935
mov byte [esi], 0xd
jmp 0x416934
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45c4e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416931
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416935
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41693e
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 + 0x45c4e0]
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 0x416981
cmp word [esi], dx
jne 0x416981
or byte [edi + eax + 0x28], 4
jmp 0x416986
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 0x416ad9
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 0x416ab9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4169c8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4169fe
cmp eax, edx
jae 0x416a0a
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 0x4169a0
jmp 0x416ad9
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 0x416ab5
cmp dword [ebp - 0x14], 0
je 0x416ab5
mov eax, dword [ebx*4 + 0x45c4e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416a8d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416a56
mov word [esi], cx
jmp 0x416a89
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x45c4e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x45c4e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x45c4e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416ad9
pop ebx
cmp word [ebp - 4], bx
jne 0x416a9e
cmp esi, dword [ebp + 0xc]
jne 0x416a9e
mov word [esi], bx
jmp 0x416ad6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417372
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416ad9
push 0xd
jmp 0x416ad2
mov ecx, dword [ebx*4 + 0x45c4e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416ad0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416ad9
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