joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41abba
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0x158
mov eax, dword [0x45116c]
xor eax, ebp
mov dword [ebp + 0xd4], eax
push ebx
push esi
mov esi, dword [ebp + 0xe0]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x124
mov ebx, eax
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00422070
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push ebx
mov dword [ebp - 0x54], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x41ac1e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call fcn.00423809
mov eax, dword [esi + 4]
push esi
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.00419b94
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], eax
jmp 0x41ac8a
lea ecx, [ebp - 0x5c]
call fcn.00419ee5
push dword [eax]
call fcn.00419ae0
cmp eax, dword [ebp - 0x3c]
jne 0x41ac82
push dword [ebp - 0x4c]
push 0
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
push dword [esi + 4]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], eax
call fcn.00419b94
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x80]
push dword [ebp - 0x78]
mov ecx, esi
push eax
call fcn.0041ab8f
lea ecx, [ebp - 0x5c]
call fcn.00419bb8
push esi
push dword [esi + 4]
lea ecx, [ebp - 0x64]
call fcn.00419b94
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00419b22
test al, al
je 0x41ac3a
lea eax, [ebp - 0x54]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41ac1e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xd4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041eb21
add ebp, 0xd8
leave
ret 4
Function at 0x41d201
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x45116c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00422070
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x41d253
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
test eax, eax
je 0x41d31a
call fcn.0041d1c4
cmp dword [ebp - 0x18], 2
jne 0x41d2f1
cmp dword [ebp - 0x24], 6
jne 0x41d2ab
cmp dword [ebp - 0x20], 0
jne 0x41d28d
cmp byte [ebp + 0x72], 1
jne 0x41d286
mov ecx, 0x100
neg eax
sbb eax, eax
and eax, ecx
add eax, ecx
jmp 0x41d31c
mov ecx, 0x400
jmp 0x41d279
cmp dword [ebp - 0x20], 1
jne 0x41d31a
cmp byte [ebp + 0x72], 1
jne 0x41d2a4
mov ecx, 0x1000
jmp 0x41d279
mov ecx, 0x4000
jmp 0x41d279
cmp dword [ebp - 0x24], 5
jne 0x41d31a
cmp dword [ebp - 0x20], 2
jne 0x41d2d5
cmp byte [ebp + 0x72], 1
jne 0x41d2c6
test eax, eax
je 0x41d2d1
push 0x20
pop eax
jmp 0x41d31c
test eax, eax
je 0x41d2d1
mov eax, 0x80
jmp 0x41d31c
push 0x40
jmp 0x41d2c3
cmp dword [ebp - 0x20], 1
jne 0x41d2e7
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
jmp 0x41d31c
cmp dword [ebp - 0x20], 0
jne 0x41d31a
push 8
jmp 0x41d2c3
cmp dword [ebp - 0x18], 1
jne 0x41d31a
push 4
pop eax
cmp dword [ebp - 0x24], eax
jne 0x41d31a
cmp dword [ebp - 0x20], 0
jne 0x41d30a
xor eax, eax
inc eax
jmp 0x41d31c
cmp dword [ebp - 0x20], 0xa
jne 0x41d314
push 2
jmp 0x41d2c3
cmp dword [ebp - 0x20], 0x5a
je 0x41d31c
xor eax, eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.0041eb21
add ebp, 0x78
leave
ret

Function at 0x41eb21
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45116c]
jne 0x41eb2b
repz ret
jmp fcn.00425132
Function at 0x43313e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00424a55
xor ebx, ebx
cmp dword [0x453270], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x433213
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x43317e
xor eax, eax
jmp 0x4332d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x433177
push eax
call fcn.004249f2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x453270], eax
call esi
push eax
call fcn.004249f2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x453274], eax
call esi
push eax
call fcn.004249f2
mov dword [0x453278], eax
lea eax, [ebp - 8]
push eax
call fcn.00423514
test eax, eax
pop ecx
pop ecx
je 0x4331e1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004232c2
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x433213
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004249f2
cmp eax, ebx
pop ecx
mov dword [0x453280], eax
je 0x433213
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004249f2
pop ecx
mov dword [0x45327c], eax
mov eax, dword [0x45327c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x43328c
cmp dword [0x453280], esi
je 0x43328c
push eax
call fcn.00424a5e
pop ecx
call eax
cmp eax, ebx
je 0x433259
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x453280]
call fcn.00424a5e
pop ecx
call eax
test eax, eax
je 0x433259
test byte [ebp - 0x18], 1
jne 0x43328c
lea eax, [ebp - 0xc]
push eax
call fcn.004235c3
test eax, eax
pop ecx
je 0x433274
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004232c2
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x433283
or dword [ebp + 0x10], 0x200000
jmp 0x4332bd
or dword [ebp + 0x10], 0x40000
jmp 0x4332bd
mov eax, dword [0x453274]
cmp eax, esi
je 0x4332bd
push eax
call fcn.00424a5e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4332bd
mov eax, dword [0x453278]
cmp eax, esi
je 0x4332bd
push dword [ebp - 4]
push eax
call fcn.00424a5e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x453270]
call fcn.00424a5e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419750
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x417015
lea edi, [esi - 0x16015]
push edi
jmp 0x41976a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419760
mov eax, 1
add ebx, ebx
jne 0x419783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419778
jne 0x419794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419778
xor ecx, ecx
sub eax, 3
jb 0x4197a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41981a
mov ebp, eax
add ebx, ebx
jne 0x4197b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197e4
inc ecx
add ebx, ebx
jne 0x4197d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197c5
jne 0x4197e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4197f5
jmp 0x419766
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419804
add edi, ecx
jmp 0x419766
pop esi
mov edi, esi
mov ecx, 0x1fd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419822
cmp byte [edi], 1
jne 0x419822
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 0x419827
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419896
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1edc0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ee38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419854
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ee3c]
or eax, eax
je 0x419890
mov dword [ebx], eax
add ebx, 4
jmp 0x419871
call dword [esi + 0x1ee4c]
mov ebp, dword [esi + 0x1ee40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198ca
sub esp, 0xffffff80
jmp 0x401290
Function at 0x1003f7d
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 0x1003fa6
test eax, eax
jne 0x1014ea4
mov dword [ebp + 8], ebx
shr dword [ebp + 8], 2
push ecx
push dword [ebp + 8]
push edi
call fcn.01004023
mov ecx, eax
mov eax, dword [ebp + 8]
shl eax, 2
add edi, eax
sub ebx, eax
je 0x1003fdb
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 0x1003fc5
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 0x1003f9a

Function at 0x1004023
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 0x1004095
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 0x100404d
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 0x100845d
Capabilities:
Read file via mapping

Disassembly:
push 0xc
mov eax, 0x1021290
call fcn.01001c2d
push 0x10000
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x1010bdf
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, eax
cmp edi, ebx
jl 0x1010bfc
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 4
push ebx
push ebx
push 4
push dword [0x102610c]
call edi
cmp eax, ebx
je 0x1010c1b
mov ebx, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push eax
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
je 0x1010c3f
lea eax, [ebx + 4]
cmp eax, 0x10000
ja 0x1010c5c
push eax
push 0
push 0
push 4
push dword [0x102610c]
call edi
mov edi, eax
test edi, edi
je 0x1010c3f
push dword [ebp - 0x14]
lea ebx, [edi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1010c77
push dword [ebp - 0x18]
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x1008539
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x1010c7c
push dword [ebp + 8]
push 0x1008568
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoUnmarshalInterface]
or dword [ebp - 4], 0xffffffff
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100855d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.01001c67
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100855f
and eax, 0xffff
or eax, 0x80070000
jmp 0x100855f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1010c14
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x100855f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1010c2f
and eax, 0xffff
or eax, 0x80070000
or dword [ebp - 4], 0xffffffff
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jmp 0x1008555
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100854a
and eax, 0xffff
or eax, 0x80070000
jmp 0x100854a
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1010c6d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x800700a0
jmp 0x100855f
push edi
call esi
jmp 0x1010c3f
call esi
jmp 0x100854a
Function at 0x10096c1
Capabilities:
Get token privileges

Disassembly:
push 0x18
mov eax, 0x1021575
call fcn.01001c2d
xor ebx, ebx
mov dword [ebp - 0x18], 0x1001ce0
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 0x1010e9e
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 0x1009722
call esi
cmp eax, 0x7a
jne 0x1010eb9
push dword [ebp - 0x10]
call dword [0x102665c]
mov ebx, eax
test ebx, ebx
je 0x1010ebd
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 3
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1010ec5
lea eax, [ebp - 0x20]
push eax
push 0x10097c0
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor ecx, ecx
cmp dword [ebx], edi
jbe 0x1009782
lea eax, [ebx + 8]
mov edx, dword [eax - 4]
cmp edx, dword [ebp - 0x20]
je 0x1009b24
mov dword [eax + 4], 4
inc ecx
add eax, 0xc
cmp ecx, dword [ebx]
jb 0x1009767
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 0x1010ee7
push ebx
mov byte [ebp - 4], 0
call dword [0x1026660]
xor esi, esi
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x1001ce0
call fcn.01001d35
mov eax, esi
call fcn.01001c67
ret
mov edx, dword [eax]
cmp edx, dword [ebp - 0x1c]
je 0x100977a
jmp 0x1009773
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1010eb2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10097a7
call esi
jmp 0x1010ea4
call esi
test eax, eax
jle 0x1010eb2
jmp 0x1010ea8
call esi
test eax, eax
jle 0x1010ed5
and eax, 0xffff
or eax, 0x80070000
push ebx
mov esi, eax
mov byte [ebp - 4], 0
call dword [0x1026660]
jmp 0x10097a7
call esi
cmp eax, edi
jle 0x1010ed5
jmp 0x1010ecb
Function at 0x1009836
Capabilities:
Get user security identifier

Disassembly:
push 0x14
mov eax, 0x1021161
call fcn.01004c72
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
je 0x1010b85
cmp dword [ebp + 8], esi
je 0x1010b8f
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 0x1010bc4
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 0x10098ff
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [edi], eax
cmp eax, esi
je 0x10098f8
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 0x1010bad
xor ebx, ebx
push dword [ebp - 0x14]
call dword [0x1026660]
mov eax, ebx
call fcn.01001c67
ret 8
mov ebx, 0x8007000e
jmp 0x10098e5
mov ebx, 0x8007000e
jmp 0x10098ee
mov eax, 0x80004003
jmp 0x10098f0
mov eax, 0x80070057
jmp 0x10098f0
call fcn.01009cbf
push dword [edi]
mov ebx, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [edi], esi
jmp 0x10098e5
push eax
call fcn.01018425
mov ebx, eax
jmp 0x10098ee

Function at 0x100a603
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.0100a6d5
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 0x100a6a5
cmp dword [ebp - 0x94], 5
jb 0x100a678
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100a6c0
call fcn.0100a4f0
test eax, eax
jl 0x1012ecd
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01001bf0
leave
ret
cmp dword [ebp - 0x88], 1
je 0x1012eb5
jmp 0x100a678
cmp dword [ebp - 0x90], 0
jbe 0x100a678
jmp 0x100a674
cmp dword [ebp - 0x94], 4
ja 0x100a674
je 0x100a6b4
jmp 0x100a678
mov byte [0x10269b8], 1
jmp 0x100a696
Function at 0x100a871
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003780
call fcn.0100336a
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 0x1012ed9
xor esi, esi
inc esi
mov eax, dword [0x10260ec]
cmp eax, esi
je 0x1012ef8
mov eax, dword [0x10260ec]
test eax, eax
jne 0x10036fe
mov dword [0x10260ec], esi
push 0x100377c
push 0x1003770
call fcn.0100a277
pop ecx
pop ecx
test eax, eax
jne 0x1012f05
mov eax, dword [0x10260ec]
cmp eax, esi
jne 0x10036b3
push 0x100376c
push 0x1003708
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10260ec], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10036c0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1026694], ebx
jne 0x1012f13
push dword [0x1026220]
push dword [0x1026224]
push dword [0x102621c]
call fcn.01008a50
add esp, 0xc
mov dword [0x10260b8], eax
cmp dword [0x10260ac], ebx
jne 0x1012f65
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x1026a00], esi
jmp 0x100368f
call fcn.0100a880
jmp 0x1003620
cmp eax, esi
jne 0x1012ee8
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1003656
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003642
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100368f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1012f7f
push 0x1026694
call fcn.0101c226
pop ecx
test eax, eax
je 0x10036cc
push ebx
push 2
push ebx
call dword [0x1026694]
jmp 0x10036cc
cmp dword [0x1026a00], ebx
jne 0x1012f73
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10260b8]
call fcn.010033af
ret

Function at 0x100bdbb
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x14
mov eax, 0x1022d25
call fcn.01004c72
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push ebx
call esi
cmp dword [edi + 0x9c], ebx
je 0x10136df
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 0x10136e8
cmp eax, ebx
jne 0x100be2b
push dword [ebp - 0x14]
mov ecx, esi
call fcn.010043c0
xor eax, eax
inc eax
call fcn.01001c67
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100be23
push 6
call esi
jmp 0x100be32
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.010041b7
or dword [ebp - 4], 0xffffffff
jmp 0x100bde9
Function at 0x100c0c7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x1022d69
call fcn.01004c72
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
push esi
call edi
cmp dword [ebx + 0x9c], esi
je 0x1013712
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 0x101371b
cmp eax, esi
jne 0x100cc8b
push dword [ebp - 0x14]
mov ecx, edi
call fcn.010043c0
xor eax, eax
inc eax
call fcn.01001c67
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100c130
push 6
call edi
jmp 0x100cc92
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.010041b7
or dword [ebp - 4], 0xffffffff
jmp 0x100c0f5

Function at 0x100ca03
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x100ca37
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 0x1010d31
xor eax, eax
pop esi
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100ca39
and eax, 0xffff
or eax, 0x80070000
jmp 0x100ca39

Function at 0x100ca43
Capabilities:
Create thread

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