joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10075bb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x100d8054]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x430]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x14c]
push 0
add eax, 4
push eax
push dword [edi + 0x158]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x140], 0
mov dword [edi + 0x144], eax
jne 0x10075c36
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xc0]
push eax
call fcn.10089890
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x140], eax
mov esi, dword [edi + 0x144]
cmp esi, 4
jge 0x10075c71
push str.Received_too_short_packet
push ebx
call fcn.10054370
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10046dd3
add esp, 0x88
ret
mov edx, dword [edi + 0x158]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x10075c90.1
jmp dword [ecx*4 + 0x10075d9c]
cmp esi, 4
jle case.0x10075c90.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x154]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x10075c90.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.100542a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10075ceb
push 5
push edi
call fcn.10076740
add esp, 8
mov eax, esi
jmp 0x10075c58
mov eax, dword [edi + 0x144]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.1005de80
jmp 0x10075d71
movzx ecx, byte [edx + 2]
lea ebp, [edx + 4]
movzx eax, byte [edx + 3]
add esi, 0xfffffffc
shl ecx, 8
or ecx, eax
push esi
push ebp
mov dword [edi + 8], ecx
call fcn.100767b0
add esp, 8
cmp eax, esi
jae case.0x10075c90.4
push ebp
push str.TFTP_error:__s_n
push ebx
call fcn.10054430
jmp 0x10075d71
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.10075940
add esp, 0xc
test eax, eax
je case.0x10075c90.4
jmp 0x10075c58
push str.Internal_error:_Unexpected_packet
push 0x100cfa1c
push ebx
call fcn.10054370
add esp, 0xc
push ebx
call fcn.1005e260
add esp, 4
test eax, eax
je 0x10075c56
push 5
push edi
call fcn.10076740
add esp, 8
mov eax, 0x2a
jmp 0x10075c58
Function at 0x10086fb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100d8070]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10086fd7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x10087022
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x10087026
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10087086
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x10087045
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x100870b7
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x100bfb40
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x100bfb41
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x10087090
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x100870c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x20]
call fcn.10056a10
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x100d8070]
mov edi, eax
add esp, 8
test edi, edi
je 0x10087228
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x1008713c
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push ebp
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x100871a1
mov dword [esp + 0x18], eax
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x10087160
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esi + 0x10]
jae 0x100871cd
mov eax, dword [esi + 4]
push 1
push 0x100bfb40
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x100bfb41
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x100871a6
push dword [esp + 0x28]
call fcn.10056a10
mov ecx, dword [edi]
push eax
push dword [esp + 0x2c]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x100871f8
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x100d8074]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
pop ecx
ret
Function at 0x1008cd41
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10047fc0
mov eax, dword [0x100d8054]
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.1009e673
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1008cd83
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1008cedf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100af230
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 + 0x101db9d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1009c3f2
mov ecx, dword [esi*4 + 0x101db9d8]
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 0x1008ced8
cmp eax, dword [edi + ecx + 0x24]
jne 0x1008ced8
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 0x1008ced8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009c3f2
add esp, 0x14
test edx, edx
jl 0x1008ced8
jg 0x1008ce4e
test eax, eax
jb 0x1008ced8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1008ced8
jl 0x1008ce68
cmp dword [ebp - 0x1008], eax
ja 0x1008ced8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1008ce86
test ebx, ebx
je 0x1008cebf
cmp ecx, edi
jae 0x1008cebf
mov al, byte [ecx]
cmp al, 0xd
jne 0x1008cea0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1008ceac
cmp byte [ecx + 1], 0xa
jne 0x1008ceac
inc ecx
jmp 0x1008ceac
movzx eax, al
movsx eax, byte [eax + 0x100d82c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1008ce86
cmp edx, ebx
jne 0x1008ce86
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1008cedd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10046dd3
leave
ret
Function at 0x1009bbde
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100d8054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x100c2068
push esi
call fcn.100a7d5d
pop ecx
pop ecx
test eax, eax
jne 0x1009bc0c
xor al, al
jmp 0x1009bc89
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.1009b915
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1009bc46
push dword [ebp - 0x210]
call fcn.1009029d
xor al, al
jmp 0x1009bc87
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1009bc4c
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1009bc6c
push edx
call fcn.1009bb14
pop ecx
test al, al
je 0x1009bc37
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1009bc7a
mov bl, 1
push dword [ebp - 0x210]
call fcn.1009029d
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10046dd3
leave
ret
Function at 0x1009e69a
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 + 0x101db9d8]
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 0x1009e6da
cmp byte [ebx], 0xa
jne 0x1009e6da
or byte [eax + edi + 0x28], 4
jmp 0x1009e6df
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1009e7dd
mov al, byte [edx]
cmp al, 0x1a
je 0x1009e7bf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1009e70e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1009e733
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1009e73d
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 0x1009e6f0
jmp 0x1009e7dd
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 0x1009e7ba
cmp dword [ebp - 0xc], 0
je 0x1009e7ba
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x101db9d8]
test byte [eax + edi + 0x28], 0x48
je 0x1009e794
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1009e77f
mov byte [esi], dl
jmp 0x1009e790
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101db9d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1009e7dd
cmp byte [ebp - 1], 0xa
jne 0x1009e7a3
cmp esi, ebx
jne 0x1009e7a3
mov byte [esi], 0xa
jmp 0x1009e7dc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1009c410
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1009e7dd
mov byte [esi], 0xd
jmp 0x1009e7dc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x101db9d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009e7d9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1009e7dd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1009e7e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x101db9d8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1009e829
cmp word [esi], dx
jne 0x1009e829
or byte [edi + eax + 0x28], 4
jmp 0x1009e82e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1009e967
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1009e947
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1009e870
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1009e8a6
cmp eax, edx
jae 0x1009e8b2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1009e848
jmp 0x1009e967
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009e943
cmp dword [ebp - 0x14], 0
je 0x1009e943
mov eax, dword [ebx*4 + 0x101db9d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1009e91b
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1009e961
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x101db9d8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x101db9d8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x101db9d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1009e964
pop ebx
cmp word [ebp - 4], bx
jne 0x1009e92c
cmp esi, dword [ebp + 0xc]
jne 0x1009e92c
mov word [esi], bx
jmp 0x1009e964
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1009c410
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1009e967
push 0xd
jmp 0x1009e960
mov ecx, dword [ebx*4 + 0x101db9d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009e95e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1009e967
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a0179
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c3144
push 0x100c313c
push str.FlsAlloc
push 0x1e
call fcn.1009ffa6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a01ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b43f0]
call esi
jmp 0x100a01b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100a01f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c3154
push 0x100c314c
push str.FlsGetValue
push 0x20
call fcn.1009ffa6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a022e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b43f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100a25d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a2443
Function at 0x100a7270
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100a730d
push ebx
push esi
call fcn.100a7239
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100a584f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a72ba
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a730c
push edi
push eax
call fcn.100a08f3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a72da
call fcn.1009fccb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a730b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100a584f
add esp, 0x20
test eax, eax
jne 0x100a72f9
push edi
call fcn.1009fccb
jmp 0x100a7301
push ebx
call fcn.1009fccb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100a7310
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100a7321
pop esi
ret
push ebx
push edi
push esi
call fcn.100a7239
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100a08f3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100a7349
push ebx
push esi
push edi
call fcn.10089890
add esp, 0xc
push 0
call fcn.1009fccb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100a770d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a735e
Function at 0x100ae1b1
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.100ae12d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100ae329
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100ae329
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100ae2d8
jg 0x100ae20a
test eax, eax
je 0x100ae2ce
push 1
push 0x1000
call fcn.1009fc6e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100ae230
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100ae2c5
push 0x8000
push ebx
call fcn.100ae05e
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 0x100ae25c
jg 0x100ae257
cmp ecx, 0x1000
jb 0x100ae25c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100a2243
add esp, 0x10
cmp eax, 0xffffffff
je 0x100ae2a1
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 0x100ae257
jl 0x100ae288
test ecx, ecx
jne 0x100ae249
push dword [ebp - 0xc]
push ebx
call fcn.100ae05e
push esi
call fcn.1009fccb
add esp, 0xc
xor edi, edi
jmp 0x100ae33a
cmp byte [edi + 0x24], 0
je 0x100ae2b8
cmp dword [edi + 0x20], 5
jne 0x100ae2b8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100ae2c3
mov edi, dword [edi + 0x18]
jmp 0x100ae2c5
xor edi, edi
push esi
call fcn.1009fccb
pop ecx
jmp 0x100ae33a
test ecx, ecx
jg 0x100ae29a
jl 0x100ae2d8
test eax, eax
jae 0x100ae29a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009c410
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100ae2fb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100ae29a
jmp 0x100ae332
push ebx
call fcn.100a8177
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100ae29a
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 0x100ae33a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100ae337
mov edi, dword [edi + 0x18]
jmp 0x100ae33a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1009c410
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4065ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406612
xor eax, eax
test eax, eax
je 0x406625
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406625
xor ecx, ecx
jmp 0x406628
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406751
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x406788
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406762
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x40675d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x40679b
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10002bc0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a540
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1000f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [esi + 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [esi + 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x200
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_operator_1]
push 0x200
push 0
push eax
mov dword [esi + 8], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esi], 0
or eax, 0xffffffff
mov dword [esi + 0x30], 0xffffffff
mov word [esi + 0x2c], ax
mov word [esi + 0x2e], ax
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret