joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492781
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x4b9068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movaps xmm6, xmm2
movsd qword [ebp - 0x40], xmm6
mov esi, ecx
mov dword [ebp - 0x18], 0
mov edi, dword [ebx + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
sub eax, ecx
mov dword [ebp - 0x18], 1
movd xmm5, ecx
cvtdq2pd xmm5, xmm5
mov dword [ebp - 0x14], 0
movd xmm3, eax
mov eax, dword [esi + 8]
movaps xmm7, xmm5
sub eax, edx
movd xmm1, edx
cvtdq2pd xmm3, xmm3
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov eax, dword [esi + 0xc]
sub eax, edx
mov edx, dword [esi + 0x30]
movaps xmm4, xmm3
divsd xmm4, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [ebp - 0x30], xmm4
movaps xmm0, xmm1
mulsd xmm0, xmm4
subsd xmm7, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov eax, dword [esi + 0x34]
sub eax, edx
sar eax, 3
movsd qword [ebp - 0x48], xmm7
divsd xmm3, xmm0
mulsd xmm1, xmm3
movsd qword [ebp - 0x28], xmm3
subsd xmm5, xmm1
movsd qword [ebp - 0x38], xmm5
test eax, eax
je 0x412119
xor eax, eax
nop
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov eax, dword [esi + 0x6c]
movaps xmm2, xmm0
subsd xmm0, xmm7
subsd xmm2, xmm5
divsd xmm0, xmm4
divsd xmm2, xmm3
subsd xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
comisd xmm2, xmm0
jbe 0x412054
cvttsd2si eax, xmm2
mov dword [esi + 0x6c], eax
test eax, eax
jg 0x412064
mov dword [esi + 0x6c], 1
mov eax, 1
xorps xmm0, xmm0
comisd xmm0, xmm2
jb 0x412075
movsd xmm2, qword [0x4af3b0]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mov ecx, dword [esi + 0x64]
movd xmm0, dword [esi + 0x60]
divsd xmm1, xmm2
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm0
addsd xmm1, xmm6
cvttsd2si eax, xmm1
cdq
idiv ecx
mov dword [ebp - 0x4c], edx
test edx, edx
jns 0x4120aa
add edx, ecx
js 0x4120a3
mov dword [ebp - 0x4c], edx
addsd xmm2, qword [0x4af3b8]
cvttsd2si eax, xmm2
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x4120da
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [eax], xmm0
add dword [edi + 4], 0x10
jmp 0x4120ff
lea ecx, [ebp - 0x58]
push ecx
push eax
mov ecx, edi
call fcn.0045fb70
movsd xmm3, qword [ebp - 0x28]
movsd xmm4, qword [ebp - 0x30]
movsd xmm5, qword [ebp - 0x38]
movsd xmm6, qword [ebp - 0x40]
movsd xmm7, qword [ebp - 0x48]
mov ecx, dword [esi + 0x34]
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x30]
inc eax
sub ecx, edx
mov dword [ebp - 0x14], eax
sar ecx, 3
cmp eax, ecx
jb 0x412010
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x414a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov edx, 0x4a9870
push edi
xor edi, edi
mov ecx, dword [esi + 0x94]
call fcn.00413270
cwde
cmp eax, 0x22
jne 0x414a56
nop dword [eax]
mov ecx, dword [esi + 0x94]
mov edx, 0x4a9870
call fcn.00413270
cwde
cmp eax, 0x22
je 0x414a40
cmp eax, 0x23
jne 0x414a79
nop dword [eax + eax]
mov ecx, dword [esi + 0x94]
mov edx, 0x4a9870
add edi, 0x21
call fcn.00413270
cwde
cmp eax, 0x23
je 0x414a60
add edi, eax
mov eax, dword [esi + 0x74]
add eax, edi
cmp dword [esi + 0x70], 0
je 0x414a92
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], eax
jmp 0x414af5
cmp eax, dword [esi + 0x24]
jge 0x414c67
cmp edi, 1
jle 0x414aef
mov dword [esi + 0x88], 0x80
mov dword [esi + 0x8c], 0x80
mov dword [esi + 0x90], 0x80
cmp dword [esi + 0x3c], 2
jne 0x414ad2
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
dec edi
inc dword [esi + 0x74]
mov ecx, esi
mov eax, dword [esi + 0x74]
cdq
idiv dword [esi + 0x1c]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edx
call fcn.00414d00
sub edi, 1
jne 0x414ad3
inc dword [esi + 0x74]
mov eax, dword [esi + 0x74]
cdq
idiv dword [esi + 0x1c]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edx
cmp edx, dword [esi + 0x1c]
jge 0x414c67
cmp eax, dword [esi + 0x20]
jge 0x414c67
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x94]
mov edx, dword [eax*4 + 0x4a9af0]
call fcn.00413270
movsx ecx, ax
mov eax, ecx
mov dword [esi + 0x80], ecx
and eax, 1
mov dword [esi + 0x84], eax
mov eax, ecx
and eax, 8
mov dword [esi + 0x44], eax
mov eax, ecx
and eax, 4
mov dword [esi + 0x58], eax
test cl, 0x10
je 0x414b62
mov ecx, dword [esi + 0x94]
mov edx, 5
call fcn.00412f50
mov dword [esi + 0x6c], eax
cmp dword [esi + 0x84], 0
je 0x414b8c
mov dword [esi + 0x4c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], 0
jmp 0x414c1b
cmp dword [esi + 0x44], 0
mov dword [esi + 0x88], 0x80
mov dword [esi + 0x8c], 0x80
mov dword [esi + 0x90], 0x80
je 0x414bd6
mov edi, dword [esi + 0x48]
mov ecx, esi
push dword [esi + 0x4c]
mov edx, edi
call fcn.00414c70
push dword [esi + 0x50]
mov edx, edi
mov dword [esi + 0x4c], eax
mov ecx, esi
call fcn.00414c70
add esp, 8
mov dword [esi + 0x50], eax
jmp 0x414bea
cmp dword [esi + 0x3c], 2
jne 0x414bea
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
cmp dword [esi + 0x58], 0
je 0x414c14
mov edi, dword [esi + 0x5c]
mov ecx, esi
push dword [esi + 0x60]
mov edx, edi
call fcn.00414c70
push dword [esi + 0x64]
mov edx, edi
mov dword [esi + 0x60], eax
mov ecx, esi
call fcn.00414c70
add esp, 8
mov dword [esi + 0x64], eax
mov ecx, esi
call fcn.00414d00
test byte [esi + 0x80], 2
push ebx
push ebp
je 0x414c3b
mov ecx, dword [esi + 0x94]
mov edx, 0x4a9468
call fcn.00413270
movsx ebp, ax
jmp 0x414c48
mov ebp, dword [esi + 0x84]
neg ebp
sbb ebp, ebp
and ebp, 0x3f
mov ebx, 0x20
xor edi, edi
nop
test ebp, ebx
je 0x414c5d
mov edx, edi
mov ecx, esi
call fcn.004152a0
inc edi
sar ebx, 1
cmp edi, 6
jl 0x414c50
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x41a470
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492a19
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b9068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
xorps xmm1, xmm1
movaps xmm0, xmmword [0x4af660]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
movups xmmword [esi + 0xb8], xmm0
mov byte [esi + 0x88], 0
movaps xmm0, xmmword [0x4af6b0]
movups xmmword [esi + 0x90], xmm1
movups xmmword [esi + 0xa8], xmm1
movups xmmword [esi + 0xc8], xmm0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov byte [ebp - 4], 2
movaps xmm0, xmmword [0x4af650]
movups xmmword [esi + 0x90], xmm0
mov dword [esi + 0x64], 0
movsd xmm0, qword [0x4af4d0]
movsd qword [esi + 0xb0], xmm0
movsd xmm0, qword [0x4af470]
mov dword [esi + 0x60], 0
mov dword [esi + 0x68], 0x14
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
movsd qword [esi + 0x50], xmm1
mov dword [esi + 0x80], 0
mov byte [esi + 0x58], 1
mov dword [esi + 0x5c], 0x10
mov dword [esi + 0x44], 0x10
mov dword [esi + 0x48], 0x14e
mov dword [esi + 0x4c], 0x50
mov dword [esi + 0x40], 0x80
mov dword [esi + 0xc], 0x80
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x14], 0x14e
mov dword [esi + 0x18], 0xc0
mov dword [esi + 0x24], 0xe0
mov dword [esi + 0x28], 0x30
mov dword [esi + 0x1c], 0xb7
mov dword [esi + 0x20], 0xe0
mov dword [esi + 0x38], 0x42
mov dword [esi + 0x34], 0x70
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x2c], 0x10
movsd qword [esi + 0xa0], xmm1
movsd qword [esi + 0xc0], xmm0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], 0xffabdcdb
cmp ecx, dword [esi + 8]
je 0x41a6a7
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, esi
add dword [esi + 4], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00462ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c0f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492bd6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b9068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov byte [ebx + 0xc], 0
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
lea ecx, [ebx + 0x40]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov byte [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov byte [ebx + 0x74], 0
mov byte [ebp - 4], 2
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov byte [ebx + 0x28], 0
mov eax, dword [ecx + 4]
mov byte [ebp - 0xd], 0
cmp eax, dword [ecx + 8]
je 0x41c218
mov byte [eax], 0
inc dword [ecx + 4]
jmp 0x41c222
lea edx, [ebp - 0xd]
push edx
push eax
call fcn.00463560
mov eax, dword [ebx + 0x38]
mov ecx, eax
mov edx, dword [ebx + 0x34]
sub ecx, edx
mov dword [ebp - 0x14], eax
cmp ecx, 1
jbe 0x41c239
lea eax, [edx + 1]
jmp 0x41c26c
jae 0x41c26f
mov eax, dword [ebx + 0x3c]
sub eax, edx
cmp eax, 1
jae 0x41c252
push ecx
push 1
lea ecx, [ebx + 0x34]
call fcn.00463450
jmp 0x41c26f
mov esi, 1
sub esi, ecx
push esi
push 0
push dword [ebp - 0x14]
call fcn.0046cf00
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, esi
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x34]
mov byte [eax], 0
mov eax, 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
Function at 0x425a10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493373
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4b9068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x34]
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
movups xmm0, xmmword [esi + 0x14]
movups xmmword [edi + 0x14], xmm0
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
movzx eax, byte [esi + 0x28]
mov byte [edi + 0x28], al
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
lea eax, [esi + 0x34]
push eax
call fcn.00453650
lea eax, [esi + 0x40]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x40]
push eax
call fcn.00453650
add edi, 0x4c
mov byte [ebp - 4], 1
add esi, 0x4c
mov dword [ebp - 0x14], edi
push esi
mov ecx, edi
call fcn.00453650
mov byte [ebp - 4], 2
lea ecx, [edi + 0x1c]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
movzx eax, byte [esi + 0x10]
mov byte [edi + 0x10], al
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
lea eax, [esi + 0x1c]
push eax
call fcn.004517f0
movzx eax, byte [esi + 0x28]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov byte [edi + 0x28], al
mov eax, dword [ecx + 0x78]
mov dword [edx + 0x78], eax
mov eax, dword [ecx + 0x7c]
mov dword [edx + 0x7c], eax
mov eax, dword [ecx + 0x80]
mov dword [edx + 0x80], eax
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x455230
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494d20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b9068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0046b369
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0046a716
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x20], ecx
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x4fb210]
mov dword [eax], 0
mov eax, dword [0x4fb20c]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x469eb8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00469e94
pop esi
leave
ret 8

Function at 0x46be74
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0046c0c0
mov eax, dword [0x4b9068]
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.0047f9f1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4701f6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x470352
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0048fbd0
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 + 0x4facf8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0047fc00
mov ecx, dword [esi*4 + 0x4facf8]
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 0x47034b
cmp eax, dword [ecx + edi + 0x24]
jne 0x47034b
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 0x47034b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047fc00
add esp, 0x14
test edx, edx
jl 0x47034b
jg 0x4702c1
test eax, eax
jb 0x47034b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47034b
jl 0x4702db
cmp dword [ebp - 0x1008], eax
ja 0x47034b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4702f9
test ebx, ebx
je 0x470332
cmp ecx, edi
jae 0x470332
mov al, byte [ecx]
cmp al, 0xd
jne 0x470313
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47031f
cmp byte [ecx + 1], 0xa
jne 0x47031f
inc ecx
jmp 0x47031f
movzx eax, al
movsx eax, byte [eax + 0x4b92a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4702f9
cmp edx, ebx
jne 0x4702f9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x470350
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046b159
leave
ret
Function at 0x4802a5
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 + 0x4facf8]
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 0x4802e5
cmp byte [ebx], 0xa
jne 0x4802e5
or byte [edi + eax + 0x28], 4
jmp 0x4802ea
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 0x4803e9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4803cc
inc eax
cmp dl, 0xd
je 0x480316
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48033c
cmp eax, ecx
jae 0x48034a
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 0x4802fe
jmp 0x4803e9
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 0x4803c7
cmp dword [ebp - 0x10], 0
je 0x4803c7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4facf8]
test byte [eax + edi + 0x28], 0x48
je 0x4803a1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48038c
mov byte [esi], dl
jmp 0x48039d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4facf8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4803e9
cmp byte [ebp - 1], 0xa
jne 0x4803b0
cmp esi, ebx
jne 0x4803b0
mov byte [esi], 0xa
jmp 0x4803e8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047fc1e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4803e9
mov byte [esi], 0xd
jmp 0x4803e8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4facf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4803e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4803e9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4803f2
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 + 0x4facf8]
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 0x480438
cmp word [ebx], dx
jne 0x480438
or byte [eax + edi + 0x28], 4
jmp 0x48043d
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 0x4805a0
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 0x480580
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48047e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4804b4
cmp eax, edx
jae 0x4804c2
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 0x480459
jmp 0x4805a0
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 0x48057b
cmp dword [ebp - 0x18], 0
je 0x48057b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4facf8]
test byte [eax + edi + 0x28], 0x48
je 0x480551
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 0x480515
mov word [esi], cx
jmp 0x48054c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4facf8]
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 + 0x4facf8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4facf8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4805a0
pop eax
cmp word [ebp - 4], ax
jne 0x480561
cmp esi, ebx
jne 0x480561
mov word [esi], ax
jmp 0x48059d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047fc1e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4805a0
push 0xd
pop eax
jmp 0x48055c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4facf8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48059a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4805a0
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 0x481d87
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49b5c0
push 0x49b5b8
push str.FlsAlloc
push 0x1f
call fcn.00481bcf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x481dbb
push dword [ebp + 8]
mov ecx, esi
call dword [0x4972b4]
call esi
jmp 0x481dc1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x481e05
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49b5d0
push 0x49b5c8
push str.FlsGetValue
push 0x21
call fcn.00481bcf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x481e3c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4972b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x481e44
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49b5d8
push 0x49b5d0
push str.FlsSetValue
push 0x22
call fcn.00481bcf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x481e7e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4972b4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x484b27
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00484aa9