joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483160
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
push 0x4db278
mov esi, ecx
call fcn.00405430
test eax, eax
jne 0x48318d
push 0x4b0cf8
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4da728
call fcn.0043a420
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
add eax, esi
mov ebp, esi
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, eax
jbe 0x4831f4
xor esi, esi
cmp dword [0x4db290], esi
je 0x4831e0
cmp dword [0x4db280], esi
je 0x4831ce
mov edx, dword [0x4db278]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4db280], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4db290], esi
mov dword [0x4db278], esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4831a9
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x4831a9
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x4831a9
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, ebx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x48326b
test ebx, ebx
je 0x483251
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4832c1
push ebx
push ebp
push eax
call fcn.004a3c00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, esi
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x10]
jbe 0x4831f0
jmp 0x4831a9
cmp dword [0x4db290], 0
je 0x4832a5
cmp dword [0x4db280], 0
je 0x483293
mov eax, dword [0x4db278]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4db280], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4db290], eax
mov dword [0x4db278], eax
push 0x4b0cf8
push str.Out_of_memory.
mov ecx, 0x4da728
call fcn.0043a420
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x4db290], esi
je 0x4832ff
cmp dword [0x4db280], esi
je 0x4832ed
mov ecx, dword [0x4db278]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4db280], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4db290], esi
mov dword [0x4db278], esi
push 0x4b0cf8
push 0x4afd8c
mov ecx, 0x4da728
call fcn.0043a420
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x4836f0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x483703
jmp dword [eax*4 + 0x4838c4]
mov eax, esi
call fcn.004011c0
cmp dword [0x4d9878], 0
jne 0x4837d3
cmp dword [esi + 0xc], 0
jne 0x4837d3
mov edi, dword [esp + 0x14]
cmp dword [0x4dbcac], esi
jne 0x483738
test edi, edi
jne 0x483795
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x483791
mov dword [0x4dbcac], 0
test edi, edi
je 0x483789
mov eax, dword [0x4d9854]
test eax, eax
je 0x48377a
mov edx, dword [esi + 0x18]
push 0
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
mov ecx, 0x4da728
call fcn.0043a970
mov ecx, dword [esi + 0x18]
call fcn.00481490
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x4837c4
cmp byte [esi + 0x17], 0
jne 0x4837a0
mov eax, dword [esi + 0xc]
jmp 0x4837a2
mov eax, esi
test byte [eax + 0x15], 4
je 0x4837b3
push esi
mov ecx, 0x4da728
call fcn.0043aab0
xor eax, eax
mov word [edi], ax
mov dword [0x4dbcac], eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4dbcac], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x14]
mov ebx, eax
shr ebx, 1
test edi, edi
je 0x483855
test eax, eax
jne 0x48380f
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x483801
push esi
mov ecx, 0x4da728
call fcn.0043aab0
xor ecx, ecx
mov word [edi], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x483855
cmp eax, 0x186a0
jae 0x483844
movzx eax, word [ecx]
test ax, ax
je 0x483836
add ecx, 2
mov word [edi], ax
movzx eax, word [ecx]
add edi, 2
test ax, ax
jne 0x483825
xor edx, edx
mov word [edi], dx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push eax
push ecx
push edi
call fcn.004a3c00
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.004836f0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00404e80
cmp eax, 0xffffffff
jne 0x483884
xor eax, eax
test esi, esi
je 0x4838bc
xor edx, edx
mov word [esi + eax*2], dx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4838a2
xor ecx, ecx
mov word [eax], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push edx
push eax
call ecx
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x484420
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x484430
mov eax, esi
call fcn.0045f490
jmp 0x48443d
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 4]
test eax, eax
js 0x484498
je 0x484498
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.004014c0
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x484495
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x484495
push 1
push 0x8000012f
call fcn.004014c0
add esp, 8
push esi
call ebx
test eax, eax
jne 0x484474
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x486270
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x48628c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4d5b14]
push eax
push esi
mov ecx, edi
call fcn.004867d0
cmp byte [edi], 0
je 0x4862bf
test eax, eax
jne 0x4862c7
mov edx, dword [esp + 0x1c]
push eax
push edx
push edi
call fcn.004863a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x486368
test esi, esi
je 0x486342
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.004014c0
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x486325
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x486325
push 1
push 0x8000012f
call fcn.004014c0
add esp, 8
push esi
call edi
test eax, eax
jne 0x486300
mov edx, dword [0x4d5b14]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x48633e
push 1
push eax
call fcn.004014c0
add esp, 8
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x486382
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
je 0x486368
mov ecx, dword [0x4d5b14]
push ecx
push eax
mov ecx, edi
call fcn.004867d0
test eax, eax
jne 0x48627f
cmp byte [edi], 0
je 0x486382
mov edx, dword [esp + 0x1c]
push 0
push edx
push edi
call fcn.004863a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.004865a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4a1856
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d4b20]
jne 0x4a1860
repz ret
jmp fcn.004a7ae3

Function at 0x4a5040
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d4b20]
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.0049ddb2
and dword [ebp - 0x14], 0
cmp dword [0x4d7e5c], 0
mov dword [ebp - 0x18], eax
jne 0x4a50f3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4a519b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4af0e0
push ebx
call edi
test eax, eax
je 0x4a519b
mov esi, dword [fcn.00499940]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4d7e5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4d7e60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4d7e64], eax
call edi
push eax
call esi
mov dword [0x4d7e6c], eax
test eax, eax
je 0x4a50f3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4d7e68], eax
mov eax, dword [0x4d7e68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00499944]
cmp eax, ecx
je 0x4a514c
cmp dword [0x4d7e6c], ecx
je 0x4a514c
push eax
call esi
push dword [0x4d7e6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4a514c
test ebx, ebx
je 0x4a514c
call edi
test eax, eax
je 0x4a5143
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4a5143
test byte [ebp - 8], 1
jne 0x4a514c
or dword [ebp + 0x10], 0x200000
jmp 0x4a517f
mov eax, dword [0x4d7e60]
cmp eax, dword [ebp - 0x18]
je 0x4a517f
push eax
call esi
test eax, eax
je 0x4a517f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a517f
mov eax, dword [0x4d7e64]
cmp eax, dword [ebp - 0x18]
je 0x4a517f
push eax
call esi
test eax, eax
je 0x4a517f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4d7e5c]
call esi
test eax, eax
je 0x4a519b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4a519d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1856
leave
ret
Function at 0x10006b0c
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10006b47
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10006b2e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10006b3f
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10006b49
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10006b24
xor eax, eax
pop edi
pop esi
ret

Function at 0x100071a0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100071a3
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
pushal
pushal
jmp 0x100071c1
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000721f
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10007206
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000720f
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10007219
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100071fb
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10007185
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000726c
dec eax
je 0x10007263
sub eax, 3
je 0x1000725a
mov dword [ebp - 4], 0x40
jmp 0x10007289
mov dword [ebp - 4], 4
jmp 0x1000726f
mov dword [ebp - 4], 0x20
jmp 0x1000726f
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x100072bb
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000723b
invalid
test dword [eax - 1], edi
invalid

Function at 0x100073e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
invalid
Function at 0x5b6370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5b638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5df074
push ecx
mov edi, eax
call fcn.005ca198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005ca02e
push esi
call fcn.005c9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5b9850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5b98ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5e4720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5b98ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005ca1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5b98ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5e4720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5b992a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.005cb082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5b9957
mov word [eax], si
add eax, 2
push eax
call fcn.005cb030
add esp, 4
jmp 0x5b9959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5b98ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5b98b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x5b9ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5ba080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5ba0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x5df458
push ecx
call fcn.005ca1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005ca1e1
add esp, 0x10
jmp 0x5ba0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005ca20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.005c9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005ba050
mov eax, dword [0x5e4728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x5ba13b
push esi
call fcn.005b9fb0
add esp, 4
mov dword [0x5e4728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5ba14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.005b9ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x5bd440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5bd4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x5bd48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5bd471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5bd47e
add edx, ecx
cmp ebx, edx
jb 0x5bd48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5bd467
xor ecx, ecx
jmp 0x5bd4a2
test eax, eax
jne 0x5bd492
xor ecx, ecx
jmp 0x5bd4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005bd3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5bd8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5bd921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x5bd946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x5bd96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x5bd993
push ecx
push esi
call fcn.005bd4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x5bec00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x5bec4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x5bec2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x5bec38
add edx, eax
cmp ebx, edx
jb 0x5bec46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x5bec21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x5bec50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x5bec70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x5becb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5bec9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5beca8
add edx, ecx
cmp ebx, edx
jb 0x5becb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5bec91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x5bef60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.005cb145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5beffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x5befdd
lea eax, [esp + 0x18]
push eax
jmp 0x5befe2
push 0x5e4720
call fcn.005cafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5befb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5bef40
push 4
push ecx
push eax
call fcn.005cb43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x5bf310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.005cb145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5bf3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x5bf38d
lea eax, [esp + 0x18]
push eax
jmp 0x5bf392
push 0x5e4720
call fcn.005cafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5bf360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5bef40
push 4
push ecx
push eax
call fcn.005cb43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x5c0f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x5c0fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x5c0fcf
push ebx
push edi
push 0x5e4770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x5c0fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x5e4770
push esi
call ebx
test eax, eax
je 0x5c0fae
mov ebp, 3
cmp dword [0x5e4774], ebp
jne 0x5c0faa
push 0x3e8
call edi
push 0x5e4770
push esi
call ebx
test eax, eax
jne 0x5c0f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x5c0fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x5c0fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret