joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415900
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
call fcn.00414ea0
test eax, eax
je 0x41593b
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
push edi
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x415aa8
cmp edi, 0xffffffff
je 0x415aa8
push 0x34
push 0x4b7630
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x415a86
cmp esi, 0xffffffff
je 0x415a86
xor eax, eax
mov ebx, 0x12c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x415a0a
nop
test ebx, ebx
jle 0x415a0a
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, 6
ja case.0x4159c4.3
movzx eax, byte [eax + 0x415aec]
jmp dword [eax*4 + 0x415ae0]
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp case.0x4159c4.3
push dword [ebp - 0x24]
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x415a7d
push 0xc8
dec ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4159b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 6
test bx, bx
jne 0x415a94
xor eax, eax
mov dword [ebp - 0x24], 0x12c
mov dword [ebp - 0x20], eax
mov ebx, 0x17
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x415a94
nop
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x415a94
cmp dword [ebp - 0x1c], 1
je 0x415a81
dec eax
push 0xc8
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x415a50
jmp 0x415a94
xor ebx, ebx
jmp 0x415a18
mov ebx, dword [ebp - 0x14]
jmp 0x415a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 8
test esi, esi
je 0x415ab8
cmp esi, 0xffffffff
je 0x415ab8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x415abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 8
jmp 0x415abe
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x415aca
cmp edi, 0xffffffff
je 0x415aca
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret 8
Function at 0x415df0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae9a1
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4eebc0]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x264], edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4ea458]
cmp eax, dword [ecx + 4]
jg 0x416059
cmp dword [0x4e4030], 0
jne 0x41602e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00486380
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41602e
push 0x12
push str.Kingsoftoffice6_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00402f10
push 0x4b75f4
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00401760
add esp, 0xc
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415f00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402f10
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 2
jb 0x415f30
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.00402d90
cmp eax, 0x4e4020
je 0x415f5e
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x415f50
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, 0x4e4020
call fcn.00402f10
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x415fa2
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415f98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41608f
push edx
push ecx
call fcn.0046e36f
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00402420
mov edx, dword [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x416011
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416007
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41608f
push edx
push ecx
call fcn.0046e36f
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 0x4e4020
mov ecx, edi
call fcn.00401960
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret 4
push 0x4ea458
call fcn.0046e858
add esp, 4
cmp dword [0x4ea458], 0xffffffff
jne 0x415e46
push 0x4b5f20
call fcn.0046e5c7
push 0x4ea458
call fcn.0046e80e
add esp, 8
jmp 0x415e46
call fcn.0048f279
int3
Function at 0x416680
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4166ef
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
je 0x4166f2
cmp esi, edi
ja 0x4166f2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
add eax, 0xa
add esi, eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4166c3
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret 8
Function at 0x416bf0
Capabilities:
Delete service

Disassembly:
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x416c8b
cmp edi, 0xffffffff
je 0x416c8b
push 0xf01ff
push 0x4b7630
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x416c69
cmp esi, 0xffffffff
je 0x416c69
push 0x1388
push esi
mov ecx, ebx
call fcn.00416680
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, eax
test ecx, ecx
jne 0x416c5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x430
sete cl
xor eax, eax
mov ebx, 0x50005
test ecx, ecx
cmovne ebx, eax
jmp 0x416c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test esi, esi
je 0x416c9b
cmp esi, 0xffffffff
je 0x416c9b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x416ca1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
jmp 0x416ca1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x416cad
cmp edi, 0xffffffff
je 0x416cad
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4178b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x14
push esi
test eax, eax
je 0x417976
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x417976
xor ecx, ecx
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417904
call edi
cmp eax, 0x3e5
jne 0x417956
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x417942
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x417935
push 1
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, 0x800705b4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41796c
call edi
test eax, eax
jle 0x41793a
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x417e30
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
push esi
mov dword [esi + 0x14], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test ebx, ebx
jne 0x417ebd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x417ea3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov dword [esi + 0x14], 1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push esi
mov dword [esi + 0x10], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test ebx, ebx
je 0x417e61
pop edi
pop esi
pop ebx
pop ebp
ret 8
test ebx, ebx
jne 0x417ebd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x417ebd
push ebx
push esi
mov ecx, edi
call fcn.00417ed0
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x417ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push 0x90
push 0
mov dword [ebp + 8], 0
push dword [esi + 0x18]
mov dword [esi + 0x14], 2
call fcn.00486380
add esp, 0xc
lea eax, [ebp + 8]
push esi
push eax
push 0x90
push dword [esi + 0x18]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x417f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x417f3f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push esi
mov ecx, ebx
call fcn.00417e30
pop esi
pop ebx
pop ebp
ret 8
Function at 0x418760
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0
push ecx
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov esi, dword [ebp - 8]
test esi, esi
je 0x418944
mov edx, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x41893b
mov eax, dword [edi + 0x14]
dec eax
cmp eax, 4
ja case.default.0x4187c9
jmp dword [eax*4 + 0x41894c]
push dword [ebp - 4]
mov ecx, esi
push edi
call fcn.00417ed0
jmp case.default.0x4187c9
cmp dword [ebp - 4], 0x90
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
jne 0x4188fb
mov edx, dword [eax + 0x8c]
mov dword [ebp - 0x14], edx
test edx, edx
jne 0x41880e
push edx
push edi
mov ecx, esi
call fcn.00417f50
jmp case.default.0x4187c9
lea ecx, [eax + 0x90]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax]
test eax, eax
je 0x4188fb
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push edi
add ecx, 0x90
mov dword [edi + 0x14], 3
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne case.default.0x4187c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je case.default.0x4187c9
jmp 0x4188fb
push dword [ebp - 4]
mov ecx, esi
push edi
call fcn.00417f50
jmp case.default.0x4187c9
cmp dword [ebp - 4], 0x90
mov eax, dword [edi + 0x18]
jne 0x4188fb
cmp dword [eax + 0x8c], 0
je 0x4188f7
push edi
lea edx, [ebp - 0x1c]
mov dword [edi + 0x14], 5
lea ecx, [eax + 0x90]
mov dword [ebp - 0x1c], 0
push edx
push dword [eax + 0x8c]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x4188d3
xor eax, eax
jmp 0x4188dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne case.default.0x4187c9
cmp eax, 0x3e5
je case.default.0x4187c9
jmp 0x4188fb
mov ecx, dword [edi + 0x18]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx + 0x8c]
jne 0x4188fb
push dword [esi]
call edx
push dword [esi]
call ebx
push 0
push edi
mov ecx, esi
call fcn.00417e30
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov esi, dword [ebp - 8]
mov edx, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test esi, esi
jne 0x4187b1
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41bf20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af2f0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e437c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
mov dword [ebp - 4], 0
and ecx, 0xfffffffc
xor al, al
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.00435a50
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov edx, dword [esi + 0x24]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 1
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.00435a50
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x41bf9c
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x41bfad
push 0x40
push esi
call fcn.0046e36f
add esp, 8
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 0x41df20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af696
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24c], edi
push 0x208
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00486380
add esp, 0xc
mov dword [ebp - 0x250], 0
mov ecx, esi
push 0xffffffffffffffff
push 0x4b7a10
call fcn.0041ff30
mov ebx, eax
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [esi + 0x10], ebx
mov ecx, ebx
mov word [ebp - 0x248], ax
mov eax, esi
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x41dfc3
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00402f10
mov ecx, dword [esi + 0x10]
xor edx, edx
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, ebx
mov dword [ebp - 0x220], 0
inc ebx
mov dword [ebp - 0x21c], 7
dec eax
mov word [ebp - 0x230], dx
cmp ecx, ebx
jb 0x41e195
sub ecx, ebx
cmp ecx, eax
cmovb eax, ecx
cmp dword [esi + 0x14], 8
jb 0x41e014
mov esi, dword [esi]
push eax
lea eax, [esi + ebx*2]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402f10
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x250]
push ecx
push 0x20019
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e0a4
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x24c], 0x208
push ecx
push 0
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e0c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402f10
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x41e11e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e114
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e19a
push edx
push ecx
call fcn.0046e36f
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x41e177
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e16d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e19a
push edx
push ecx
call fcn.0046e36f
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret
call fcn.00404fa0
call fcn.0048f279
int3
Function at 0x41f100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41f1ba
cmp byte [esi + 0x3d], 0
je 0x41f1ba
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41f1a8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41f170
sub eax, 1
je 0x41f174
sub eax, 2
jne 0x41f1a8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41f191
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0049444b
add esp, 0x10
cmp edi, eax
jne 0x41f1a8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret

Function at 0x41fb10
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae358
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov edi, dword [ebp + 8]
push esi
push eax
call fcn.0041d9d0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0041fbe0
add esp, 0xc
test eax, eax
jne 0x41fb65
xor esi, esi
jmp 0x41fb82
cmp dword [esi + 0x14], 8
jb 0x41fb6d
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x41fb75
mov edi, dword [edi]
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41fbb8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41fbae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fbd5
push edx
push ecx
call fcn.0046e36f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret
call fcn.0048f279
int3
Function at 0x41fbe0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ade98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4e437c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41fc16
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41fc9a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41fc2c
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41fc9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41fc9a
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0041d9d0
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x41fcb9
lea eax, [ebp - 0x28]
push eax
call fcn.0041fbe0
add esp, 4
test eax, eax
je 0x41fcb9
cmp dword [esi + 0x14], 8
jb 0x41fc78
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41fc92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41fcb9
lea ecx, [ebp - 0x28]
call fcn.00402420
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e5dc
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.00402420
xor eax, eax
jmp 0x41fc9f