joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019ed7
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1006d58
call fcn.0101a360
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1019f12
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1019f12
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1019f2a
cmp eax, 0x20b
je 0x1019f17
mov dword [ebp - 0x1c], edi
jmp 0x1019f3e
cmp dword [ecx + 0x84], 0xe
jbe 0x1019f12
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1019f38
cmp dword [ecx + 0x74], 0xe
jbe 0x1019f12
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1024f54], 0xffffffff
or dword [0x1024f58], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1024f38]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1024f34]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1024f50], eax
call fcn.0101a358
cmp dword [0x1024520], edi
jne 0x1019f9b
push fcn.0101a358
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0101a341
push 0x1023058
push 0x1023054
call sub.msvcrt.dll__initterm
mov eax, dword [0x1024f30]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1024f2c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1023050
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x101a001
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x101a0bb
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x101a04f
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x101a01d
cmp ax, 0x22
jne 0x101a00a
cmp word [esi], 0x22
jne 0x101a028
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x101a036
cmp ax, 0x20
jbe 0x101a023
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x101a05c
movzx eax, word [ebp - 0x50]
jmp 0x101a05f
cmp word [esi], 0x20
jbe 0x101a028
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x101a04f
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0101a507
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x101a080
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x101a0b5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0101a39b
ret
Function at 0x101a3ed
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1006da0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101a445
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004d40
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101a438
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101a447
xor eax, eax
pop esi
leave
ret 4
Function at 0x55d630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf3000]
push edi
jmp 0x55d64a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55d651
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55d640
mov eax, 1
add ebx, ebx
jne 0x55d663
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55d674
jne 0x55d693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55d693
dec eax
add ebx, ebx
jne 0x55d680
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55d658
add ebx, ebx
jne 0x55d68f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55d6e5
xor ecx, ecx
sub eax, 3
jb 0x55d6ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55d71a
sar eax, 1
mov ebp, eax
jmp 0x55d6b6
add ebx, ebx
jne 0x55d6b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55d684
inc ecx
add ebx, ebx
jne 0x55d6c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55d684
add ebx, ebx
jne 0x55d6d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55d6c6
jne 0x55d6e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55d6c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55d704
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55d6f6
jmp 0x55d646
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55d704
add edi, ecx
jmp 0x55d646
pop esi
mov edi, esi
mov ecx, 0x55cc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55d722
cmp byte [edi], 0x13
jne 0x55d722
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x55d727
lea edi, [esi + 0x15a000]
mov eax, dword [edi]
or eax, eax
je 0x55d79f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1787d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x178910]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55d754
mov ecx, edi
jns 0x55d783
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x178914]
or eax, eax
je 0x55d799
mov dword [ebx], eax
add ebx, 4
jmp 0x55d771
call dword [esi + 0x178924]
mov ebp, dword [esi + 0x178918]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x55d7d3
sub esp, 0xffffff80
jmp 0x47b75f
Function at 0xcda6b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x592000]
push edi
or ebp, 0xffffffff
jmp 0xcda6d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xcda6d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcda6c8
mov eax, 1
add ebx, ebx
jne 0xcda6eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xcda6fc
jne 0xcda71b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcda71b
dec eax
add ebx, ebx
jne 0xcda708
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xcda6e0
add ebx, ebx
jne 0xcda717
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xcda76d
xor ecx, ecx
sub eax, 3
jb 0xcda733
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xcda7a2
sar eax, 1
mov ebp, eax
jmp 0xcda73e
add ebx, ebx
jne 0xcda73e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcda70c
inc ecx
add ebx, ebx
jne 0xcda74c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcda70c
add ebx, ebx
jne 0xcda759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xcda74e
jne 0xcda76a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcda74e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xcda78c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xcda77e
jmp 0xcda6ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xcda78c
add edi, ecx
jmp 0xcda6ce
pop esi
mov edi, esi
mov ecx, 0xdfc6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xcda7aa
cmp byte [edi], 0x9d
jne 0xcda7aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xcda7af
lea edi, [esi + 0x8d6000]
mov eax, dword [edi]
or eax, eax
je 0xcda81e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa3db9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa3dd18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xcda7dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa3dd1c]
or eax, eax
je 0xcda818
mov dword [ebx], eax
add ebx, 4
jmp 0xcda7f9
call dword [esi + 0xa3dd2c]
mov ebp, dword [esi + 0xa3dd20]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xcda852
sub esp, 0xffffff80
jmp 0x67ae44
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x17d27f97
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2399084a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x47d270f0
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x22275d4d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1003f87
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x10260dc]
push edi
mov edi, dword [ebp + 8]
mov eax, edi
neg eax
xor ecx, ecx
and eax, 3
test ebx, ebx
je 0x1003fb0
test eax, eax
jne 0x1014fd4
mov dword [ebp + 8], ebx
shr dword [ebp + 8], 2
push ecx
push dword [ebp + 8]
push edi
call fcn.0100402d
mov ecx, eax
mov eax, dword [ebp + 8]
shl eax, 2
add edi, eax
sub ebx, eax
je 0x1003fe5
mov eax, ecx
shr eax, 0x18
shl ecx, 8
xor ecx, dword [esi + eax*4]
movzx eax, byte [edi]
xor ecx, eax
dec ebx
inc edi
test ebx, ebx
jne 0x1003fcf
mov ebx, dword [0x10260e0]
mov eax, ecx
shr eax, 0x10
mov edx, 0xff
and eax, edx
mov eax, dword [ebx + eax*4]
mov ebx, dword [0x10260e4]
mov edi, ecx
shr edi, 8
and edi, edx
xor eax, dword [ebx + edi*4]
mov ebx, dword [0x10260d4]
mov edi, ecx
shr edi, 0x18
xor eax, dword [ebx + edi*4]
mov edi, ecx
and edi, edx
xor eax, dword [esi + edi*4]
pop edi
pop esi
xor eax, ecx
pop ebx
pop ebp
ret 8
mov edx, ecx
shr edx, 0x18
shl ecx, 8
xor ecx, dword [esi + edx*4]
movzx edx, byte [edi]
xor ecx, edx
dec ebx
inc edi
dec eax
jmp 0x1003fa4

Function at 0x100402d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x10260dc]
push ebx
lea ecx, [ecx + eax*4 - 4]
push esi
mov esi, dword [0x10260e4]
mov dword [ebp + 8], ecx
push edi
mov ecx, 0xff
test eax, eax
je 0x100409f
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov ebx, dword [0x10260e0]
shr eax, 0x10
shr edi, 8
and eax, ecx
mov eax, dword [ebx + eax*4]
mov ebx, dword [0x10260d4]
and edi, ecx
xor eax, dword [esi + edi*4]
mov edi, dword [ebp + 0x10]
shr edi, 0x18
xor eax, dword [ebx + edi*4]
mov edi, dword [ebp + 0x10]
and edi, ecx
xor eax, dword [edx + edi*4]
mov edi, dword [ebp + 8]
xor eax, dword [edi]
dec dword [ebp + 0xc]
sub dword [ebp + 8], 4
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], eax
jne 0x1004057
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov ebx, dword [0x10260e0]
shr eax, 0x10
and eax, ecx
mov eax, dword [ebx + eax*4]
shr edi, 8
and edi, ecx
xor eax, dword [esi + edi*4]
mov esi, dword [ebp + 0x10]
mov edi, dword [0x10260d4]
shr esi, 0x18
xor eax, dword [edi + esi*4]
mov esi, dword [ebp + 0x10]
and esi, ecx
xor eax, dword [edx + esi*4]
pop edi
xor eax, dword [ebp + 0x10]
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1008fb9
Capabilities:
Get token privileges

Disassembly:
push 0x18
mov eax, 0x10215b5
call fcn.01001d89
xor ebx, ebx
mov dword [ebp - 0x18], 0x1001e6c
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push 0x28
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1010f7e
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 3
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100901a
call esi
cmp eax, 0x7a
jne 0x1010f99
push dword [ebp - 0x10]
call dword [0x102665c]
mov ebx, eax
test ebx, ebx
je 0x1010f9d
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 3
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1010fa5
lea eax, [ebp - 0x20]
push eax
push 0x10090b8
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor ecx, ecx
cmp dword [ebx], edi
jbe 0x100907a
lea eax, [ebx + 8]
mov edx, dword [eax - 4]
cmp edx, dword [ebp - 0x20]
je 0x10095c0
mov dword [eax + 4], 4
inc ecx
add eax, 0xc
cmp ecx, dword [ebx]
jb 0x100905f
push edi
push edi
push dword [ebp - 0x10]
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1010fc7
push ebx
mov byte [ebp - 4], 0
call dword [0x1026660]
xor esi, esi
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x1001e6c
call fcn.01001ee0
mov eax, esi
call fcn.01001d35
ret
mov edx, dword [eax]
cmp edx, dword [ebp - 0x1c]
je 0x1009072
jmp 0x100906b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1010f92
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100909f
call esi
jmp 0x1010f84
call esi
test eax, eax
jle 0x1010f92
jmp 0x1010f88
call esi
test eax, eax
jle 0x1010fb5
and eax, 0xffff
or eax, 0x80070000
push ebx
mov esi, eax
mov byte [ebp - 4], 0
call dword [0x1026660]
jmp 0x100909f
call esi
cmp eax, edi
jle 0x1010fb5
jmp 0x1010fab
Function at 0x1009291
Capabilities:
Get user security identifier

Disassembly:
push 0x14
mov eax, 0x10211a1
call fcn.01004dd8
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
je 0x1010c65
cmp dword [ebp + 8], esi
je 0x1010c6f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 8]
mov dword [edi], esi
push esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1010ca4
mov eax, dword [ebp - 0x18]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
mov dword [ebp - 4], esi
neg ecx
or eax, ecx
push eax
call dword [0x102665c]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], esi
je 0x100935a
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [edi], eax
cmp eax, esi
je 0x1009353
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x1010c8d
xor ebx, ebx
push dword [ebp - 0x14]
call dword [0x1026660]
mov eax, ebx
call fcn.01001d35
ret 8
mov ebx, 0x8007000e
jmp 0x1009340
mov ebx, 0x8007000e
jmp 0x1009349
mov eax, 0x80004003
jmp 0x100934b
mov eax, 0x80070057
jmp 0x100934b
call fcn.0100975b
push dword [edi]
mov ebx, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [edi], esi
jmp 0x1009340
push eax
call fcn.01018535
mov ebx, eax
jmp 0x1009349

Function at 0x100aebb
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100af8d
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100af5d
cmp dword [ebp - 0x94], 5
jb 0x100af30
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100af78
call fcn.0100ada8
test eax, eax
jl 0x10130a4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01001e40
leave
ret
cmp dword [ebp - 0x88], 1
je 0x101308c
jmp 0x100af30
cmp dword [ebp - 0x90], 0
jbe 0x100af30
jmp 0x100af2c
cmp dword [ebp - 0x94], 4
ja 0x100af2c
je 0x100af6c
jmp 0x100af30
mov byte [0x10269b8], 1
jmp 0x100af4e
Function at 0x100b129
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003768
call fcn.01003390
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10261b0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x10130b0
xor esi, esi
inc esi
mov eax, dword [0x10260ec]
cmp eax, esi
je 0x10130cf
mov eax, dword [0x10260ec]
test eax, eax
jne 0x10036e2
mov dword [0x10260ec], esi
push 0x1003760
push 0x1003754
call fcn.0100a667
pop ecx
pop ecx
test eax, eax
jne 0x10130dc
mov eax, dword [0x10260ec]
cmp eax, esi
jne 0x1003697
push 0x1003750
push 0x10036ec
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10260ec], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10036a4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1026920], ebx
jne 0x10130ea
push dword [0x1026220]
push dword [0x1026224]
push dword [0x102621c]
call fcn.010084ee
add esp, 0xc
mov dword [0x10260b8], eax
cmp dword [0x10260ac], ebx
jne 0x101313c
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x1026a00], esi
jmp 0x1003673
call fcn.0100b138
jmp 0x1003604
cmp eax, esi
jne 0x10130bf
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100363a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003626
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003673
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1013156
push 0x1026920
call fcn.0101c2be
pop ecx
test eax, eax
je 0x10036b0
push ebx
push 2
push ebx
call dword [0x1026920]
jmp 0x10036b0
cmp dword [0x1026a00], ebx
jne 0x101314a
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10260b8]
call fcn.010033d5
ret

Function at 0x100b679
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x100b6ad
and dword [esi + 0x14], 0
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x1002184
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
je 0x10120e0
xor eax, eax
pop esi
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100b6af
and eax, 0xffff
or eax, 0x80070000
jmp 0x100b6af
Function at 0x100b959
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x14
mov eax, 0x1022d65
call fcn.01004dd8
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push ebx
call esi
cmp dword [edi + 0x9c], ebx
je 0x1013817
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp + 8]
push dword [edi + 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
je 0x1013820
cmp eax, ebx
jne 0x100b9c9
push dword [ebp - 0x14]
mov ecx, esi
call fcn.01003e02
xor eax, eax
inc eax
call fcn.01001d35
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100b9c1
push 6
call esi
jmp 0x100b9d0
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
call fcn.01004bd7
or dword [ebp - 4], 0xffffffff
jmp 0x100b987

Function at 0x100c407
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x100c43b
and dword [esi + 0x14], 0
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x1003485
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
je 0x1010e11
xor eax, eax
pop esi
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100c43d
and eax, 0xffff
or eax, 0x80070000
jmp 0x100c43d

Function at 0x100c654
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x1022da9
call fcn.01004dd8
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
push esi
call edi
cmp dword [ebx + 0x9c], esi
je 0x101384a
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp + 8]
push dword [ebx + 0x9c]
call dword [sym.imp.KERNEL32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x1013853
cmp eax, esi
jne 0x100c6c1
push dword [ebp - 0x14]
mov ecx, edi
call fcn.01003e02
xor eax, eax
inc eax
call fcn.01001d35
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100c6b9
push 6
call edi
jmp 0x100c6c8
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
mov ecx, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
call fcn.01004bd7
or dword [ebp - 4], 0xffffffff
jmp 0x100c682