joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x5c4920]
xor eax, esp
mov dword [esp + 0x19c], eax
push 0x5ce868
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x409713
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x5ce86c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 0xc], 0
je 0x409744
push 0
push 0x5ce86c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x409744
mov dword [esp], eax
call fcn.00552c50
lea ecx, [esp]
push ecx
mov ecx, str.winsock
mov dword [esp + 8], eax
call fcn.00407eb0
mov ecx, dword [esp + 0x19c]
mov eax, dword [ebp + 8]
xor ecx, esp
call fcn.0053129a
mov esp, ebp
pop ebp
ret 8

Function at 0x40a520
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564810
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005313ee
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00406c30
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x40a5ac
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ae30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564c68
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.005313ee
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00406c30
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov eax, esi
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 0x40bcc0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
push edi
test esi, esi
jne 0x40bcd8
push eax
push eax
mov ecx, str.CHttpToolW::OpenConnection:_hInternet_can_not_be_NULL.
call fcn.0040ba40
test edx, edx
jne 0x40bce8
push edx
push edx
mov ecx, str.CHttpToolW::OpenConnection:_szServerAddr_can_not_be_NULL.
call fcn.0040ba40
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bcf0
sub eax, edi
sar eax, 1
push 0
push 0
jne 0x40bd0f
mov ecx, str.CHttpToolW::OpenConnection:_szServerAddr_can_not_be_an_empty_string.
call fcn.0040ba40
mov eax, dword [ebp + 8]
push 3
push 0
push 0
push eax
push edx
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x40bd38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor ecx, ecx
mov esi, 0x193
call fcn.0040b910
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c0b0
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
push ebx
push esi
jne 0x40c0cc
push 0
push 0
mov ecx, str.CHttpToolW::InternetWriteFile:_hRequest_can_not_be_NULL.
call fcn.0040ba40
cmp dword [ebp + 0xc], 0
jne 0x40c0e0
push 0
push 0
mov ecx, str.CHttpToolW::InternetWriteFile:_pbyBuff_can_not_be_NULL.
call fcn.0040ba40
test edi, edi
jne 0x40c0f0
push edi
push edi
mov ecx, str.CHttpToolW::InternetWriteFile:_cbyBuff_can_not_be_zero.
call fcn.0040ba40
xor esi, esi
test edi, edi
je 0x40c11d
mov ebx, dword [sym.imp.WININET.dll_InternetWriteFile]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + edx]
push eax
push ecx
call ebx
test eax, eax
je 0x40c123
add esi, dword [ebp - 4]
cmp esi, edi
jb 0x40c0fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor ecx, ecx
mov esi, 0x198
call fcn.0040b910
int3
Function at 0x410f00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00538700
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
push str._spdpop
push esi
call fcn.00402a70
mov ecx, dword [esi]
add esp, 0xc
push 0
push 0
push 0
push ecx
call fcn.0042d190
push esi
call fcn.0042c9d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x14
call fcn.0053129a
mov esp, ebp
pop ebp
ret
Function at 0x415640
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562b1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.005524a2
push 4
mov dword [ebp - 4], 0
call fcn.0043db91
mov edi, eax
add esp, 4
test edi, edi
je 0x4156bc
call fcn.005527b7
mov dword [edi], eax
call fcn.00552576
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.005522c6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4156b2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.005522ee
jmp 0x4156be
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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 0x419fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a052
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41a021
cmp eax, 2
jne 0x41a03c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x41a04c
test eax, eax
je 0x41a047
test al, 1
jne 0x41a03c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41a04c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41aa70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56612b
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xff
lea eax, [ebp - 0x110]
push 0
push eax
mov dword [ebp - 0x118], 0
call fcn.00538700
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x20019
push 0
push str.SoftwareExBC
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ab8d
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0x59c0b0
push edx
mov dword [ebp - 0x118], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41ab80
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.00402d80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
push eax
call fcn.00402eb0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ab99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41ab99
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x596e98
mov ecx, esi
call fcn.00402d80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret
Function at 0x41d1e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56335b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00442ad0
test eax, eax
jne 0x41d23f
push 0x59c2f4
call fcn.00534529
add esp, 4
mov esi, 1
jmp 0x41d387
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00538700
lea ecx, [ebp - 0x23c]
add esp, 0xc
mov dword [0x5ce8c8], ecx
mov dword [ebp - method.CService.virtual_0], 0x59c348
cmp dword [ebp + 8], 2
mov dword [ebp - 4], 0
jne 0x41d36b
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 4]
mov ecx, 0x59c32c
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d2b6
test dx, dx
je 0x41d2b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d2b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d290
xor eax, eax
jmp 0x41d2bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d2db
call fcn.0042aee0
test eax, eax
je 0x41d364
call fcn.0042afe0
mov eax, 1
jmp 0x41d389
mov ecx, 0x59c334
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d308
test dx, dx
je 0x41d304
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d308
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d2e2
xor eax, eax
jmp 0x41d30d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d327
call fcn.0042b070
push 0x59c2b0
call fcn.0042b110
mov eax, 1
jmp 0x41d389
mov ecx, 0x59c33c
mov eax, esi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d356
test dx, dx
je 0x41d352
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d356
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d330
xor eax, eax
jmp 0x41d35b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d364
call fcn.0042afe0
mov eax, 1
jmp 0x41d389
lea ecx, [ebp - 0x23c]
call fcn.0042b190
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 8]
lea ecx, [ebp - 0x23c]
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret
Function at 0x41dc00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x107c]
mov dword [ebp - 4], 0
mov ebx, 1
lea ecx, [ecx]
push 0x50
call fcn.00432100
xor edx, edx
add esp, 4
cmp eax, edx
je 0x41dcd7
mov dword [eax], edx
cmp dword [esi + 8], edx
je 0x41dc4f
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x74]
or ecx, 0x20002
mov dword [eax + 0x14], ecx
jmp 0x41dc56
mov dword [eax + 0x14], 0x20102
push edx
push eax
lea ecx, [eax + 0x1c]
mov dword [eax + 0x20], edi
mov dword [eax + 0x18], esi
mov dword [ecx], 0x1000
mov dword [ebp - 0xc], edx
lea edx, [ebp - 8]
push edx
add eax, 0x24
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x10]
push edx
push ebx
push ecx
push eax
mov dword [ebp - 8], 0x10
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x41dca6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x41dca6
cmp eax, 0x2736
jne 0x41dcdc
mov eax, dword [esi + 4]
add dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
add dword [eax + 0xc4], ebx
mov eax, dword [ebp - 4]
add eax, ebx
add edi, 0x1000
mov dword [ebp - 4], eax
cmp eax, 4
jb 0x41dc20
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 4], edx
jmp 0x41dce0
cmp dword [esi + 4], 0
je 0x41dce9
mov eax, esi
call fcn.00436320
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41f660
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5cee30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f695
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41f695
mov eax, dword [ecx]
test eax, eax
je 0x41f695
mov dword [ecx], 0
mov cl, byte [eax]
movzx edx, cl
cmp edx, ebx
jae 0x41f6b2
push eax
call fcn.0043dbc0
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.0043db91
add esp, 4
cmp ebx, 0xff
ja 0x41f6b0
movzx ecx, bl
mov byte [eax + ebx], cl
ret
xor ecx, ecx
mov byte [eax + ebx], cl
ret
Function at 0x42aee0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00538700
add esp, 0xc
push 0x103
lea edx, [ebp - 0x20a]
push edx
mov ecx, 0x22
push 0
mov word [ebp - 0x20c], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42af34
mov eax, dword [0x59ce78]
push 0xf003f
push 0
push 0
mov dword [edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x42af94
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x59c2b0
push 0x59c2b0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x42afa6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0053129a
mov esp, ebp
pop ebp
ret

Function at 0x42b070
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0xf01ff
mov ebx, eax
push 0x59c2b0
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x42b0c3
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
mov edi, eax
je 0x42b0e6
lea ecx, [ebp - 0x20]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053129a
mov esp, ebp
pop ebp
ret
Function at 0x42c9d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564a90
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42ca20
test al, 0x10
je 0x42ca20
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push 0x5c
push eax
call fcn.00536a05
add esp, 8
test eax, eax
jne 0x42ca36
or edi, 0xffffffff
jmp 0x42ca3c
sub eax, dword [esi]
sar eax, 1
mov edi, eax
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00402eb0
add eax, 0x10
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x42cb02
push edi
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00401d20
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00402e40
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ca9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 8]
push ecx
call fcn.0042c9d0
add esp, 4
test eax, eax
je 0x42caed
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x42cada
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x42cb19
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cb25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d190
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.00538700
add esp, 0xc
push esi
push 0x59cf08
lea edx, [ebp - 0x418]
push 0x104
push edx
call fcn.005357e0
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.00536492
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x64c], edi
cmp edi, 0xffffffff
jne 0x42d214
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x648]
push edx
push edi
call fcn.005365cd
add esp, 8
test eax, eax
jne 0x42d396
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xa
call ebx
push eax
call edi
mov ecx, 0x59cf14
lea eax, [ebp - 0x620]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42d276
test dx, dx
je 0x42d272
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42d276
add eax, 4
add ecx, 4
test dx, dx
jne 0x42d250
xor eax, eax
jmp 0x42d27b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42d372
mov ecx, 0x59cf04
lea eax, [ebp - 0x620]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42d2b6
test dx, dx
je 0x42d2b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42d2b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42d290
xor eax, eax
jmp 0x42d2bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42d372
cmp dword [ebp - 0x648], 0x10
push 0x206
push 0
jne 0x42d32b
lea ecx, [ebp - 0x20e]
xor eax, eax
push ecx
mov word [ebp - 0x210], ax
call fcn.00538700
add esp, 0xc
lea edx, [ebp - 0x620]
push edx
push esi
push 0x59cf1c
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.005357e0
mov ecx, dword [ebp + 0x10]
add esp, 0x14
push 0
inc ecx
push ecx
lea edx, [ebp - 0x620]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.0042d190
add esp, 0x10
jmp 0x42d372
lea edx, [ebp - 0x20e]
xor ecx, ecx
push edx
mov word [ebp - 0x210], cx
call fcn.00538700
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
push esi
push 0x59c104
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.005357e0
add esp, 0x14
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.004410ed
mov ecx, dword [ebp - 0x64c]
lea eax, [ebp - 0x648]
push eax
push ecx
call fcn.005365cd
add esp, 8
test eax, eax
je 0x42d238
mov edi, dword [ebp - 0x64c]
push edi
call fcn.005369df
add esp, 4
cmp dword [ebp + 0x10], 0
jle 0x42d3ac
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0053129a
mov esp, ebp
pop ebp
ret