joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401090
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], edi
mov byte [esp + 0xc], 0
lea esi, [ecx + 1]
jmp 0x4010c0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4010c0
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.00401350
lea eax, [esp + 8]
push 0
push eax
call fcn.00425930
mov esi, 0x10
add esp, 8
cmp dword [esp + 0x20], esi
jb 0x4010fb
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0040e653
add esp, 4
cmp dword [0x42e4a8], edi
je 0x40111d
mov ecx, dword [0x42e498]
cmp dword [0x42e4ac], esi
jae 0x401116
mov ecx, 0x42e498
call fcn.0040b2ea
mov edi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret 0x10
Function at 0x404290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4262d8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp - 0x90]
cmp dword [eax + 0x3c], 0
je 0x4042dc
mov ecx, dword [ebp - 0x90]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x4042e8
mov al, 1
jmp 0x4044ac
mov dword [ebp - 0x10], 8
call fcn.0040a7f0
push eax
mov eax, dword [ebp - 0x90]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x90]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.0040a7f0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0040a6c0
add esp, 8
movzx eax, al
test eax, eax
je 0x404331
xor al, al
jmp 0x4044ac
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004032a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.00403400
mov ecx, eax
call fcn.00404050
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.004011a0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403400
mov ecx, eax
call fcn.00404050
push eax
mov ecx, dword [ebp - 0x90]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x90]
mov ecx, dword [edx + 0x3c]
call fcn.00405fe0
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4043be
cmp dword [ebp - 0x94], 1
je 0x4043c8
cmp dword [ebp - 0x94], 3
je 0x404468
jmp 0x404480
mov eax, dword [ebp - 0x90]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00403400
mov ecx, eax
call fcn.00404050
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40442e
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403400
mov ecx, eax
call fcn.00404050
push eax
call fcn.00410007
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40442e
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401170
mov al, byte [ebp - 0x61]
jmp 0x4044ac
mov ecx, dword [ebp - 0x90]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x404454
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401170
mov al, byte [ebp - 0x62]
jmp 0x4044ac
cmp dword [ebp - 0x38], 0
jne 0x404466
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004032e0
jmp 0x404498
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401170
mov al, byte [ebp - 0x63]
jmp 0x4044ac
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401170
mov al, byte [ebp - 0x64]
jmp 0x4044ac
jmp 0x404344
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040e31a
mov esp, ebp
pop ebp
ret
Function at 0x40b9a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
mov dl, byte [eax + 0x209]
mov esi, ecx
mov ecx, dword [eax + 0x204]
mov byte [ebp - 1], dl
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
sub edi, ecx
mov ebx, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edx
cmp ecx, edx
jae 0x40ba29
mov dword [ebp + 8], edi
sub dword [ebp + 8], esi
movzx ecx, bl
lea esi, [ecx + eax + 0x100]
mov dl, byte [esi]
add byte [ebp - 1], dl
movzx ecx, byte [ebp - 1]
lea ecx, [ecx + eax + 0x100]
mov bl, byte [ecx]
mov byte [esi], bl
mov ebx, dword [ebp - 8]
mov byte [ecx], dl
mov ecx, dword [ebp - 0xc]
lea edi, [ebx + ecx]
mov cl, byte [esi]
add cl, dl
mov edx, dword [ebp + 8]
movzx ecx, cl
mov cl, byte [ecx + eax + 0x100]
xor cl, byte [edx + edi]
inc ebx
mov byte [edi], cl
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0x10]
jb 0x40b9e1
mov cl, byte [ebp - 1]
pop edi
pop esi
mov dword [eax + 0x204], ebx
mov byte [eax + 0x209], cl
pop ebx
leave
ret

Function at 0x40bcbe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.0041fa20
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov ecx, ebx
call fcn.00401ac0
push 0x40
push 0x42a0d4
push esi
call fcn.00411ecc
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40bcfa
xor al, al
jmp 0x40bd34
mov esi, 0x10000
jmp 0x40bd14
test ebx, ebx
je 0x40bd14
push eax
lea eax, [ebp - 0x10004]
push eax
mov eax, ebx
call fcn.0040bd42
push edi
push esi
lea eax, [ebp - 0x10004]
push 1
push eax
call fcn.00412232
add esp, 0x10
test eax, eax
ja 0x40bd01
push edi
call fcn.00411cd4
pop ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e31a
leave
ret
Function at 0x40e31a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d040]
jne 0x40e324
repz ret
jmp fcn.00412279

Function at 0x41b345
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.0041284a
and dword [ebp - 4], 0
cmp dword [0x42f2dc], 0
mov ebx, eax
jne 0x41b3f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41b4a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41b4a7
push eax
call fcn.004127d8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42f2dc], eax
call esi
push eax
call fcn.004127d8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42f2e0], eax
call esi
push eax
call fcn.004127d8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42f2e4], eax
call esi
push eax
call fcn.004127d8
pop ecx
mov dword [0x42f2ec], eax
test eax, eax
je 0x41b3f6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004127d8
pop ecx
mov dword [0x42f2e8], eax
mov eax, dword [0x42f2e8]
cmp eax, ebx
je 0x41b44e
cmp dword [0x42f2ec], ebx
je 0x41b44e
push eax
call fcn.00412853
push dword [0x42f2ec]
mov esi, eax
call fcn.00412853
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41b44e
test edi, edi
je 0x41b44e
call esi
test eax, eax
je 0x41b445
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41b445
test byte [ebp - 0xc], 1
jne 0x41b44e
or dword [ebp + 0x10], 0x200000
jmp 0x41b487
mov eax, dword [0x42f2e0]
cmp eax, ebx
je 0x41b487
push eax
call fcn.00412853
pop ecx
test eax, eax
je 0x41b487
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41b487
mov eax, dword [0x42f2e4]
cmp eax, ebx
je 0x41b487
push eax
call fcn.00412853
pop ecx
test eax, eax
je 0x41b487
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42f2dc]
call fcn.00412853
pop ecx
test eax, eax
je 0x41b4a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41b4a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4242b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x4242ef
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x4243f3
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x424370
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x42436b
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x424344
xor eax, eax
jmp 0x4243f8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040fc30
add esp, 0xc
jmp 0x4242dd
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00424110
add esp, 8
test eax, eax
jne 0x424391
xor eax, eax
jmp 0x4243f8
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4243bc
xor eax, eax
jmp 0x4243f8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004130f0
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
jmp 0x4242dd
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0xd58370
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 0xd5838e
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 0xd81074
push ecx
mov edi, eax
call fcn.00d6c198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd583cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d6c02e
push esi
call fcn.00d6bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd5b850
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 0xd5b8ae
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 0xd86720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd5b8ba
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.00d6c1e1
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 0xd5b8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd86720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd5b92a
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.00d6d082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd5b957
mov word [eax], si
add eax, 2
push eax
call fcn.00d6d030
add esp, 4
jmp 0xd5b959
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 0xd5b8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd5b8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xd5bff0
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 0xd5c080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd5c0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd81458
push ecx
call fcn.00d6c1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d6c1e1
add esp, 0x10
jmp 0xd5c0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d6c20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d6bdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d5c050
mov eax, dword [0xd86728]
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 0xd5c13b
push esi
call fcn.00d5bfb0
add esp, 4
mov dword [0xd86728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd5c14c
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.00d5bff0
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 0xd5f440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd5f4b7
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 0xd5f48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd5f471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd5f47e
add edx, ecx
cmp ebx, edx
jb 0xd5f48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd5f467
xor ecx, ecx
jmp 0xd5f4a2
test eax, eax
jne 0xd5f492
xor ecx, ecx
jmp 0xd5f4a2
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.00d5f3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd5f8f0
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 0xd5f921
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 0xd5f946
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 0xd5f96e
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 0xd5f993
push ecx
push esi
call fcn.00d5f4c0
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 0xd60c00
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 0xd60c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd60c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd60c38
add edx, eax
cmp ebx, edx
jb 0xd60c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd60c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd60c50
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 0xd60c70
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 0xd60cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd60c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd60ca8
add edx, ecx
cmp ebx, edx
jb 0xd60cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd60c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd60f60
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.00d6d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd60ffb
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 0xd60fdd
lea eax, [esp + 0x18]
push eax
jmp 0xd60fe2
push 0xd86720
call fcn.00d6cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd60fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd60f40
push 4
push ecx
push eax
call fcn.00d6d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd61310
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.00d6d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd613ab
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 0xd6138d
lea eax, [esp + 0x18]
push eax
jmp 0xd61392
push 0xd86720
call fcn.00d6cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd61360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd60f40
push 4
push ecx
push eax
call fcn.00d6d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd62f20
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 0xd62fd7
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 0xd62fcf
push ebx
push edi
push 0xd86770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xd62fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xd86770
push esi
call ebx
test eax, eax
je 0xd62fae
mov ebp, 3
cmp dword [0xd86774], ebp
jne 0xd62faa
push 0x3e8
call edi
push 0xd86770
push esi
call ebx
test eax, eax
jne 0xd62f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xd62fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xd62fbb
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
Function at 0xd66e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xd7c8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xd66ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00d637a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xd66e61
mov edx, dword [eax]
jmp 0xd66e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00d65050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xd66ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xd66ebf
cmp esi, edi
je 0xd66ebf
mov ecx, esi
call fcn.00d5ea00
push esi
call fcn.00d6c1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00d63990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xd66ef5
mov eax, dword [eax]
jmp 0xd66ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00d62640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xd66f25
mov eax, dword [eax]
jmp 0xd66f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xd66f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xd66f76
cmp esi, edi
je 0xd66f76
mov eax, dword [esi]
cmp eax, edi
je 0xd66f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xd66f6d
push eax
call fcn.00d6c1c8
add esp, 4
push esi
call fcn.00d6c1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret