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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push edi
push 0x200
push 1
push 0x461cb0
call fcn.0042bbfe
add esp, 0x10
cmp eax, 0x200
jne 0x4069d4
call fcn.00404090
test al, al
je 0x40689b
mov byte [esi], 1
jmp 0x4068ab
push 0
push 0
push edi
mov byte [esi], 0
call fcn.0042b9eb
add esp, 0xc
movups xmm0, xmmword [esi]
lea edx, [ebp - 0x18]
mov ecx, edi
movups xmmword [ebp - 0x18], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 8], xmm0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x20], xmm0
call fcn.00404350
cmp dword [ebp - 4], 0xffffffff
je 0x4069db
test al, al
je 0x40691d
movups xmm0, xmmword [ebp - 0x18]
mov bl, 1
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 8]
movq qword [esi + 0x10], xmm0
cmp byte [0x45fef1], 0
je 0x4069cb
mov edx, 0x461ee8
mov ecx, 0x461ed0
call fcn.004067e0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x30]
mov ecx, edi
call fcn.00404460
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4069db
test al, al
je 0x406969
movups xmm0, xmmword [ebp - 0x30]
mov bl, 1
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
cmp byte [0x45fef0], 0
je 0x4069cb
mov edx, 0x461ed0
mov ecx, 0x461ee8
call fcn.004067e0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
cmp byte [0x45fef0], bl
je 0x40699f
mov ecx, 0x461ed0
call fcn.00406820
movups xmm0, xmmword [ebp - 0x18]
mov byte [0x45fef1], bl
mov bl, 1
mov al, bl
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 8]
movq qword [esi + 0x10], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x45fef1], bl
je 0x4069cb
mov ecx, 0x461ee8
call fcn.00406820
movups xmm0, xmmword [ebp - 0x30]
mov byte [0x45fef1], 1
mov bl, 1
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4069f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, edx
mov byte [ebp - 1], 0
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov esi, ecx
mov dword [ebp - 8], ebx
mov ecx, 0x1000
mov dword [ebp - 0x14], esi
cmp byte [edi], bl
mov eax, 0xe00
push ebx
cmovne eax, ecx
mov dword [edi + 0x14], ebx
push eax
push esi
call fcn.0042b9eb
add esp, 0xc
test eax, eax
jne 0x406b8d
push esi
push 0x200
push 1
push 0x461cb0
call fcn.0042bbfe
add esp, 0x10
cmp eax, 0x200
jne 0x406b8d
mov ecx, 0x461cb0
call fcn.00404020
mov eax, dword [edi + 4]
xor esi, esi
test eax, eax
jle 0x406b57
mov ecx, 0x461ea4
mov dword [ebp - 0xc], ecx
movzx ebx, word [ecx + 2]
movzx edi, word [edi + 0xa]
mov eax, ebx
not eax
test bx, bx
movzx ecx, ax
mov eax, ebx
cmovns ecx, eax
mov eax, dword [ebp - 0x10]
movzx edx, cx
mov ecx, edx
and edx, 0xf
shr ecx, 4
movzx eax, word [eax + 0xc]
imul edi, ecx
add edi, edx
imul edi, eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
push eax
push edi
push edx
push ecx
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x43]
push eax
push esi
push str.part__d::__c:_cyl___d_thd___d_tsec__1_tlba___ld_tlen___d
call fcn.0040b130
shr bx, 0xf
mov ecx, str.__WP__n
test bl, bl
mov eax, str._____n
cmovne eax, ecx
push eax
call fcn.0040b130
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov ebx, dword [ebp - 0x14]
push 0
cmp byte [ecx], al
setne al
add eax, edi
shl eax, 9
push eax
push ebx
call fcn.0042b9eb
add esp, 0x2c
test eax, eax
jne 0x406b25
push dword [ebp - 0x18]
mov edx, esi
mov ecx, ebx
call fcn.00406ec0
add esp, 4
mov byte [ebp - 1], al
test al, al
jne 0x406b3c
push esi
push 0x45735c
call fcn.0040b130
mov ebx, dword [ebp - 8]
add esp, 8
inc ebx
mov dword [ebp - 8], ebx
jmp 0x406b3f
push esi
push 0x4573a0
call fcn.0040b130
mov ebx, dword [ebp - 8]
add esp, 8
inc ebx
mov dword [ebp - 8], ebx
jmp 0x406b3f
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
inc esi
mov ecx, dword [ebp - 0xc]
sub ecx, 4
mov dword [ebp - 0xc], ecx
mov eax, dword [edi + 4]
cmp esi, eax
jl 0x406a70
sub eax, ebx
push eax
push 0x4573e8
call fcn.0040b130
add esp, 8
test ebx, ebx
je 0x406b83
push ebx
push 0x457428
call fcn.0040b130
mov al, byte [ebp - 1]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x14], 0xffffffff
mov eax, 0x461ed0
cmp dword [0x461ee4], 7
cmova eax, dword [0x461ed0]
push eax
push 0x457460
call fcn.0040b130
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x45f040]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
push 0x200
xor edi, edi
mov dword [esp + 0x14], edx
lea eax, [esp + 0x24]
mov esi, ecx
push edi
push eax
mov dword [esp + 0x20], esi
xor bl, bl
call fcn.00427c90
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, 0x400
mov eax, 0x200
cmp byte [ecx], bl
push edi
cmovne eax, edx
mov dword [ecx + 0x14], edi
push eax
push esi
call fcn.0042b9eb
add esp, 0xc
test eax, eax
jne 0x406dea
push esi
push 0x200
push 1
push 0x461cb0
call fcn.0042bbfe
add esp, 0x10
cmp eax, 0x200
jne 0x406dea
mov ecx, 0x461cb0
call fcn.00404020
mov edx, dword [esp + 0x10]
xor esi, esi
mov eax, dword [edx + 4]
test eax, eax
jle 0x406dce
nop dword [eax]
nop word [eax + eax]
movzx ecx, word [esi*4 + 0x461cb8]
movzx eax, word [esi*4 + 0x461cb6]
shl ecx, 0x10
or ecx, eax
xor eax, eax
cmp byte [edx], al
push 0
setne al
mov dword [esp + 0x1c], ecx
add eax, ecx
shl eax, 9
push eax
push dword [esp + 0x1c]
call fcn.0042b9eb
add esp, 0xc
test eax, eax
jne 0x406daf
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push 0x200
push 1
push eax
call fcn.0042bbfe
add esp, 0x10
cmp eax, 0x200
jne 0x406da7
lea ecx, [esp + 0x20]
call fcn.00404020
movzx eax, word [esp + 0x22]
mov bl, byte [esp + 0x24]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x24], eax
movzx eax, byte [esp + 0x28]
add eax, 0x41
push eax
push esi
push str.part__d::__c:_lba___ld_tlen___d_t
call fcn.0040b130
movzx eax, word [esp + 0x3e]
add esp, 0x14
push eax
movzx eax, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push eax
push str.ldr_06o_bpar_06o_pg_06o__
call fcn.0040b130
add esp, 0x10
test bl, 1
je 0x406d32
push str.BAD
call fcn.0040b130
add esp, 4
test bl, 2
je 0x406d44
push 0x457550
call fcn.0040b130
add esp, 4
test bl, 4
je 0x406d56
push 0x457558
call fcn.0040b130
add esp, 4
test bl, 8
je 0x406d68
push str.FWP
call fcn.0040b130
add esp, 4
test bl, 0x10
je 0x406d7a
push str.FRP
call fcn.0040b130
add esp, 4
push 0x457578
call fcn.0040b130
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, esi
push dword [esp + 0x1c]
call fcn.00406ec0
mov bl, al
add esp, 4
test bl, bl
jne 0x406dbe
push esi
push 0x45735c
jmp 0x406db5
push esi
push 0x457580
jmp 0x406db5
push esi
push 0x4575d8
call fcn.0040b130
add esp, 8
inc edi
mov edx, dword [esp + 0x10]
inc esi
mov eax, dword [edx + 4]
cmp esi, eax
jl 0x406c70
sub eax, edi
push eax
push 0x4573e8
call fcn.0040b130
add esp, 8
test edi, edi
je 0x406e16
push edi
push 0x457428
jmp 0x406e0e
mov eax, dword [esp + 0x10]
mov dword [eax + 0x14], 0xffffffff
mov eax, 0x461ee8
cmp dword [0x461efc], 7
cmova eax, dword [0x461ee8]
push eax
push 0x457460
call fcn.0040b130
add esp, 8
mov ecx, dword [esp + 0x224]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004265f4
mov esp, ebp
pop ebp
ret
Function at 0x406ec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bfdb
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x2c8], ecx
push 0x200
lea eax, [ebp - 0x2c4]
mov bl, 1
push 0
push eax
call fcn.00427c90
add esp, 0xc
lea eax, [ebp - 0x94]
push 0x80
push 0
push eax
call fcn.00427c90
add esp, 0xc
lea eax, [ebp - 0x94]
push esi
push str._03d_part.bkd
push eax
call fcn.0040b100
add esp, 0xc
lea eax, [ebp - 0x94]
push 0x456ef8
push eax
call fcn.0042b596
mov esi, eax
add esp, 8
mov dword [ebp - 0x2cc], esi
test esi, esi
je 0x407121
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x406ff9
nop word [eax + eax]
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x2c4]
push 0x200
push 1
push eax
call fcn.0042bbfe
add esp, 0x10
cmp eax, 0x200
jne 0x406fd6
lea ecx, [ebp - 0x2c4]
call fcn.00404020
push dword [ebp - 0x2cc]
lea eax, [ebp - 0x2c4]
push 0x200
push 1
push eax
call fcn.0042bffe
add esp, 0x10
cmp eax, 0x200
jne 0x406fc8
inc esi
cmp esi, edi
jb 0x406f70
jmp 0x406ff9
lea eax, [ebp - 0x94]
push eax
push 0x457664
jmp 0x406fef
cmp dword [0x45ff40], 7
mov eax, 0x45ff2c
cmova eax, dword [0x45ff2c]
push eax
push 0x4576a8
call fcn.0040b130
add esp, 8
xor bl, bl
push dword [ebp - 0x2cc]
call fcn.0042b6d2
add esp, 4
test bl, bl
je 0x407123
mov byte [ebp - 0x2c8], 0
lea edx, [ebp - 0x94]
push dword [ebp - 0x2c8]
lea ecx, [ebp - 0x2e4]
call fcn.00408b70
lea eax, [ebp - 0x2e4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00402870
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2d0]
cmp ecx, 7
jbe 0x40708b
mov edx, dword [ebp - 0x2e4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407081
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407141
push ecx
push edx
call fcn.00426602
add esp, 8
xor eax, eax
mov dword [ebp - 0x2d4], 0
push 0x4576ec
mov dword [ebp - 0x2d0], 7
mov word [ebp - 0x2e4], ax
call fcn.0040b130
add esp, 4
lea ecx, [ebp - 0xc0]
call fcn.00406e30
cmp dword [ebp - 0x98], 7
lea eax, [ebp - 0xac]
mov dword [ebp - 0x9c], 0
cmova eax, dword [ebp - 0xac]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x98]
cmp ecx, 7
jbe 0x407123
mov edx, dword [ebp - 0xac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407115
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407146
push ecx
push edx
call fcn.00426602
add esp, 8
jmp 0x407123
xor bl, bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004265f4
mov esp, ebp
pop ebp
ret
call fcn.0042b48f
call fcn.0042b48f
int3
Function at 0x40d530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x45f040]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x14]
push edi
push 0x200
push 0
push eax
mov dword [esp + 0x20], edx
mov ebx, ecx
mov byte [esp + 0x1f], 1
call fcn.00427c90
xor edi, edi
add esp, 0xc
cmp dword [ebp + 0xc], edi
jbe 0x40d64f
nop word [eax + eax]
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00427c90
add esp, 0xc
push ebx
call fcn.0043236d
add esp, 4
test eax, eax
jne 0x40d5b6
push ebx
push 0x200
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0042bbfe
add esp, 0x10
push ebx
call fcn.00432399
add esp, 4
test eax, eax
jne 0x40d63d
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0x200
push 1
push eax
call fcn.0042bffe
add esp, 0x10
cmp eax, 0x200
jne 0x40d636
mov ax, word [esi + 0x12]
inc ax
mov word [esi + 0x12], ax
cmp ax, word [esi + 0xc]
jne 0x40d62a
xor eax, eax
mov word [esi + 0x12], ax
mov ax, word [esi + 0x10]
inc ax
mov word [esi + 0x10], ax
cmp ax, word [esi + 0xa]
jne 0x40d62a
xor eax, eax
mov word [esi + 0x10], ax
mov ax, word [esi + 0xe]
inc ax
movzx ecx, ax
mov word [esi + 0xe], ax
cmp cx, word [esi + 8]
jbe 0x40d62a
mov word [esi + 8], cx
mov byte [esp + 0x13], 0
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x40d580
jmp 0x40d64f
push 0x459158
jmp 0x40d642
push 0x459110
call fcn.0040b130
mov byte [esp + 0x17], 0
add esp, 4
push dword [esp + 0x14]
call fcn.00432875
mov ecx, dword [esp + 0x220]
add esp, 4
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004265f4
mov esp, ebp
pop ebp
ret

Function at 0x40d976
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 0x40d99d
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40d9a0
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.0040d952
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x417d67
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x417d55
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x425f42
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00432912
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x425f81
sub eax, 1
je 0x425f7c
sub eax, 1
je 0x425f78
xor eax, eax
leave
ret
push 3
jmp 0x425f83
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4272cb
Capabilities:
Parse pe header

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

Function at 0x431796
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00427530
mov eax, dword [0x45f040]
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.0043c4b5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4317d8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x431934
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044b850
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 + 0x461890]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043c908
mov ecx, dword [esi*4 + 0x461890]
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 0x43192d
cmp eax, dword [ecx + edi + 0x24]
jne 0x43192d
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 0x43192d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043c908
add esp, 0x14
test edx, edx
jl 0x43192d
jg 0x4318a3
test eax, eax
jb 0x43192d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43192d
jl 0x4318bd
cmp dword [ebp - 0x1008], eax
ja 0x43192d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4318db
test ebx, ebx
je 0x431914
cmp ecx, edi
jae 0x431914
mov al, byte [ecx]
cmp al, 0xd
jne 0x4318f5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x431901
cmp byte [ecx + 1], 0xa
jne 0x431901
inc ecx
jmp 0x431901
movzx eax, al
movsx eax, byte [eax + 0x45f2e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4318db
cmp edx, ebx
jne 0x4318db
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x431932
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004265f4
leave
ret
Function at 0x43cb76
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 + 0x461890]
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 0x43cbb6
cmp byte [ebx], 0xa
jne 0x43cbb6
or byte [edi + eax + 0x28], 4
jmp 0x43cbbb
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 0x43ccba
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43cc9d
inc eax
cmp dl, 0xd
je 0x43cbe7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43cc0d
cmp eax, ecx
jae 0x43cc1b
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 0x43cbcf
jmp 0x43ccba
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 0x43cc98
cmp dword [ebp - 0x10], 0
je 0x43cc98
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x461890]
test byte [eax + edi + 0x28], 0x48
je 0x43cc72
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43cc5d
mov byte [esi], dl
jmp 0x43cc6e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x461890]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43ccba
cmp byte [ebp - 1], 0xa
jne 0x43cc81
cmp esi, ebx
jne 0x43cc81
mov byte [esi], 0xa
jmp 0x43ccb9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043c926
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43ccba
mov byte [esi], 0xd
jmp 0x43ccb9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x461890]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43ccb7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43ccba
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43ccc3
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 + 0x461890]
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 0x43cd09
cmp word [ebx], dx
jne 0x43cd09
or byte [eax + edi + 0x28], 4
jmp 0x43cd0e
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 0x43ce71
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 0x43ce51
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43cd4f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43cd85
cmp eax, edx
jae 0x43cd93
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 0x43cd2a
jmp 0x43ce71
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 0x43ce4c
cmp dword [ebp - 0x18], 0
je 0x43ce4c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x461890]
test byte [eax + edi + 0x28], 0x48
je 0x43ce22
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 0x43cde6
mov word [esi], cx
jmp 0x43ce1d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x461890]
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 + 0x461890]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x461890]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43ce71
pop eax
cmp word [ebp - 4], ax
jne 0x43ce32
cmp esi, ebx
jne 0x43ce32
mov word [esi], ax
jmp 0x43ce6e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043c926
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43ce71
push 0xd
pop eax
jmp 0x43ce2d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x461890]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43ce6b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43ce71
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43fc33
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452d38
push 0x452d30
push str.FlsAlloc
push 0x1f
call fcn.0043fa9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43fc67
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e170]
call esi
jmp 0x43fc6d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43fcb1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452d48
push 0x452d40
push str.FlsGetValue
push 0x21
call fcn.0043fa9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43fce8
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43fcf0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452d50
push 0x452d48
push str.FlsSetValue
push 0x22
call fcn.0043fa9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43fd2a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44e170]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]