joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e90
Capabilities:
Capture screenshot

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x84]
xor edx, edx
div ecx
mov ecx, eax
mov dword [esp], eax
test edx, edx
je 0x409eb0
inc ecx
mov dword [esp], ecx
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, dword [edi + 0x88]
xor edx, edx
div esi
mov ebp, eax
test edx, edx
je 0x409ecc
inc ebp
xor ebx, ebx
test ecx, ecx
jle 0x409f1d
xor esi, esi
test ebp, ebp
jle 0x409f18
jmp 0x409ee0
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0x84]
push 0xcc0020
push 0
push 0
push edx
push eax
imul eax, esi
push ecx
imul ecx, ebx
push eax
mov eax, dword [esp + 0x30]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
inc esi
cmp esi, ebp
jl 0x409ee0
mov ecx, dword [esp + 0xc]
inc ebx
cmp ebx, ecx
jl 0x409ed2
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18

Function at 0x40a690
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43bd48
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x40a6d8
push eax
call edi
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x44a178
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40a73b
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a700
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push esi
push 1
push 0x44a338
push ebx
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x40a73b
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [esp + 0xf], 1
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40a74e
push eax
call edi
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret

Function at 0x40b010
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43eab9
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push 0x23
mov dword [esp + 0xc], 0
call fcn.00415110
add esp, 4
mov dword [esp + 0x14], 0
push 0xd
push 0x448b60
push edi
mov dword [esp + 0x14], 1
call fcn.0040d200
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b083
mov ecx, dword [edi]
call fcn.004190b0
push 7
push str._s3.txt
push edi
call fcn.0040d200
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret
Function at 0x40c0d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x43bf39
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebp
call fcn.004119b0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], 1
mov eax, esi
cmp dword [ebx + 4], ebp
je 0x40c1ce
call fcn.00415260
test al, al
je 0x40c1cc
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push edi
push ecx
push edx
call fcn.0042aef0
mov eax, dword [esi]
mov edx, dword [ebx + 4]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], edi
mov eax, dword [eax]
push eax
push ebp
push 1
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
push edx
call ebp
test eax, eax
je 0x40c16f
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.00415260
jmp 0x40c1cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40c1ae
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.00415260
test al, al
je 0x40c1ae
mov eax, dword [esi]
mov eax, dword [eax]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ecx
push eax
push 0
push 1
push 0
push edx
call ebp
test eax, eax
jne 0x40c1cc
mov eax, esi
call fcn.00420740
jmp 0x40c1cc
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40c1cc
mov eax, dword [edi]
push 0
push eax
call fcn.00429ddd
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 8

Function at 0x40e170
Capabilities:
Create service
Modify service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x40e1ca
mov ecx, dword [esp + 8]
push 0
push 0
push 0x449bfc
push 0
push str.UIGroup
push ecx
push 1
push 3
push 0x10
push 0xf01ff
push str.asrrealtimesrv
push str.asrrealtimesrv
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea edx, [esp]
push edx
push 7
push eax
mov dword [esp + 0xc], 0x493e0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
pop ecx
ret
Function at 0x40e1d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x230], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x230], 1
push 0x206
push eax
lea edx, [esp + 0x26]
xor ecx, ecx
push edx
mov word [esp + 0x28], cx
call fcn.0042ace0
add esp, 0xc
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
lea ecx, [esp + 0x20]
call fcn.00411fe0
lea ecx, [esp + 0xc]
push edi
push ecx
mov ebx, 0x448b5c
mov dword [esp + 0x18], 1
call fcn.0040b740
mov byte [esp + 0x238], 2
lea edx, [esp + 0x240]
push edx
lea ecx, [esp + 0x20]
push ecx
mov ebx, eax
call fcn.00420e90
add esp, 0x10
mov byte [esp + 0x230], 3
call fcn.0040ee80
mov byte [esp + 0x230], 2
lea ecx, [esp + 0x14]
call fcn.0040d9c0
mov byte [esp + 0x230], 1
lea ecx, [esp + 0xc]
call fcn.0040d9c0
mov byte [esp + 0x230], 0
lea ecx, [esp + 0x238]
call fcn.0040d9c0
mov eax, edi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00404b64
add esp, 0x228
ret
Function at 0x410480
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e419
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x58]
mov edi, ecx
push eax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
call fcn.00411fe0
mov dword [esp + 0x50], esi
mov dword [esp + 0x3c], esi
xor eax, eax
push esi
mov ebx, 0x400
lea esi, [esp + 0x2c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
call fcn.0040e600
mov dword [esp + 0x50], 1
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
lea edx, [ecx + ecx - 2]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x50], 2
cmp edi, ebx
je 0x410558
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x410536
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 1
push ebx
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x410637
mov ecx, dword [esp + 0x14]
jmp 0x41055d
mov ecx, SysReAllocString
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp dword [esp + 0x40], esi
jae 0x410570
lea eax, [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push 0x44a338
push ecx
call ebp
cmp eax, 0xea
jne 0x4105f2
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
shr ebx, 1
inc ebx
cmp ebx, ecx
ja 0x4105b3
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.00419bb0
mov esi, 8
jmp 0x4105c0
mov eax, ebx
sub eax, ecx
lea ebx, [esp + 0x28]
call fcn.00418b20
mov ecx, dword [esp + 0x14]
test edi, edi
jne 0x4105cd
mov ecx, SysReAllocString
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x4105db
lea eax, [esp + 0x2c]
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x44a338
push ecx
call ebp
xor ebx, ebx
cmp eax, ebx
jne 0x410629
cmp dword [esp + 0x1c], 1
jne 0x410629
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x410629
shr eax, 1
lea ecx, [esp + 0x28]
call fcn.00418220
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x41061e
lea edx, [esp + 0x2c]
mov edi, dword [esp + 0x20]
call fcn.004019e0
jmp 0x41063c
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
call fcn.004209c0
jmp 0x41063c
mov esi, 8
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x410650
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x50], bl
cmp dword [esp + 0x40], esi
jb 0x410667
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00405c1a
add esp, 4
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00404b64
add esp, 0x40
ret
Function at 0x410870
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e628
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00411fe0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x4108c3
mov ecx, esi
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00403e60
mov eax, dword [esp + 0xc]
lea ecx, [esi + esi]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ecx
push eax
push 1
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
push SysReAllocString
call esi
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x4108ff
mov edx, edi
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00403e60
mov eax, dword [esp + 0xc]
lea ecx, [edi + edi]
push ecx
push eax
push 1
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040d9c0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x410990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43d598
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00406bf3
mov ebx, dword [eax + 0xc]
mov ebp, dword [sym.imp.USER32.dll_LoadImageW]
push 0
push 0
push 0
push 0
push 0xbb8
push ebx
call ebp
push 0
push 0
push 0
push 0
push 0x81
push ebx
mov edi, eax
call ebp
xor ebp, ebp
mov ebx, eax
mov dword [esp + 0x18], vtable.CGdiObject.0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x18], vtable.CBitmap.0
mov dword [esp + 0x50], 1
push edi
lea ecx, [esp + 0x1c]
call fcn.00411d87
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
push 0x202
push ecx
push edx
push ebp
push ebp
push ebp
mov ecx, esi
call fcn.00424076
lea ecx, [esp + 0x18]
call fcn.0040c82b
push ebx
call fcn.00412610
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], vtable.CBitmap.0
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x18]
call fcn.00417500
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x411150
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43d97c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x14], eax
xor ecx, ecx
push eax
mov ebx, 0x400
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], cx
call fcn.0040e600
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x4111cc
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
push eax
dec edx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [esp + 0x34], esi
mov esi, dword [esp + 0x20]
jae 0x4111e7
lea esi, [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.0041eab0
mov byte [esp + 0x44], 2
push eax
push edi
mov ebx, ebp
call fcn.00420dc0
add esp, 8
mov eax, 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], al
lea ecx, [esp + 0x10]
push ecx
call fcn.00405ab0
xor ebx, ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x34], 8
jb 0x411233
mov edx, dword [esp + 0x20]
push edx
call fcn.00405c1a
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00404b64
add esp, 0x38
ret

Function at 0x411af0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 4
mov dword [esp + 8], esi
cmp eax, esi
je 0x411b2c
lea ecx, [esp + 8]
push ecx
push 1
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x411b62
mov eax, dword [esp + 8]
jmp 0x411b31
mov eax, SysReAllocString
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push 0x44a174
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411b5e
cmp dword [esp + 0xc], 4
jne 0x411b5e
cmp dword [esp + 0x10], esi
jne 0x411b62
mov dword [esp + 4], esi
mov eax, dword [esp + 8]
cmp eax, esi
pop esi
je 0x411b72
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret
Function at 0x411e60
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call esi
test eax, eax
je 0x411e84
cmp dword [edi], 0
jne 0x411e9a
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push edi
call esi
cmp dword [edi], 0
je 0x411ec7
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
lea esi, [esp + 0xc]
call fcn.00422ad0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
lea ecx, [edi + 4]
push ecx
mov ecx, dword [edi]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov eax, dword [edi + 4]
test eax, eax
je 0x411efc
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, 1
push 3
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call esi
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push 4
push ecx
call esi
pop esi
add esp, 0x10
ret 8

Function at 0x4122b0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43cb71
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00418570
mov dword [esp + 0x34], 1
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412310
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.00416270
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], cx
push ebx
mov ecx, esi
call fcn.00418570
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x412365
mov edx, dword [esp + 0x14]
push edx
call fcn.00405c1a
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x412740
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c9f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x412786
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00403e60
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4127c9
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0040d9c0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x412c00
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x34]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x412c2d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
xor edx, edx
pop esi
add esp, 0x28
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x412c52
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
xor edx, edx
pop esi
add esp, 0x28
ret
lea ecx, [esp + 8]
push ecx
push 0x24
lea edx, [esp + 0x14]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x412c23
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
cmp dword [esp + 0x18], 2
mov ebp, dword [esp + 0x28]
mov edi, eax
jne 0x412ceb
mov eax, 0xcccccccd
mul dword [esp + 0x2c]
shr edx, 3
cmp edx, 0x3e8
jae 0x412c9d
mov edx, 0x3e8
jmp 0x412caa
cmp edx, 0x2710
jbe 0x412caa
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x1c]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x412ceb
cmp dword [esp + 0x28], ebp
jbe 0x412cda
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
jmp 0x412ce4
call ebx
sub eax, edi
cmp eax, dword [esp + 0x2c]
ja 0x412ceb
cmp dword [esp + 0x18], 2
je 0x412c82
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x3c]
push edx
call esi
pop ebp
pop ebx
pop edi
mov eax, 0x3e8
xor edx, edx
pop esi
add esp, 0x28
ret
Function at 0x412d10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e72a
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x808], eax
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x81c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x82c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0
mov esi, 1
mov dword [esp + 0x824], esi
lea eax, [esp + 0x18]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0x830]
cmp dword [eax - 4], esi
jle 0x412d9d
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x834]
push edx
call fcn.00403e60
mov eax, dword [esp + 0x830]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412da0
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x412db4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
lea ecx, [esp + 0x1c]
call fcn.00411fe0
mov dword [esp + 0x10], 1
mov byte [esp + 0x824], 0
lea ecx, [esp + 0x830]
call fcn.0040d9c0
mov eax, ebp
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00404b64
add esp, 0x818
ret

Function at 0x414290
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c069
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0
call fcn.004119b0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov eax, esi
je 0x414338
call fcn.00415260
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], edi
mov eax, dword [eax]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41432d
cmp dword [esp + 0x38], edi
je 0x414336
xor edi, edi
mov eax, esi
call fcn.00415260
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret