joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489b1d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4b0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp + 8]
call fcn.0040afa0
cmp dword [ebp - 0x10], 0xf
lea eax, [ebp - 0x24]
push 0x4a3be0
cmova eax, dword [ebp - 0x24]
push eax
call fcn.00465f33
mov ecx, dword [ebp - 0x10]
add esp, 8
mov edi, eax
cmp ecx, 0xf
jbe 0x40974d
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409743
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4097f8
push ecx
push edx
call fcn.00435574
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
test edi, edi
je 0x4097aa
push 2
push 0
push edi
call fcn.00466414
add esp, 0xc
push edi
call fcn.0046270b
add esp, 4
mov esi, eax
push edi
call fcn.00466534
add esp, 4
push esi
call fcn.00466b42
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx], esi
push edi
push 1
push esi
push eax
call fcn.00466802
push edi
call fcn.004660b6
mov esi, dword [ebx + 4]
add esp, 0x14
jmp 0x4097ac
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x4097e2
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4097d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4097fd
push ecx
push edx
call fcn.00435574
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call fcn.00466af1
call fcn.00466af1
int3

Function at 0x40bec0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40bef1
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40bee0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x422560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov al, byte [esi]
test al, al
je 0x4225da
nop dword [eax + eax]
cmp al, 0x72
je 0x4225ca
cmp al, 0x77
je 0x4225b0
cmp al, 0x61
je 0x42259d
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x422580
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
mov ebx, 1
mov dword [edi + 8], 0x40000000
mov al, byte [esi]
lea ecx, [ebx + 3]
jmp 0x4225dd
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp + 8]
mov ecx, 4
mov dword [edi + 8], 0x40000000
mov al, byte [esi]
jmp 0x4225dd
mov dword [edi + 8], DirectSoundCreate
mov ecx, 3
mov al, byte [esi]
jmp 0x4225dd
mov ecx, dword [ebp + 8]
test al, al
je 0x422594
push 0
push 0x8000080
push ecx
push 0
push 1
push dword [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x422594
test ebx, ebx
je 0x422610
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8

Function at 0x422680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 8], 0x40000000
je 0x422692
xor eax, eax
pop ebp
ret 0xc
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
ret 0xc
Function at 0x42ae40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 8]
mov edi, edx
and edi, 7
je 0x42ae6b
cmp edx, edi
jge 0x42ae5b
call fcn.0042a700
mov eax, dword [esi + 0x10]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
mov dword [esi + 0x10], eax
xor eax, eax
mov ecx, edx
test edx, edx
jle 0x42ae98
mov edx, dword [esi + 0x10]
push ebx
mov bl, dl
nop dword [eax]
mov byte [ebp + eax - 4], bl
sub ecx, 8
shr edx, 8
inc eax
mov dword [esi + 0x10], edx
mov bl, dl
test ecx, ecx
jg 0x42ae80
pop ebx
mov dword [esi + 8], ecx
test ecx, ecx
jns 0x42aeb6
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 8], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
jge 0x42aed7
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jb 0x42aec8
xor dl, dl
jmp 0x42aecd
mov dl, byte [ecx]
inc ecx
mov dword [esi], ecx
mov byte [ebp + eax - 4], dl
inc eax
cmp eax, 4
jl 0x42aec0
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x42ae9c
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x42af20
mov eax, dword fs:[0x2c]
pop edi
pop esi
mov eax, dword [eax]
mov dword [eax + 8], str.read_past_buffer
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x14]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x1c]
jbe 0x42af3e
push edi
mov ecx, esi
call fcn.0042a830
add esp, 4
test eax, eax
je 0x42aeae
push edi
push dword [esi]
push dword [esi + 0x14]
call fcn.0045ea40
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434dc0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48aeed
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4b0040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 8]
lea ecx, [ebp - 0x90]
push ecx
push 0x4a6494
mov dword [ebp - 0x90], 0
mov eax, dword [edx]
push 0
push edx
call dword [eax + 0x24]
mov ecx, dword [0x4b6484]
lea esi, [edi + 0x20]
push esi
push 0
push dword [ebp - 0x90]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x24]
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [0x4b649c]
push 0
push esi
push 1
mov eax, dword [ecx]
push ecx
call dword [eax + 0x84]
xorps xmm0, xmm0
mov word [ebp - 0x7c], 0
movlpd qword [ebp - 0x7a], xmm0
xor eax, eax
movlpd qword [ebp - 0x72], xmm0
movlpd qword [ebp - 0x6a], xmm0
movlpd qword [ebp - 0x62], xmm0
movaps xmm0, xmmword [0x4a6540]
mov word [ebp - 0x5a], ax
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov ecx, dword [0x4b6484]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 0
push edx
lea edx, [ebp - 0x8c]
push edx
push ecx
call dword [eax + 0x54]
mov ecx, dword [0x4b649c]
push 0
push dword [ebp - 0x14]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x90]
mov ecx, dword [0x4b6484]
lea edx, [ebp - 0x94]
mov eax, dword [edi + 0x2c]
xorps xmm0, xmm0
push edx
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x40]
mov eax, dword [edi + 0x30]
push 0
mov dword [ebp - 0x28], 0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], 0x28
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x24], 0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x14]
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
mov edx, dword [0x4b6484]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x54], 3
mov eax, dword [edx]
mov ecx, dword [eax + 0x28]
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x94]
push edx
call ecx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x434f69
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435413
mov esp, ebp
pop ebp
ret
Function at 0x43600c
Capabilities:
Parse pe header

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

Function at 0x4366bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4366e3
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4366e6
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00436698
pop esi
leave
ret 8

Function at 0x437b17
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 0x437b38
jl 0x437b2f
test edi, edi
jne 0x437b38
xor eax, eax
xor edx, edx
jmp 0x437bf9
cmp dword [ebx + 0x38], 0
je 0x437b4d
push eax
push edi
push dword [ebp + 8]
call fcn.00437bff
jmp 0x437bf9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x437b94
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x437b94
cmp eax, edi
jb 0x437b6e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0045ea40
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 0x437b9a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x437bee
mov ecx, ebx
call fcn.00437369
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x437bd9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00466802
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 0x437bee
jmp 0x437bac
test edx, edx
je 0x437bee
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00466802
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 0x439920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b12d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x64]
lea eax, [eax*8 + 0x30]
push eax
call fcn.0043da70
mov esi, eax
mov dword [ebp + 0xc], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebp + 8]
mov dword [esi], vtable.SQClosure.0
mov dword [esi + 0x24], edi
inc dword [edi + 4]
mov dword [esi + 0x14], eax
add eax, 0x44
push esi
push eax
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0043fe20
lea ecx, [esi + 0x30]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], ecx
add esp, 0xc
mov dword [esi + 0x18], 0
mov eax, dword [edi + 0x5c]
lea eax, [ecx + eax*8]
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
inc dword [eax + 4]
cmp dword [edi + 0x5c], ecx
jle 0x4399ed
mov eax, dword [esi + 0x28]
mov dword [eax + ecx*8], 0x1000001
mov dword [eax + ecx*8 + 4], 0
inc ecx
cmp ecx, dword [edi + 0x5c]
jl 0x4399d5
xor eax, eax
cmp dword [edi + 0x64], eax
jle 0x439a0c
mov ecx, dword [esi + 0x2c]
mov dword [ecx + eax*8], 0x1000001
mov dword [ecx + eax*8 + 4], 0
inc eax
cmp eax, dword [edi + 0x64]
jl 0x4399f4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x439a20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b173
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
lea eax, [esi*8 + 0x40]
push eax
call fcn.0043da70
mov edi, eax
mov dword [ebp + 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi], vtable.SQNativeClosure.0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x38], 0x1000001
mov dword [edi + 0x3c], 0
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x14], eax
add eax, 0x44
push edi
push eax
mov byte [ebp - 4], 2
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.0043fe20
lea eax, [edi + 0x40]
mov dword [edi + 0x30], 0
mov dword [edi + 0x28], eax
add esp, 0xc
xor eax, eax
mov dword [edi + 0x2c], esi
test esi, esi
jle 0x439af8
nop dword [eax + eax]
mov ecx, dword [edi + 0x28]
mov dword [ecx + eax*8], 0x1000001
mov dword [ecx + eax*8 + 4], 0
inc eax
cmp eax, dword [edi + 0x2c]
jl 0x439ae0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x457fa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ce81
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0x1000001
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0x1000001
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0x1000001
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0x1000001
mov dword [edi + 0x94], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
push 0x2c
mov byte [ebp - 4], 0x12
mov dword [edi + 0x98], 0
call fcn.0043da70
mov ebx, dword [ebp + 8]
add esp, 4
mov esi, eax
push 0
push ebx
mov ecx, esi
call fcn.0044b2f0
mov dword [esi + 0x18], 0
mov edx, dword [edi + 0x78]
mov ecx, dword [edi + 0x7c]
mov dword [edi + 0x78], 0xa000020
mov dword [edi + 0x7c], esi
inc dword [esi + 4]
test edx, 0x8000000
je 0x4581e1
add dword [ecx + 4], 0xffffffff
jne 0x4581e1
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2c
call fcn.0043da70
add esp, 4
mov esi, eax
mov ecx, esi
push 0
push ebx
call fcn.0044b2f0
mov dword [esi + 0x18], 0
mov edx, dword [edi + 0x80]
mov ecx, dword [edi + 0x84]
mov dword [edi + 0x80], 0xa000020
mov dword [edi + 0x84], esi
inc dword [esi + 4]
test edx, 0x8000000
je 0x458230
add dword [ecx + 4], 0xffffffff
jne 0x458230
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xa8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0xfc], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x100], eax
mov eax, edi
mov dword [edi + 0xec], ebx
mov dword [edi + 0xdc], 0
mov byte [edi + 0xe8], 1
mov dword [edi + 0x1c], 0
mov dword [edi + 0xe0], 0
mov dword [edi], 0
mov word [edi + 0x20], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0x104], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46246b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00488d80
mov eax, dword [0x4b0040]
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.00473d9e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4624ad
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x462609
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00488cd0
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 + 0x4b2458]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004741af
mov ecx, dword [esi*4 + 0x4b2458]
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 0x462602
cmp eax, dword [ecx + edi + 0x24]
jne 0x462602
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 0x462602
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004741af
add esp, 0x14
test edx, edx
jl 0x462602
jg 0x462578
test eax, eax
jb 0x462602
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x462602
jl 0x462592
cmp dword [ebp - 0x1008], eax
ja 0x462602
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4625b0
test ebx, ebx
je 0x4625e9
cmp ecx, edi
jae 0x4625e9
mov al, byte [ecx]
cmp al, 0xd
jne 0x4625ca
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4625d6
cmp byte [ecx + 1], 0xa
jne 0x4625d6
inc ecx
jmp 0x4625d6
movzx eax, al
movsx eax, byte [eax + 0x4b02c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4625b0
cmp edx, ebx
jne 0x4625b0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x462607
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00435413
leave
ret
Function at 0x474854
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 + 0x4b2458]
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 0x474894
cmp byte [ebx], 0xa
jne 0x474894
or byte [edi + eax + 0x28], 4
jmp 0x474899
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 0x474998
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47497b
inc eax
cmp dl, 0xd
je 0x4748c5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4748eb
cmp eax, ecx
jae 0x4748f9
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 0x4748ad
jmp 0x474998
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 0x474976
cmp dword [ebp - 0x10], 0
je 0x474976
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b2458]
test byte [eax + edi + 0x28], 0x48
je 0x474950
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47493b
mov byte [esi], dl
jmp 0x47494c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b2458]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x474998
cmp byte [ebp - 1], 0xa
jne 0x47495f
cmp esi, ebx
jne 0x47495f
mov byte [esi], 0xa
jmp 0x474997
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004741cd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x474998
mov byte [esi], 0xd
jmp 0x474997
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b2458]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x474995
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x474998
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4749a1
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 + 0x4b2458]
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 0x4749e7
cmp word [ebx], dx
jne 0x4749e7
or byte [eax + edi + 0x28], 4
jmp 0x4749ec
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 0x474b4f
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 0x474b2f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x474a2d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x474a63
cmp eax, edx
jae 0x474a71
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 0x474a08
jmp 0x474b4f
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 0x474b2a
cmp dword [ebp - 0x18], 0
je 0x474b2a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4b2458]
test byte [eax + edi + 0x28], 0x48
je 0x474b00
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 0x474ac4
mov word [esi], cx
jmp 0x474afb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4b2458]
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 + 0x4b2458]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4b2458]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x474b4f
pop eax
cmp word [ebp - 4], ax
jne 0x474b10
cmp esi, ebx
jne 0x474b10
mov word [esi], ax
jmp 0x474b4c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004741cd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x474b4f
push 0xd
pop eax
jmp 0x474b0b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4b2458]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x474b49
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x474b4f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret