joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ce8e
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 0x44cf2b
push ebx
push esi
call fcn.0044ce57
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.0044cdeb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44ced8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44cf2a
push edi
push eax
call fcn.0044a51c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44cef8
call fcn.0044a3c9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44cf29
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044cdeb
add esp, 0x20
test eax, eax
jne 0x44cf17
push edi
call fcn.0044a3c9
jmp 0x44cf1f
push ebx
call fcn.0044a3c9
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 0x44fb82
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004496f1
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44fbf1
cmp esi, dword [ebp - 4]
je 0x44fbec
cmp dword [ebp + 0xc], 0
je 0x44fbec
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44fbc9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044f6d4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44fbf3
xor eax, eax
inc eax
jmp 0x44fbf3
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44fc58
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ac2c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004496f1
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004496f1
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x44fccf
cmp word [ecx], dx
je 0x44fccf
mov eax, dword [0x4a5e7c]
push edi
dec eax
push eax
push 0x4a5d68
call fcn.0044fbf7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x44fd42
cmp word [eax], dx
je 0x44fd42
mov eax, dword [edi]
test eax, eax
je 0x44fcf3
cmp word [eax], dx
je 0x44fcf3
lea eax, [ebp - 0x10]
push eax
call fcn.0044f5da
jmp 0x44fcfc
lea eax, [ebp - 0x10]
push eax
call fcn.0044f675
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44fd6c
mov eax, dword [0x4a5d64]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4a5a58
call fcn.0044fbf7
add esp, 0xc
test al, al
je 0x44fd6c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44fd37
cmp word [eax], di
je 0x44fd37
lea eax, [ebp - 0x10]
push eax
call fcn.0044f5da
pop ecx
jmp 0x44fd6e
lea eax, [ebp - 0x10]
push eax
call fcn.0044f675
jmp 0x44fd34
mov eax, dword [edi]
test eax, eax
je 0x44fd59
cmp word [eax], dx
je 0x44fd59
lea eax, [ebp - 0x10]
push eax
call fcn.0044f58f
pop ecx
jmp 0x44fd6c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x44fe37
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044fa7c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44fe37
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44fe37
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44fe37
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44fdc4
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044925a
test ebx, ebx
je 0x44fe32
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044925a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44fe37
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44fe37
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00455c3a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44fe39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a530
leave
ret
Function at 0x4517e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043a540
mov eax, dword [0x4ac2c0]
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.0044b360
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45182b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x451987
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00457cf0
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 + 0x4ada58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004527e6
mov ecx, dword [esi*4 + 0x4ada58]
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 0x451980
cmp eax, dword [ecx + edi + 0x24]
jne 0x451980
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 0x451980
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004527e6
add esp, 0x14
test edx, edx
jl 0x451980
jg 0x4518f6
test eax, eax
jb 0x451980
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x451980
jl 0x451910
cmp dword [ebp - 0x1008], eax
ja 0x451980
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45192e
test ebx, ebx
je 0x451967
cmp ecx, edi
jae 0x451967
mov al, byte [ecx]
cmp al, 0xd
jne 0x451948
lea eax, [edi - 1]
cmp ecx, eax
jae 0x451954
cmp byte [ecx + 1], 0xa
jne 0x451954
inc ecx
jmp 0x451954
movzx eax, al
movsx eax, byte [eax + 0x4acab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45192e
cmp edx, ebx
jne 0x45192e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x451985
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043a530
leave
ret
Function at 0x451c7e
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 + 0x4ada58]
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 0x451cbe
cmp byte [ebx], 0xa
jne 0x451cbe
or byte [edi + eax + 0x28], 4
jmp 0x451cc3
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 0x451dc2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x451da5
inc eax
cmp dl, 0xd
je 0x451cef
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x451d15
cmp eax, ecx
jae 0x451d23
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 0x451cd7
jmp 0x451dc2
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 0x451da0
cmp dword [ebp - 0x10], 0
je 0x451da0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4ada58]
test byte [eax + edi + 0x28], 0x48
je 0x451d7a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x451d65
mov byte [esi], dl
jmp 0x451d76
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ada58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x451dc2
cmp byte [ebp - 1], 0xa
jne 0x451d89
cmp esi, ebx
jne 0x451d89
mov byte [esi], 0xa
jmp 0x451dc1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00452804
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x451dc2
mov byte [esi], 0xd
jmp 0x451dc1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4ada58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x451dbf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x451dc2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x451dcb
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 + 0x4ada58]
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 0x451e11
cmp word [ebx], dx
jne 0x451e11
or byte [eax + edi + 0x28], 4
jmp 0x451e16
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 0x451f79
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 0x451f59
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x451e57
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x451e8d
cmp eax, edx
jae 0x451e9b
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 0x451e32
jmp 0x451f79
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 0x451f54
cmp dword [ebp - 0x18], 0
je 0x451f54
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4ada58]
test byte [eax + edi + 0x28], 0x48
je 0x451f2a
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 0x451eee
mov word [esi], cx
jmp 0x451f25
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4ada58]
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 + 0x4ada58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4ada58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x451f79
pop eax
cmp word [ebp - 4], ax
jne 0x451f3a
cmp esi, ebx
jne 0x451f3a
mov word [esi], ax
jmp 0x451f76
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00452804
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x451f79
push 0xd
pop eax
jmp 0x451f35
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4ada58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x451f73
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x451f79
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 0x457cb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x457cdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x457cdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x6f875816
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x53cd641d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x88566e7
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x377c4528
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x100013f0
Capabilities:
Create thread
Get system information on windows

Disassembly:
sub esp, 0x34
push ebp
push esi
mov esi, eax
mov eax, dword [ebx + 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test esi, esi
mov ecx, dword [esp + 0x44]
mov dword [ebx], ecx
jg 0x10001428
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x10001426
mov esi, 1
test esi, esi
jle 0x100014a7
mov ebp, esi
lea eax, [esp + 0x10]
push eax
push 0
push ebx
push 0x10001610
push 0
push 0
call fcn.10007da8
add esp, 0x18
test eax, eax
mov dword [esp + 0x44], eax
je 0x100014a2
cmp eax, 0xffffffff
je 0x100014a2
mov edx, dword [ebx + 8]
test edx, edx
lea esi, [ebx + 4]
jne 0x1000145e
xor edi, edi
jmp 0x10001466
mov edi, dword [esi + 8]
sub edi, edx
sar edi, 2
test edx, edx
je 0x10001483
mov ecx, dword [esi + 0xc]
sub ecx, edx
sar ecx, 2
cmp edi, ecx
jae 0x10001483
mov ecx, dword [esi + 8]
mov dword [ecx], eax
add ecx, 4
mov dword [esi + 8], ecx
jmp 0x100014a2
mov edi, dword [esi + 8]
cmp edx, edi
jbe 0x1000148f
call fcn.10008284
push edi
push esi
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x20]
push edx
mov eax, esi
call fcn.10004580
sub ebp, 1
jne 0x1000142a
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x34
ret 4
Function at 0x10007bc1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001e388]
jne 0x10007bcb
repz ret
jmp fcn.1000a117

Function at 0x10009f12
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1001e2d0]
je 0x10009f2d
inc edi
cmp edi, 0x17
jb 0x10009f1e
cmp edi, 0x17
jae 0x1000a0ad
push ebp
push 3
call fcn.1000dacb
cmp eax, 1
pop ecx
je 0x1000a079
push 3
call fcn.1000dacb
test eax, eax
pop ecx
jne 0x10009f61
cmp dword [0x1001f1e4], 1
je 0x1000a079
cmp ebx, 0xfc
je 0x1000a0ac
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1001f390
push ebp
call fcn.1000b1d8
add esp, 0xc
test eax, eax
je 0x10009f97
push esi
push esi
push esi
push esi
push esi
call fcn.10008164
add esp, 0x14
push 0x104
mov esi, 0x1001f3a9
push esi
push 0
mov byte [0x1001f4ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10009fdb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000b1d8
add esp, 0xc
test eax, eax
je 0x10009fdb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10008164
add esp, 0x14
push esi
call fcn.1000b240
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000a020
push esi
call fcn.1000b240
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1001f6a4
push 0x1001983c
sub ecx, eax
push ecx
push eax
call fcn.1000da18
add esp, 0x14
test eax, eax
je 0x1000a020
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10008164
add esp, 0x14
jmp 0x1000a022
xor esi, esi
push 0x10019838
push ebx
push ebp
call fcn.1000d9a7
add esp, 0xc
test eax, eax
je 0x1000a042
push esi
push esi
push esi
push esi
push esi
call fcn.10008164
add esp, 0x14
push dword [edi*8 + 0x1001e2d4]
push ebx
push ebp
call fcn.1000d9a7
add esp, 0xc
test eax, eax
je 0x1000a064
push esi
push esi
push esi
push esi
push esi
call fcn.10008164
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000d7ea
add esp, 0xc
jmp 0x1000a0ac
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000a0ac
cmp ebp, 0xffffffff
je 0x1000a0ac
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1001e2d4]
push dword [esi]
call fcn.1000b240
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000d7ea
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000a33f
xor ebx, ebx
cmp dword [0x1001fb2c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000d8c0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000d9a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000d9a0
push eax
call fcn.1000a2d1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001fb2c], eax
call esi
push eax
call fcn.1000a2d1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001fb30], eax
call esi
push eax
call fcn.1000a2d1
mov dword [0x1001fb34], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10009cbf
test eax, eax
pop ecx
pop ecx
je 0x1000d88e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10008164
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000d8c0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000a2d1
cmp eax, ebx
pop ecx
mov dword [0x1001fb3c], eax
je 0x1000d8c0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a2d1
pop ecx
mov dword [0x1001fb38], eax
mov eax, dword [0x1001fb38]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000d945
cmp dword [0x1001fb3c], ecx
je 0x1000d945
push eax
call fcn.1000a348
push dword [0x1001fb3c]
mov esi, eax
call fcn.1000a348
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000d945
cmp edi, ebx
je 0x1000d945
call esi
cmp eax, ebx
je 0x1000d912
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000d912
test byte [ebp - 0x18], 1
jne 0x1000d945
lea eax, [ebp - 0x10]
push eax
call fcn.10009cf6
test eax, eax
pop ecx
je 0x1000d92d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10008164
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000d93c
or dword [ebp + 0x10], 0x200000
jmp 0x1000d980
or dword [ebp + 0x10], 0x40000
jmp 0x1000d980
mov eax, dword [0x1001fb30]
cmp eax, dword [ebp - 8]
je 0x1000d980
push eax
call fcn.1000a348
cmp eax, ebx
pop ecx
je 0x1000d980
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000d980
mov eax, dword [0x1001fb34]
cmp eax, dword [ebp - 8]
je 0x1000d980
push eax
call fcn.1000a348
cmp eax, ebx
pop ecx
je 0x1000d980
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001fb2c]
call fcn.1000a348
cmp eax, ebx
pop ecx
je 0x1000d9a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000d9a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012c60
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10012c85
xor al, al
add esp, 8
ret
mov eax, dword [esp]
push esi
xor ecx, ecx
cmp byte [esp + 0x10], cl
push 4
lea edx, [esp + 0xc]
push edx
push 4
setne cl
push 0
push str.DisableTaskOffload
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret

Function at 0x10012cd0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetServicesTcpip6Parameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10012cf6
xor al, al
add esp, 0x10
ret
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x1001ad70
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10012d29
cmp dword [esp + 8], eax
jne 0x10012d30
mov dword [esp], 0
cmp byte [esp + 0x14], 0
je 0x10012d3d
or dword [esp], 8
jmp 0x10012d41
and dword [esp], 0xfffffff7
mov eax, dword [esp + 4]
push esi
push 4
lea edx, [esp + 8]
push edx
push 4
push 0
push str.DisabledComponents
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x10
ret