joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5375e7
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x224], 0
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4ce5e8
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ce5fd
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4ce5ff
call edx
add eax, 0x10
mov dword [edi], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 1
push 0
push eax
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 1
push eax
push 0x20019
push 0
push 0x555b84
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ce72b
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x230], esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x21c], 0x208
push eax
push 0
push 0x555d10
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ce720
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x4ce6cc
cmp eax, 2
jne 0x4ce720
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4ce6e9
test al, 1
jne 0x4ce720
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x4ce6f2
jmp 0x4ce720
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ce700
sub ecx, edx
sar ecx, 1
je 0x4ce720
push ecx
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00402d50
test esi, esi
je 0x4ce72b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
Function at 0x4ce750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x418], edx
push 0
push eax
mov edi, ecx
call fcn.0049e130
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0049e130
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push 0x104
push eax
push 0x59
push 0x400
call esi
push 0x104
mov ebx, eax
lea eax, [ebp - 0x414]
push eax
push 0x5a
push 0x400
call esi
lea ecx, [ebp - 0x20c]
mov esi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ce7d4
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402d50
test esi, esi
je 0x4ce849
mov eax, 0x5f
mov word [ebp + ebx*2 - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004a6e35
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ce827
mov ecx, dword [ebp - 0x418]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00402d50
mov ecx, dword [edi]
xor eax, eax
pop edi
pop esi
pop ebx
cmp dword [ecx - 0xc], eax
mov ecx, dword [ebp - 4]
setg al
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret

Function at 0x4cf020
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4cf2b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20a
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049e130
push 0x20a
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.0049e130
push 0x20a
lea eax, [ebp - 0x83c]
push 0
push eax
call fcn.0049e130
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x630]
lea ecx, [ebp - 0x424]
call fcn.004cf520
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebp - 0xc], ecx
add esp, 0x2c
mov dword [ebp - 0x844], edx
mov eax, 1
mov dword [ebp - 0x840], eax
cmp si, word [ebp - 0x218]
je 0x4cf3a7
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x218]
call fcn.004cf470
add esp, 8
test eax, eax
jne 0x4cf398
xor ecx, ecx
lea eax, [esi + 1]
xor edx, edx
jmp 0x4cf3a7
mov edx, dword [ebp - 0x844]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x840]
sub esp, 0x18
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x424]
push eax
lea edx, [ebp - 0x630]
call fcn.004cfd60
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
add esp, 0x2c
push fcn.004cf9a0
call esi
mov dword [0x59f498], eax
lea eax, [ebp - 0x840]
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0x840], 0
push eax
push esi
mov dword [ebp - 0xc], 0x4c2c033
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [0x59f4a0]
test eax, eax
je 0x4cf41b
mov dword [eax + 0x1c], 0x2710
push fcn.004cf9a0
call esi
mov dword [0x59f498], eax
lea eax, [ebp - 0x840]
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0x840], 0
push eax
push esi
mov dword [ebp - 0xc], 0x4c2c033
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
Function at 0x4d0220
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
add ecx, 4
mov eax, edx
shr eax, 1
test dl, 1
je 0x4d0233
xor eax, 0xedb88320
test al, 1
je 0x4d0240
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d0242
shr eax, 1
test al, 1
je 0x4d024f
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d0251
shr eax, 1
test al, 1
je 0x4d025e
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d0260
shr eax, 1
test al, 1
je 0x4d026d
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d026f
shr eax, 1
test al, 1
je 0x4d027c
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d027e
shr eax, 1
test al, 1
je 0x4d028b
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d028d
shr eax, 1
test al, 1
je 0x4d029a
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d029c
shr eax, 1
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jl 0x4d0225
ret
Function at 0x4d0740
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53769b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov dword [ebp - 0x14], edi
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4d0798
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d07ad
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4d07b1
mov ecx, edx
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
add edi, 2
mov dword [ebp - 4], 0
jns 0x4d07cd
push 0x80070057
call fcn.00401b40
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4d07ea
push edi
lea ecx, [ebp - 0x10]
call fcn.00402c70
mov esi, dword [ebp - 0x10]
cmp edi, dword [esi - 8]
jg 0x4d07c3
push dword [ebp - 0x14]
mov dword [esi - 0xc], edi
xor eax, eax
push esi
mov word [esi + edi*2], ax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0xffffffff
jne 0x4d0815
push dword [esi - 8]
push esi
call fcn.004a4fb5
add esp, 8
test eax, eax
js 0x4d07c3
cmp eax, dword [esi - 8]
jg 0x4d07c3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edi, [esi - 0x10]
mov ebx, dword [ebx]
sub ebx, 0x10
cmp edi, ebx
je 0x4d0864
cmp dword [ebx + 0xc], ecx
jl 0x4d0858
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x4d0858
mov ecx, edi
call fcn.004021e0
mov ecx, ebx
mov esi, eax
call fcn.00402e90
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x10]
mov dword [ecx], eax
jmp 0x4d0864
push dword [esi - 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.00402d50
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4d08ab
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d08a9
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d0ea0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x20
mov esi, ecx
call fcn.0049aa4a
mov ecx, dword [ebp + 0x14]
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [edi], vtable.CUrlDownloadStatusCallbackImp.0
push 0
mov dword [edi + 4], 0
mov dword [edi + 8], esi
mov dword [edi + 0x1c], ecx
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov edx, dword [edi]
mov ecx, edi
push 1
mov esi, eax
call dword [edx + 0x2c]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4da140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x18]
imul eax, dword [esi + 0x1c]
test ebx, ebx
cmove ebx, edx
xor edi, edi
test byte [esi + 4], 0x80
mov dword [esi + 8], eax
je 0x4da1db
test edx, edx
jne 0x4da19f
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049aa41
mov ecx, dword [esi + 0x1c]
add esp, 4
add ecx, ecx
mov edi, eax
push ecx
push ebx
push edi
call fcn.0049dbb0
add esp, 0xc
mov edx, edi
mov ebx, edi
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4da1b8
movzx eax, word [edx + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x4da1a6
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
lea ecx, [esi + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0x559784
call fcn.004dbfd0
add esp, 0x10
push dword [esi]
push 1
push dword [esi + 8]
push ebx
call fcn.004af6b5
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x4da1fe
push edi
call fcn.0049aa3c
add esp, 4
test bl, bl
je 0x4da241
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
push 0xffffffffffffffff
push dword [esi + 0x1c]
push ecx
mov ecx, esp
jb 0x4da21b
mov eax, dword [eax]
mov dword [ecx], eax
mov edx, 0x18
push ecx
mov ecx, esp
mov dword [ecx], 0x55979c
lea ecx, [esi + 0x20]
call fcn.004dbfd0
add esp, 0x10
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.004dacc0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4da710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [edi]
push 1
push dword [edi + 8]
push esi
call fcn.004af3cd
mov ecx, dword [edi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
cdq
sete bl
idiv dword [edi + 0x18]
mov byte [esp + 0x12], bl
mov dword [edi + 0x1c], eax
test bl, bl
je 0x4da882
add dword [edi + 0x14], ecx
cmp dword [edi + 0x4c], 8
push 0xffffffffffffffff
push eax
lea eax, [edi + 0x38]
push ecx
mov ecx, esp
jb 0x4da763
mov eax, dword [eax]
mov dword [ecx], eax
mov edx, 0x18
push ecx
mov eax, esp
lea ecx, [edi + 0x20]
mov dword [eax], 0x559544
call fcn.004dbfd0
mov edx, dword [edi + 0x18]
add esp, 0x10
mov eax, dword [edi + 0x1c]
xor ebx, ebx
xor ecx, ecx
cmp edx, 1
sete byte [esp + 0x13]
test eax, eax
je 0x4da829
dec eax
mov dword [esp + 0x14], eax
xor eax, eax
cmp byte [esp + 0x13], al
je 0x4da7a9
cmp byte [esi], al
jmp 0x4da7ac
cmp word [esi], ax
sete al
test eax, eax
je 0x4da7d6
test ecx, ecx
je 0x4da7cf
cmp esi, ecx
je 0x4da7cf
mov eax, esi
imul edx, ebx
sub eax, ecx
push eax
push ecx
sub ecx, edx
push ecx
call fcn.0049d000
add esp, 0xc
mov edx, dword [edi + 0x18]
inc ebx
lea ecx, [edx + esi]
mov eax, dword [esp + 0x14]
add esi, edx
test eax, eax
jne 0x4da798
test ecx, ecx
je 0x4da7fd
cmp esi, ecx
je 0x4da7fd
mov eax, dword [edi + 0x18]
sub esi, ecx
imul eax, ebx
push esi
push ecx
sub ecx, eax
push ecx
call fcn.0049d000
add esp, 0xc
test ebx, ebx
je 0x4da829
push 0xffffffffffffffff
push ebx
push ecx
mov eax, esp
mov edx, 1
push ecx
lea ecx, [edi + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0x5595bc
call fcn.004dbfd0
add esp, 0x10
sub dword [edi + 0x1c], ebx
cmp dword [edi + 0x18], 1
jle 0x4da875
test byte [edi + 4], 0x80
je 0x4da875
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x4da852
mov edx, dword [ebp + 8]
nop
movzx eax, word [edx + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x4da840
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov esi, esp
xor edx, edx
push ecx
lea ecx, [edi + 0x20]
mov dword [esi], 0
mov esi, esp
mov dword [esi], 0x5596b0
call fcn.004dbfd0
add esp, 0x10
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.004dacc0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4dc270
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0
push 0
push 3
push 0
push 3
push connect
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4dc29e
mov dword [esi], 0
xor bl, bl
jmp 0x4dc2ab
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
mov bl, 1
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4dc2e2
mov eax, dword [edx]
push edx
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x4dc2e8
mov ecx, dword [eax + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov al, bl
pop ebx
pop ebp
ret
pop esi
mov al, bl
pop ebx
pop ebp
ret
mov ecx, eax
call esi
jmp 0x4dc2e2
Function at 0x4dcc10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5383e5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
push dword [ebp + 8]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4dcd04
push esi
call fcn.004a51f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4dcd04
push esi
push 0
push ebx
call fcn.0049e130
add esp, 0xc
push ebx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4dccf3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x55cd7c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4dccf3
mov ecx, dword [ebp - 0x10]
xor esi, esi
mov edx, dword [ebp - 0x18]
or esi, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
test edx, edx
je 0x4dccf9
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, di
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x55ce7c
push edx
call fcn.004023f0
add esp, 0x18
push ebx
call fcn.004a51fb
add esp, 4
jmp 0x4dcd0a
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push ebx
call fcn.004a51fb
add esp, 4
jmp 0x4dcd0a
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4dcd48
mov eax, dword [edx]
push edx
mov ecx, dword [eax]
mov ebx, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x4dcd44
mov ecx, dword [eax + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4dcd48
mov ecx, eax
call ebx
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dce50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x14], ecx
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
mov ebx, edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4dce8f
call fcn.004054a0
test eax, eax
js 0x4dcedd
jmp 0x4dce91
mov esi, eax
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
push ebx
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4dcec2
call fcn.004054a0
test eax, eax
jns 0x4dcec2
test esi, esi
je 0x4dcedd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4dcedd
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4dced1
push esi
call ebx
xor esi, esi
mov edi, 1
test esi, esi
je 0x4dcedd
push esi
call ebx
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4dcf17
mov esi, dword [edx]
push edx
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x4dcf20
mov ecx, dword [esi + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call eax
jmp 0x4dcf17
Function at 0x4df0e0
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538632
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x280], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x27c], eax
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4df307
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
call fcn.00404170
push 0x55c15c
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.00404750
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00404750
add esp, 8
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x4df207
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4df1de
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x21c], 7
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004042c0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4df225
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x4df260
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x4df29e
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00403010
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4df2d8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x27c]
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x230]
push dword [ebp - 0x280]
cmovae edx, dword [ebp - 0x230]
mov ecx, edi
push ebx
call fcn.004df350
add esp, 0xc
mov esi, eax
jmp 0x4df30c
mov esi, 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4df32a
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403010
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
Function at 0x4df400
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4df490
push ebx
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x4df488
lea eax, [ebp - 0x2c]
mov dword [ebp - 8], esi
push eax
push 0x24
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
push eax
xorps xmm0, xmm0
push esi
push ebx
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4df481
cmp dword [ebp - 0x24], 4
jne 0x4df481
lea eax, [ebp - 0x28]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov ecx, 1
cmovne esi, ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4df4d3
mov eax, dword [edx]
push edx
mov ecx, dword [eax]
mov edi, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x4df4e5
mov ecx, dword [eax + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0049aa22
mov esp, ebp
pop ebp
ret
mov ecx, eax
call edi
jmp 0x4df4d3