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

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100c2292
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100c2239
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100c2248
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104c7eeb
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100c2299
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100a910f
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100c2338
add edi, 4
add eax, 2
dec ecx
jne 0x100c227e
call 0x100c22e5
loope 0x100c22db
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100c2335
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100c2346
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100c22f9
cmp eax, ecx
ja 0x100c22f9
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100c2383
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100c2379
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100a95ee
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10001c60
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001cf8
push str.avifil32.dll
call fcn.100064fc
test al, al
jne 0x10001c7d
pop esi
ret
push str.AVIFileInit
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileExit
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileRelease
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileOpen
push dword [esi + 4]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamInfo
push dword [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamOpenFromFile
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamRelease
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
mov al, 1
pop esi
ret

Function at 0x10001d40
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001dd8
push str.winmm.dll
call fcn.100064fc
test al, al
jne 0x10001d5d
pop esi
ret
push str.mmioInstallIOProcA
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioOpenA
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioClose
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioAscend
push dword [esi + 4]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioRead
push dword [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioDescend
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mciSendCommandA
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
mov al, 1
pop esi
ret
Function at 0x10005770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x100058cf
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov edi, 0x3ff
mov ecx, eax
cmp dword [esi], edx
je 0x100058cf
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x100057ef
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x100058de
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x1000580c
mov dl, bl
xor edi, edi
jmp 0x1000583c
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, di
ja 0x100057de
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x100057e1
mov edx, ebx
cmp ebx, 0x800
jae 0x10005821
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x1000583c
cmp ebx, 0x10000
jae 0x10005833
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x1000583b
shr edx, 0x12
or dl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 0xc]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 8]
jl 0x100058cf
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x10005873
cmp edi, 3
jae 0x1000587e
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 0x10]
jmp 0x10005881
mov eax, dword [ebp - 8]
test eax, eax
je 0x100058a6
imul ecx, edi, 6
sub ecx, 6
mov edx, ebx
dec eax
shr edx, cl
mov dword [ebp - 8], eax
and dl, 0x3f
mov eax, dword [esi]
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 8]
test eax, eax
jg 0x10005888
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x10005799
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x100058d7
Function at 0x100064fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1000650b
pop dword [ebp - 0x18]
mov eax, 0x1000650b
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xdf7aa743
sub dword [ebp - 0x28], 0x912861f8
mov dword [ebp - 0x24], 0x31220d7e
add dword [ebp - 0x24], 0x1113ec7
mov dword [ebp - 0x20], 0x51e2871d
add dword [ebp - 0x20], 0xfa69bd11
mov dword [ebp - 0x1c], 0x7edd30c7
add dword [ebp - 0x1c], 0x8122cf39
lea eax, [ebp - 0x28]
push eax
mov eax, 0xe426026b
add eax, 0x2bdaee45
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xe422b3b8
add dword [ebp - 0x28], 0x904fb59e
mov dword [ebp - 0x24], 0xdf5b1d3
add dword [ebp - 0x24], 0x3376afa2
mov dword [ebp - 0x20], 0x8b496163
add dword [ebp - 0x20], 0xd8260b09
mov dword [ebp - 0x1c], 0xbe351c68
sub dword [ebp - 0x1c], 0xbe351c68
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x40b1e739
sub eax, 0x30b0f691
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3f457
push 0
call eax
mov ecx, 0xa81d5288
add ecx, 0x57e30f58
xor ebx, ebx
add ebx, eax
mov esi, 0x10023600
add esi, dword [ebp - 0x18]
mov edx, 0x660622c7
add edx, 0x32fbad3b
sub dword [ebp - 0xc], 0x2a7a592a
mov edi, dword [esi]
xor dword [ebp - 4], 0x4aaa2ecf
sub edi, edx
sub dword [ebp - 0x14], 0x46e517fa
mov dword [ebx], edi
add ebx, 0xea962f2f
add ebx, 0x1569d0d5
add esi, 0x3414eadd
add esi, 0xcbeb1527
loop 0x10006624
add eax, 0xdeed9a91
sub eax, 0xdeec203e
mov ebx, eax
add eax, 0x1bf5e006
sub eax, 0x1bf5e001
mov ecx, 0x2e696221
sub ecx, 0x1e696221
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x1000b1e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x1000b238
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x1000b238
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.100064fc
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000b7d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8
Function at 0x406700
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41d8ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404484
call fcn.00409274
push 4
mov dword [esp + 0x18], 0
call fcn.0040a756
mov edi, eax
add esp, 4
test edi, edi
je 0x406774
push ebx
call fcn.0040906f
mov dword [edi], eax
call fcn.00408e2e
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00409235
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406768
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040925d
pop ebx
jmp 0x406776
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40b24e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4213dc]
jne 0x40b258
repz ret
jmp fcn.0041117c
Function at 0x416783
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040df2e
and dword [ebp - 0x14], 0
cmp dword [0x438ef4], 0
mov dword [ebp - 0x18], eax
jne 0x416836
push 0x403fd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4168de
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fc4
push ebx
call edi
test eax, eax
je 0x4168de
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fb4
push ebx
mov dword [0x438ef4], eax
call edi
push eax
call esi
push 0x403fa0
push ebx
mov dword [0x438ef8], eax
call edi
push eax
call esi
push 0x403f84
push ebx
mov dword [0x438efc], eax
call edi
push eax
call esi
mov dword [0x438f04], eax
test eax, eax
je 0x416836
push 0x403f6c
push ebx
call edi
push eax
call esi
mov dword [0x438f00], eax
mov eax, dword [0x438f00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41688f
cmp dword [0x438f04], ecx
je 0x41688f
push eax
call esi
push dword [0x438f04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41688f
test ebx, ebx
je 0x41688f
call edi
test eax, eax
je 0x416886
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x416886
test byte [ebp - 8], 1
jne 0x41688f
or dword [ebp + 0x10], 0x200000
jmp 0x4168c2
mov eax, dword [0x438ef8]
cmp eax, dword [ebp - 0x18]
je 0x4168c2
push eax
call esi
test eax, eax
je 0x4168c2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4168c2
mov eax, dword [0x438efc]
cmp eax, dword [ebp - 0x18]
je 0x4168c2
push eax
call esi
test eax, eax
je 0x4168c2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x438ef4]
call esi
test eax, eax
je 0x4168de
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4168e0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b24e
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x35c00453
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x469b154c
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x450012
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
xor ebx, ebx
push ebx
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x44ff28]
sub edi, edi
sub ecx, ecx
mov cl, 0xe5
inc edi
loop 0x45003a
call 0x450042
pop esi
sub esi, 0xffffffc2
push esi
sub ebx, ebx
or ebx, 0x2394
mov al, byte [esi]
xor ax, di
xchg byte [esi], al
inc esi
sub ebx, 1
cmp ebx, 0
ja 0x450052
pop esi
mov esp, dword fs:[0]
pop dword fs:[0]
pop edi
pop ebp
jmp esi
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x2eb24f2e
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x160d64a2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403cce
Capabilities:
Terminate process

Disassembly:
jmp 0x462569
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x46257a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004066fe
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 0x403e59
Capabilities:
Query environment variable

Disassembly:
jmp 0x4ac002
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ac013
pop esi
ret
push ebx
push edi
push esi
call fcn.004abee9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004048e5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ac03b
push ebx
push esi
push edi
call fcn.0040649c
add esp, 0xc
push 0
call fcn.0040722a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x406573
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00402036
mov eax, dword [0x593258]
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.00406d75
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a2937
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a2a93
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406f05
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 + 0x598790]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004038a5
mov ecx, dword [esi*4 + 0x598790]
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 0x4a2a8c
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a2a8c
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 0x4a2a8c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004038a5
add esp, 0x14
test edx, edx
jl 0x4a2a8c
jg 0x4a2a02
test eax, eax
jb 0x4a2a8c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a2a8c
jl 0x4a2a1c
cmp dword [ebp - 0x1008], eax
ja 0x4a2a8c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a2a3a
test ebx, ebx
je 0x4a2a73
cmp ecx, edi
jae 0x4a2a73
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a2a54
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a2a60
cmp byte [ecx + 1], 0xa
jne 0x4a2a60
inc ecx
jmp 0x4a2a60
movzx eax, al
movsx eax, byte [eax + 0x593570]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a2a3a
cmp edx, ebx
jne 0x4a2a3a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a2a91
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403625
leave
ret
Function at 0x4a2c98
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 + 0x598790]
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 0x4a2cd8
cmp byte [ebx], 0xa
jne 0x4a2cd8
or byte [eax + edi + 0x28], 4
jmp 0x4a2cdd
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a2ddb
mov al, byte [edx]
cmp al, 0x1a
je 0x4a2dbd
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a2d0c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a2d31
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a2d3b
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 0x4a2cee
jmp 0x4a2ddb
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 0x4a2db8
cmp dword [ebp - 0xc], 0
je 0x4a2db8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x598790]
test byte [eax + edi + 0x28], 0x48
je 0x4a2d92
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a2d7d
mov byte [esi], dl
jmp 0x4a2d8e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x598790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a2ddb
cmp byte [ebp - 1], 0xa
jne 0x4a2da1
cmp esi, ebx
jne 0x4a2da1
mov byte [esi], 0xa
jmp 0x4a2dda
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401b09
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a2ddb
mov byte [esi], 0xd
jmp 0x4a2dda
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x598790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2dd7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2ddb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2e37
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 + 0x598790]
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 0x4a2e7a
cmp word [esi], dx
jne 0x4a2e7a
or byte [edi + eax + 0x28], 4
jmp 0x4a2e7f
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 0x4a2fd2
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 0x4a2fb2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a2ec1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2ef7
cmp eax, edx
jae 0x4a2f03
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 0x4a2e99
jmp 0x4a2fd2
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 0x4a2fae
cmp dword [ebp - 0x14], 0
je 0x4a2fae
mov eax, dword [ebx*4 + 0x598790]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a2f86
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a2f4f
mov word [esi], cx
jmp 0x4a2f82
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x598790]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x598790]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x598790]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a2fd2
pop ebx
cmp word [ebp - 4], bx
jne 0x4a2f97
cmp esi, dword [ebp + 0xc]
jne 0x4a2f97
mov word [esi], bx
jmp 0x4a2fcf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401b09
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a2fd2
push 0xd
jmp 0x4a2fcb
mov ecx, dword [ebx*4 + 0x598790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2fc9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2fd2
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