joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11b41b8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x11b4308
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x11b41de
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11b41ca
add dl, dl
jne 0x11b41e9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11b423c
xor eax, eax
add dl, dl
jne 0x11b41f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11b42dd
add dl, dl
jne 0x11b4205
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11b4210
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11b421b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11b4226
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11b4232
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x11b41d5
mov eax, 1
add dl, dl
jne 0x11b424a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11b4255
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11b4241
sub eax, ebx
mov ebx, 1
jne 0x11b4288
mov ecx, 1
add dl, dl
jne 0x11b426e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11b4279
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11b4265
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11b41d5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x11b429f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11b42aa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11b4296
cmp eax, 0x7d00
jae 0x11b42cd
cmp eax, 0x500
jb 0x11b42c8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11b41d5
cmp eax, 0x7f
ja 0x11b42d0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11b41d5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x11b42fe
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x11b41d5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x10002fc0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 0x20019
push 0
push 0x1007dd80
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100031aa
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0
push 0x1007ddc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100031aa
xorps xmm0, xmm0
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x10], esi
movups xmmword [ebp - 0x24], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003040
sub ecx, edx
lea eax, [ebp - 0x140]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.10008550
cmp dword [ebp - 0x10], 0xf
lea eax, [ebp - 0x24]
cmova eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100030bf
cmp dword [ebp - 0x10], 0xf
lea eax, [ebp - 0x24]
push 0
cmova eax, dword [ebp - 0x24]
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100030bf
push 0
lea eax, [ebp - 0xc]
push eax
push 0xff
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x100030f8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xf
jbe 0x100031a1
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003197
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100031b3
jmp 0x10003197
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
push 0
push 0
push 0
push 0
push 0xc8
push 0x190
push 0x80000000
push 0x80000000
push 0x10080000
push 0x1007dca9
push 0x1007ddec
push 0
mov byte [ebp + eax - 0x240], 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
je 0x100030bf
lea ecx, [ebp - 0x240]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x40]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x10003190
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x40]
push eax
call edi
lea eax, [ebp - 0x40]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
call esi
test eax, eax
jne 0x10003174
mov bl, 1
jmp 0x100030c1
push ecx
push edx
call fcn.1000a730
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10012c26
int3
Function at 0x100031e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
push 0x7f00
push 0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x10002ba0
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x4c], 6
mov dword [esp + 0x54], 0x1007de64
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push esi
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x1007de7c
push 0x1007de64
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x1000329c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x100032ef
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0xc]
push eax
call edi
lea eax, [esp + 0xc]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
jne 0x100032d0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10003980
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002738d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push esi
push edi
lea eax, [ebp - 0x230]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.10005ad0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov eax, ecx
mov edi, dword [ebp - 0x18]
sub eax, edi
cmp eax, 0x10
jb 0x10003a03
cmp ecx, 7
lea esi, [ebp - 0x28]
lea eax, [edi + 0x10]
cmova esi, dword [ebp - 0x28]
push 0x20
mov dword [ebp - 0x18], eax
push 0x1007df2c
lea eax, [esi + edi*2]
push eax
call fcn.1000bc80
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x20], ax
jmp 0x10003a1b
push 0x10
push 0x1007df2c
mov byte [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x10]
push 0x10
call fcn.10008e20
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10003abe
test al, 0x10
jne 0x10003abe
push 0x1007df50
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
jne 0x10003a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x1007df8c
mov ecx, 0x10073098
call fcn.10007c70
mov ecx, eax
call fcn.10005850
push eax
call fcn.10007f10
add esp, 4
jmp 0x10003abe
mov edx, 0x1007dfb0
mov ecx, 0x10072fb0
call fcn.10007c70
push eax
call fcn.10007f10
add esp, 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x1007dfcc
mov ecx, 0x10072fb0
call fcn.10007c70
push eax
call fcn.10007f10
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
cmp ecx, 7
jbe 0x10003af6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10003aec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003b04
push ecx
push edx
call fcn.1000a730
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.10012c26
int3
Function at 0x10003b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.1000b5e0
push esi
or esi, 0xffffffff
cmp dword [ecx + 0x14], 7
push edi
jbe 0x10003b2a
mov ecx, dword [ecx]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003b52
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push edi
call ebx
test eax, eax
je 0x10003b9f
mov edx, dword [ebp - 4]
test edx, edx
je 0x10003b9f
lea ecx, [ebp - 0x1004]
call fcn.10003ed0
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push edi
call ebx
test eax, eax
jne 0x10003b72
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
not esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003ed0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [0x10074f7c], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x10003fad
xor esi, esi
nop dword [eax]
mov eax, esi
and al, 1
movzx ecx, al
mov eax, esi
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov dword [esi*4 + 0x10074f78], eax
inc esi
cmp esi, 0x100
jb 0x10003ef0
or eax, 0xffffffff
xor esi, esi
test edi, edi
je 0x10003fce
movzx edx, byte [esi + ebx]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10074f78]
cmp esi, edi
jb 0x10003fb6
pop edi
pop esi
not eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100040b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x10003300
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [ebp - 0x38], eax
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0
mov dword [ebp - 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x1007de38
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [ebp - 0x38]
push 0
push 0
push 0xf0
push 0xc8
push 0x80000000
push 0x80000000
push 0xa0000
push 0x1007de54
push dword [ebp - 0x24]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x100041c3
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
push edi
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jne 0x100041a6
pop edi
mov eax, dword [ebp - 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100075b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10027310
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], 0x10076434
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1000a700
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10009cfa
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10007550
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100145eb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001462a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001462a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001462a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001462a
cmp dword [ecx + 0x74], 0xe
jbe 0x1001462a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001a1b7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007a0b0
push 0x1007a0a8
push 0x10077d7c
push 0x1f
call fcn.1001a07f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a1eb
push dword [ebp + 8]
mov ecx, esi
call dword [0x10076288]
call esi
jmp 0x1001a1f1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001a235
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007a0c0
push 0x1007a0b8
push 0x10077da0
push 0x21
call fcn.1001a07f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a26c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10076288]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001a274
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007a0c8
push 0x1007a0c0
push 0x10077db4
push 0x22
call fcn.1001a07f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a2ae
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10076288]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001a9b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000b5e0
mov eax, dword [0x10028080]
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.10015862
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001a9f5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001ab51
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10026da0
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 + 0x10073908]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001c33b
mov ecx, dword [esi*4 + 0x10073908]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1001ab4a
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001ab4a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001ab4a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001c33b
add esp, 0x14
test edx, edx
jl 0x1001ab4a
jg 0x1001aac0
test eax, eax
jb 0x1001ab4a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001ab4a
jl 0x1001aada
cmp dword [ebp - 0x1008], eax
ja 0x1001ab4a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001aaf8
test ebx, ebx
je 0x1001ab31
cmp ecx, edi
jae 0x1001ab31
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001ab12
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001ab1e
cmp byte [ecx + 1], 0xa
jne 0x1001ab1e
inc ecx
jmp 0x1001ab1e
movzx eax, al
movsx eax, byte [eax + 0x100284d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001aaf8
cmp edx, ebx
jne 0x1001aaf8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001ab4f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000ade7
leave
ret
Function at 0x1001b7d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x10073908]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001b811
cmp byte [ebx], 0xa
jne 0x1001b811
or byte [edi + eax + 0x28], 4
jmp 0x1001b816
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1001b915
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001b8f8
inc eax
cmp dl, 0xd
je 0x1001b842
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001b868
cmp eax, ecx
jae 0x1001b876
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001b82a
jmp 0x1001b915
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 0x1001b8f3
cmp dword [ebp - 0x10], 0
je 0x1001b8f3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10073908]
test byte [eax + edi + 0x28], 0x48
je 0x1001b8cd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001b8b8
mov byte [esi], dl
jmp 0x1001b8c9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10073908]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001b915
cmp byte [ebp - 1], 0xa
jne 0x1001b8dc
cmp esi, ebx
jne 0x1001b8dc
mov byte [esi], 0xa
jmp 0x1001b914
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001c359
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001b915
mov byte [esi], 0xd
jmp 0x1001b914
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10073908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001b912
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001b915
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001b91e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10073908]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001b964
cmp word [ebx], dx
jne 0x1001b964
or byte [eax + edi + 0x28], 4
jmp 0x1001b969
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001bacc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001baac
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001b9aa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001b9e0
cmp eax, edx
jae 0x1001b9ee
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001b985
jmp 0x1001bacc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001baa7
cmp dword [ebp - 0x18], 0
je 0x1001baa7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10073908]
test byte [eax + edi + 0x28], 0x48
je 0x1001ba7d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001ba41
mov word [esi], cx
jmp 0x1001ba78
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10073908]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10073908]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10073908]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001bacc
pop eax
cmp word [ebp - 4], ax
jne 0x1001ba8d
cmp esi, ebx
jne 0x1001ba8d
mov word [esi], ax
jmp 0x1001bac9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001c359
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001bacc
push 0xd
pop eax
jmp 0x1001ba88
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10073908]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001bac6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001bacc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret