joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41e1d4
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41e1d4
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push 1
push eax
push ecx
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov edx, dword [ebp + 0x10]
test eax, eax
jne 0x41e1d6
xor edx, edx
mov eax, edx
leave
ret

Function at 0x41e250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov edi, dword [ebp + 8]
push edi
call sub.msvcrt.dll_strlen
pop ebx
pop esi
lea esi, [eax + 1]
push 0
push 0
push esi
push edi
push 8
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
mov edx, eax
pop eax
test edx, edx
pop ecx
mov ecx, 8
jle 0x41e3c1
lea eax, [edx + edx + 0x1e]
and eax, 0xfffffff0
call fcn.00495580
lea ebx, [esp + 0xf]
push eax
and ebx, 0xfffffff0
push eax
push edx
push ebx
push esi
push edi
push ecx
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
pop edx
test eax, eax
pop ecx
jne 0x41e340
call sub.KERNEL32.dll_GetLastError
sub esp, 0xc
push 0xa9
push 0x4a68b8
push eax
push 1
push 2
call fcn.00423b20
add esp, 0x18
mov eax, dword [ebp + 0xc]
push 0x4a68df
push eax
push 0x4a68e2
push edi
push str.fopen_
push 5
call fcn.00423760
add esp, 0x20
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x41e326
sub esp, 0xc
push 0xae
push 0x4a68b8
push 2
push 0x6d
push 0x20
xor ebx, ebx
call fcn.00423b20
add esp, 0x20
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push 0xac
push 0x4a68b8
push pe_nt_image_headers32
jmp 0x41e30e
lea esi, [ebp - 0x1c]
push eax
push eax
push 8
push esi
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push eax
call sub.msvcrt.dll_strlen
add esp, 0x10
inc eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
pop edx
test eax, eax
pop ecx
je 0x41e2b8
push ecx
push ecx
push esi
push ebx
call sub.msvcrt.dll__wfopen
add esp, 0x10
mov esi, eax
test eax, eax
je 0x41e41a
sub esp, 0xc
call fcn.0041dce0
push eax
call fcn.0041ee40
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x41e434
push eax
push eax
push 0
push ebx
call fcn.0041e450
push esi
push 1
push 0x6a
push ebx
call fcn.0041e750
add esp, 0x20
jmp 0x41e31c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3ec
je 0x41e3f7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x459
jne 0x41e2b8
mov eax, dword [ebp + 0xc]
push edx
push edx
push eax
push edi
call sub.msvcrt.dll_fopen
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x41e389
jmp 0x41e2b8
push ebx
push ebx
push 0
push 0
push esi
push edi
push 0
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
mov edx, eax
pop eax
test edx, edx
pop ecx
jle 0x41e3cd
xor ecx, ecx
jmp 0x41e28a
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x41e3dd
call sub.msvcrt.dll__errno
cmp dword [eax], 9
jne 0x41e2b8
jmp 0x41e3dd
sub esp, 0xc
push esi
call sub.msvcrt.dll_fclose
add esp, 0x10
jmp 0x41e31c
Function at 0x486db0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
push str.OPENSSL_CONF
call sub.msvcrt.dll_getenv
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x486de2
sub esp, 0xc
push eax
call fcn.0042aa00
add esp, 0x10
mov ebx, eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
call fcn.004929e0
sub esp, 0xc
push eax
call sub.msvcrt.dll_strlen
add esp, 0xc
lea esi, [eax + 0xd]
push 0x231
push str.external_openssl_crypto_conf_conf_mod.c
push esi
call fcn.00424350
add esp, 0x10
test eax, eax
je 0x486dd9
mov ebx, eax
call fcn.004929e0
push edx
push esi
push eax
push ebx
call fcn.0042a8f0
add esp, 0xc
push esi
push 0x4c5400
push ebx
call fcn.0042a950
add esp, 0xc
push esi
push str.openssl.cnf
push ebx
call fcn.0042a950
add esp, 0x10
jmp 0x486dd9
Function at 0x493c60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x493ce0
mov eax, dword [ebp + 8]
test eax, eax
je 0x493cea
test esi, esi
je 0x493cb9
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
push eax
push eax
lea eax, [ebp - 0x18]
push eax
mov edi, dword [ebp + 8]
mov edi, dword [edi + 8]
push edi
call fcn.0043ade0
add esp, 0x10
test eax, eax
je 0x493ca8
mov eax, dword [eax + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x4c6bb3
mov ecx, 4
cld
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x493cf8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.default
mov dword [ebp - 0x14], ebx
push ecx
push ecx
push eax
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
push edx
call fcn.0043ade0
add esp, 0x10
test eax, eax
jne 0x493c9d
lea esi, [esi]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push ebx
call sub.msvcrt.dll_getenv
add esp, 0x10
jmp 0x493ca0
sub esp, 0xc
push ebx
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
jne 0x493ca0
jmp 0x493cb9
Function at 0x407d08
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push edi
mov edi, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
cld
call dword es:[sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esp, edi
pop edi
dec eax
imul eax, dword [ecx]
cmp al, 0x7c
jne 0x407d5c
push 1
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp eax, dword [edx + ebp]
je 0x407da1
mov eax, 0x407d57
lea eax, [edx + eax]
push ebp
push eax
push 0
call sub.KERNEL32.dll_EnumResourceTypesW
push esi
jmp 0x407da1
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
or eax, 7
lock xchg dword ds:[esp + 0xc], edx
lea eax, es:[eax + 0x78968f]
sub eax, 0x783648
xacquire lock add dword es:[edx - 0x1b4], eax
pop ecx
add esp, 0x10
mov eax, 0
mov dx, cs
push dx
push ecx
retf
add byte [eax], al
add byte [eax], al
adc al, 4
add ah, ah
push esp
jne 0x407ddf
and ebx, dword [edx + 0x454da471]
mov eax, dword [0x84969b]
lds esp, [edx]
dec ebx
inc esi
add byte [0xa301d5a0], ch
push ds
push esi
cwde
jle 0x407e0d
inc ebp
push eax
outsd dx, dword [esi]
push esi
inc esi
add byte [esi], dh
test dword [ebx], esp
retf 0xb2c9
js 0x407e09
retf
nop
and al, 0x5d
insb byte es:[edi], dx
and al, 0x35
adc edi, dword [esi - 4]
pop ebx
je 0x407dc7
push 0xbe8b5d7e
scasb al, byte es:[edi]
push ecx
dec esi
cli
cld
fist word [edi + ebp + 0x70]
cmp byte [edx], al
add ah, cl
sbb ebp, esp
movsd dword es:[edi], dword [esi]
jne 0x407dc9
insd dword es:[edi], dx
push edi
add byte [eax], al
ja 0x407def
retf 0x2228

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401007
Capabilities:
Delete file
Get common file path
Get file size
Set file attributes

Disassembly:
sub esp, 8
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x82
lea ebx, [esi + 0x53c]
mov dword [esi], 0x40315c
mov edi, ebx
mov dword [esi + 0x124], eax
mov dword [esi + 0x128], eax
mov dword [esi + 0x120], eax
mov dword [esi + 0x94c], eax
lea ebp, [esi + 0x950]
rep stosd dword es:[edi], eax
mov ecx, 0x82
mov edi, ebp
rep stosd dword es:[edi], eax
lea edi, [esi + 0x12c]
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea edi, [esi + 0x334]
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea edi, [esi + 0x744]
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea edi, [esi + 4]
mov ecx, 0x47
push ebx
push 0x103
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4010a9
push 0x4041f8
push 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401dd0
push 0x4041f0
push ebx
call sub.MSVCRT.dll_wcscpy
add esp, 0x14
push ebx
call sub.MSVCRT.dll_wcslen
add esp, 4
cmp word [esi + eax*2 + 0x53a], 0x5c
je 0x4010cb
push 0x4041ec
push ebx
call sub.MSVCRT.dll_wcscat
add esp, 8
push str.VstService.log
push ebx
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40113a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x40113a
jg 0x401133
cmp dword [esp + 0x10], 0x40000
jb 0x40113a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str._start_
call fcn.00401e10
add esp, 4
push str.16:11:20
push str.Oct_20_2015
push str.LastBuild_t:__s__s
call fcn.00401dc0
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea edi, [esi + 4]
push edi
mov dword [edi], 0x11c
call ebx
test eax, eax
jne 0x401197
push edi
mov dword [edi], 0x114
call ebx
test eax, eax
jne 0x401197
push 0x4041f8
push 0x45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401dd0
add esp, 0xc
lea ebx, [esi + 0x744]
push 0x103
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4011ce
push 0x5c
push ebx
call sub.MSVCRT.dll_wcsrchr
add esp, 8
test eax, eax
je 0x4011ce
push 0x5c
push ebx
call sub.MSVCRT.dll_wcsrchr
add esp, 8
mov word [eax], 0
push ebx
push ebp
call sub.MSVCRT.dll_wcscpy
push str.SLService.ini
push ebp
call sub.MSVCRT.dll_wcscat
add esp, 0x10
push ebp
push str.m_szIniFile_s
call fcn.00401dc0
lea eax, [esi + 0x12c]
push 0x208
push eax
push str.VstService
push str.ServiceName
push str.GENERIC
push ebp
call fcn.00401e20
lea eax, [esi + 0x334]
push 0x208
push eax
push str.Visitor_Genius_Local_Service
push str.ServiceDesc
push str.GENERIC
push ebp
call fcn.00401e20
add esp, 0x38
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, 0x404650
jmp section..text
Function at 0x4012a0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, ecx
push 0
push 0
push esi
push 0x4013a0
push 0
push 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x94c], 1
call edi
push 0
push 0
push esi
push 0x401590
push 0
push 0
mov dword [esi + 0x124], eax
call edi
mov dword [esi + 0x128], eax
pop edi
xor eax, eax
pop esi
ret

Function at 0x4012f0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x128]
mov dword [esi + 0x120], 1
test eax, eax
je 0x401345
push 0x3e8
push eax
call edi
mov eax, dword [esi + 0x128]
push 0x4c7
push eax
call ebx
mov ecx, dword [esi + 0x128]
push ecx
call ebp
mov dword [esi + 0x128], 0
mov eax, dword [esi + 0x124]
test eax, eax
je 0x401381
push 0x3e8
push eax
call edi
mov edx, dword [esi + 0x124]
push 0x4c7
push edx
call ebx
mov eax, dword [esi + 0x124]
push eax
call ebp
xor eax, eax
pop edi
mov dword [esi + 0x124], eax
mov dword [esi + 0x94c], eax
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x94c], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x401890
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x401840
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ecx
ret
Function at 0x401a00
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
sub esp, 0xa0c
push esi
push edi
call fcn.004019b0
test eax, eax
jne 0x401b79
mov ecx, 0x1ff
lea edi, [esp + 0x216]
mov word [esp + 0x214], ax
push 0xf003f
rep stosd dword es:[edi], eax
push 0
push 0
stosw word es:[edi], ax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x401a8f
push str.D:WorkSafeDesktopServiceSLService.cpp
push 0xcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401dd0
lea ecx, [esp + 0x220]
push 0x800
push ecx
push eax
call fcn.00401f70
add esp, 0x18
lea edx, [esp + 0x214]
push 0x10
push 0x40477c
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
add esp, 0xa0c
ret
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0x4051cc
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x40477c
push 0x40477c
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x401b57
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:WorkSafeDesktopServiceSLService.cpp
push 0xdf
call edi
push eax
call fcn.00401dd0
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.D:WorkSafeDesktopServiceSLService.cpp
push 0xe1
call edi
push eax
call fcn.00401dd0
lea edx, [esp + 0x220]
push 0x800
push edx
push eax
call fcn.00401f70
add esp, 0x18
lea eax, [esp + 0x214]
push 0x10
push 0x40477c
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
add esp, 0xa0c
ret
lea ecx, [esp + 8]
mov dword [esp + 8], 0x404984
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0xa0c
ret
Function at 0x401b90
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x81c
push esi
push edi
call fcn.004019b0
test eax, eax
jne 0x401baf
pop edi
mov eax, 1
pop esi
add esp, 0x81c
ret
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], 0
rep stosd dword es:[edi], eax
push 0xf003f
push 0
push 0
stosw word es:[edi], ax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x401c38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:WorkSafeDesktopServiceSLService.cpp
push 0xfd
call esi
push eax
call fcn.00401dd0
add esp, 0xc
push str.D:WorkSafeDesktopServiceSLService.cpp
push 0xfe
call esi
push eax
call fcn.00401dd0
lea ecx, [esp + 0x30]
push 0x800
push ecx
push eax
call fcn.00401f70
add esp, 0x18
lea edx, [esp + 0x24]
push 0x10
push 0x40477c
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
add esp, 0x81c
ret
push 0x10020
push 0x40477c
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x401cb5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:WorkSafeDesktopServiceSLService.cpp
push 0x107
call esi
push eax
call fcn.00401dd0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.D:WorkSafeDesktopServiceSLService.cpp
push 0x109
call esi
push eax
call fcn.00401dd0
lea ecx, [esp + 0x30]
push 0x800
push ecx
push eax
call fcn.00401f70
add esp, 0x18
lea edx, [esp + 0x24]
push 0x10
push 0x40477c
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
add esp, 0x81c
ret
lea eax, [esp + 8]
push ebx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test ebx, ebx
jne 0x401cea
push str.D:WorkSafeDesktopServiceSLService.cpp
push 0x115
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401dd0
add esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
setne al
pop esi
add esp, 0x81c
ret

Function at 0x401d10
Capabilities:
Start service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x401d6e
push ebx
push esi
push 0x40477c
push str.Start__s
call fcn.00401dc0
add esp, 8
push 0xf01ff
push 0x40477c
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x401d65
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
xor eax, eax
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x401e20
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, edx
push esi
mov esi, ecx
push edi
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
shr edx, 1
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push ebx
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
test esi, esi
je 0x401e6e
push 1
push ebx
call fcn.00401e80
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x402100
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push ebx
push esi
push edi
test eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x402181
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x402181
mov edi, dword [esp + 0x24]
test edi, edi
je 0x402181
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x402197
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push esi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x402197
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x402197
cmp eax, 7
je 0x402197
cmp eax, 2
je 0x402197
mov esi, 0x3f2
jmp 0x402197
push str.D:WorkSafeDesktopServiceStdAfx.cpp
push 0x17c
push 0x57
call fcn.00401dd0
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4021a6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x402430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
test esi, esi
je 0x40246e
call fcn.00402030
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call fcn.00402090
cmp esi, 0xffffffff
jne 0x402487
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x402487
cmp eax, 5
je 0x402487
cmp eax, 2
jne 0x402482
pop edi
xor eax, eax
pop esi
ret
push str.D:WorkSafeDesktopServiceStdAfx.cpp
push 0x3c4
push 0x57
call fcn.00401dd0
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x43169a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4316d2
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4316c0
mov al, 1
jmp 0x43171c
cmp dword [ebx + 0x54], ecx
jne 0x4316c9
mov al, 2
jmp 0x43171c
cmp dword [ebx + 0x7c], ecx
jne 0x43171c
mov al, 3
jmp 0x43171c
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4316e7
mov al, 4
jmp 0x43171c
cmp ecx, 5
jne 0x431707
cmp ebx, 0
jne 0x4316f5
mov al, 5
jmp 0x43171c
cmp ebx, 1
jne 0x4316fe
mov al, 6
jmp 0x43171c
cmp ebx, 2
jne 0x431707
mov al, 7
jmp 0x43171c
cmp ecx, 6
jne 0x431713
cmp ebx, 0
jne 0x431715
mov al, 8
jmp 0x43171c
cmp ebx, 1
jne 0x43171c
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ea30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d7edb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004ca0d2
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x44eab2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c794d
mov eax, dword [eax]
push 0x5a0cfc
push eax
call fcn.004b8dd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004ca35d
test bl, bl
je 0x44eab2
push 0x5a0cfc
lea ecx, [esp + 0xc]
call fcn.004ca739
push 0x5a0d08
lea ecx, [esp + 0xc]
call fcn.004ca739
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44eaee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004ca35d
jmp 0x44ebb9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x44eb72
lea edx, [esp + 0x7c]
push 0x5a0d04
push edx
call fcn.004b8dd4
add esp, 8
test eax, eax
je 0x44eb72
lea eax, [esp + 0x7c]
push 0x5a0d00
push eax
call fcn.004b8dd4
add esp, 8
test eax, eax
je 0x44eb72
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44eb02
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004ca35d
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x44fe40
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x44fea2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc