joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a8bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002a058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10017ff2
and dword [ebp - 0x14], 0
cmp dword [0x1002d79c], 0
mov dword [ebp - 0x18], eax
jne 0x1001a96f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001aa17
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001aa17
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1002d79c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1002d7a0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1002d7a4], eax
call edi
push eax
call esi
mov dword [0x1002d7ac], eax
test eax, eax
je 0x1001a96f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1002d7a8], eax
mov eax, dword [0x1002d7a8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001a9c8
cmp dword [0x1002d7ac], ecx
je 0x1001a9c8
push eax
call esi
push dword [0x1002d7ac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001a9c8
test ebx, ebx
je 0x1001a9c8
call edi
test eax, eax
je 0x1001a9bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001a9bf
test byte [ebp - 8], 1
jne 0x1001a9c8
or dword [ebp + 0x10], 0x200000
jmp 0x1001a9fb
mov eax, dword [0x1002d7a0]
cmp eax, dword [ebp - 0x18]
je 0x1001a9fb
push eax
call esi
test eax, eax
je 0x1001a9fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001a9fb
mov eax, dword [0x1002d7a4]
cmp eax, dword [ebp - 0x18]
je 0x1001a9fb
push eax
call esi
test eax, eax
je 0x1001a9fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1002d79c]
call esi
test eax, eax
je 0x1001aa17
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001aa19
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014027
leave
ret
Function at 0x1000a990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1004a4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.100228a0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.100228a0
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x10040c90
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [esi + 0x14], 8
jb 0x1000aa1e
mov esi, dword [esi]
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push esi
push 0
call dword [0x1004ff60]
test eax, eax
jns 0x1000aa49
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020c59
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call fcn.1001e9a0
mov edi, eax
xor bl, bl
cmp edi, 0xffffffff
je 0x1000aadd
push 0x1000
call fcn.100200f7
add esp, 4
mov esi, eax
lea eax, [ebp - 0x418]
push 0
push eax
push 0x1000
push esi
push edi
call fcn.1001f7ed
test eax, eax
je 0x1000aacc
mov ebx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x1000aacc
push eax
push esi
mov ecx, ebx
call fcn.10005990
push 0
lea eax, [ebp - 0x418]
push eax
push 0x1000
push esi
push edi
call fcn.1001f7ed
test eax, eax
jne 0x1000aaa0
push edi
call fcn.1001e923
push esi
call fcn.100214be
add esp, 4
mov bl, 1
lea eax, [ebp - 0x20c]
push eax
call fcn.1001ee89
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.10020c59
mov esp, ebp
pop ebp
ret 8
Function at 0x10013e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
cmp ecx, ebx
je 0x10013f27
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ecx + 0x10]
lea eax, [esi - 0xc]
push eax
lea ecx, [edi + 4]
call fcn.1000f140
push esi
lea ecx, [edi + 0x10]
call fcn.1000f140
lea eax, [esi + 0xc]
push eax
lea ecx, [edi + 0x1c]
call fcn.1000f140
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x28]
call fcn.1000f140
lea eax, [esi + 0x24]
lea ecx, [edi + 0x34]
cmp ecx, eax
je 0x10013eb7
push 0xffffffffffffffff
push 0
push eax
call fcn.10002ca0
lea eax, [esi + 0x3c]
lea ecx, [edi + 0x4c]
cmp ecx, eax
je 0x10013ecb
push 0xffffffffffffffff
push 0
push eax
call fcn.10002ca0
lea eax, [esi + 0x54]
lea ecx, [edi + 0x64]
cmp ecx, eax
je 0x10013edf
push 0xffffffffffffffff
push 0
push eax
call fcn.10002ca0
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x84], eax
mov al, byte [esi + 0x78]
mov byte [edi + 0x88], al
mov ecx, dword [esi + 0x7c]
add esi, 0x90
mov dword [edi + 0x8c], ecx
add edi, 0x90
lea ecx, [esi - 0x10]
cmp ecx, ebx
jne 0x10013e76
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebx
pop ebp
ret
Function at 0x1001e78c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [ecx]
jmp 0x1001e7a8
cmp word [eax + 0x24], 0x18
je 0x1001e7ac
mov eax, dword [eax]
cmp eax, edx
jne 0x1001e79f
mov eax, dword [eax + 0x10]
ret

Function at 0x1001e7b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x2c
mov eax, 0x10038fbd
call fcn.10022ba4
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001e80f
mov eax, dword [esi + 0x3c]
xor edi, edi
mov ebx, dword [eax + esi + 0x78]
mov eax, dword [eax + esi + 0x7c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + ebx + 0x1c]
mov ecx, dword [esi + ebx + 0x24]
add eax, esi
mov dword [ebp - 0x2c], eax
add ecx, esi
mov eax, dword [esi + ebx + 0x20]
add eax, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
cmp dword [esi + ebx + 0x18], edi
jbe 0x1001e80f
mov eax, dword [eax + edi*4]
add eax, esi
push eax
call fcn.1001fed3
pop ecx
cmp eax, dword [ebp + 0xc]
je 0x1001e817
mov eax, dword [ebp - 0x34]
inc edi
cmp edi, dword [esi + ebx + 0x18]
jb 0x1001e7f4
xor eax, eax
call fcn.10022b62
ret
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
movzx eax, word [eax + edi*2]
mov ecx, dword [ecx + eax*4]
add esi, ecx
cmp ebx, ecx
ja 0x1001e886
mov eax, dword [ebp - 0x30]
add eax, ebx
cmp ecx, eax
jae 0x1001e886
push 0x2e
push esi
call fcn.100229c0
pop ecx
pop ecx
test eax, eax
je 0x1001e80f
push eax
push esi
lea ecx, [ebp - 0x28]
lea edi, [eax + 1]
call fcn.10003620
and dword [ebp - 4], 0
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push edi
cmovae esi, dword [ebp - 0x28]
call fcn.1001fed3
pop ecx
push eax
push esi
call dword [0x1004ee98]
push eax
call fcn.1001e7b0
pop ecx
pop ecx
mov esi, eax
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10002c20
mov eax, esi
jmp 0x1001e811

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
cmp byte [edx], 0
je 0x1001ff04
push esi
movzx eax, byte [edx]
push 8
xor ecx, eax
inc edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
dec esi
jne 0x1001feeb
cmp byte [edx], 0
jne 0x1001fee2
pop esi
not ecx
mov eax, ecx
pop ebp
ret
Function at 0x10061e7
Capabilities:
Resume thread

Disassembly:
test byte [0x101d77c], 4
push esi
mov esi, ecx
je 0x100620e
push dword [esi + 8]
push 0x1001d78
push 0xe
push dword [0x101d774]
push dword [0x101d770]
call fcn.01008cf8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop esi
ret

Function at 0x1006589
Capabilities:
Create thread

Disassembly:
mov eax, 0x100fc51
call fcn.0100c948
sub esp, 0x2c
mov eax, dword [0x101d83c]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x14]
xor edi, edi
push eax
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x1001da0
call fcn.01006cce
lea ecx, [esi + 0x10]
mov dword [ecx], edi
mov eax, dword [ebp + 8]
push dword [ebp - 0x28]
lea ebx, [esi + 8]
mov byte [ebp - 4], 2
mov dword [esi + 0x14], esi
mov dword [esi + 0x20], eax
mov dword [ebx], edi
call fcn.01003ae1
push ebx
push dword [ebp + 0xc]
mov dword [esi + 0x28], edi
push esi
push 0x100644b
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0xc], eax
mov byte [esi + 0x24], 1
je 0x1006651
push dword [ebx]
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push 0x1001d98
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
call fcn.010036fe
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 3
call fcn.0100653a
mov ecx, dword [ebp - 0x28]
test ecx, ecx
mov byte [ebp - 4], 2
je 0x100664f
call fcn.01002e78
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x28], eax
jne 0x10066a6
test byte [0x101d77c], 1
je 0x100668a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001d78
push 0xa
push dword [0x101d774]
push dword [0x101d770]
call fcn.01008cf8
push 0x1001d88
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::bad_alloc::constructor_char_const__]
push 0x1019a30
lea eax, [ebp - 0x38]
push eax
call sub.msvcrt.dll__CxxThrowException
test byte [0x101d77c], 4
je 0x10066c9
push dword [ebx]
push 0x1001d78
push 0xb
push dword [0x101d774]
push dword [0x101d770]
call fcn.01008cf8
mov eax, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x10066da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0100c694
leave
ret 0x10
Function at 0x100a991
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x101d83c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
xor ebx, ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x2001d
push ebx
push ebx
push ebx
push 0x10022b8
push 0x80000002
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x100ab0d
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call edi
mov esi, eax
cmp esi, ebx
jne 0x100ab0d
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xe
push 0x10022a4
push 2
push ebx
push 0x1002284
push dword [ebp - 0x64]
call edi
mov esi, eax
cmp esi, ebx
jne 0x100ab0d
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x1002274
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x100ab0d
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x1002258
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x100ab0d
mov edi, dword [ebp - 0x68]
cmp edi, ebx
je 0x100ab0d
jmp 0x100aa84
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [edi + 8]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x100ab00
mov esi, dword [edi + 4]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0100a8b5
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4a
lea eax, [ebp - 0x50]
push eax
push 1
push ebx
push 0x100224c
push dword [ebp - 0x6c]
call esi
mov edi, dword [ebp - 0x68]
push dword [edi + 0xc]
call fcn.01003bdb
shl eax, 1
push eax
push dword [edi + 0xc]
push 1
push ebx
push 0x1002238
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x6c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi]
cmp edi, ebx
mov dword [ebp - 0x68], edi
jne 0x100aa81
cmp dword [ebp - 0x64], ebx
je 0x100ab1b
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], ebx
je 0x100ab29
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0100c694
leave
ret 8
Function at 0x100c7ac
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10024d0
call fcn.0100cb1c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100c7e7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100c7e7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100c7ff
cmp eax, 0x20b
je 0x100c7ec
mov dword [ebp - 0x1c], edi
jmp 0x100c813
cmp dword [ecx + 0x84], 0xe
jbe 0x100c7e7
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100c80d
cmp dword [ecx + 0x74], 0xe
jbe 0x100c7e7
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101e758], 0xffffffff
or dword [0x101e75c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101e514]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101e510]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101e754], eax
call fcn.0100cba8
cmp dword [0x101d840], edi
jne 0x100c86e
push fcn.0100cba8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100cb91
push 0x101d758
push 0x101d754
call sub.msvcrt.dll__initterm
mov eax, dword [0x101e50c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101e508]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x101d750
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100acad
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100c8e5
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100c91a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100cb57
ret
Function at 0x100cfc6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi + esi]
add eax, 3
push edi
and eax, 0xfffffffc
call fcn.0100f5d0
mov edi, esp
push dword [ebp + 8]
push esi
push edi
call fcn.0100cfa4
test eax, eax
jge 0x100d015
test byte [0x101d77c], 1
je 0x100d064
push esi
push 0x1002514
push 0xa
push dword [0x101d774]
push dword [0x101d770]
call fcn.01008cf8
jmp 0x100d064
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100d03d
test byte [0x101d77c], 1
je 0x100d064
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002514
push 0xb
jmp 0x100d002
cmp esi, eax
jae 0x100d080
test byte [0x101d77c], 1
je 0x100d064
push eax
push esi
push 0x1002514
push 0xc
push dword [0x101d774]
push dword [0x101d770]
call fcn.010061ac
push 0x1001d88
lea ecx, [ebp - 0xc]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::bad_alloc::constructor_char_const__]
push 0x1019a30
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__CxxThrowException
lea esp, [ebp - 0x14]
pop edi
pop esi
leave
ret 8

Function at 0x100d08e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1010d61
call fcn.0100c948
sub esp, 0xc
push ebx
push esi
push 1
push edi
mov esi, ecx
call fcn.0100cf54
mov ebx, eax
mov dword [ebp - 0x18], ebx
and dword [ebp - 4], 0
test ebx, ebx
je 0x100d102
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [edi + 8]
mov dword [ebp - 0x14], esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100d0e0
push edi
call fcn.0100ceb3
jmp 0x100d0f7
cmp dword [ebp - 0x10], 2
jne 0x100d0f7
cmp dword [ebp + 8], 1
jne 0x100d0f7
shr esi, 1
push esi
push dword [ebp + 0xc]
call fcn.0100cfc6
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x100d117
Capabilities:
Set registry value

Disassembly:
mov eax, 0x1010d78
call fcn.0100c948
push ecx
push edi
push 2
push esi
call fcn.0100cf05
mov edi, eax
mov dword [ebp - 0x10], edi
push dword [ebp + 0x10]
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push dword [esi + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100d153
push esi
call fcn.0100ceb3
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100d162
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x100d249
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
and dword [ebp - 0x80], 0
push esi
push edi
mov esi, eax
push 0x1f
xor eax, eax
cmp si, 0x20
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
jb 0x100d299
test byte [0x101d77c], 1
je 0x100d296
movzx eax, si
push eax
push 0x20
push dword [ebp + 8]
push 0x1002524
push 0xc
push dword [0x101d774]
push dword [0x101d770]
call fcn.0100d1fb
push 0x1f
pop esi
movzx edx, si
xor eax, eax
test edx, edx
jle 0x100d2b6
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffffc
add ecx, 4
mov edi, dword [ecx]
mov dword [ebp + eax*4 - 0x80], edi
inc eax
cmp eax, edx
jl 0x100d2a8
mov eax, dword [ebp + 8]
shr eax, 0x1e
dec eax
je 0x100d2ce
dec eax
je 0x100d2ca
dec eax
jne 0x100d2ce
xor eax, eax
inc eax
jmp 0x100d2d1
push 2
jmp 0x100d2d0
push 4
pop eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0xc]
push esi
push 0
push dword [ebp + 8]
push 0
push eax
push dword [0x101e520]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
pop edi
pop esi
jne 0x100d321
test byte [0x101d77c], 1
je 0x100d321
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1002524
push 0xd
push dword [0x101d774]
push dword [0x101d770]
call fcn.010061ac
leave
ret 0x10

Function at 0x100d8b5
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push esi
push 0x100d767
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x100d918
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x101d77c], 1
mov esi, eax
je 0x100d901
push esi
push 0x1002570
push 0xa
push dword [0x101d774]
push dword [0x101d770]
call fcn.01008cf8
push esi
lea ecx, [ebp - 0x14]
call fcn.01006dbe
push 0x101a204
lea eax, [ebp - 0x14]
push eax
call sub.msvcrt.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push 0x101d874
push 1
call dword [eax + 4]
pop esi
leave
ret 4

Function at 0x100d9a9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
cmp dword [0x101e550], eax
push esi
mov esi, ecx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
jne 0x100d9e8
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ecx, ecx
inc ecx
mov eax, ecx
cmp eax, dword [ebp - 0x10]
mov dword [0x101e550], ecx
sbb eax, eax
mov dword [0x101e54c], eax
jmp 0x100d9ed
mov eax, dword [0x101e54c]
and eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, esi
pop esi
leave
ret 4
Function at 0x401f90
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
test esi, esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
je 0x40200c
mov ebp, dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [esp + 0x1c]
mov edx, ecx
dec ecx
test edx, edx
mov dword [esp + 0x1c], ecx
jle 0x40200c
push 0
push 0
push 0
push 0
push esi
call ebp
test eax, eax
je 0x401fb8
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x20000013
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
call edi
test eax, eax
je 0x401fb8
cmp dword [esp + 0xc], 0xc8
je 0x40200c
xor eax, eax
jmp 0x401fb8
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x41bda0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040c980
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41be6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41be6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41be1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41be29
or bh, 8
and edi, 0x8000000
je 0x41be44
mov eax, dword [0x43c31c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41be6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret