joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e290
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov esi, eax
xor al, al
xor ecx, ecx
mov byte [ebp - 1], al
cmp edi, ecx
je 0x40e369
cmp ebx, ecx
je 0x40e369
push 0xf0000020
push 1
push ecx
push ecx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40e366
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40e35a
mov eax, dword [ebp - 8]
push 0
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40e350
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push 4
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 4
call edi
test eax, eax
je 0x40e350
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40e350
call fcn.00406af0
mov eax, dword [esi]
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push 2
push edx
call edi
test eax, eax
je 0x40e350
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0x10]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f7e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor bl, bl
cmp dword [eax + 0x14], 8
push esi
mov byte [ebp - 1], bl
jb 0x40f7f5
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x40f8b6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
test eax, eax
je 0x40f8a6
cmp eax, 0xffffffff
push edi
sbb edi, edi
neg edi
dec edi
cmp eax, 0xffffffff
jb 0x40f843
or ebx, 0xffffffff
jmp 0x40f845
mov ebx, eax
test edi, edi
je 0x40f867
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40f85c
mov edi, eax
mov eax, dword [ebp - 0x10]
sub eax, edi
cmp ebx, eax
jbe 0x40f867
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, ebx
call fcn.00406af0
mov eax, dword [esi]
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
je 0x40f8a3
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40f8a3
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
cmp ecx, eax
je 0x40f89f
call fcn.00406af0
mov byte [ebp - 1], 1
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f9f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 4]
sub esi, ebx
cmp dword [ecx + 0x14], 8
push edi
jb 0x40fa06
mov ecx, dword [ecx]
push 0
push 0x80
push 2
push 0
push 2
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40fa66
push 0
lea eax, [ebp - 4]
push eax
push esi
push ebx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40fa54
cmp esi, dword [ebp - 4]
jne 0x40fa54
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ff70
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bde8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x44a1b0]
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 edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, edi
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2c0], edx
mov dword [ebp - 0x2b8], eax
xor ebx, ebx
call fcn.004156d0
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x40ffd8
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x2b4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2bc], eax
cmp eax, 0xffffffff
je 0x41016a
jmp 0x410006
mov edi, dword [ebp - 0x2c4]
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x288]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410020
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x288]
lea esi, [ebp - 0x2c]
call fcn.00406270
lea ecx, [ebp - 0x48]
push ecx
mov edx, esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004156d0
add esp, 4
mov byte [ebp - 4], 2
test byte [ebp - 0x2b4], 0x10
jne 0x410072
mov edi, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x48]
call fcn.00408cb0
jmp 0x41010b
mov eax, dword [ebp - 0x1c]
mov esi, eax
cmp eax, 1
jb 0x410081
mov esi, 1
cmp dword [ebp - 0x18], 8
mov edx, dword [ebp - 0x2c]
jae 0x41008d
lea edx, [ebp - 0x2c]
mov ecx, 0x444758
cmp esi, ebx
jbe 0x4100b3
mov di, word [edx]
cmp di, word [ecx]
jne 0x4100a9
add edx, 2
add ecx, 2
dec esi
jne 0x410096
jmp 0x4100b3
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
cmp ecx, ebx
jne 0x4100c7
cmp eax, 1
jae 0x4100bd
or ecx, 0xffffffff
jmp 0x4100c5
xor ecx, ecx
cmp eax, 1
setne cl
cmp ecx, ebx
sete cl
cmp cl, bl
sete cl
cmp cl, bl
je 0x41010b
push 0x44475c
mov edi, 2
lea ecx, [ebp - 0x2c]
call fcn.00404700
test eax, eax
je 0x41010b
mov eax, dword [ebp + 0x14]
cmp al, bl
je 0x41010b
mov ecx, dword [ebp - 0x2c0]
push eax
mov eax, dword [ebp - 0x2b8]
push eax
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.0040ff70
add esp, 0x10
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x410121
mov eax, dword [ebp - 0x48]
push eax
call fcn.0041e13f
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], bl
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x410145
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041e13f
add esp, 4
mov esi, dword [ebp - 0x2bc]
lea eax, [ebp - 0x2b4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410000
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp dword [ebp - 0x50], 8
jb 0x41017c
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0041e13f
add esp, 4
mov al, bl
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.0041e14a
mov esp, ebp
pop ebp
ret
Function at 0x410310
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [ebx]
xor cl, cl
test eax, eax
je 0x410374
push edi
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp eax, edi
jae 0x410342
mov eax, edi
call fcn.00406af0
mov eax, dword [esi]
mov ecx, dword [ebx]
push 0
lea edx, [ebp - 4]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
je 0x41036d
mov eax, dword [ebp - 4]
test eax, eax
je 0x410366
call fcn.00406af0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, cl
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4118b0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ab25
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44a1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [edi + 0x14]
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov dword [ebp - 4], ebx
push 0x48
mov dword [edi + 0x38], ebx
call fcn.0041e4ed
add esp, 4
cmp eax, ebx
je 0x4119c5
mov dword [edi + 0x34], eax
mov dword [eax], eax
mov eax, dword [edi + 0x34]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x34]
mov dword [eax + 8], eax
mov ecx, dword [edi + 0x34]
mov bl, 1
mov byte [ecx + 0x44], bl
mov edx, dword [edi + 0x34]
mov byte [edx + 0x45], bl
mov byte [ebp - 4], bl
push 0x30
mov dword [edi + 0x48], 0
call fcn.0041e4ed
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4119a1
mov dword [edi + 0x44], eax
mov dword [eax], eax
mov eax, dword [edi + 0x44]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x44]
mov dword [eax + 8], eax
mov eax, dword [edi + 0x44]
mov byte [eax + 0x2c], bl
mov edx, dword [edi + 0x44]
mov byte [edx + 0x2d], bl
mov byte [ebp - 4], 2
mov eax, 0x7530
mov dword [edi], eax
mov dword [edi + 8], eax
mov dword [edi + 4], eax
push 0x3f
mov eax, 0x444790
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], 0xa
call fcn.00406270
mov dword [edi + 0x54], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0041e1f2
push 0x44604c
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.0041f547
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.0041e1f2
push 0x44604c
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.0041f547
int3
Function at 0x4127f0
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b998
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x44a1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
xor ecx, ecx
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
lea edx, [ebp - 0x2c]
push edx
mov edx, edi
mov dword [ebp - 4], eax
call fcn.00412260
xor eax, eax
mov dword [edi + 0x10], eax
cmp dword [ebp - 0x1c], eax
jne 0x41284e
mov dword [ebp - 0x34], eax
jmp 0x412862
cmp dword [ebp - 0x18], 8
jb 0x41285c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
jmp 0x412862
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, ecx
sub eax, dword [esi + 4]
push 0
neg eax
sbb eax, eax
sub edx, ecx
push edx
push edx
mov edx, dword [ebp - 0x1c]
and eax, ecx
push eax
mov eax, dword [ebp - 0x34]
push edx
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4128c9
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4128c9
push 0
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 0x20000013
push ebx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x10], eax
mov bl, 1
jmp 0x4128cc
mov bl, byte [ebp - 0x2d]
cmp dword [ebp - 0x18], 8
jb 0x4128de
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041e13f
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e14a
mov esp, ebp
pop ebp
ret
Function at 0x412e50
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b1c9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x44a1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x38], ebx
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov word [edi], cx
mov ecx, dword [ebp + 0xc]
push ebx
lea edx, [ebp - 0x30]
push edx
push ebx
push ebx
push ecx
mov dword [ebp - 4], ebx
mov esi, 1
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x412f52
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x30]
shr eax, 1
add eax, 2
lea esi, [ebp - 0x4c]
call fcn.00413690
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
push ebx
lea edx, [ebp - 0x30]
push edx
push esi
push ebx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, ebx
je 0x412f45
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
push eax
xor edx, edx
push ecx
mov word [ebp - 0x2c], dx
push esi
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00414cb0
push ebx
lea eax, [ebp - 0x2c]
push eax
or eax, 0xffffffff
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00405de0
cmp dword [ebp - 0x18], 8
jb 0x412f45
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041e13f
add esp, 4
cmp esi, ebx
je 0x412f52
push esi
call fcn.0041e13f
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e14a
mov esp, ebp
pop ebp
ret 8

Function at 0x415bb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43af62
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x44a1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x220], esi
mov word [esi], ax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
mov dword [ebp - 4], eax
push edx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], cx
call fcn.004212f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x415c6b
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x415c50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415c50
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.00406270
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e14a
mov esp, ebp
pop ebp
ret
Function at 0x416800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, ecx
xor edx, edx
xor cl, cl
cmp eax, edx
je 0x41688b
cmp dword [ebx + 0x14], 8
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
jb 0x416829
mov ecx, dword [ebx]
jmp 0x41682b
mov ecx, ebx
push edi
lea edi, [ebp - 4]
push edi
push edx
lea edi, [ebp - 8]
push edi
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416895
mov edi, dword [ebp - 4]
mov eax, edi
call fcn.00406af0
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
test eax, eax
je 0x416895
cmp dword [ebx + 0x14], 8
mov dword [ebp + 8], edi
mov dword [ebp - 8], 0
jb 0x416869
mov ebx, dword [ebx]
lea edx, [ebp + 8]
push edx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416895
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4168a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aa68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44a1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
xor cl, cl
cmp eax, edx
je 0x416975
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
jb 0x4168eb
mov ecx, dword [ebx]
jmp 0x4168ed
mov ecx, ebx
lea esi, [ebp - 0x10]
push esi
push edx
lea esi, [ebp - 0x14]
push esi
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41698b
cmp dword [ebp - 0x14], 1
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x10], edi
jne 0x41698b
lea esi, [ebp - 0x24]
call fcn.00417030
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
sub ecx, edi
je 0x416950
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test edi, edi
je 0x416950
push edi
push eax
lea esi, [ebp - 0x10]
mov eax, ebx
call fcn.00416b90
test al, al
je 0x416950
mov eax, dword [ebp + 0xc]
push eax
mov eax, edi
call fcn.00406380
mov bl, 1
test edi, edi
je 0x41695f
push edi
call fcn.0041e13f
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
jb 0x416ba9
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ebx
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416bd3
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4170f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ae62
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x44a1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x814], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x818], esi
mov word [esi], ax
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x80e]
mov dword [ebp - 4], eax
push edx
mov dword [ebp - 0x814], 1
mov word [ebp - 0x810], cx
call fcn.004212f0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push 0x8000
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4171ac
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417191
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
call fcn.00406270
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e14a
mov esp, ebp
pop ebp
ret
Function at 0x417390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bce0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x44a1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
xor al, al
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
je 0x4174a2
cmp dword [ebx + 0x10], 0
je 0x4174a2
cmp dword [edi + 0x14], 8
jb 0x4173ec
mov eax, dword [edi]
jmp 0x4173ee
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4174a0
test al, 0x10
je 0x4174a0
lea eax, [ebp - 0x2c]
push eax
mov edx, ebx
mov ecx, edi
call fcn.004156d0
add esp, 4
push 4
push str..lnk
lea ecx, [ebp - 0x2c]
push ecx
xor eax, eax
mov dword [ebp - 4], 0
call fcn.00403350
cmp eax, 0xffffffff
jne 0x417443
push 4
mov eax, str..lnk
lea ecx, [ebp - 0x2c]
call fcn.0040edb0
mov eax, 0x444660
lea ecx, [ebp - 0x48]
call fcn.00405c70
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x48]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x50]
push esi
mov byte [ebp - 4], 1
call fcn.004171d0
mov esi, 8
add esp, 0x14
mov bl, al
cmp dword [ebp - 0x34], esi
jb 0x41748b
mov eax, dword [ebp - 0x48]
push eax
call fcn.0041e13f
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x41749c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041e13f
add esp, 4
mov al, bl
jmp 0x4174a2
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e14a
mov esp, ebp
pop ebp
ret
Function at 0x417f30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a9d3
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x44a1b0]
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
xor esi, esi
push esi
push 2
mov edi, ecx
mov byte [ebp - 0x265], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x418078
push 0x22c
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.004212f0
add esp, 0xc
lea ecx, [ebp - 0x264]
push ecx
push ebx
mov dword [ebp - 0x264], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
setne al
test al, al
je 0x418071
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417ff7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x240]
lea esi, [ebp - 0x2c]
call fcn.00406270
lea ecx, [ebp - 0x38]
call fcn.00418570
push 0x22c
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.004212f0
add esp, 0xc
lea ecx, [ebp - 0x264]
push ecx
push ebx
mov dword [ebp - 0x264], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
jne 0x417fd3
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x265], 1
jb 0x418071
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041e13f
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x265]
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.0041e14a
mov esp, ebp
pop ebp
ret