joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00401de1
mov ebx, eax
xor esi, esi
pop ecx
pop ecx
cmp ebx, esi
jne 0x401e74
xor eax, eax
jmp 0x401f78
push edi
push 0x40
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040b790
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x50], 0x41e440
stosd dword es:[edi], eax
cmp dword [ebp + 0x14], esi
jne 0x401ebe
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
jmp 0x401f02
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x401ed6
mov dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push dword [ebp - 4]
push esi
push esi
push esi
push esi
push ebx
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x401f02
push dword [ebp - 4]
call sub.USERENV.dll_DestroyEnvironmentBlock
cmp edi, esi
je 0x401f26
mov eax, dword [ebp + 0x18]
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401f1a
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x401f1f
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x401f6e
push esi
push esi
lea eax, [ebp - 4]
push eax
push 0x400
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x401f53
mov eax, 0x41e430
push eax
push 0x41e404
call fcn.0040cac8
pop ecx
pop ecx
cmp dword [ebp - 4], esi
je 0x401f6e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call fcn.0040b54d
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [0x428188]
mov esi, 0x104
push 0x41e488
lea edi, [ebp - 0x24c]
call fcn.00401933
mov eax, edi
push 0x41e480
push eax
call fcn.0040bc47
add esp, 0x10
mov dword [ebp - 0x250], eax
test eax, eax
jne 0x401fcc
xor al, al
jmp 0x402048
push ebx
push 7
pop ecx
push dword [ebp - 0x250]
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
inc ebx
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0040c241
mov esi, 0x41e470
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x41e460
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xf
lea eax, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x24]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0040cbbb
add esp, 0x1c
test eax, eax
je 0x402039
push 0xf
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040cbbb
add esp, 0xc
test eax, eax
je 0x402039
xor bl, bl
push dword [ebp - 0x250]
call fcn.0040bb15
pop ecx
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b774
leave
ret

Function at 0x402056
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [0x428188]
mov esi, 0x104
push 0x41e488
lea edi, [ebp - 0x238]
mov byte [ebx], 0
call fcn.00401933
mov eax, edi
push 0x41e480
push eax
call fcn.0040bc47
add esp, 0x10
mov dword [ebp - 0x23c], eax
test eax, eax
jne 0x4020ab
xor al, al
jmp 0x402102
push 7
pop ecx
push dword [ebp - 0x23c]
xor eax, eax
mov byte [ebp - 0x30], 0
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
push 0x20
push eax
call fcn.0040c241
mov esi, 0x41e4ac
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push 9
lea eax, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x30]
push eax
movsw word es:[edi], word [esi]
call fcn.0040cbbb
push dword [ebp - 0x23c]
neg eax
sbb al, al
inc al
mov byte [ebx], al
call fcn.0040bb15
add esp, 0x20
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b774
leave
ret

Function at 0x40228e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x401951
push 0
push 0
call fcn.0040cef3
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi], eax
pop esi
lea eax, [ecx - 1]
pop ebp
ret 8
Function at 0x4025c6
Capabilities:
Copy file

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402600
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x41e6c8
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0x14
push 7
pop eax
ret
xor eax, eax
ret

Function at 0x4027dc
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x41e830
mov esi, 0x104
lea edi, [ebp - 0x20c]
call fcn.00401933
xor ebx, ebx
mov eax, edi
push ebx
push eax
call fcn.0040d132
add esp, 0x10
test eax, eax
jne 0x4028d8
call fcn.0040237a
test eax, eax
je 0x4028d8
cmp byte [0x4287a9], bl
jne 0x4028d8
cmp byte [0x4287aa], bl
jne 0x4028d8
mov eax, edi
push eax
push 0x41e960
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push ebx
push 0x41e958
push 0x41e940
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
lea ecx, [ebp - 0x414]
mov esi, edi
call fcn.00402603
test eax, eax
pop ecx
lea eax, [ebp - 0x414]
je 0x4028a9
push eax
mov eax, edi
push eax
push 0x41e90c
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0x10
push 7
pop eax
jmp 0x4028da
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea eax, [ebp - 0x414]
push eax
je 0x4028c5
push 0x41e8c8
jmp 0x4028ca
push 0x41e880
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b774
leave
ret
Function at 0x402dd4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
mov esi, ecx
mov dword [ebp - 0x3c], eax
call fcn.00411ca3
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040bca5
add esp, 0xc
test eax, eax
je 0x402e29
call fcn.0040cfd5
push dword [eax]
push dword [esi + 0x10]
push 0x41ecd4
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0x10
push 6
pop eax
jmp 0x402ef8
push edi
mov edi, dword [esi + 0x20]
push edi
cmp dword [ebp - 0x20], edi
je 0x402e4d
push dword [ebp - 0x20]
push 0x41ec88
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0x10
push 0x2a
jmp 0x402e5c
call fcn.0040ba14
pop ecx
mov dword [esi + 0x38], eax
test eax, eax
jne 0x402e62
push 0xd
pop eax
jmp 0x402ef7
push ebx
mov dword [ebp - 0x38], eax
test edi, edi
je 0x402e91
mov ebx, 0x7fffffff
cmp edi, ebx
jae 0x402e75
mov ebx, edi
push dword [ebp - 0x3c]
push ebx
push 1
push dword [ebp - 0x38]
call fcn.0040c241
add esp, 0x10
cmp eax, ebx
jne 0x402e9e
add dword [ebp - 0x38], eax
sub edi, eax
jne 0x402e6a
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x20]
or ecx, 0xffffffff
add eax, edx
jmp 0x402ecd
push dword [esi + 0x10]
push 0x41ec50
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
push 6
jmp 0x402ef1
movzx ebx, byte [edx]
mov edi, ecx
shr edi, 0x18
xor edi, ebx
shl ecx, 8
xor ecx, dword [edi*4 + 0x426138]
inc edx
cmp edx, eax
jne 0x402eb8
mov esi, dword [esi + 0x24]
not ecx
cmp ecx, esi
je 0x402ef4
push esi
push ecx
push 0x41ec08
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0x10
push 4
pop eax
jmp 0x402ef6
xor eax, eax
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b774
leave
ret 4

Function at 0x403434
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [0x428188]
mov esi, 0x104
push 0x41e488
lea edi, [ebp - 0x20c]
call fcn.00401933
mov eax, edi
push eax
call fcn.00402553
add esp, 0xc
test eax, eax
je 0x403488
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b774
leave
ret
lea eax, [ebp - 0x20c]
push 0x41e32c
push eax
call fcn.0040bc47
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403477
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034a6
push esi
sub eax, edx
push 1
push eax
push ebx
call fcn.0040b961
add esp, 0x10
cmp eax, 1
je 0x4034ce
xor bl, bl
push esi
call fcn.0040bb15
pop ecx
mov al, bl
jmp 0x403479
mov bl, 1
jmp 0x4034c3
Function at 0x40352d
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x61c]
call fcn.004021d1
test al, al
jne 0x403557
push 0x22
pop eax
jmp 0x403775
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x40357e
push 0x22
pop eax
jmp 0x403774
push edi
lea eax, [ebp - 0x414]
push eax
push 0x41f07c
lea edi, [ebp - 0x20c]
call fcn.00401933
lea eax, [ebp - 0x61c]
push eax
push 0x41f05c
lea edi, [ebp - 0x824]
call fcn.00401933
lea eax, [ebp - 0x20c]
push eax
call fcn.004023b5
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x41f030
call fcn.00402262
push eax
call fcn.004070f3
push 1
lea ecx, [ebp - 0x20c]
lea esi, [ebp - 0x414]
call fcn.00402603
add esp, 0x14
xor edi, edi
jmp 0x40363b
mov eax, edi
inc edi
cmp eax, 0xa
jge 0x403642
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push 0x41efd0
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0x18
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
lea ecx, [ebp - 0x20c]
lea esi, [ebp - 0x414]
call fcn.00402603
pop ecx
mov esi, eax
cmp esi, 7
je 0x4035f4
test esi, esi
je 0x403661
push esi
push 0x41efa0
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
mov eax, esi
jmp 0x403773
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
push 0x41ef74
call fcn.00402262
push eax
call fcn.004070f3
push 1
lea ecx, [ebp - 0x414]
lea esi, [ebp - 0x824]
call fcn.00402603
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4036fd
push edi
push 0x41ef48
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
push 0x41ef1c
call fcn.00402262
push eax
call fcn.004070f3
lea eax, [ebp - 0x414]
push eax
call fcn.004023b5
push 1
lea ecx, [ebp - 0x414]
lea esi, [ebp - 0x20c]
call fcn.00402603
add esp, 0x10
test eax, eax
je 0x4036f9
push eax
push 0x41eeec
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
mov eax, edi
jmp 0x403773
push 0x41eed4
call fcn.00402262
push eax
call fcn.004070f3
lea eax, [ebp - 0x20c]
push eax
call fcn.004023b5
add esp, 0xc
test eax, eax
je 0x40376a
push eax
push 0x41eeb4
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
je 0x403757
push 0x41ee8c
jmp 0x40375c
push 0x41ee54
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
mov byte [0x4287a8], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b774
leave
ret
Function at 0x403ae1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0x41e480
push esi
mov dword [ebp - 0x40], esi
call fcn.0040bc47
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x38], edi
test edi, edi
jne 0x403b29
push esi
push 0x41f264
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
xor eax, eax
jmp 0x403bca
push edi
call fcn.00411ca3
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040bca5
add esp, 0xc
test eax, eax
je 0x403b5c
push esi
push 0x41f22c
call fcn.00402262
push eax
call fcn.004070f3
push edi
call fcn.0040bb15
add esp, 0x10
jmp 0x403b22
mov esi, dword [ebp - 0x20]
lea eax, [esi + 1]
push ebx
push eax
call fcn.0040ba14
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x403b73
push edi
jmp 0x403bc1
mov edi, esi
mov dword [ebp - 0x3c], ebx
test esi, esi
je 0x403ba6
mov esi, 0x7fffffff
cmp edi, esi
jae 0x403b87
mov esi, edi
push dword [ebp - 0x38]
push esi
push 1
push dword [ebp - 0x3c]
call fcn.0040c241
add esp, 0x10
cmp eax, esi
jne 0x403bd8
add dword [ebp - 0x3c], eax
sub edi, eax
jne 0x403b7c
mov esi, dword [ebp - 0x20]
mov byte [esi + ebx], 0
mov esi, dword [ebp - 0x20]
lea eax, [esi + esi + 2]
push eax
call fcn.0040ba14
mov edi, eax
pop ecx
test edi, edi
jne 0x403bf8
push dword [ebp - 0x38]
call fcn.0040bb15
pop ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b774
leave
ret
push dword [ebp - 0x40]
push 0x41f1f4
call fcn.00402262
push eax
call fcn.004070f3
push dword [ebp - 0x38]
call fcn.0040bb15
add esp, 0x10
jmp 0x403bc7
inc esi
push esi
push edi
push 0xffffffffffffffff
push ebx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x403c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41f1b8
call fcn.00402262
push eax
call fcn.004070f3
push ebx
call fcn.0040b54d
push edi
call fcn.0040b54d
add esp, 0x14
xor edi, edi
push dword [ebp - 0x38]
call fcn.0040bb15
pop ecx
mov eax, edi
jmp 0x403bc9
push ebx
call fcn.0040b54d
pop ecx
jmp 0x403c37
Function at 0x405d1b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x405d63
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
je 0x405d5f
call fcn.0040cfd5
mov dword [eax], esi
xor eax, eax
jmp 0x405dbe
lea eax, [ebp - 0x254]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x405d95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
je 0x405d58
call fcn.0040cfd5
mov dword [eax], 9
jmp 0x405d5f
push 0x208
push 0
mov esi, 0x428c88
push esi
call fcn.0040b790
push 0x104
lea eax, [ebp - 0x228]
push eax
push esi
call fcn.0040cb6f
add esp, 0x18
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b774
leave
ret

Function at 0x405de6
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
xor esi, esi
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x405e36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x405e23
xor eax, eax
jmp 0x405ecc
push 0xf0000008
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x405e1c
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x405e1c
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x405e1c
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push esi
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call edi
test eax, eax
je 0x405e1c
push dword [ebx]
call fcn.0040d60d
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebx]
push esi
push eax
call fcn.0040b790
mov eax, dword [ebp + 0x10]
add esp, 0x10
push esi
push ebx
push dword [eax]
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x405e1c
cmp dword [ebp - 4], esi
je 0x405eba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x405ec9
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x406095
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push 0x41e480
push dword [ebp + 8]
call fcn.0040bc47
mov esi, eax
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
cmp esi, ebx
jne 0x4060be
push 6
pop eax
pop esi
pop ebx
leave
ret
push 2
push ebx
push esi
call fcn.0040d1d4
add esp, 0xc
test eax, eax
je 0x4060d7
push esi
call fcn.0040bb15
pop ecx
jmp 0x4060b7
push edi
push esi
call fcn.0040df1e
mov edi, eax
pop ecx
cmp edi, ebx
jg 0x4060f6
push 6
pop esi
push dword [ebp - 0xc]
call fcn.0040bb15
pop ecx
mov eax, esi
pop edi
jmp 0x4060ba
lea eax, [edi + 1]
push eax
call fcn.0040d60d
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
push ebx
cmp esi, ebx
jne 0x406114
call fcn.0040ca8d
pop ecx
push 0xa
jmp 0x4060e7
push ebx
push dword [ebp - 0xc]
call fcn.0040d1d4
add esp, 0xc
test eax, eax
je 0x40612d
push esi
call fcn.0040ca8d
pop ecx
jmp 0x4060e5
push dword [ebp - 0xc]
push edi
push 1
push esi
call fcn.0040c241
add esp, 0x10
cmp eax, edi
jne 0x406124
mov byte [esi + edi], bl
mov dword [ebp - 0x18], esi
mov byte [ebp - 1], bl
xor esi, esi
jmp 0x40624b
mov cl, byte [eax]
cmp cl, 0x23
je 0x40624e
cmp cl, 0x3b
je 0x40624e
mov edi, 0x41ffa4
call fcn.00405fc3
mov cl, byte [eax]
mov dword [ebp - 8], eax
test cl, cl
je 0x40624e
cmp cl, 0x5b
jne 0x4061f9
inc eax
push 0x41ffa8
lea ebx, [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
call fcn.00405feb
pop ecx
test eax, eax
je 0x4061f3
push edi
call fcn.00405feb
pop ecx
test eax, eax
jne 0x4061f3
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4061db
mov eax, dword [ebp - 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4061ce
test dl, dl
je 0x4061ca
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4061ce
add eax, 2
add ecx, 2
test dl, dl
jne 0x4061ae
xor eax, eax
jmp 0x4061d3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete byte [ebp - 1]
jmp 0x40624e
mov esi, dword [ebp - 0x10]
push 8
mov edi, 0x41ffac
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov esi, dword [ebp - 0x14]
sete byte [ebp - 1]
jmp 0x40624e
mov byte [ebp - 1], 0
jmp 0x40624e
cmp byte [ebp - 1], 0
je 0x40624e
push 0x41ffa0
lea ebx, [ebp - 8]
mov edi, eax
call fcn.00405feb
pop ecx
test eax, eax
je 0x40624e
mov edx, dword [ebp + 0xc]
push edi
call fcn.00406039
pop ecx
test eax, eax
js 0x40624e
cmp eax, dword [ebp + 0x10]
jae 0x40624e
mov ecx, dword [ebp + 0x14]
imul eax, eax, 0x258
push 0x257
push dword [ebp - 8]
lea edi, [eax + ecx]
push edi
call fcn.0040b650
add esp, 0xc
mov byte [edi + 0x257], 0
inc esi
mov dword [ebp - 0x14], esi
push 0x41ff9c
lea ebx, [ebp - 0x18]
call fcn.00405feb
pop ecx
test eax, eax
jne 0x406150
sub esi, dword [ebp + 0x10]
push dword [ebp - 0x1c]
neg esi
sbb esi, esi
and esi, 5
call fcn.0040ca8d
pop ecx
jmp 0x4060e8
Function at 0x4064f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x208
mov word [ebp - 0x218], ax
xor esi, esi
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.0040b790
push 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0040cb6f
lea eax, [ebp - 0x218]
push 0x4203c8
push eax
call fcn.004064ab
add esp, 0x20
test eax, eax
je 0x4065b5
mov eax, dword [0x41f688]
push esi
push esi
push 2
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x41f68c]
push esi
mov dword [ebp - 8], eax
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4065b5
push ebx
push esi
lea eax, [ebp - 0x21c]
push eax
push 7
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
pop ebx
je 0x4065b5
cmp dword [ebp - 0x21c], 7
jne 0x4065b5
xor eax, eax
inc eax
jmp 0x4065b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b774
leave
ret
Function at 0x4065c5
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 5
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, edi
jne 0x40661a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x406610
xor ecx, ecx
cmp eax, 0x429
setne cl
lea eax, [ecx + 0xfe]
jmp 0x406705
mov eax, 0xfd
jmp 0x406705
push 4
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
cmp eax, edi
jne 0x406682
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
sub eax, 5
je 0x406678
dec eax
je 0x40666e
sub eax, 0x75
je 0x406664
sub eax, 0x3a9
je 0x40665a
mov eax, 0xef
jmp 0x406705
mov eax, 0xee
jmp 0x406705
mov eax, 0xed
jmp 0x406705
mov eax, 0xec
jmp 0x406705
mov eax, 0xeb
jmp 0x406705
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x3e8
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 0xcf
cmp esi, edi
jbe 0x4066f0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
pop ebx
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x406714
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
jbe 0x40672b
cmp eax, 0x41c
je 0x40671a
cmp eax, 0x424
jbe 0x4066e9
cmp eax, 0x426
jbe 0x40671a
mov dword [ebp - 0x24], 0xde
cmp eax, 0x45b
je 0x4066f0
mov dword [ebp - 0x24], 0xdf
push dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x24]
call esi
push dword [ebp - 0x34]
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b774
leave
ret
cmp dword [ebp - 0x24], 1
je 0x4066f0
add dword [ebp - 0x2c], ebx
push ebx
call edi
cmp dword [ebp - 0x2c], esi
jb 0x4066a2
jmp 0x4066f0
je 0x406763
sub eax, 5
je 0x40675a
dec eax
je 0x406751
sub eax, 0x51
je 0x406748
sub eax, 0x23
jne 0x4066e9
mov dword [ebp - 0x24], 0xdb
jmp 0x4066f0
mov dword [ebp - 0x24], 0xdc
jmp 0x4066f0
mov dword [ebp - 0x24], 0xd9
jmp 0x4066f0
mov dword [ebp - 0x24], 0xda
jmp 0x4066f0
mov dword [ebp - 0x24], 0xdd
jmp 0x4066f0