joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021c27
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10018dc4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021c96
cmp esi, dword [ebp - 4]
je 0x10021c91
cmp dword [ebp + 0xc], 0
je 0x10021c91
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10021c6e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10021779
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10021c98
xor eax, eax
inc eax
jmp 0x10021c98
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10021cfd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10033040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10018dc4
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10018dc4
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10021d74
cmp word [ecx], dx
je 0x10021d74
mov eax, dword [0x1002e784]
push edi
dec eax
push eax
push 0x1002e670
call fcn.10021c9c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10021de7
cmp word [eax], dx
je 0x10021de7
mov eax, dword [edi]
test eax, eax
je 0x10021d98
cmp word [eax], dx
je 0x10021d98
lea eax, [ebp - 0x10]
push eax
call fcn.1002167f
jmp 0x10021da1
lea eax, [ebp - 0x10]
push eax
call fcn.1002171a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10021e11
mov eax, dword [0x1002e66c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002e360
call fcn.10021c9c
add esp, 0xc
test al, al
je 0x10021e11
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10021ddc
cmp word [eax], di
je 0x10021ddc
lea eax, [ebp - 0x10]
push eax
call fcn.1002167f
pop ecx
jmp 0x10021e13
lea eax, [ebp - 0x10]
push eax
call fcn.1002171a
jmp 0x10021dd9
mov eax, dword [edi]
test eax, eax
je 0x10021dfe
cmp word [eax], dx
je 0x10021dfe
lea eax, [ebp - 0x10]
push eax
call fcn.10021634
pop ecx
jmp 0x10021e11
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10021edc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10021b21
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10021edc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10021edc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10021edc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10021e69
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10018328
test ebx, ebx
je 0x10021ed7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10018328
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021edc
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021edc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100249d7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10021ede
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000db60
leave
ret
Function at 0x10026670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002669d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002669d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x1ada1d3b
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x42f314
mov ecx, 0xd110c54
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x403900
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42f638
push 0x41f380
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x431180]
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
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4039ad
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x28]
jmp 0x4039ad
mov dword [ebp - 4], 0xfffffffe
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.0041b074
mov esp, ebp
pop ebp
ret

Function at 0x4039d0
Capabilities:
Get session user name
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42f658
push 0x41f380
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x431180]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.0041d150
add esp, 0xc
mov dword [ebp - 0x12c], 0x104
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x403aa9
mov edx, 6
mov dword [ebp - 0x130], edx
lea esi, [ebp - 0x120]
or ecx, 0xffffffff
mov dword [ebp - 0x124], esi
mov eax, edx
dec edx
mov dword [ebp - 0x130], edx
test eax, eax
je 0x403a89
movzx eax, byte [esi]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42e408]
inc esi
jmp 0x403a5f
not ecx
xor ebx, ebx
cmp ecx, 0x39b5d60d
sete bl
jmp 0x403aa3
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
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.0041b074
mov esp, ebp
pop ebp
ret
Function at 0x4049f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404a09
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404a44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404a40
lea ebx, [ebx]
cmp esi, edx
jae 0x404a44
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x404a30
cmp esi, edx
jb 0x404a4b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428658
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x431180]
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 dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x30], ecx
xor esi, esi
mov edx, 0x432458
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], esi
call fcn.00408aa0
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], esi
je 0x407a7a
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00408660
mov edi, dword [ebp - 0x40]
test eax, eax
jne 0x407a6c
test edi, edi
je 0x407a77
push 1
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.00407e20
mov byte [ebp - 4], 3
cmp word [ebx], si
jne 0x4079d2
xor ecx, ecx
jmp 0x4079e6
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4079d7
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00407b70
push 1
push 0x42e9fc
lea ecx, [ebp - 0x2c]
call fcn.00407b70
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmp esi, 8
cmovae edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x407a11
sub edx, ecx
sar edx, 1
lea ecx, [ebp - 0x2c]
lea eax, [edx*2 + 2]
push eax
cmp esi, 8
cmovae ecx, ebx
push ecx
push 2
push 0
push dword [ebp - 0x30]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x18], 8
jb 0x407a58
push dword [ebp - 0x2c]
call fcn.0041b06f
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test edi, edi
je 0x407a77
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x34]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407aaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407aaa
mov 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.0041b074
mov esp, ebp
pop ebp
ret
Function at 0x4086f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x431180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x42ea5c
push str.Kernel32.dll
mov dword [ebp - 0x620], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x42ea6c
push 0x42ea78
mov dword [ebp - 0x624], eax
call esi
push eax
call edi
push 0x42ea84
push 0x42ea78
mov ebx, eax
call esi
push eax
call edi
mov edi, dword [ebp - 0x624]
mov esi, eax
test edi, edi
je 0x408861
test ebx, ebx
je 0x408861
test esi, esi
je 0x408861
push 0x40
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.0041d150
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x648], ax
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x628], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x678], 0x44
movq qword [ebp - 0x630], xmm0
call fcn.0041d150
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x42ea98
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0041d150
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push eax
push str.__s__start___s_
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.0041bd48
add esp, 0x20
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x678]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b074
mov esp, ebp
pop ebp
ret
Function at 0x408880
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428690
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x431180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
xor edi, edi
mov edx, 0x432878
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
call fcn.00408aa0
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
je 0x4089b7
push 5
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4089b7
push 0x17
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x24], eax
test esi, esi
je 0x4089ae
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40899a
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x11]
push ecx
push eax
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x30], 0
call fcn.00405100
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
sub eax, ebx
cmp eax, dword [ebp - 0x18]
jne 0x408992
test ebx, ebx
je 0x408992
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x408992
cmp dword [ebx + 4], 2
je 0x408992
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 8]
push 2
push dword [ebx]
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea ecx, [ebp - 0x34]
call fcn.00405000
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4089e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4089e6
test esi, esi
je 0x4089f1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x4089fc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409550
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42872b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x431180]
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 dword [ebp - 0x10], esp
mov eax, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00404f90
mov esi, dword [ebp - 0x22c]
add esp, 4
test eax, eax
je 0x4096c7
cmp esi, dword [ebp - 0x228]
je 0x4096c7
push 0x42eae4
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4096c7
push edi
call eax
test eax, eax
je 0x40965d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40965d
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.0041d150
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4096c7
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4096c7
push 1
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4096c7
push 0x42eac8
lea eax, [ebp - 0x220]
push edi
push eax
mov dword [ebp - 0x220], 0
call fcn.0041bd64
add esp, 0xc
test eax, eax
jne 0x4096c7
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4096c7
mov edi, dword [ebp - 0x228]
push eax
sub edi, esi
push edi
push 1
push esi
call fcn.0041bfca
push dword [ebp - 0x220]
call fcn.0041c1de
push dword [ebp - 0x220]
call fcn.0041c670
push dword [ebp - 0x220]
xor ebx, ebx
cmp edi, eax
sete bl
call fcn.0041c0b4
add esp, 0x1c
test esi, esi
je 0x4096ec
push esi
call fcn.0041b06f
add esp, 4
jmp 0x4096ec
mov eax, ebx
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.0041b074
mov esp, ebp
pop ebp
ret
Function at 0x409710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
push esi
mov edx, 0x432a90
lea ecx, [ebp - 4]
xor ebx, ebx
call fcn.00408aa0
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], ebx
je 0x4097ce
xor esi, esi
push edi
lea esp, [esp]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0
xor ecx, ecx
push 2
test esi, esi
push 0
setne cl
push 0
push 0
push eax
mov dword [ebp - 8], 0
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4097c0
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test edx, edx
jne 0x409781
lea eax, [edx + 0xd]
jmp 0x4097ae
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409786
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0x42eb44
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test edi, edi
je 0x4097c0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
inc esi
cmp esi, 2
jl 0x409740
pop edi
lea esi, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4097e8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ba60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428958
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x431180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, 0x467510
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00408aa0
mov edx, 0x4674ec
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00408aa0
mov byte [ebp - 4], 2
mov eax, dword [0x431008]
mov ecx, 0x431008
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov ecx, 0x6a
mov byte [ebp - 4], 3
call fcn.004048b0
test eax, eax
je 0x40bae7
push 0x6a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404410
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40bba5
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
je 0x40bba5
cmp dword [esi - 0xc], 0
je 0x40bba5
xor ebx, ebx
lea ecx, [ecx]
xor ecx, ecx
test ebx, ebx
setne cl
sub esp, 8
mov dword [ebp - 0x28], 0
push 2
sub esp, 8
mov dword [ebp - 0x24], 0
push eax
add ecx, 0x80000001
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
call fcn.0040b9e0
test eax, eax
jne 0x40bb7b
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bb50
mov edi, dword [ebp - 0x28]
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40bb7e
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x40bb90
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
inc ebx
mov dword [ebp - 0x24], 0
cmp ebx, 2
jge 0x40bba5
mov eax, dword [ebp - 0x18]
jmp 0x40bb10
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40bbc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bbe5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40bc03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bf50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bfc1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40bf8f
cmp eax, 2
jne 0x40bfab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40bfbb
test ecx, ecx
je 0x40bfb6
test cl, 1
jne 0x40bfab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40bfbb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc