joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sbb ah, 0x7b
btc eax, ebx
mov ebp, esp
sub esp, 0xc
cbw
push 0xa
cwde
movzx eax, word [ebp + 8]
jmp 0x4022e2
push eax
jmp loc.004099eb

Function at 0x405148
Capabilities:
Parse pe header

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

Function at 0x409cf6
Capabilities:
Create process on windows
Link function at runtime on windows
Link many functions at runtime
Parse pe header
Resume thread

Disassembly:
push eax
jmp 0x409a5b
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
sar cl, cl
mov ecx, dword [ebp - 4]
jmp loc.00402356
push ecx
jmp 0x409435
push 0x8000
push 0
cmovo ecx, ebp
mov ecx, dword [ebp + 0xc]
jmp 0x409446
call sub.VCRUNTIME140.dll_memset
lea esp, [esp + 0xc]
cmove eax, edx
xor ecx, ecx
xchg dx, ax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
jmp loc.00402451
jne 0x40995e
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0xc]
shrd edx, eax, 0x89
add ecx, dword [eax + 0x3c]
movzx edx, bp
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
cmp edi, 0x444a7907
cmp dword [edx], 0x4550
jne 0x40995e
push 0x44
lahf
movzx ax, dl
bswap ax
push 0
cwde
movzx eax, bx
lea eax, [ebp - 0x48]
jmp 0x409236
push ebp
mov ebp, esp
bsf cx, dx
lea esp, [esp - 0x1b4]
rol edx, 0x14
cwde
adc cl, 0x5e
mov eax, dword [0x408040]
test dh, 0x4e
xor eax, ebp
mov dword [ebp - 4], eax
rcr dl, 9
rcl dl, cl
mov eax, dword [ebp + 0xc]
bsr dx, cx
or dh, 0x3d
mov dword [ebp - 0x7c], eax
sar dl, 0xe8
mov ecx, dword [ebp - 0x7c]
movzx edx, word [ecx]
test al, 0xa9
cmc
cmp edx, 0x5a4d
jmp 0x409c43
Function at 0x5bd491
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.005bd510
jae 0x5bd49d
xor ecx, ecx
call fcn.005bd510
jae 0x5bd4c7
xor eax, eax
call fcn.005bd510
jae 0x5bd4d8
mov al, 0x10
call fcn.005bd510
adc al, al
jae 0x5bd4b9
jne 0x5bd505
stosb byte es:[edi], al
jmp 0x5bd49e
call fcn.005bd51c
dec ecx
loop 0x5bd4e4
mov eax, ebp
call fcn.005bd51a
jmp 0x5bd506
lodsb al, byte [esi]
shr eax, 1
je 0x5bd52c
adc ecx, 2
mov ebp, eax
jmp 0x5bd506
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.005bd51a
cmp eax, 0x7d00
jae 0x5bd504
cmp eax, 0x500
jae 0x5bd505
cmp eax, 0x7f
ja 0x5bd506
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5bd49e
pop ebp
ret 8
Function at 0x744210
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x310000]
push edi
or ebp, 0xffffffff
jmp 0x744232
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x744239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x744228
mov eax, 1
add ebx, ebx
jne 0x74424b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x74425c
jne 0x74427b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74427b
dec eax
add ebx, ebx
jne 0x744268
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x744240
add ebx, ebx
jne 0x744277
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7442cd
xor ecx, ecx
sub eax, 3
jb 0x744293
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x744302
sar eax, 1
mov ebp, eax
jmp 0x74429e
add ebx, ebx
jne 0x74429e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74426c
inc ecx
add ebx, ebx
jne 0x7442ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74426c
add ebx, ebx
jne 0x7442b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7442ae
jne 0x7442ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7442ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7442ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7442de
jmp 0x74422e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7442ec
add edi, ecx
jmp 0x74422e
pop esi
mov edi, esi
mov ecx, 0x2633
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x74430a
cmp byte [edi], 0x16
jne 0x74430a
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 0x74430f
lea edi, [esi + 0x341000]
mov eax, dword [edi]
or eax, eax
je 0x744387
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34487c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3449d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x74433c
mov ecx, edi
jns 0x74436b
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 + 0x3449d4]
or eax, eax
je 0x744381
mov dword [ebx], eax
add ebx, 4
jmp 0x744359
call dword [esi + 0x3449dc]
mov ebp, dword [esi + 0x3449d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x7443bb
sub esp, 0xffffff80
jmp 0x4457b3
Function at 0x402682
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4048ba
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4048d8
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7b]
xor byte [ecx], al
inc ebx
cmp ebx, 0x68
jb 0x4048c9
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret
Function at 0x40460e
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x40462c
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7e]
xor byte [ecx], al
inc ebx
cmp ebx, 0xa
jb 0x40461d
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x404634
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x404652
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7b]
xor byte [ecx], al
inc ebx
cmp ebx, 0x10
jb 0x404643
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x40465a
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x404678
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7c]
xor byte [ecx], al
inc ebx
cmp ebx, 0x11
jb 0x404669
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x404680
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x40469e
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7d]
xor byte [ecx], al
inc ebx
cmp ebx, 0x11
jb 0x40468f
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4046a6
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4046c4
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7f]
xor byte [ecx], al
inc ebx
cmp ebx, 0x11
jb 0x4046b5
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4046cc
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4046ea
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x80]
xor byte [ecx], al
inc ebx
cmp ebx, 0x11
jb 0x4046db
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4046f2
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x404710
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7f]
xor byte [ecx], al
inc ebx
cmp ebx, 0x11
jb 0x404701
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x404718
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x404736
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7e]
xor byte [ecx], al
inc ebx
cmp ebx, 0x12
jb 0x404727
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x40473e
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x40475c
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7f]
xor byte [ecx], al
inc ebx
cmp ebx, 0x13
jb 0x40474d
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret
Function at 0x404764
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x404782
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7f]
xor byte [ecx], al
inc ebx
cmp ebx, 0x13
jb 0x404773
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x40478a
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4047a8
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7b]
xor byte [ecx], al
inc ebx
cmp ebx, 0x14
jb 0x404799
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4047b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4047ce
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7c]
xor byte [ecx], al
inc ebx
cmp ebx, 0x14
jb 0x4047bf
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4047d6
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4047f4
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x80]
xor byte [ecx], al
inc ebx
cmp ebx, 0x14
jb 0x4047e5
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x4047fc
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x40481a
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7e]
xor byte [ecx], al
inc ebx
cmp ebx, 0x15
jb 0x40480b
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x404822
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x404840
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7d]
xor byte [ecx], al
inc ebx
cmp ebx, 0x18
jb 0x404831
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x404848
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x404866
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7b]
xor byte [ecx], al
inc ebx
cmp ebx, 0x39
jb 0x404857
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x40486e
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x40488c
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7c]
xor byte [ecx], al
inc ebx
cmp ebx, 0x39
jb 0x40487d
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x404894
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4048b2
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7c]
xor byte [ecx], al
inc ebx
cmp ebx, 0x3a
jb 0x4048a3
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret
Function at 0x4048e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4048fe
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7d]
xor byte [ecx], al
inc ebx
cmp ebx, 0xc
jb 0x4048ef
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x404906
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x404924
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7f]
xor byte [ecx], al
inc ebx
cmp ebx, 0xc
jb 0x404915
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x40492c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x40494a
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x80]
xor byte [ecx], al
inc ebx
cmp ebx, 0xd
jb 0x40493b
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x404952
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x404970
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7d]
xor byte [ecx], al
inc ebx
cmp ebx, 0xd
jb 0x404961
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x404978
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x404996
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx - 0x7d]
xor byte [ecx], al
inc ebx
cmp ebx, 0xe
jb 0x404987
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret

Function at 0x40499e
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
lea edx, [esi + 0xa]
jne 0x4049bc
push ebx
xor ebx, ebx
lea ecx, [edx + ebx]
lea eax, [ebx + 0x7e]
xor byte [ecx], al
inc ebx
cmp ebx, 0xf
jb 0x4049ad
pop ebx
mov byte [esi + 9], 1
mov eax, edx
pop esi
ret
Function at 0x4088bf
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 0x4088e0
jl 0x4088d7
test edi, edi
jne 0x4088e0
xor eax, eax
xor edx, edx
jmp 0x4089a1
cmp dword [ebx + 0x38], 0
je 0x4088f5
push eax
push edi
push dword [ebp + 8]
call fcn.0040552d
jmp 0x4089a1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40893c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40893c
cmp eax, edi
jb 0x408916
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a4b0
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 0x408942
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408996
mov ecx, ebx
call fcn.0040822a
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408981
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004122d7
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 0x408996
jmp 0x408954
test edx, edx
je 0x408996
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004122d7
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 0x409afb
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00409e10
mov eax, dword [0x436040]
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.00417ef7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41bb57
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bcce
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425e10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x437988]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cb5b
mov ecx, dword [esi*4 + 0x437988]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41bcc7
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bcc7
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x41bcc7
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cb5b
add esp, 0x14
cmp edx, esi
jl 0x41bcc7
jg 0x41bc22
cmp eax, esi
jb 0x41bcc7
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x41bcc7
jl 0x41bc44
cmp dword [ebp - 0x1008], eax
ja 0x41bcc7
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x41bc69
cmp ebx, esi
je 0x41bcae
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x41bcae
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bc8f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bc9b
cmp byte [ecx + 1], 0xa
jne 0x41bc9b
inc ecx
jmp 0x41bc9b
movzx eax, al
movsx eax, byte [eax + 0x436308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bc75
cmp edx, ebx
jne 0x41bc75
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x41bccc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409513
leave
ret
Function at 0x41bf4d
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x41bf67
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x41bf7e
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x41bfd6
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0041e7e1
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x41bfd6
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41bfd6
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41bfd6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41bfd0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x41bfd2
xor bl, bl
mov al, bl
jmp 0x41bfd8
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x41bfe7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x437988]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c029
cmp byte [ebx], 0xa
jne 0x41c029
or byte [edi + eax + 0x28], 4
jmp 0x41c02e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c131
mov cl, byte [eax]
cmp cl, 0x1a
je 0x41c10c
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x41c05d
mov eax, dword [ebp - 8]
jmp 0x41c07d
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x41c099
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x41c077
add eax, 2
mov cl, 0xa
jmp 0x41c07a
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x41c03f
jmp 0x41c131
push 0
lea eax, [ebp - 0x10]
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 0x41c107
cmp dword [ebp - 0x10], 0
je 0x41c107
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x437988]
test byte [eax + edi + 0x28], 0x48
je 0x41c0e6
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x41c0d6
mov byte [esi], 0xa
jmp 0x41c130
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x437988]
mov byte [eax + edi + 0x2a], cl
jmp 0x41c130
cmp byte [ebp - 1], 0xa
jne 0x41c0f0
cmp esi, ebx
je 0x41c0d1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cb79
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c131
mov byte [esi], 0xd
jmp 0x41c130
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x437988]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x41c12e
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x41c131
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c13a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x437988]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41c17e
push 0xa
pop esi
cmp word [ebx], si
jne 0x41c17e
or byte [eax + edi + 0x28], 4
jmp 0x41c183
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x41c2ee
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x41c2c6
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x41c1d0
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x41c1fa
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x41c219
push 0xa
pop ebx
cmp word [edx], bx
jne 0x41c1e7
push ebx
add eax, 4
pop edx
jmp 0x41c1ef
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x41c195
jmp 0x41c2ee
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 0x41c2c1
cmp dword [ebp - 0x14], 0
je 0x41c2c1
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x437988]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x41c29d
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x41c265
mov word [esi], ax
jmp 0x41c2eb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x437988]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x437988]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x437988]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x41c2eb
cmp word [ebp - 4], ax
jne 0x41c2a7
cmp esi, ebx
je 0x41c25d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cb79
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41c2ee
push 0xd
pop eax
jmp 0x41c25d
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x437988]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x41c2e8
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x41c2ee
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret