joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453420
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x471078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esi], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push 0x1f
push str.SoftwareAVAST_SoftwareBrowser
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.0040b5e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push ecx
cmovae edx, dword [ebp - 0x28]
push eax
push ecx
call fcn.004183c0
add esp, 0xc
test al, al
je 0x406138
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406138
test al, 0x10
je 0x406138
mov dword [esi], 2
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [esi], ebx
sete bl
cmp eax, 8
jb 0x406154
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040ca80
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x40617d
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.0040ca80
mov eax, ebx
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.0041e04a
mov esp, ebp
pop ebp
ret
Function at 0x4061a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x471078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
test esi, esi
je 0x4061bc
mov dword [esi], edi
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00438180
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 0x3c], 0x808440
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x34], 8
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x46603c
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x406247
test esi, esi
je 0x40623c
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40623c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40624f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x406264
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0040ca80
xor eax, eax
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
cmp eax, 8
jb 0x40628d
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.0040ca80
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041e04a
mov esp, ebp
pop ebp
ret
Function at 0x40c150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453998
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x471078]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40c2ab
cmp byte [ebx + 0x3e], 0
je 0x40c2ab
mov eax, dword [ebx]
push 0xffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4572d8]
mov ecx, ebx
call esi
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x40c1c0
xor al, al
jmp 0x40c2ad
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040bb20
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
nop dword [eax + eax]
cmp edi, 0x10
lea eax, [ebp - 0x2c]
mov edi, dword [ebx + 0x38]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov esi, dword [edi]
add eax, ecx
push eax
push edx
lea eax, [ebx + 0x40]
mov esi, dword [esi + 0x20]
mov ecx, esi
push eax
call dword [0x4572d8]
mov ecx, edi
call esi
sub eax, 0
je 0x40c23a
sub eax, 1
je 0x40c23e
mov edi, dword [ebp - 0x14]
sub eax, 2
je 0x40c291
xor bl, bl
jmp 0x40c293
mov byte [ebx + 0x3e], 0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x40c273
push dword [ebx + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.0043bbfc
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x40c236
cmp byte [ebx + 0x3e], 0
je 0x40c291
test esi, esi
jne 0x40c1f0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040bd00
jmp 0x40c1e5
mov bl, 1
cmp edi, 0x10
jb 0x40c2a7
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040cae0
mov al, bl
jmp 0x40c2ad
mov al, 1
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.0041e04a
mov esp, ebp
pop ebp
ret
Function at 0x40d640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452d76
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x471078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041e25f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041b9c6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4123e0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454188
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x471078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push esi
push 0x80
push 2
push esi
push 5
mov dword [ebp - 0x1c], ecx
mov ecx, eax
push 4
mov dword [ebp - 0x18], eax
call fcn.004096e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], esi
cmp eax, 0xffffffff
jne 0x41244e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x412584
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], 0xffffffff
push eax
mov ecx, edi
call fcn.00411cc0
mov byte [ebp - 4], 1
movzx ecx, word [edi + 0x30]
push ecx
push eax
mov ecx, ebx
call fcn.00411ce0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x412491
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.0040ca80
push 3
xor eax, eax
mov dword [ebp - 0x24], 7
push 0x466a34
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
call fcn.0040b5e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
push dword [ebp - 0x18]
mov ecx, ebx
sub esp, 0xc
push dword [ebp - 0x1c]
push eax
push edi
call fcn.00411de0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x4124e6
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.0040ca80
push 0xffffffffffffffff
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x41251c
push str.WaitForSingleObject_has_failed_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0041b5b0
add esp, 0xc
lea eax, [ebp - 0x34]
push 0x46edb0
push eax
call fcn.00438104
mov eax, dword [ebx + 0x40]
xor edi, edi
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x412555
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x20000013
push dword [ebx + 0x20]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x412557
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
test edi, edi
cmove esi, dword [ebp - 0x18]
test esi, esi
je 0x412441
push 0xffffffffffffffff
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x4124f6
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
cmove eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e04a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454431
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x471078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
lea eax, [esi + 0x58]
mov dword [esi + 0x54], 0x10000
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4145e8
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push ecx
push ecx
push ecx
mov byte [ebp - 4], 0xb
push ecx
mov dword [esi + 0x70], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41460e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], edi
test edi, edi
jne 0x41463b
push str.Unable_to_create_a_synchronization_event_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041b5b0
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x46edb0
push eax
call fcn.00438104
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x414659
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], edi
test edi, edi
je 0x414615
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41467e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], edi
test edi, edi
je 0x414615
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4146a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], edi
test edi, edi
je 0x414615
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4146cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], edi
test edi, edi
je 0x414615
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
Function at 0x4146f0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
cmp dword [eax + 0x10], 0
je 0x41471c
cmp dword [eax + 0x14], 8
jb 0x414707
mov eax, dword [eax]
push 0x10000000
push 0xffffffffffffffff
push eax
push dword [ecx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x414722
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_add_headers_to_the_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041b5b0
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x46edb0
push eax
call fcn.00438104
int3
Function at 0x415fb0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov bh, 1
mov esi, edx
push edi
mov edi, ecx
mov bl, bh
nop dword [eax + eax]
test bl, bl
je 0x415fef
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415fec
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
xor bl, 1
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x416027
add bh, 0xff
je 0x416021
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov ecx, 0xc8
mov eax, 0x14
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x415fc0
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416048
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x416050
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov bh, 1
mov esi, edx
push edi
mov edi, ecx
mov bl, bh
nop dword [eax + eax]
test bl, bl
je 0x41608f
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41608c
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
xor bl, 1
push 0xb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4160c7
add bh, 0xff
je 0x4160c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov ecx, 0xc8
mov eax, 0x14
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416060
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4160e8
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x4160f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov bl, 1
nop word [eax + eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416142
test al, 0x10
jne 0x416142
test bl, bl
je 0x416142
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41613a
add bl, 0xff
je 0x416100
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416100
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416de0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453886
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x471078]
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, ecx
lea ecx, [edi + 0x30]
call fcn.00416b40
push dword [edi + 0x30]
call fcn.0041e517
add esp, 4
lea ecx, [edi + 0x28]
call fcn.00416b40
push dword [edi + 0x28]
call fcn.0041e517
add esp, 4
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [ebp - 4], 0
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x416e64
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x416e64
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4572d8]
mov ecx, ebx
call esi
push 0x38
push edi
call fcn.0041e51c
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.0041e04a
mov esp, ebp
pop ebp
ret 4

Function at 0x417e50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x46c3b8
push 0x439af0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x471078]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 1
call fcn.0041e328
add esp, 4
test al, al
jne 0x417e9b
push 7
call fcn.0041e56c
xor bl, bl
mov byte [ebp - 0x1d], bl
mov dword [ebp - 4], 0
call fcn.0041e2f3
mov byte [ebp - 0x28], al
mov eax, dword [0x473fac]
cmp eax, 1
jne 0x417ec0
push 7
call fcn.0041e56c
test eax, eax
jne 0x417f13
mov dword [0x473fac], 1
push 0x4573b0
push 0x457390
call fcn.00440abf
add esp, 8
test eax, eax
je 0x417ef5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x417ff6
push 0x45738c
push 0x4572dc
call fcn.00440a63
add esp, 8
mov dword [0x473fac], 2
jmp 0x417f18
mov bl, 1
mov byte [ebp - 0x1d], bl
push dword [ebp - 0x28]
call fcn.0041e482
add esp, 4
call fcn.0041e7bb
mov esi, eax
cmp dword [esi], 0
je 0x417f4e
push esi
call fcn.0041e3f8
add esp, 4
test al, al
je 0x417f4e
push 0
push 2
push 0
mov esi, dword [esi]
mov ecx, esi
call dword [0x4572d8]
call esi
call fcn.0041e7c1
mov esi, eax
cmp dword [esi], 0
je 0x417f71
push esi
call fcn.0041e3f8
add esp, 4
test al, al
je 0x417f71
push dword [esi]
call fcn.00440d1e
add esp, 4
call fcn.0041e687
push ecx
call fcn.0043f607
push eax
call fcn.00408600
mov esi, eax
call fcn.00418180
call fcn.0041e6ba
test al, al
jne 0x417f98
push esi
call fcn.00440d56
test bl, bl
jne 0x417fa1
call fcn.00440cf9
push 0
push 1
call fcn.0041e49f
add esp, 8
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x417ff6
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041e04a
mov esp, ebp
pop ebp
ret
Function at 0x4182f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x471078]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
test edx, edx
je 0x418390
cmp word [edx], 0
je 0x418390
lea eax, [ebp - 0xc]
push eax
push 0x201
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x418379
mov dword [ebp - 8], eax
nop word [eax + eax]
push eax
mov ecx, edi
call fcn.00410fe0
lea eax, [ebp - 8]
push eax
push dword [edi]
push ebx
push 0
push str.ProgramFolder
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [edi], 0
mov esi, eax
mov eax, dword [ebp - 8]
jne 0x418371
test eax, eax
je 0x418371
test esi, esi
je 0x418340
cmp esi, 0xea
je 0x418340
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x418395
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], 0
jmp 0x418395
mov esi, 0x57
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0041e04a
mov esp, ebp
pop ebp
ret
Function at 0x421adc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x444cc6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00444989

Function at 0x444cd1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00444b0a
Function at 0x4030e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4030f7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40310b
pop esi
pop edi
xor eax, eax
pop ebp
ret
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40312e
lea ebx, [ebx]
cmp esi, eax
jae 0x403105
dec edi
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403120
cmp esi, eax
jae 0x403105
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403200
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
push edi
lea ebp, [esi + 0x34]
push ebp
mov dword [esp + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x30]
test al, al
je 0x403236
test ebx, ebx
jbe 0x403268
mov edi, dword [esp + 0x14]
mov eax, 1
mov ecx, ebx
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ecx
ret 8
mov eax, dword [esi + 0x2c]
mov edi, dword [esp + 0x10]
xor ecx, ecx
xor eax, edi
test ebx, ebx
jbe 0x403268
mov edi, dword [esi + 0x24]
mov ebp, dword [esi + 0x1c]
mov edx, eax
shr edx, 3
mov edx, dword [edi + edx*4]
xor edx, dword [ebp + eax*4]
mov edi, dword [esp + 0x14]
mov dword [edi + ecx*4], edx
inc ecx
inc eax
cmp ecx, ebx
jb 0x403245
mov ebp, dword [esp + 8]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ecx
ret 8