joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065d0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push 1
push 0x250
call fcn.00411730
mov ebx, eax
push 2
push 0x104
mov dword [ebp - 4], ebx
call fcn.00411730
add esp, 0x10
mov edi, eax
test ebx, ebx
je 0x4067b3
test edi, edi
je 0x4067b3
push esi
mov esi, dword [ebp + 8]
mov ebx, edi
sub ebx, esi
mov ecx, esi
mov dword [ebp - 0x10], ebx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x406620
push edi
call fcn.00405db0
mov ecx, edi
add esp, 4
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406640
sub ecx, edx
sar ecx, 1
lea eax, [edi + ecx*2]
mov dword [ebp - 0xc], eax
lea ecx, [edi - 2]
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406660
mov eax, dword [0x442228]
push dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [0x44222c]
push edi
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406770
mov esi, dword [ebp - 4]
lea ebx, [esi + 0x2c]
nop word [eax + eax]
mov ecx, 0x442230
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4066cd
test dx, dx
je 0x4066c9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4066cd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4066a7
xor eax, eax
jmp 0x4066d2
sbb eax, eax
or eax, 1
test eax, eax
je 0x406745
mov ecx, 0x442234
mov eax, ebx
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406706
test dx, dx
je 0x406702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406706
add eax, 4
add ecx, 4
test dx, dx
jne 0x4066e0
xor eax, eax
jmp 0x40670b
sbb eax, eax
or eax, 1
test eax, eax
je 0x406745
mov edx, dword [ebp - 0xc]
mov ecx, ebx
sub edx, ebx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x406720
test byte [esi], 0x10
push edi
je 0x40673d
call fcn.004065d0
jmp 0x406742
call fcn.00411740
add esp, 4
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4066a0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ebx + esi - 2], ax
test ax, ax
jne 0x406770
mov ecx, edi
pop esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406786
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jle 0x4067a9
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x4067a9
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [ebp - 4]
push edi
call fcn.0041173b
push ebx
call fcn.0041173b
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411b2d
Capabilities:
Get common file path
Set current directory

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

Function at 0x42a402
Capabilities:
Create thread
Print debug messages

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

Function at 0x42c696
Capabilities:
Set environment variable

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

Function at 0x42c6a1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042c0ab
Function at 0x401d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e592a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x75aa5c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
xor ebp, ebp
push 4
mov dword [esi], ebp
lea edi, [esi + 4]
call fcn.005a7c1e
add esp, 4
cmp eax, ebp
je 0x401d56
mov dword [eax], edi
jmp 0x401d58
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
lea edi, [esi + 0x1c]
mov dword [esp + 0x28], 1
mov dword [edi + 0x14], ebp
mov eax, 7
mov dword [edi + 0x18], eax
xor ecx, ecx
mov word [edi + 4], cx
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], ebp
xor edx, edx
mov word [edi + 0x20], dx
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], ebp
mov word [edi + 0x3c], cx
mov dword [edi + 0x6c], eax
mov dword [edi + 0x68], ebp
mov word [edi + 0x58], dx
push 4
mov byte [esp + 0x2c], 2
lea ebx, [esi + 0x8c]
call fcn.005a7c1e
add esp, 4
cmp eax, ebp
je 0x401dbc
mov dword [eax], ebx
jmp 0x401dbe
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], ebp
xor eax, eax
mov dword [esi + 0xbc], 7
mov dword [esi + 0xb8], ebp
mov word [esi + 0xa8], ax
push 0x40
lea ecx, [esi + 0xc4]
push ebp
mov byte [esp + 0x30], 5
push ecx
mov dword [esi + 0xc0], vtable.CServiceInfo.0
call fcn.005a7100
push 0x80
lea edx, [esi + 0x144]
push ebp
push edx
call fcn.005a7100
push 0x100
lea eax, [esi + 0x24a]
push ebp
push eax
call fcn.005a7100
add esp, 0x24
lea eax, [esi + 0x44c]
xor ecx, ecx
push eax
mov word [esi + 0x248], cx
mov dword [esi + 0x244], ebp
call fcn.00406d30
lea eax, [esi + 0x46c]
push eax
mov byte [esp + 0x2c], 6
call fcn.004070c0
lea ecx, [esi + 0x48c]
mov byte [esp + 0x28], 7
call fcn.0048a080
lea ecx, [esi + 0x5c8]
mov byte [esp + 0x28], 8
call fcn.0048e060
lea eax, [esi + 0x1068]
push eax
mov dword [esi + 0x1060], 0x927c0
mov dword [esi + 0x1064], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebp
mov byte [esp + 0x2c], 0xa
push 0x71fb50
mov ecx, edi
mov dword [esi + 0x1080], ebp
mov dword [esi + 0x1084], ebp
call fcn.00407bb0
push 5
push 0x71fb54
lea ecx, [esi + 0x38]
call fcn.00407bb0
push ebp
push 0x71fb50
lea ecx, [esi + 0x54]
call fcn.00407bb0
push ebp
push 0x71fb50
lea ecx, [esi + 0x70]
call fcn.00407bb0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x402e80
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1084], eax
test eax, eax
je 0x402ecd
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x403ea0
push 0
push 0
call fcn.005aa391
add esp, 0x18
mov dword [esi + 0x1080], eax
test eax, eax
jne 0x402ecd
mov eax, 1
mov dword [esi + 0x1064], eax
pop esi
pop ecx
ret
mov al, 1
pop esi
pop ecx
ret

Function at 0x403ec0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0
jae 0x403ed7
lea eax, [esp + 0xc]
push 0x7203bc
push eax
lea eax, [esp + 8]
push eax
call fcn.005b1600
mov eax, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x403f0d
cmp dword [esp + 0x20], 8
jb 0x403f06
mov ecx, dword [esp + 0xc]
push ecx
call fcn.005a6a8e
add esp, 4
or eax, 0xffffffff
pop ecx
ret 0x20
mov edx, dword [esp + 0x24]
push eax
push edx
push 1
push esi
call fcn.005ab8a9
mov eax, dword [esp + 0x10]
push eax
call fcn.005ab232
add esp, 0x14
cmp dword [esp + 0x20], 8
jb 0x403f3c
mov ecx, dword [esp + 0xc]
push ecx
call fcn.005a6a8e
add esp, 4
xor eax, eax
pop ecx
ret 0x20

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

Disassembly:
push 0xffffffffffffffff
push 0x6e5b08
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x75aa5c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x34]
mov esi, 8
cmp dword [esp + 0x48], esi
jae 0x403f98
lea eax, [esp + 0x34]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403fd1
cmp dword [esp + 0x48], esi
jb 0x403fc9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.005a6a8e
add esp, 4
or eax, 0xffffffff
jmp 0x404085
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jbe 0x40406d
cmp edi, 0xffffffff
je 0x40406d
lea edx, [edi + 1]
push edx
call fcn.005a4688
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x40400e
lea ecx, [esp + 0x30]
call fcn.00405410
mov eax, 0xfffffffd
jmp 0x404085
push ebx
lea eax, [esp + 0x18]
push eax
push edi
push esi
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [esp + 0x18], edi
je 0x404047
call fcn.005a7656
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00405410
mov eax, 0xfffffffc
jmp 0x404085
mov byte [esi + edi], bl
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
call fcn.00404670
push esi
call fcn.005a7656
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00405410
xor eax, eax
jmp 0x404085
cmp dword [esp + 0x48], esi
jb 0x404080
mov ecx, dword [esp + 0x34]
push ecx
call fcn.005a6a8e
add esp, 4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x20
Function at 0x404a60
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x6e5748
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x75aa5c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi]
push str.COUNTRY
lea eax, [esp + 0x18]
push eax
call fcn.00487400
mov ebp, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x404ad1
mov esi, eax
mov eax, dword [eax + 4]
test eax, eax
je 0x404ac8
push eax
call fcn.005a6a8e
add esp, 4
push esi
call fcn.005a6a8e
add esp, 4
test ebp, ebp
je 0x404b02
mov ecx, ebp
call fcn.00487630
test eax, eax
je 0x404b02
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404ae5
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x38]
push eax
add ecx, 0x1c
call fcn.00407bb0
mov ecx, dword [edi]
push 0x7204d0
lea edx, [esp + 0x1c]
push edx
call fcn.00487400
mov ebx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x14], ebx
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404b47
mov esi, eax
mov eax, dword [eax + 4]
test eax, eax
je 0x404b3e
push eax
call fcn.005a6a8e
add esp, 4
push esi
call fcn.005a6a8e
add esp, 4
test ebx, ebx
je 0x404b7d
mov ecx, ebx
call fcn.00487630
test eax, eax
je 0x404b7d
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x404b60
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404b60
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x38]
push eax
add ecx, 0x54
call fcn.00407bb0
mov ecx, dword [edi]
push 0x7204d4
lea eax, [esp + 0x20]
push eax
call fcn.00487400
mov esi, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x18], esi
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404bc2
mov edi, eax
mov eax, dword [eax + 4]
test eax, eax
je 0x404bb9
push eax
call fcn.005a6a8e
add esp, 4
push edi
call fcn.005a6a8e
add esp, 4
test esi, esi
je 0x404c0c
mov ecx, esi
call fcn.00487630
test eax, eax
je 0x404bf3
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404bd6
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x38]
push eax
add ecx, 0x70
call fcn.00407bb0
mov eax, dword [esi + 4]
test eax, eax
je 0x404c03
push eax
call fcn.005a6a8e
add esp, 4
push esi
call fcn.005a6a8e
add esp, 4
test ebx, ebx
je 0x404c29
mov eax, dword [ebx + 4]
test eax, eax
je 0x404c20
push eax
call fcn.005a6a8e
add esp, 4
push ebx
call fcn.005a6a8e
add esp, 4
test ebp, ebp
je 0x404c46
mov eax, dword [ebp + 4]
test eax, eax
je 0x404c3d
push eax
call fcn.005a6a8e
add esp, 4
push ebp
call fcn.005a6a8e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x40b210
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x6e5498
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x75aa5c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00406470
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b270
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0040bba0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00406470
cmp dword [esp + 0x28], 8
jb 0x40b2bd
mov eax, dword [esp + 0x14]
push eax
call fcn.005a6a8e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x42c7c0
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x75f10c], 0
jne 0x42c823
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x75f110], eax
push 0x75f108
push 0
push 0
push 0x42c8d0
push 0
push 0
call fcn.005aa391
add esp, 0x18
mov dword [0x75f10c], eax
push 0x1388
mov eax, dword [0x75f110]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42c821
push str.Error_starting_SplashThread_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x42c836
push 0
push 2
push 6
mov ecx, dword [0x75f108]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
pop ebp
ret
Function at 0x42cde0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [0x75f10c], 0
je 0x42ce46
push 0
push 0
push 0x12
mov eax, dword [0x75f108]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x2328
mov ecx, dword [0x75f10c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42ce2d
push 0x8ae
mov edx, dword [0x75f10c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x75f10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x75f110]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x75f10c], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x24], 0
je 0x42ce71
push 0x90000
push 0xfa
mov eax, dword [0x75f114]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
call edx
mov eax, dword [0x75f114]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x75f114], 0
mov esp, ebp
pop ebp
ret

Function at 0x42d180
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x75f11c], 0
jne 0x42d18e
jmp 0x42d1a6
mov dword [0x75f118], 1
push 0
mov eax, dword [0x75f114]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret

Function at 0x430ce0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
jne 0x430cf3
xor eax, eax
jmp 0x430d3d
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x104
jne 0x430d3b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x73
jne 0x430d3b
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov word [ebp - 4], ax
movsx edx, word [ebp - 4]
test edx, edx
jge 0x430d3b
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x430d3b
push 0
push 0
push 2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x433ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c521e
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x75aa5c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 1
test eax, eax
je 0x434069
lea ecx, [ebp - 0x238]
call fcn.00405380
mov dword [ebp - 4], 0
call fcn.004d88c0
add eax, 0xb8
mov ecx, eax
call fcn.00405490
push eax
call fcn.004d88c0
add eax, 0x9c
mov ecx, eax
call fcn.00405490
push eax
push 0x6f0e78
lea ecx, [ebp - 0x238]
push ecx
call fcn.0042f540
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x238]
call fcn.00405490
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x433fa6
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00405410
jmp 0x434069
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.005a7100
add esp, 0xc
mov dword [ebp - 0x23c], 0x208
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push str.install
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x434008
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00405410
jmp 0x434069
lea edx, [ebp - 0x21c]
push edx
push 0x758a94
call fcn.005a741b
add esp, 8
test eax, eax
jne 0x43402c
push 0
call fcn.0050d7b0
add esp, 4
jmp 0x434036
push 1
call fcn.0050d7b0
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00405410
mov eax, dword [ebp - 0x240]
jmp 0x434085
cmp dword [ebp - 0x10], 0
je 0x434079
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
call fcn.0050d7b0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a6f18
mov esp, ebp
pop ebp
ret
Function at 0x439bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c5978
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x75aa5c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x3c], 0
je 0x439bf0
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x42]
test edx, edx
jne 0x439bfc
mov al, 1
jmp 0x439da4
mov dword [ebp - 0x10], 8
call fcn.00437a60
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
call eax
mov word [ebp - 0x3a], ax
call fcn.00437a60
mov word [ebp - 0x3c], ax
lea ecx, [ebp - 0x3a]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00437b30
add esp, 8
movzx eax, al
test eax, eax
je 0x439c44
xor al, al
jmp 0x439da4
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00439160
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.00439220
mov ecx, eax
call fcn.00439f30
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00405370
add esi, eax
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00439220
mov ecx, eax
call fcn.00439f30
push eax
mov ecx, dword [ebp - 0x64]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x64]
mov ecx, dword [edx + 0x3c]
call fcn.00439dc0
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x439cbf
cmp dword [ebp - 0x68], 1
je 0x439cc6
cmp dword [ebp - 0x68], 3
je 0x439d60
jmp 0x439d78
mov eax, dword [ebp - 0x64]
mov byte [eax + 0x42], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00439220
mov ecx, eax
call fcn.00439f30
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x439d29
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00439220
mov ecx, eax
call fcn.00439f30
push eax
call fcn.005ab8a9
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x439d29
mov byte [ebp - 0x5d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405300
mov al, byte [ebp - 0x5d]
jmp 0x439da4
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x42]
test edx, edx
jne 0x439d4c
mov byte [ebp - 0x5e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405300
mov al, byte [ebp - 0x5e]
jmp 0x439da4
cmp dword [ebp - 0x38], 0
jne 0x439d5e
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004391a0
jmp 0x439d90
mov byte [ebp - 0x5f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405300
mov al, byte [ebp - 0x5f]
jmp 0x439da4
mov byte [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405300
mov al, byte [ebp - 0x60]
jmp 0x439da4
jmp 0x439c57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005a6f18
mov esp, ebp
pop ebp
ret
Function at 0x43e9d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x75aa5c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.0043e790
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0043e970
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43ea3b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0043e7c0
mov eax, dword [ebp - 0x224]
jmp 0x43eacc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x43eaa1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0043e9d0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43ea98
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0043e7c0
mov eax, dword [ebp - 0x228]
jmp 0x43eacc
mov dword [ebp - 4], 0x100
jmp 0x43ea42
lea ecx, [ebp - 0x14]
call fcn.0043e8b0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0043e850
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0043e7c0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005a6f18
mov esp, ebp
pop ebp
ret 4
Function at 0x43f0c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x43f0c9
xor ecx, ecx
jne 0x43f0c9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x43f0ea
mov eax, 0xd
jmp 0x43f145
xor eax, eax
jne 0x43f0d1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x43f0fb
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8