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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x98bd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x98bd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x98bd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x98bd94
push eax
push esi
call fcn.0098e20b
add esp, 8
pop esi
ret 0x10

Function at 0x98bda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x98be22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x98be15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9a4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0098ddff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x98bdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x98be30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x98bec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x98beb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9a4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0098ddff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x98beab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x98be6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x98c000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x98c131
push esi
call fcn.0098f145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0097e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x98c131
push 0
push ebp
call fcn.0097e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0097e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x98c08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0097e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x98c121
push 0x9a4918
push edi
call fcn.0098d3f0
push eax
push ebx
push esi
call fcn.0098bf60
push 0x9a48f8
push edi
call fcn.0098d3f0
push eax
push ebx
push esi
call fcn.0098bf60
push 0x9a48d8
push edi
call fcn.0098d3f0
push eax
push ebx
push esi
call fcn.0098bf60
push 0x9a48c0
push edi
call fcn.0098d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0098bf60
push 0x9a48a0
push edi
call fcn.0098d3f0
push eax
push ebx
push esi
call fcn.0098bf60
push 0x9a4888
push edi
call fcn.0098d3f0
push eax
push ebx
push esi
call fcn.0098bf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x98d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0098d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0098d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0098d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0098d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x98dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x98dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x99f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x98dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x98dc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x10001360
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 0x80
jne 0x10001375
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
jmp 0x1000137f
mov dx, word [esp + 0x10]
mov word [esp + 0xc], dx
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call sub.WSOCK32.dll_setsockopt
ret 0x14

Function at 0x100013f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
lea eax, [esp]
push esi
lea ecx, [esp + 8]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0x10
call sub.WSOCK32.dll_getsockname
mov esi, eax
test esi, esi
jne 0x10001435
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xa]
mov ecx, dword [esp + 0xc]
push edx
mov dword [eax], ecx
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, esi
pop esi
add esp, 0x14
ret 0xc

Function at 0x10001440
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
mov dword [esp + 8], eax
mov word [esp + 4], 2
call sub.WSOCK32.dll_htons
lea edx, [esp]
push 0x10
mov ecx, dword [esp + 0x20]
mov word [esp + 6], ax
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call sub.WSOCK32.dll_sendto
add esp, 0x10
ret 0x18

Function at 0x10001490
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
ret 0x10

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

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
ret 0x10

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

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x24]
lea eax, [esp]
push esi
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0x10
call sub.WSOCK32.dll_recvfrom
mov esi, eax
test esi, esi
jle 0x1000153a
lea eax, [esp + 0xa]
test eax, eax
jbe 0x1000153a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0xa]
push edi
mov edi, dword [esp + 0x34]
mov dword [ecx], edx
push eax
mov word [edi], ax
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
add esp, 0x14
ret 0x18
mov eax, esi
pop esi
add esp, 0x14
ret 0x18
Function at 0x100017a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x30c
mov eax, dword [esp + 0x318]
push ebx
push ebp
mov ebp, dword [esp + 0x31c]
mov edx, dword [eax]
push esi
mov esi, dword [ebp]
push edi
mov edi, dword [esp + 0x320]
xor eax, eax
mov dword [esp + 0x218], esi
mov dword [esp + 0x10], edx
mov ecx, dword [edi]
test ecx, ecx
mov dword [esp + 0x114], ecx
jbe 0x100017fe
lea edx, [esp + 0x118]
lea ecx, [edi + 4]
mov ebx, dword [ecx]
inc eax
mov dword [edx], ebx
mov ebx, dword [esp + 0x114]
add ecx, 4
add edx, 4
cmp eax, ebx
jb 0x100017e8
xor edx, edx
test esi, esi
jbe 0x10001824
lea ecx, [esp + 0x21c]
lea eax, [ebp + 4]
mov esi, dword [eax]
inc edx
mov dword [ecx], esi
mov esi, dword [esp + 0x218]
add eax, 4
add ecx, 4
cmp edx, esi
jb 0x1000180e
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
jbe 0x1000184f
mov eax, dword [esp + 0x328]
lea ecx, [esp + 0x14]
add eax, 4
mov esi, dword [eax]
inc edx
mov dword [ecx], esi
mov esi, dword [esp + 0x10]
add eax, 4
add ecx, 4
cmp edx, esi
jb 0x1000183c
mov ecx, dword [esp + 0x32c]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x21c]
push edx
lea ecx, [esp + 0x11c]
push eax
push ecx
push 1
call sub.WSOCK32.dll_select
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x218]
mov esi, dword [esp + 0x328]
mov dword [edi], ecx
mov dword [ebp], edx
test ecx, ecx
mov dword [esi], ebx
jbe 0x100018a3
add edi, 4
lea esi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
test edx, edx
jbe 0x100018b5
lea edi, [ebp + 4]
mov ecx, edx
lea esi, [esp + 0x21c]
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
jbe 0x100018cb
mov edx, dword [esp + 0x328]
mov ecx, ebx
lea esi, [esp + 0x14]
lea edi, [edx + 4]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret 0x10

Function at 0x10001bc0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 8], eax
mov word [esp + 4], 2
call sub.WSOCK32.dll_htons
lea edx, [esp]
push 0x10
mov word [esp + 6], ax
mov eax, dword [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll_connect
add esp, 0x10
ret 0xc
Function at 0x10001cd0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call sub.WSOCK32.dll_gethostbyname
mov ebp, eax
test ebp, ebp
jne 0x10001cee
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 0x18
mov eax, dword [ebp]
test eax, eax
jbe 0x10001d01
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp + 4]
xor ebx, ebx
mov eax, dword [esi]
test eax, eax
je 0x10001d2d
mov edi, dword [esp + 0x18]
cmp ebx, 0xf
jge 0x10001d2d
mov edx, dword [edi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 4]
add esi, 4
inc ebx
add edi, 4
test eax, eax
jne 0x10001d10
movsx eax, word [ebp + 8]
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
movsx edx, word [ebp + 0xa]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
test esi, esi
je 0x10001d78
mov edx, dword [esp + 0x24]
cmp ebx, 0xf
jge 0x10001d78
mov ecx, dword [esp + 0x20]
mov edi, edx
add eax, 4
add edx, 4
mov ecx, dword [ecx]
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax]
test esi, esi
jne 0x10001d50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18

Function at 0x100029bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10006060
cmp edx, dword [eax]
je 0x100029de
add eax, 8
inc ecx
cmp eax, 0x100060f0
jl 0x100029cf
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10006060]
jne 0x10002b0c
mov eax, dword [0x1000636c]
cmp eax, 1
je 0x10002ae6
test eax, eax
jne 0x10002a0f
cmp dword [0x10006370], 1
je 0x10002ae6
cmp edx, 0xfc
je 0x10002b0c
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002a46
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10002d80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10002e70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10002a89
lea eax, [ebp - 0x1a4]
push eax
call fcn.10002e70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000544c
push edi
call fcn.10003ef0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10002d80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10002d90
lea eax, [ebp - 0xa0]
push 0x1000542c
push eax
call fcn.10002d90
push dword [esi + 0x10006064]
lea eax, [ebp - 0xa0]
push eax
call fcn.10002d90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10003e5e
add esp, 0x2c
pop edi
jmp 0x10002b0c
lea eax, [ebp + 8]
lea esi, [esi + 0x10006064]
push 0
push eax
push dword [esi]
call fcn.10002e70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
push eax
movzx ecx, word [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x405f03
push 0x41d378
push 0x13
push 0x41d3a0
call fcn.00406d90
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x406051
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405f40
push 0x41d3cc
push 0x17
push 0x41d3f4
call fcn.00406d90
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x406051
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405f7d
push 0x41d420
push 0x1b
push 0x41d448
call fcn.00406d90
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x406051
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405fb6
push 0x41d474
push 0x1f
push 0x41d49c
call fcn.00406d90
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x406051
lea ecx, [ebp - 0x14]
call fcn.004012b0
lea eax, [ebp - 0x14]
push eax
push 2
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004070d0
lea ecx, [ebp - 0x14]
call fcn.004012c0
movzx edx, al
test edx, edx
jne 0x405ff4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
lea ecx, [ebp - 0x10]
call fcn.00407170
mov eax, dword [ebp + 8]
jmp 0x406051
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004071a0
lea ecx, [ebp - 0x14]
call fcn.004012c0
movzx edx, al
test edx, edx
jne 0x40602c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
lea ecx, [ebp - 0x10]
call fcn.00407170
mov eax, dword [ebp + 8]
jmp 0x406051
push str.SaveResourceToFile
push 0x28
push 0x41d4f0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00405970
add esp, 0x14
lea ecx, [ebp - 0x10]
call fcn.00407170
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x406930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x423330]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
cmp dword [ebp - 0x214], 0x8a000001
je 0x40697b
cmp dword [ebp - 0x214], 0x8a000002
je 0x40698f
cmp dword [ebp - 0x214], 0x8a000003
je 0x4069a3
jmp 0x4069d0
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
jmp 0x4069e5
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
jmp 0x4069e5
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x104
push 0x41d790
lea edx, [ebp - 0x210]
push edx
call fcn.00407610
add esp, 0xc
jmp 0x4069e5
push 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.004013d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c57
mov esp, ebp
pop ebp
ret

Function at 0x406a40
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004012c0
movzx eax, al
test eax, eax
jne 0x406a69
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
jmp 0x406acf
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x406aaf
push str.BazisLib::Win32::Service::Start
push 0x91
push str.E:PROJECTS_svn_bzslib_bzswin_services.h
push 0x8007054f
call fcn.004012d0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x406acf
push str.BazisLib::Win32::Service::Start
push 0x92
push str.E:PROJECTS_svn_bzslib_bzswin_services.h
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406bc0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x406bf9
push str.BazisLib::Win32::ServiceControlManager::CreateServiceW
push 0x1cc
push str.E:PROJECTS_svn_bzslib_bzswin_services.h
push 0x8007139f
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x406caa
mov edx, dword [ebp + 0x3c]
push edx
mov eax, dword [ebp + 0x38]
push eax
mov ecx, dword [ebp + 0x34]
push ecx
mov edx, dword [ebp + 0x30]
push edx
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406c6c
push str.BazisLib::Win32::ServiceControlManager::CreateServiceW
push 0x1db
push str.E:PROJECTS_svn_bzslib_bzswin_services.h
push 0x8007054f
call fcn.004012d0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x406caa
cmp dword [ebp + 0xc], 0
je 0x406c80
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00406cb0
jmp 0x406c8a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.BazisLib::Win32::ServiceControlManager::CreateServiceW
push 0x1e0
push str.E:PROJECTS_svn_bzslib_bzswin_services.h
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 0x38

Function at 0x406e40
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.004012c0
movzx eax, al
test eax, eax
jne 0x406e6e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
jmp 0x406f01
cmp dword [ebp + 0xc], 0
jne 0x406e96
push str.BazisLib::Win32::Service::QueryStatus
push 0x70
push str.E:PROJECTS_svn_bzslib_bzswin_services.h
push 0x80004003
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x406f01
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x24
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x406ee4
push str.BazisLib::Win32::Service::QueryStatus
push 0x73
push str.E:PROJECTS_svn_bzslib_bzswin_services.h
push 0x8007054f
call fcn.004012d0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x406f01
push str.BazisLib::Win32::Service::QueryStatus
push 0x75
push str.E:PROJECTS_svn_bzslib_bzswin_services.h
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x406f10
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004012c0
movzx eax, al
test eax, eax
jne 0x406f39
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
jmp 0x406f97
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x406f77
push str.BazisLib::Win32::Service::Delete
push 0xee
push str.E:PROJECTS_svn_bzslib_bzswin_services.h
push 0x8007054f
call fcn.004012d0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x406f97
push str.BazisLib::Win32::Service::Delete
push 0xef
push str.E:PROJECTS_svn_bzslib_bzswin_services.h
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4071a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
je 0x407201
push str.BazisLib::Win32::_File_class_BazisLib::ObjectManager::EmptyClass_::Write
push 0x9d
push str.E:PROJECTS_svn_bzslib_bzswin_file.h
push 0x8007054f
call fcn.004012d0
add esp, 4
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00405940
add esp, 0x14
mov eax, dword [ebp - 4]
jmp 0x407221
push str.BazisLib::Win32::_File_class_BazisLib::ObjectManager::EmptyClass_::Write
push 0xa0
push str.E:PROJECTS_svn_bzslib_bzswin_file.h
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00405940
add esp, 0x14
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc