joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003eeb2
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100c6700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
push edi
mov edi, dword [ebp + 8]
push 0x100ae2c8
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x240], eax
call fcn.1000b08e
mov eax, dword [ebp - 0x240]
xor ecx, ecx
push 0x118
push ecx
mov dword [eax], ecx
lea eax, [ebp - 0x238]
mov dword [ebx], ecx
mov bl, cl
push eax
mov dword [edi], ecx
call fcn.10063660
add esp, 0xc
mov dword [ebp - 0x23c], 0x11c
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1002c341
mov ecx, dword [ebp - 0x120]
mov bl, 1
mov eax, dword [ebp - 0x238]
mov dword [edi], eax
mov eax, dword [ebp - 0x234]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x120], 0x118
mov dword [ecx], eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push 2
push str.BuildLab
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push dword [0x100c6028]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
js 0x1002c341
push esi
lea eax, [ebp - 0x11c]
push eax
call fcn.1002bee4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006100c
leave
ret 0x10
push ebp
mov ebp, esp
pop ebp
jmp 0x1002c25c

Function at 0x10040632
Capabilities:
Accept command line arguments

Disassembly:
push 0x230
mov eax, 0x10092022
call fcn.10061d7a
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ecx
mov dword [ebx], ecx
xor eax, eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x238], 1
call fcn.100392db
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x1c4]
mov ecx, esi
call dword [0x10096750]
mov ecx, edi
call esi
mov byte [ebp - 0x234], al
test al, al
jne 0x10040712
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10063660
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10040712
lea eax, [ebp - 0x218]
push 0x100a1224
push eax
call fcn.10064f8a
pop ecx
pop ecx
test eax, eax
je 0x10040712
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x230]
call fcn.1000891f
push esi
push str._allusers
lea ecx, [ebp - 0x230]
call fcn.10017b63
cmp eax, 0xffffffff
lea ecx, [ebp - 0x230]
setne byte [ebp - 0x234]
call fcn.10009725
push ebx
push dword [ebp - 0x234]
call fcn.100259aa
push 0x1009af60
mov ecx, ebx
call fcn.10015736
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1004087b
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10020db8
mov dword [ebp - 0x238], 3
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.10008c19
lea ecx, [ebp - 0x230]
call fcn.10009725
mov eax, ebx
call fcn.10061d29
ret 0xc
Function at 0x10043cc5
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 2
push 0x20
push dword [eax]
push 0
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
mov edx, 0x8004fb29
test eax, eax
cmovs ecx, edx
mov eax, ecx
pop ebp
ret 4

Function at 0x10046902
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x1004692c
jl 0x10046923
test ebx, ebx
jne 0x1004692c
xor eax, eax
xor edx, edx
jmp 0x100469e4
cmp dword [ecx + 0x38], 0
je 0x1004693f
push esi
push ebx
push edx
call method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_32
jmp 0x100469e4
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1004697f
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x1004697f
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.100630e0
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x100469da
call fcn.10045a3c
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x100469c2
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.1007179a
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x100469da
jmp 0x1004698f
test edx, edx
je 0x100469da
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.1007179a
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004ac82
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x1004adeb
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 8], eax
inc ebx
mov edx, dword [ebp + 0x1c]
mov ecx, eax
cmp dword [esi], edx
je 0x1004adeb
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edi, word [edx]
cmp bx, di
jae 0x1004ad01
lea eax, [ecx + 0x2400]
mov edx, 0x3ff
cmp ax, dx
ja 0x1004adfa
mov eax, edi
lea edx, [ecx - 0xdc00]
shl eax, 0xa
or edx, eax
mov cl, byte [ebp - 1]
cmp edx, 0x80
jae 0x1004ad23
mov bl, dl
xor edi, edi
jmp 0x1004ad53
mov edx, eax
lea eax, [ecx + 0x2800]
mov ecx, 0x3ff
cmp ax, cx
ja 0x1004acf0
add edx, 0xffff2840
mov cl, bl
shl edx, 0xa
mov byte [ebp - 1], cl
jmp 0x1004acf3
mov ebx, edx
cmp edx, 0x800
jae 0x1004ad38
shr ebx, 6
xor edi, edi
or bl, 0xc0
inc edi
jmp 0x1004ad53
cmp edx, 0x10000
jae 0x1004ad4a
shr ebx, 0xc
or bl, 0xe0
push 2
jmp 0x1004ad52
shr ebx, 0x12
or bl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 8]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 0xc]
jl 0x1004adeb
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x1004ad8f
cmp edi, 3
jb 0x1004ad8f
mov ebx, dword [ebp - 0xc]
jmp 0x1004ad98
mov eax, dword [esi]
mov byte [eax], bl
inc dword [esi]
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x1004adc0
imul ecx, edi, 6
mov edi, dword [ebp - 8]
sub ecx, 6
mov eax, edx
dec ebx
shr eax, cl
and al, 0x3f
or al, 0x80
mov byte [edi], al
inc dword [esi]
mov eax, dword [esi]
mov dword [ebp - 8], eax
test ebx, ebx
jg 0x1004ada4
xor ebx, ebx
shr edx, 0xa
inc ebx
movzx eax, dx
cmp byte [ebp - 1], 0
mov ecx, ebx
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 8], eax
cmp ecx, dword [ebp + 0x10]
jne 0x1004acae
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x1004adf3

Function at 0x1004ed8a
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.1004ed66
pop esi
leave
ret 8
Function at 0x1007a5f4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a66a0
push 0x100a6698
push str.FlsAlloc
push 0x1e
call fcn.1007a421
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a628
push dword [ebp + 8]
mov ecx, esi
call dword [0x10096750]
call esi
jmp 0x1007a62e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1007a672
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a66b0
push 0x100a66a8
push str.FlsGetValue
push 0x20
call fcn.1007a421
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a6a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x10096750]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100801c5
Capabilities:
Read file on windows

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

Function at 0x100805bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100627c0
mov eax, dword [0x100c6700]
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.10079e25
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10080601
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1008075d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10061e20
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 + 0x100ce300]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100815b6
mov ecx, dword [esi*4 + 0x100ce300]
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 0x10080756
cmp eax, dword [edi + ecx + 0x24]
jne 0x10080756
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 0x10080756
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100815b6
add esp, 0x14
test edx, edx
jl 0x10080756
jg 0x100806cc
test eax, eax
jb 0x10080756
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10080756
jl 0x100806e6
cmp dword [ebp - 0x1008], eax
ja 0x10080756
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10080704
test ebx, ebx
je 0x1008073d
cmp ecx, edi
jae 0x1008073d
mov al, byte [ecx]
cmp al, 0xd
jne 0x1008071e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1008072a
cmp byte [ecx + 1], 0xa
jne 0x1008072a
inc ecx
jmp 0x1008072a
movzx eax, al
movsx eax, byte [eax + 0x100c7058]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10080704
cmp edx, ebx
jne 0x10080704
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1008075b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1006100c
leave
ret
Function at 0x10080a54
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 + 0x100ce300]
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 0x10080a94
cmp byte [ebx], 0xa
jne 0x10080a94
or byte [eax + edi + 0x28], 4
jmp 0x10080a99
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10080b97
mov al, byte [edx]
cmp al, 0x1a
je 0x10080b79
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10080ac8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10080aed
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10080af7
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 0x10080aaa
jmp 0x10080b97
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 0x10080b74
cmp dword [ebp - 0xc], 0
je 0x10080b74
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100ce300]
test byte [eax + edi + 0x28], 0x48
je 0x10080b4e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10080b39
mov byte [esi], dl
jmp 0x10080b4a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100ce300]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10080b97
cmp byte [ebp - 1], 0xa
jne 0x10080b5d
cmp esi, ebx
jne 0x10080b5d
mov byte [esi], 0xa
jmp 0x10080b96
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100815d4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10080b97
mov byte [esi], 0xd
jmp 0x10080b96
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100ce300]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10080b93
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10080b97
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10080ba0
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 + 0x100ce300]
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 0x10080be3
cmp word [esi], dx
jne 0x10080be3
or byte [edi + eax + 0x28], 4
jmp 0x10080be8
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 0x10080d3b
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 0x10080d1b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10080c2a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10080c60
cmp eax, edx
jae 0x10080c6c
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 0x10080c02
jmp 0x10080d3b
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 0x10080d17
cmp dword [ebp - 0x14], 0
je 0x10080d17
mov eax, dword [ebx*4 + 0x100ce300]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10080cef
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10080cb8
mov word [esi], cx
jmp 0x10080ceb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100ce300]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100ce300]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100ce300]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10080d3b
pop ebx
cmp word [ebp - 4], bx
jne 0x10080d00
cmp esi, dword [ebp + 0xc]
jne 0x10080d00
mov word [esi], bx
jmp 0x10080d38
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100815d4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10080d3b
push 0xd
jmp 0x10080d34
mov ecx, dword [ebx*4 + 0x100ce300]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10080d32
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10080d3b
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 0x10084010
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 0x100840ad
push ebx
push esi
call fcn.10083fd9
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.1008375f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008405a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100840ac
push edi
push eax
call fcn.10078f34
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008407a
call fcn.10078efa
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100840ab
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1008375f
add esp, 0x20
test eax, eax
jne 0x10084099
push edi
call fcn.10078efa
jmp 0x100840a1
push ebx
call fcn.10078efa
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 0x100840b0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100840c1
pop esi
ret
push ebx
push edi
push esi
call fcn.10083fd9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10078f34
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100840e9
push ebx
push esi
push edi
call fcn.100630e0
add esp, 0xc
push 0
call fcn.10078efa
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100844ad
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100840fe
Function at 0x100885fa
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.10088576
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10088772
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10088772
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10088721
jg 0x10088653
test eax, eax
je 0x10088717
push 1
push 0x1000
call fcn.1007ad37
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10088679
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1008870e
push 0x8000
push ebx
call fcn.100884a7
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 0x100886a5
jg 0x100886a0
cmp ecx, 0x1000
jb 0x100886a5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1007fe36
add esp, 0x10
cmp eax, 0xffffffff
je 0x100886ea
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 0x100886a0
jl 0x100886d1
test ecx, ecx
jne 0x10088692
push dword [ebp - 0xc]
push ebx
call fcn.100884a7
push esi
call fcn.10078efa
add esp, 0xc
xor edi, edi
jmp 0x10088783
cmp byte [edi + 0x24], 0
je 0x10088701
cmp dword [edi + 0x20], 5
jne 0x10088701
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1008870c
mov edi, dword [edi + 0x18]
jmp 0x1008870e
xor edi, edi
push esi
call fcn.10078efa
pop ecx
jmp 0x10088783
test ecx, ecx
jg 0x100886e3
jl 0x10088721
test eax, eax
jae 0x100886e3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100815d4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10088744
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100886e3
jmp 0x1008877b
push ebx
call fcn.100862e1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100886e3
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 0x10088783
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10088780
mov edi, dword [edi + 0x18]
jmp 0x10088783
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100815d4
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100891a2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002e5e6

Function at 0x10089990
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100899bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100899bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x418f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f12
cmp edx, 0x800
jae 0x418ffb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418fd0
mov dword [0x420dbc], 0x4196b0
call fcn.00419140
test eax, eax
jne 0x419018
mov dword [0x420dbc], 0x4195d0
ret

Function at 0x710c75
Capabilities:
Encode data using xor

Disassembly:
push 0x7109ec
mov esi, dword [esp]
add esp, 4
add edx, 0x955aff69
and edx, edx
inc edx
call fcn.00710ccc
dec edx
dec edx
sub edx, ebx
xor dword [eax], esi
or ebx, ebx
sub edx, 0x9a776071
sub edx, ebx
inc eax
sub esp, 4
mov dword [esp], 0xeeb6a0a8
pop ebx
mov edx, 0x4372005d
or ebx, edx
cmp eax, edi
jne fcn.00710c75
inc edx
add ebx, edx
sub edx, 0x24a64525
ret