joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9f9b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x4ca130
mov eax, dword [ebp + 0xc]
mov ecx, 0x300
and eax, ecx
cmp eax, ecx
je 0x4ca130
cmp dword [ebp + 8], 2
movzx eax, word [0x51b620]
je 0x4c9fd5
movzx eax, word [0x51b420]
test ax, ax
jne 0x4ca130
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x40], 0
je 0x4ca12f
test dword [ebp + 0xc], 0x200
movzx eax, byte [0x51b01e]
push 1
pop edx
cmovne eax, edx
test dword [ebp + 0xc], 0x100
push 0
pop ecx
movzx eax, al
cmove ecx, eax
test cl, cl
je 0x4ca12f
cmp dword [ebp + 8], 2
mov eax, 0x4f2bbc
mov ecx, 0x4f2c5c
mov dword [ebp - 0x14], edx
cmovne eax, ecx
cmp dword [esi + 0x14], 8
push ebx
mov dword [ebp - 0x18], eax
jb 0x4ca04c
mov ebx, dword [esi]
jmp 0x4ca04e
mov ebx, esi
and dword [ebp - 0x10], 0
xor edi, edi
and dword [ebp - 0xc], edi
xor eax, eax
mov edx, dword [esi + 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0x5c
mov ecx, dword [esi + 4]
mov dword [ebp - 0x18], ecx
cmp edx, ecx
jb 0x4ca0ef
push ecx
push dword [esi]
push ebx
call fcn.004dfca7
add esp, 0xc
test eax, eax
jne 0x4ca0e9
mov eax, dword [ebp - 0x18]
lea edx, [ebx + eax*2]
movzx ecx, word [edx]
cmp cx, word [ebp - 0x1c]
je 0x4ca09a
test cx, cx
jne 0x4ca0e9
mov ecx, dword [esi + 8]
mov dword [ebp - 0x10], ecx
cmp ecx, 1
jne 0x4ca0b0
mov edi, ebx
mov dword [ebp - 0xc], str.WOW6432Node_
jmp 0x4ca0be
cmp ecx, 2
jne 0x4ca0be
mov edi, edx
mov dword [ebp - 0xc], str.WOW6432Node
mov ebx, edx
mov edx, dword [ebp - 4]
sub edx, eax
push 0x5c
pop eax
mov dword [ebp - 4], edx
cmp word [ebx], ax
jne 0x4ca0dc
add ebx, 2
dec edx
cmp word [ebx], ax
je 0x4ca0d0
mov dword [ebp - 4], edx
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
jmp 0x4ca0f6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add esi, 0x14
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x14]
jb 0x4ca06c
mov esi, dword [ebp + 0x10]
test ecx, ecx
je 0x4ca12e
cmp dword [esi + 0x14], 8
jb 0x4ca113
mov ebx, dword [esi]
jmp 0x4ca115
mov ebx, esi
push dword [ebp - 0xc]
call fcn.00415b9a
pop ecx
push eax
push dword [ebp - 0xc]
sub edi, ebx
mov ecx, esi
sar edi, 1
push edi
call fcn.00420b19
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4df341
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x51c3e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4df382
cmp byte [edx], 0xa
jne 0x4df382
or byte [eax + edi + 0x28], 4
jmp 0x4df387
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4df478
mov al, byte [ebx]
cmp al, 0x1a
je 0x4df459
cmp al, 0xd
je 0x4df3b0
mov byte [esi], al
inc esi
inc ebx
jmp 0x4df44e
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4df3d0
cmp byte [eax], 0xa
jne 0x4df3c5
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4df3cb
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4df44e
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4df447
cmp dword [ebp - 0x14], 0
je 0x4df447
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x51c3e0]
test byte [eax + edi + 0x28], 0x48
je 0x4df41e
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4df40e
mov byte [esi], dl
jmp 0x4df44a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51c3e0]
mov byte [eax + edi + 0x2a], dl
jmp 0x4df44a
cmp byte [ebp - 1], 0xa
jne 0x4df430
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4df430
mov byte [esi], 0xa
jmp 0x4df3cd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004e2ba2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4df44b
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4df399
jmp 0x4df478
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x51c3e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4df473
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4df478
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4df483
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x51c3e0]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4df4c7
cmp word [edx], bx
jne 0x4df4c7
or byte [edi + eax + 0x28], 4
jmp 0x4df4cc
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4df620
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4df600
cmp ax, word [ebp - 0x10]
je 0x4df505
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4df5f5
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4df52b
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4df51b
push ecx
pop eax
push 4
jmp 0x4df520
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4df5ef
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4df5e6
cmp dword [ebp - 0x18], 0
je 0x4df5e6
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x51c3e0]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4df5b2
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4df576
mov word [esi], ax
jmp 0x4df5aa
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x51c3e0]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x51c3e0]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x51c3e0]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4df5f5
cmp word [ebp - 4], ax
jne 0x4df5c7
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4df5c7
mov word [esi], ax
add esi, 2
jmp 0x4df5f5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004e2ba2
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4df5f2
jmp 0x4df5e9
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4df4e5
jmp 0x4df620
mov ecx, dword [ecx*4 + 0x51c3e0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4df617
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4df620
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e3a60
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e38dd

Function at 0x4e7c11
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e78b3
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 0x467eb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x50]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jle 0x467f2f
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x467f1b
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
cmp eax, 0x2733
je 0x467f16
jmp 0x467f2f
mov eax, dword [ebp - 0xc]
jmp 0x467f35
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
jmp 0x467ed9
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0x50
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret 8

Function at 0x468010
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call sub.WSOCK32.dll_recv
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret 8
Function at 0x10003bc2
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.10005d80
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.100135d3
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.100135d3
push 0x10021be8
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.100135d3
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10005d80
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c67
sub ecx, edx
cmp ecx, 6
jbe 0x10003c8e
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.100135d3
pop ecx
pop ecx
test eax, eax
jne 0x10003c8e
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10003c95
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10020533
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.100135d3
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.10005800
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003d0f
mov ax, word [0x10021c14]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x824
ret
Function at 0x401070
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435030]
jne 0x40107a
repz ret
jmp fcn.00401e51

Function at 0x408b0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d5a
and dword [ebp - 4], 0
cmp dword [0x437848], 0
mov ebx, eax
jne 0x408bbc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c6d
push eax
call fcn.00404ce8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437848], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43784c], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437850], eax
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x437858], eax
test eax, eax
je 0x408bbc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x437854], eax
mov eax, dword [0x437854]
cmp eax, ebx
je 0x408c14
cmp dword [0x437858], ebx
je 0x408c14
push eax
call fcn.00404d63
push dword [0x437858]
mov esi, eax
call fcn.00404d63
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408c14
test edi, edi
je 0x408c14
call esi
test eax, eax
je 0x408c0b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408c0b
test byte [ebp - 0xc], 1
jne 0x408c14
or dword [ebp + 0x10], 0x200000
jmp 0x408c4d
mov eax, dword [0x43784c]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c4d
mov eax, dword [0x437850]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437848]
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40adb0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x420
mov eax, dword [0x435030]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [0x2c1523c]
push ebx
mov ebx, dword [0x2c14f60]
push esi
mov esi, dword [0x435f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40adf1
push str.zolihetujejijitewi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c1523c]
mov dword [0x4379ec], esi
cmp eax, 0x114e
jne 0x40ae1b
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x2c1523c]
cmp eax, 0x2f
jne 0x40ae3b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call fcn.0040aca0
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401070
add esp, 0x420
ret
Function at 0x402d20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg edi, eax
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00402966
push eax
push esi
push dword [ebp + 8]
call fcn.0040291b
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00402966
push eax
push esi
push dword [ebp + 8]
call fcn.0040291b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00402956
jns 0x402ded
jae 0x402dc1
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
invalid
popfd
jg 0x402dee
invalid
jg 0x402dee
invalid
invalid

Function at 0x406750
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.004099d0
test eax, eax
je 0x406782
mov eax, 1
jmp 0x406827
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4067a1
xor eax, eax
jmp 0x406827
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x21c]
add edx, 0x230
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40680e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406827
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x401690
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edx + 0x3c]
add ecx, edx
mov edx, 0x10b
movzx eax, word [ecx + 0x18]
cmp ax, dx
je 0x4016b8
mov edx, 0x20b
cmp ax, dx
jne 0x401720
movzx eax, word [ecx + 0x14]
lea esi, [ecx + 0x18]
movzx ebx, word [ecx + 6]
add esi, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
cmp edi, dword [esi + 0x14]
jae 0x4016d9
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor eax, eax
cmp cx, bx
jae 0x401720
movzx edx, ax
lea ecx, [edx + edx*4]
mov esi, dword [esi + ecx*8 + 0xc]
cmp edi, esi
jb 0x401700
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx + ecx*8 + 0x10]
mov ebx, dword [ebp - 8]
add ecx, esi
cmp edi, ecx
jb 0x40170b
inc eax
cmp ax, bx
jae 0x401720
mov esi, dword [ebp - 4]
jmp 0x4016e2
mov ecx, dword [ebp - 4]
lea eax, [edx + edx*4]
mov eax, dword [ecx + eax*8 + 0x14]
sub eax, esi
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002ff0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10028018]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x10003069
mov eax, dword [ebp + 8]
cdq
push 0
push 0x400
push edx
push eax
call fcn.1001db70
push 0
push 0x400
push edx
push eax
call fcn.1001db70
push 0
push 0x400
push edx
push eax
call fcn.1001db70
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x50]
ja 0x10003069
jb 0x10003060
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x54]
jae 0x10003069
mov dword [ebp - 0x48], 0
jmp 0x10003070
mov dword [ebp - 0x48], 1
mov al, byte [ebp - 0x48]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001329a
mov esp, ebp
pop ebp
ret

Function at 0x1000c490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
xor eax, eax
jne 0x1000c499
cmp dword [ebp + 0xc], 0
je 0x1000c4ac
mov dword [ebp - 0x18], 1
jmp 0x1000c4b3
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x1000c4c9
mov eax, 0xd
jmp 0x1000c54c
xor edx, edx
jne 0x1000c49d
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov cx, word [eax]
mov word [ebp - 2], cx
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x1000c4e9
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x20]
sar edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx*2]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 1
jne 0x1000c4da
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 7
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x1000cfe0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x10028018]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 0x1bc]
push edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x60]
call fcn.1000cf20
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x1000d054
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x78], edx
lea ecx, [ebp - 0x60]
call fcn.1000d1c0
mov eax, dword [ebp - 0x78]
jmp 0x1000d0f3
mov dword [ebp - 0x68], 0x100
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000d0ae
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x60]
call fcn.1000cfe0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x1000d0a5
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x6c], edx
lea ecx, [ebp - 0x60]
call fcn.1000d1c0
mov eax, dword [ebp - 0x6c]
jmp 0x1000d0f3
mov dword [ebp - 0x68], 0x100
jmp 0x1000d05b
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x60], 0
je 0x1000d0cf
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp + 0x1bc]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.1000d2c0
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x60]
call fcn.1000d1c0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
call fcn.1001329a
add ebp, 0x1b4
mov esp, ebp
pop ebp
ret 4

Function at 0x1000d230
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x1000d28f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000d25c
mov eax, 1
jmp 0x1000d2ad
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000d28d
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x1000d2ad
jmp 0x1000d2a8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1000d2a8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1000d2ad
mov eax, 1
mov esp, ebp
pop ebp
ret 8