joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4032b9
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x40a6c0]
mov esi, dword [0x40a6c4]
mov ecx, dword [eax + 0x10]
mov ebx, ecx
mov eax, dword [eax + 0xc]
cmp eax, ecx
mov edx, dword [esi + 0xdc]
cmovle ebx, eax
cmovle eax, ecx
inc eax
mov dword [ebp - 8], ebx
cmp byte [edx + eax], 0
jge 0x403223
mov cl, byte [edx + eax + 1]
inc eax
and cl, 0xc0
cmp cl, 0x80
jne 0x403223
mov cl, byte [edx + eax + 1]
inc eax
and cl, 0xc0
cmp cl, 0x80
je 0x403216
mov ecx, dword [esi + 0xd4]
cmp eax, ecx
push 0
cmovle ecx, eax
lea eax, [ebx + edx]
push 0
sub ecx, ebx
push ecx
push eax
push 0
push 0xfde9
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [0x40a6c4]
mov edi, eax
push esi
push edi
push dword [ebp - 4]
mov ecx, dword [ecx + 0xdc]
add ecx, dword [ebp - 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push ebx
mov dword [edi + esi*2], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [0x40a6c0]
pop edi
pop esi
mov byte [0x40a9a0], 0
mov dword [eax + 0x14], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4032c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x40a5dd], 1
push ebx
push esi
push edi
mov esi, ecx
jne 0x4032db
mov byte [0x40a5dd], 0
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4034b0
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4034b0
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4034a9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
test eax, eax
je 0x4034a9
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
mov ebx, eax
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 0
push 0xfde9
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
dec ebx
cmp byte [0x40a5dd], 1
jne 0x403379
mov byte [0x40a5dd], 0
mov ecx, ebx
call fcn.004024d0
mov esi, dword [0x40a6c4]
mov edi, dword [0x40a6c0]
push ebx
push dword [ebp - 4]
mov ecx, dword [esi + 0xe8]
mov eax, dword [edi + 0xc]
mov byte [0x40a5dd], 1
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0xe8]
mov dword [eax + 0x18], ebx
mov eax, dword [esi + 0xe8]
add eax, 0x1c
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0xd4]
add esp, 0xc
add ecx, ebx
cmp ecx, dword [esi + 0xd8]
jl 0x40342d
mov eax, 1
cmp ecx, eax
jbe 0x4033dd
add eax, eax
cmp eax, ecx
jb 0x4033d7
add eax, eax
push eax
mov dword [esi + 0xd8], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x40a6c4]
add esp, 4
mov edi, eax
push dword [esi + 0xd4]
push dword [esi + 0xdc]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [esi + 0xdc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [0x40a6c4]
add esp, 4
mov dword [esi + 0xdc], edi
mov edi, dword [0x40a6c0]
mov ecx, dword [esi + 0xdc]
mov edi, dword [edi + 0xc]
add edi, ecx
add ecx, dword [esi + 0xd4]
lea edx, [ecx + ebx]
cmp ecx, edi
jb 0x403452
mov al, byte [ecx]
lea edx, [edx - 1]
dec ecx
mov byte [edx + 1], al
cmp ecx, edi
jae 0x403445
mov edi, dword [0x40a6c0]
mov eax, dword [esi + 0xdc]
push ebx
push dword [ebp - 4]
add eax, dword [edi + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [esi + 0xd4], ebx
add esp, 0xc
mov ecx, dword [edi + 0xc]
add ecx, ebx
cmp byte [0x40a5dd], 1
mov dword [edi + 0xc], ecx
jne 0x40348c
mov byte [0x40a5dd], 0
mov edx, dword [esi + 0xdc]
add edx, ecx
mov ecx, edx
sub ecx, ebx
call fcn.00401f60
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov byte [0x40a9a0], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40655d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40659c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40659c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40659c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40659c
cmp dword [ecx + 0x74], 0xe
jbe 0x40659c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403330
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov ecx, 0x28
mov edx, 0x407130
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], str.Please_enter_your_name:
call fcn.00403130
mov dword [esp + 4], ebx
mov eax, 0x28
mov dword [esp + 8], eax
mov dword [esp], 0x407130
call sub.cygwin1.dll_strncpy
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
add esp, 0x1c
jmp fcn.004042a0

Function at 0x404080
Capabilities:
Read file on windows

Disassembly:
push esi
mov ecx, 0x406480
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov dword [esp + 4], ecx
mov dword [esp], 0x407030
call sub.cygwin1.dll__fopen64
test eax, eax
mov ebx, eax
je 0x4040d2
mov dword [esp + 0xc], eax
mov edx, 1
mov eax, 0x1b8
mov dword [esp + 8], edx
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_fread
mov dword [esp], ebx
call sub.cygwin1.dll_fclose
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
mov eax, esi
mov dl, 9
lea esi, [esi]
lea edi, [edi]
mov dword [eax + 0x28], 0
mov byte [eax], 0
add eax, 0x2c
dec dl
jns 0x4040e0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret
Function at 0x51190a
Capabilities:
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x13379797
pop eax
mov dword [ebp - 0x3c0], eax
push edi
jmp 0x5117ce
sub edi, 0xb63b
and edi, 0xe14b
pop edi
push eax
push edx
add esp, 4
or eax, 0x12c7f
or eax, 0x13315
pop eax
push esi
push eax
add esp, 4
and esi, 0x18667
pop esi
mov ecx, dword [ebp - 0x1fa0]
mov dword [ebp - 0x14b8], ecx
push ebx
push ecx
add esp, 4
xor ebx, 0xb888
and ebx, 0x517e
or ebx, 0xb94a
pop ebx
push ecx
push eax
add esp, 4
xor ecx, 0x14088
jmp 0x511830
sub ecx, 0xeb19
pop ecx
mov edx, dword [ebp - 0x14]
add edx, 0x138
imul eax, dword [ebp - 0x10], 0x138
add eax, 0x44f3644b
imul ecx, dword [ebp - 0x10], 0x138
sub eax, ecx
xor edx, eax
imul edx, dword [ebp - 0x10]
mov dword [ebp - 0x14b8], edx
mov edx, dword [ebp - 0x3c0]
mov dword [ebp - 0x1ef8], edx
mov eax, dword [ebp - 0x1ef8]
add eax, dword [ebp - 0x14b8]
mov dword [ebp - 0x3c0], eax
push ecx
add ecx, 0xeef2
pop ecx
push ecx
push eax
add esp, 4
or ecx, 0x1ba0
pop ecx
push ebx
push eax
add esp, 4
and ebx, 0x2fba
pop ebx
push eax
push esi
add esp, 4
sub eax, 0x2ce7
sub eax, 0xb458
pop eax
mov byte [ebp - 0xb78], 0x52
mov byte [ebp - 0xb77], 0xb9
mov byte [ebp - 0xb76], 0x10
mov byte [ebp - 0xb75], 0x10
mov byte [ebp - 0xb74], 0x10
mov byte [ebp - 0xb73], 0x10
mov byte [ebp - 0xb72], 0x5a
push esi
push eax
add esp, 4
or esi, 0xbd86
call 0x5118fb
add byte [edx + 0x46], al
cmp dword [ebp + 0x34], ecx
dec ebx
cmp al, byte ds:[ebx + 0x7e804c4]
add byte [eax], al
add byte [eax], al
dec esi
xor eax, dword [ebp + 0x4b]
cmp eax, 0x4c4833d
xor esi, 0x12a43
pop esi
mov byte [ebp - 0xb80], 0x52
mov byte [ebp - 0xb7f], 0xb9
mov byte [ebp - 0xb7e], 0x20
mov byte [ebp - 0xb7d], 0x20
mov byte [ebp - 0xb7c], 0x20
mov byte [ebp - 0xb7b], 0x20
mov byte [ebp - 0xb7a], 0x5a
push ebx
push eax
add esp, 4
and ebx, 0x123b5
or ebx, 0xe170
and ebx, 0x8c6a
pop ebx
push ecx
push ecx
add esp, 4
add ecx, 0x154f2
add ecx, 0x7269
pop ecx
push eax
add eax, 0x7ed8
pop eax
mov dword [ebp - 0x1fa4], 0xe
push eax
call 0x511991
add byte [0x423e3335], bh
dec ebp
cmp eax, dword [edx + eax*2 - 0x7d]
les eax, [ecx + eax*4]
invalid
Function at 0x511991
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x13379797
pop eax
mov dword [ebp - 0x3c0], eax
push edi
jmp 0x5117ce
sub edi, 0xb63b
and edi, 0xe14b
pop edi
push eax
push edx
add esp, 4
or eax, 0x12c7f
or eax, 0x13315
pop eax
push esi
push eax
add esp, 4
and esi, 0x18667
pop esi
mov ecx, dword [ebp - 0x1fa0]
mov dword [ebp - 0x14b8], ecx
push ebx
push ecx
add esp, 4
xor ebx, 0xb888
and ebx, 0x517e
or ebx, 0xb94a
pop ebx
push ecx
push eax
add esp, 4
xor ecx, 0x14088
jmp 0x511830
sub ecx, 0xeb19
pop ecx
mov edx, dword [ebp - 0x14]
add edx, 0x138
imul eax, dword [ebp - 0x10], 0x138
add eax, 0x44f3644b
imul ecx, dword [ebp - 0x10], 0x138
sub eax, ecx
xor edx, eax
imul edx, dword [ebp - 0x10]
mov dword [ebp - 0x14b8], edx
mov edx, dword [ebp - 0x3c0]
mov dword [ebp - 0x1ef8], edx
mov eax, dword [ebp - 0x1ef8]
add eax, dword [ebp - 0x14b8]
mov dword [ebp - 0x3c0], eax
push ecx
add ecx, 0xeef2
pop ecx
push ecx
push eax
add esp, 4
or ecx, 0x1ba0
pop ecx
push ebx
push eax
add esp, 4
and ebx, 0x2fba
pop ebx
push eax
push esi
add esp, 4
sub eax, 0x2ce7
sub eax, 0xb458
pop eax
mov byte [ebp - 0xb78], 0x52
mov byte [ebp - 0xb77], 0xb9
mov byte [ebp - 0xb76], 0x10
mov byte [ebp - 0xb75], 0x10
mov byte [ebp - 0xb74], 0x10
mov byte [ebp - 0xb73], 0x10
mov byte [ebp - 0xb72], 0x5a
push esi
push eax
add esp, 4
or esi, 0xbd86
call 0x5118fb
add byte [edx + 0x46], al
cmp dword [ebp + 0x34], ecx
dec ebx
cmp al, byte ds:[ebx + 0x7e804c4]
add byte [eax], al
add byte [eax], al
dec esi
xor eax, dword [ebp + 0x4b]
cmp eax, 0x4c4833d
xor esi, 0x12a43
pop esi
mov byte [ebp - 0xb80], 0x52
mov byte [ebp - 0xb7f], 0xb9
mov byte [ebp - 0xb7e], 0x20
mov byte [ebp - 0xb7d], 0x20
mov byte [ebp - 0xb7c], 0x20
mov byte [ebp - 0xb7b], 0x20
mov byte [ebp - 0xb7a], 0x5a
push ebx
push eax
add esp, 4
and ebx, 0x123b5
or ebx, 0xe170
and ebx, 0x8c6a
pop ebx
push ecx
push ecx
add esp, 4
add ecx, 0x154f2
add ecx, 0x7269
pop ecx
push eax
add eax, 0x7ed8
pop eax
mov dword [ebp - 0x1fa4], 0xe
push eax
call 0x511991
add byte [0x423e3335], bh
dec ebp
cmp eax, dword [edx + eax*2 - 0x7d]
les eax, [ecx + eax*4]
invalid
Function at 0x51c100
Capabilities:
Execute syscall

Disassembly:
add eax, 0xe150d386
add eax, 0x8acc6305
invalid

Function at 0x5317dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x531803
test edi, 0x40000
je 0x53181d
test bl, bl
jne 0x5318ac
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x5318ac
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x531850
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x53186c
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0x40000
or ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
jmp 0x531882
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0xfffbffff
and ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x531893
cmp byte [esp + 2], 0
je 0x5318ac
cmp byte [esp + 2], 0
je 0x5318a4
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x5318ac
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x531b60
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x531b86
mov eax, esp
push eax
push 0x531b28
call sub.user32.dll_EnumWindows
jmp 0x531b99
mov eax, esp
push eax
push 0x531b08
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x531c5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x531cac]
test bl, 4
je 0x531c70
or si, 1
test bl, 8
je 0x531c79
or si, 4
test bl, 1
je 0x531c82
or si, 8
test bl, 2
je 0x531c8b
or si, 0x10
test bl, 0x10
je 0x531c94
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x531ca4
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x531cb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x531cec]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x531ccb
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x531cdb
or bx, 4
test esi, 0x20000000
je 0x531ce7
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x531d40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00531cf0
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret
Function at 0x1005e0e
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x10035a8
xor ebx, ebx
push ebx
mov dword [ebp - 0x214], esi
call fcn.01006a35
pop ecx
pop ecx
cmp esi, ebx
jne 0x1005e4b
mov dword [ebp - 0x214], 0x80000001
xor esi, esi
lea eax, [ebp - 0x210]
push eax
push 0x20006
push ebx
push dword [esi + 0x1018190]
mov dword [ebp - 0x210], ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005f26
test byte [esi + 0x1018198], 1
je 0x1005ec4
push dword [esi + 0x1018194]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
jne 0x1005eaf
push dword [esi + 0x1018194]
push 0x10035f0
push ebx
call fcn.01006a35
add esp, 0xc
jmp 0x1005ec4
push eax
push dword [esi + 0x1018194]
push 0x1003670
push ebx
call fcn.01006a35
add esp, 0x10
test byte [esi + 0x1018198], 2
je 0x1005f1a
push dword [esi + 0x1018194]
lea edi, [ebp - 0x20c]
call fcn.01006cb4
mov eax, edi
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
jne 0x1005f04
mov eax, edi
push eax
push 0x10035f0
push ebx
call fcn.01006a35
add esp, 0xc
jmp 0x1005f1a
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1003670
push ebx
call fcn.01006a35
add esp, 0x10
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xc
cmp esi, 0x24
jb 0x1005e4d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007066
leave
ret

Function at 0x1005f46
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x10036fc
push 0
call fcn.01006a35
cmp dword [ebp + 8], 0
pop ecx
pop ecx
jne 0x1005f66
mov dword [ebp + 8], 0x80000001
push esi
mov esi, 0x1003550
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push esi
test eax, eax
jne 0x1005f82
push 0x1003740
jmp 0x1005f87
push 0x10037b8
push 0
call fcn.01006a35
add esp, 0xc
pop esi
pop ebp
ret 4
Function at 0x10061b9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa44
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa40], eax
push ebx
push esi
push edi
push 0x1003de0
xor esi, esi
push esi
call fcn.01006a35
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
push 0x20019
push esi
mov edi, 0x1003438
push edi
push 0x80000002
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10063e9
push esi
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
mov ebx, 0x104
mov dword [esp + 0x30], esi
push esi
jmp 0x10063c7
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
push 0x1003828
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x10063aa
push 0x100383c
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x10063aa
push 0x1003850
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x10063aa
lea eax, [esp + 0x20]
push eax
push 0x1003e40
push esi
call fcn.01006a35
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1006395
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x22c]
push eax
push esi
push esi
push 0x1003414
push dword [esp + 0x24]
mov dword [esp + 0x34], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1006371
mov eax, dword [esp + 0x1c]
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x228], cx
lea eax, [esp + 0x228]
push eax
lea edi, [esp + 0x63c]
call fcn.01006cb4
mov eax, edi
push eax
push ebx
lea eax, [esp + 0x438]
push eax
call fcn.01004f05
lea eax, [esp + 0x430]
push eax
mov eax, 0x10034d8
call fcn.01005cf6
test eax, eax
js 0x1006331
push esi
lea edx, [esp + 0x434]
lea ecx, [esp + 0x24]
call fcn.0100600e
lea eax, [esp + 0x638]
push eax
push ebx
lea eax, [esp + 0x848]
push eax
call fcn.01004f05
lea eax, [esp + 0x840]
push eax
mov eax, 0x10034f0
call fcn.01005cf6
test eax, eax
js 0x1006389
push 1
lea edx, [esp + 0x844]
lea ecx, [esp + 0x24]
call fcn.0100600e
jmp 0x1006389
push eax
lea eax, [esp + 0x22c]
push eax
push 0x1003ec8
push 1
call fcn.01006a35
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10063aa
push eax
lea eax, [esp + 0x24]
push eax
push 0x1003f78
push 1
call fcn.01006a35
add esp, 0x10
push esi
push esi
xor eax, eax
inc dword [esp + 0x20]
push esi
mov word [esp + 0x2c], ax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x30]
push dword [esp + 0x28]
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100622c
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10063fa
push eax
push edi
push 0x1003f78
push 1
call fcn.01006a35
add esp, 0x10
mov ecx, dword [esp + 0xa4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.01007066
mov esp, ebp
pop ebp
ret
Function at 0x100657c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10065ee
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100aa3c
push eax
push 0x10042f0
push 0x10042a0
push 0x3a
push edi
push 0x100307c
push edi
push ebx
push 0x1004328
push 0x4000000
call fcn.01004cc5
add esp, 0xc
push eax
call fcn.0100b353
xor eax, eax
inc eax
jmp 0x1006677
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
xor edi, edi
push edi
mov dword [ebp - 0x210], eax
push edi
cmp eax, 0xcb
jne 0x1006639
call esi
push eax
call fcn.0100aa3c
push eax
push 0x10042f0
push 0x10042a0
push 0x42
push edi
push 0x100307c
push edi
push ebx
push 0x1004378
push 0x4000000
call fcn.01004cc5
add esp, 0xc
jmp 0x100666e
call esi
push eax
call fcn.0100aa3c
push eax
push 0x10042f0
push 0x10042a0
push 0x46
push edi
push 0x100307c
push edi
push dword [ebp - 0x210]
push ebx
push 0x10043c8
push 0x2000000
call fcn.01004cc5
add esp, 0x10
push eax
call fcn.0100b353
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01007066
leave
ret
Function at 0x1006689
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov dword [ebp - 0x210], eax
call edi
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x1006741
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push esi
push esi
mov ebx, eax
call edi
push eax
call fcn.0100aa3c
push eax
push 0x1004434
push 0x10042a0
cmp ebx, 0xcb
jne 0x1006717
push 0xc2
push esi
push 0x100307c
push esi
push dword [ebp - 0x210]
push 0x1004468
push 0x4000000
call fcn.01004cc5
add esp, 0xc
jmp 0x1006844
push 0xc5
push esi
push 0x100307c
push esi
push ebx
push dword [ebp - 0x210]
push 0x10044b8
push 0x2000000
call fcn.01004cc5
add esp, 0x10
jmp 0x1006844
cmp ebx, 0x104
jbe 0x10067ff
lea eax, [ebx + ebx]
push eax
call sub.msvcrt.dll_malloc
pop ecx
mov dword [ebp - 0x214], eax
cmp eax, esi
jne 0x100679b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100aa3c
push eax
push 0x1004434
push 0x10042a0
push 0xce
push esi
push 0x100307c
push esi
push dword [ebp - 0x210]
push 0x1004528
push 0x2000000
jmp 0x100670a
push ebx
push eax
push dword [ebp - 0x210]
call edi
push esi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100aa3c
push eax
push 0x1004434
push 0x10042a0
push 0xd2
push esi
push 0x100307c
push esi
push edi
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push 0x1004590
push 0x4000000
call fcn.01004cc5
add esp, 0x14
push eax
call fcn.0100b353
push dword [ebp - 0x214]
call sub.msvcrt.dll_free
pop ecx
jmp 0x100684a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100aa3c
push eax
push 0x1004434
push 0x10042a0
push 0xd8
push esi
push 0x100307c
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push 0x1004590
push 0x4000000
call fcn.01004cc5
add esp, 0x14
push eax
call fcn.0100b353
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007066
leave
ret 4

Function at 0x1006887
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10033d4]
push esi
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push eax
push 0x80000002
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10068d3
cmp eax, 2
jne 0x10068c0
push eax
push esi
push 0x1004740
push 0
jmp 0x10068c9
push eax
push esi
push 0x10047a0
push 1
call fcn.01006a35
add esp, 0x10
jmp 0x1006912
mov eax, dword [0x10033d8]
push eax
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1006909
cmp eax, 2
jne 0x10068f8
push eax
push esi
push 0x1004800
push 0
jmp 0x1006901
push eax
push esi
push 0x1004868
push 1
call fcn.01006a35
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x100691a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 5
pop ecx
mov esi, 0x10033e0
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [0x10033e0]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x100696b
push eax
push dword [ebp - 0x18]
push 0x10048d0
push 1
call fcn.01006a35
add esp, 0x10
jmp 0x10069a1
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [entry0]
cmp eax, esi
je 0x1006998
push eax
push dword [ebp - 0x18]
push 0x1004938
push 1
call fcn.01006a35
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret