joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102eac30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
call fcn.102eae10
mov eax, esi
xor edi, edi
lea esi, [eax + 0xa8]
add eax, 8
lea ebx, [edi + 0x28]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add edi, 4
mov ecx, dword [esi + 0xc]
sub ebx, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp edi, ebx
jl 0x102eac52
mov esi, dword [ebp + 8]
mov edi, 9
add esi, 4
nop dword [eax]
mov edx, dword [esi + 0xc]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x10649840]
movzx eax, byte [esi - 2]
mov ecx, dword [ecx*4 + 0x1064bc40]
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064b840]
movzx eax, byte [esi - 3]
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064b440]
movzx eax, dl
mov edx, dword [esi]
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064b040]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi - 4], ecx
mov ecx, dword [eax*4 + 0x10649840]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1064b840]
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064b440]
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064bc40]
movzx eax, dl
mov edx, dword [esi + 4]
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064b040]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi], ecx
mov ecx, dword [eax*4 + 0x10649840]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1064b840]
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064b440]
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064bc40]
movzx eax, dl
mov edx, dword [esi + 8]
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064b040]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi + 4], ecx
mov ecx, dword [eax*4 + 0x10649840]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1064b840]
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064b440]
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064bc40]
movzx eax, dl
mov eax, dword [eax*4 + 0x10649840]
xor ecx, dword [eax*4 + 0x1064b040]
mov dword [esi + 8], ecx
sub edi, 1
jne 0x102eaca0
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x102ebbc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x1045aaa0
push 0x10454280
push 4
call fcn.1029e230
mov ebx, dword [ebp + 0x54]
add esp, 0xc
mov esi, dword [ebp + 0x58]
xor ecx, ecx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 4], ecx
nop dword [eax]
mov eax, dword [ecx + 0x1064ca18]
test edx, eax
je 0x102ebcb4
cmp byte [ebp + 0x60], 0
je 0x102ebc60
cmp eax, 0x8000
jb 0x102ebcb4
mov eax, dword [ecx + 0x1064ca10]
mov edi, dword [ecx + 0x1064ca14]
push 0x1045aa80
push 0x10454280
push 4
mov dword [ebp + 0x54], eax
call fcn.1029e230
add esp, 0xc
xor edx, edx
test edi, edi
je 0x102ebcae
mov ecx, esi
shl ecx, 4
add ecx, ebx
nop
test ebx, ebx
je 0x102ebc55
cmp esi, dword [ebp + 0x5c]
jae 0x102ebc59
mov eax, dword [ebp + 0x54]
mov eax, dword [eax + edx*4]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
inc esi
add ecx, 0x10
inc edx
cmp edx, edi
jb 0x102ebc40
jmp 0x102ebcae
mov eax, dword [ecx + 0x1064ca10]
mov edi, dword [ecx + 0x1064ca14]
push 0x1045aa80
push 0x10454280
push 4
mov dword [ebp + 0x54], eax
call fcn.1029e230
add esp, 0xc
xor edx, edx
test edi, edi
je 0x102ebcae
mov ecx, esi
shl ecx, 4
add ecx, ebx
test ebx, ebx
je 0x102ebca5
cmp esi, dword [ebp + 0x5c]
jae 0x102ebca9
mov eax, dword [ebp + 0x54]
mov eax, dword [eax + edx*4]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
inc esi
add ecx, 0x10
inc edx
cmp edx, edi
jb 0x102ebc90
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
add ecx, 0xc
mov dword [ebp - 4], ecx
cmp ecx, 0xcc
jb 0x102ebbf0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x5c
Function at 0x1034a6c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
sub esp, 0x10
test al, al
jne 0x1034a6e5
push 0x100
push 0
push dword [ebp + 0x10]
call fcn.10425c00
add esp, 0xc
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 1]
cmp byte [ebx], cl
jbe 0x1034a707
mov al, byte [edi]
mov byte [ecx + edx], al
inc ecx
movzx eax, byte [ebx]
cmp ecx, eax
jl 0x1034a6f7
mov al, byte [ebp + 0xc]
movzx esi, al
mov dword [ebp - 0x10], esi
lea eax, [esi - 1]
mov dword [ebp - 4], eax
test eax, eax
jle 0x1034a7a6
nop dword [eax + eax]
movzx ebx, byte [edi + 1]
lea eax, [edi + 2]
mov dword [ebp + 0xc], eax
movzx eax, byte [edi - 1]
sub ebx, eax
je 0x1034a797
mov eax, ebx
mov ecx, dword [ebp + 0xc]
sar eax, 1
xor esi, esi
add eax, 0x10000
cdq
idiv ebx
movzx edx, byte [ecx]
movzx ecx, byte [edi]
sub edx, ecx
imul edx
mov dword [ebp - 8], eax
mov ecx, edx
mov dword [ebp - 0xc], ecx
test ebx, ebx
jle 0x1034a794
nop dword [eax]
push ecx
push eax
push 0
push esi
call fcn.10451300
mov ecx, eax
movzx eax, byte [edi - 1]
add ecx, 0x8000
adc edx, 0
add eax, esi
shrd ecx, edx, 0x10
mov edx, dword [ebp + 0x10]
inc esi
add cl, byte [edi]
mov byte [eax + edx], cl
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp esi, ebx
jl 0x1034a760
jmp 0x1034a797
mov edx, dword [ebp + 0x10]
sub dword [ebp - 4], 1
mov edi, dword [ebp + 0xc]
jne 0x1034a720
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
movzx ecx, byte [ebx + esi*2 - 2]
nop dword [eax + eax]
mov al, byte [ebx + esi*2 - 1]
mov byte [ecx + edx], al
inc ecx
cmp ecx, 0x100
jl 0x1034a7b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1036d460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov edx, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push edi
nop dword [eax]
mov al, byte [edx + 0x118]
mov ecx, dword [edx + 0x14]
mov esi, dword [edx + 0xc]
movzx ebx, al
shr esi, cl
mov byte [ebp - 1], al
mov eax, esi
and eax, 0xc0
mov dword [ebp - 8], ebx
movzx eax, byte [eax + ebx + 0x10b3ceb0]
movzx ebx, byte [edx + 0x119]
sub esi, eax
mov edi, esi
shl edi, cl
mov dword [ebp - 0xc], edi
mov edi, dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
cmp edi, ecx
jb 0x1036d504
sub edi, ecx
mov esi, eax
mov ecx, dword [edx + 0x14]
xor ebx, 1
shl eax, cl
mov dword [ebp - 0x18], eax
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [edx + 0x10], edi
mov dword [ebp - 0xc], ebx
test eax, eax
je 0x1036d4f0
mov al, byte [eax + 0x10b3ce30]
mov ecx, dword [ebp - 0x18]
mov byte [edx + 0x118], al
jmp 0x1036d525
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x18]
mov byte [edx + 0x119], bl
mov byte [edx + 0x118], al
jmp 0x1036d525
mov eax, dword [ebp - 8]
mov dword [edx + 0xc], ecx
mov dword [ebp - 0xc], ebx
mov al, byte [eax + 0x10b3ce70]
mov byte [edx + 0x118], al
cmp esi, 0xff
jg 0x1036d5f7
bsr eax, esi
mov esi, dword [edx + 0x14]
add esi, 0xfffffff8
add eax, esi
mov dword [edx + 0x14], eax
jns 0x1036d5f7
mov esi, dword [edx + 4]
add eax, 0x10
mov ebx, dword [edx + 8]
shl ecx, 0x10
mov dword [edx + 0xc], ecx
mov dword [edx + 0x14], eax
lea ecx, [esi + 2]
mov eax, dword [edx]
shl ebx, 8
mov dword [ebp - 0x18], ebx
cmp ecx, eax
ja 0x1036d5c1
movzx ebx, byte [esi]
mov eax, dword [ebp - 0x18]
movzx esi, byte [esi + 1]
add eax, ebx
shl eax, 8
mov dword [edx + 4], ecx
cmp eax, 0x300
jne 0x1036d596
mov ebx, esi
cmp ecx, dword [edx]
jae 0x1036d58b
movzx esi, byte [ecx]
lea eax, [ecx + 1]
mov dword [edx + 4], eax
mov eax, ebx
shl eax, 8
add eax, esi
jmp 0x1036d5e1
mov eax, ebx
xor esi, esi
shl eax, 8
add eax, esi
jmp 0x1036d5e1
and eax, 0xffffff
add eax, esi
cmp eax, 3
jne 0x1036d5e1
cmp ecx, dword [edx]
jae 0x1036d5b7
movzx esi, byte [ecx]
lea eax, [ecx + 1]
mov dword [edx + 4], eax
lea eax, [esi + 0x300]
jmp 0x1036d5e1
xor esi, esi
lea eax, [esi + 0x300]
jmp 0x1036d5e1
cmp esi, eax
jae 0x1036d5ca
movzx ecx, byte [esi]
jmp 0x1036d5cc
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
add ecx, ebx
mov dword [edx + 4], eax
xor ebx, ebx
xor eax, eax
cmp ecx, 3
cmovne ebx, dword [ebp - 8]
shl edi, 8
add edi, ebx
movzx eax, ax
mov ebx, dword [ebp - 0xc]
shl edi, 8
add edi, esi
mov dword [edx + 8], eax
mov dword [edx + 0x10], edi
mov eax, dword [ebp - 0x14]
mov ecx, eax
shl ebx, cl
inc eax
mov ecx, dword [ebp - 0x10]
or ecx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [ebp + 8]
jl 0x1036d480
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10373db0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x40
call fcn.1001ded0
mov esi, eax
add esp, 4
test esi, esi
je 0x10373f2c
mov eax, dword [ebp + 8]
mov dword [esi], 0x10b31488
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
movups xmm0, xmmword [eax]
movups xmmword [esi + 4], xmm0
mov eax, dword [eax + 0x10]
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0xc]
cmp ecx, 1
jle 0x10373e1f
mov eax, dword [esi + 4]
dec eax
add eax, ecx
neg ecx
and eax, ecx
mov dword [esi + 4], eax
jmp 0x10373e26
mov dword [esi + 0xc], 1
cmp dword [esi + 8], 1
push edi
jl 0x10373f07
cmp dword [esi + 4], 1
jl 0x10373f07
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x10373f07
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x28], eax
test eax, eax
je 0x10373f07
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x2c], eax
test eax, eax
je 0x10373f07
mov eax, dword [esi + 4]
imul eax, dword [esi + 8]
push dword [esi + 0xc]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
push eax
mov dword [esi + 0x38], 0
call fcn.10434a32
add esp, 8
mov dword [esi + 0x18], eax
test eax, eax
je 0x10373f07
mov eax, dword [esi + 8]
cmp eax, 1
jle 0x10373eff
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
je 0x10373f07
cmp dword [esi + 0x10], 0
je 0x10373eff
push 0
push 0
push esi
push 0x10373f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
test eax, eax
je 0x10373f07
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
cmp eax, fcn.10373c50
jne 0x10373f22
call fcn.10373c50
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
call eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x10408610
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
imul ebx, eax, 0x7d0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp + 0x10]
add ebx, edi
mov dword [ebp - 0x80], ecx
cmp byte [ebx + 0x655], 0
je 0x104086ee
cmp esi, 4
jae 0x104086ee
cmp dword [ebx + esi*4 + 0x378], 0
jne 0x104086ee
mov ecx, edi
call fcn.104095b0
test al, al
je 0x104086ee
push esi
push dword [ebp - 0x84]
lea eax, [ebp - 0x7c]
push dword [0x11d0bb48]
push 0x104685f0
push 0x3c
push eax
call fcn.100086c0
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
add esp, 0x18
add eax, 0xfff
and eax, 0xfffff000
mov dword [ebp - 0x80], eax
push ecx
push eax
push 0
push 0x8000004
push 0x11d0bb50
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + esi*4 + 0x378], eax
test eax, eax
je 0x104086ee
push dword [ebp - 0x80]
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + esi*4 + 0x388], eax
test eax, eax
jne 0x104086f0
push esi
push dword [ebp - 0x84]
mov ecx, edi
call fcn.10408a30
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x104103e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10470c17
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x11ad127c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [ebp + 0x2c]
mov ecx, dword [ebp + 0x14]
mov byte [esi + 5], al
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0xc]
push 0x3914
mov dword [esi + 0x34], eax
lea eax, [esi + 0x38]
push 0
push eax
mov dword [esi], 0x10f165c0
mov byte [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], ecx
call fcn.10425c00
mov al, byte [ebp + 0x30]
add esp, 0xc
mov byte [esi + 0x394d], al
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x3950], eax
mov eax, dword [ebp + 0x20]
push 0
push 0x7202000c
mov byte [esi + 0x394c], 0
mov byte [esi + 0x394e], 1
mov dword [esi + 0x3954], eax
call fcn.10413080
push 0
push 0x7201000c
mov dword [0x11d0bb98], eax
call fcn.10413080
push 0x10f22d94
push 0x5bc
mov dword [ebp + 0x2c], eax
call fcn.10451732
mov edi, eax
add esp, 8
mov dword [ebp + 0x30], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x104104e6
push dword [ebp + 0x2c]
mov ecx, edi
call fcn.104121a0
jmp 0x104104e8
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1041054b
cmp dword [ebp + 0x28], 0
mov eax, 0x11ad0538
mov ecx, edi
mov dword [ebp + 0x2c], 0
cmovne eax, dword [ebp + 0x28]
push eax
push dword [esi + 0x34]
lea eax, [ebp + 0x2c]
push eax
push dword [esi + 0x18]
call fcn.104128d0
test eax, eax
jne 0x10410528
mov eax, dword [ebp + 0x2c]
mov dword [esi + 8], edi
mov dword [esi + 0x10], eax
jmp 0x1041054b
mov ecx, edi
mov dword [esi + 8], 0
call fcn.104123b0
mov ecx, edi
call fcn.10412230
push 0x5bc
push edi
call fcn.1045088a
add esp, 8
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 0x2c
Function at 0x10440444
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10451050
mov eax, dword [0x11ad127c]
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.1043f574
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10440486
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x104405e2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10451250
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 + 0x11d0bcb8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1044864c
mov ecx, dword [esi*4 + 0x11d0bcb8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x104405db
cmp eax, dword [edi + ecx + 0x24]
jne 0x104405db
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x104405db
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1044864c
add esp, 0x14
test edx, edx
jl 0x104405db
jg 0x10440551
test eax, eax
jb 0x104405db
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x104405db
jl 0x1044056b
cmp dword [ebp - 0x1008], eax
ja 0x104405db
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10440589
test ebx, ebx
je 0x104405c2
cmp ecx, edi
jae 0x104405c2
mov al, byte [ecx]
cmp al, 0xd
jne 0x104405a3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x104405af
cmp byte [ecx + 1], 0xa
jne 0x104405af
inc ecx
jmp 0x104405af
movzx eax, al
movsx eax, byte [eax + 0x11ad0a48]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10440589
cmp edx, ebx
jne 0x10440589
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x104405e0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1045066c
leave
ret

Function at 0x1044418f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10f1a284
push 0x10f1a27c
push 0x10f17b60
push 0x1e
call fcn.10444010
mov esi, eax
add esp, 0x10
test esi, esi
je 0x104441c3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10480478]
call esi
jmp 0x104441c9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1044420d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10f1a294
push 0x10f1a28c
push 0x10f17b84
push 0x20
call fcn.10444010
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10444244
push dword [ebp + 8]
mov ecx, esi
call dword [0x10480478]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10446a13
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1044653a
Function at 0x1044774e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.104476ca
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x104478c6
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x104478c6
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10447875
jg 0x104477a7
test eax, eax
je 0x1044786b
push 1
push 0x1000
call fcn.10443e80
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x104477cd
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10447862
push 0x8000
push ebx
call fcn.104471c7
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x104477f9
jg 0x104477f4
cmp ecx, 0x1000
jb 0x104477f9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1043ed7a
add esp, 0x10
cmp eax, 0xffffffff
je 0x1044783e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x104477f4
jl 0x10447825
test ecx, ecx
jne 0x104477e6
push dword [ebp - 0xc]
push ebx
call fcn.104471c7
push esi
call fcn.10441f94
add esp, 0xc
xor edi, edi
jmp 0x104478d7
cmp byte [edi + 0x24], 0
je 0x10447855
cmp dword [edi + 0x20], 5
jne 0x10447855
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10447860
mov edi, dword [edi + 0x18]
jmp 0x10447862
xor edi, edi
push esi
call fcn.10441f94
pop ecx
jmp 0x104478d7
test ecx, ecx
jg 0x10447837
jl 0x10447875
test eax, eax
jae 0x10447837
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1044866a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10447898
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10447837
jmp 0x104478cf
push ebx
call fcn.10447660
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10447837
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x104478d7
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x104478d4
mov edi, dword [edi + 0x18]
jmp 0x104478d7
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1044866a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x104478f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x11d0bcb8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10447931
cmp byte [ebx], 0xa
jne 0x10447931
or byte [eax + edi + 0x28], 4
jmp 0x10447936
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10447a34
mov al, byte [edx]
cmp al, 0x1a
je 0x10447a16
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10447965
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1044798a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10447994
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10447947
jmp 0x10447a34
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10447a11
cmp dword [ebp - 0xc], 0
je 0x10447a11
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x11d0bcb8]
test byte [eax + edi + 0x28], 0x48
je 0x104479eb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x104479d6
mov byte [esi], dl
jmp 0x104479e7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x11d0bcb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10447a34
cmp byte [ebp - 1], 0xa
jne 0x104479fa
cmp esi, ebx
jne 0x104479fa
mov byte [esi], 0xa
jmp 0x10447a33
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1044866a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10447a34
mov byte [esi], 0xd
jmp 0x10447a33
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x11d0bcb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10447a30
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10447a34
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret