joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429586
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x444008]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4295cc
cmp word [ebx], dx
jne 0x4295cc
or byte [eax + edi + 0x28], 4
jmp 0x4295d1
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x429734
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x429714
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x429612
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x429648
cmp eax, edx
jae 0x429656
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4295ed
jmp 0x429734
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42970f
cmp dword [ebp - 0x18], 0
je 0x42970f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x444008]
test byte [eax + edi + 0x28], 0x48
je 0x4296e5
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4296a9
mov word [esi], cx
jmp 0x4296e0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x444008]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x444008]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x444008]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x429734
pop eax
cmp word [ebp - 4], ax
jne 0x4296f5
cmp esi, ebx
jne 0x4296f5
mov word [esi], ax
jmp 0x429731
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00429fbf
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x429734
push 0xd
pop eax
jmp 0x4296f0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x444008]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42972e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x429734
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42c711
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42c7ae
push ebx
push esi
call fcn.0042c6da
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042b3b3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42c75b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42c7ad
push edi
push eax
call fcn.0042538e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42c77b
call fcn.00425354
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42c7ac
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042b3b3
add esp, 0x20
test eax, eax
jne 0x42c79a
push edi
call fcn.00425354
jmp 0x42c7a2
push ebx
call fcn.00425354
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42ea05
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00425069
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 0x42ea74
cmp esi, dword [ebp - 4]
je 0x42ea6f
cmp dword [ebp + 0xc], 0
je 0x42ea6f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42ea4c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042e557
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42ea76
xor eax, eax
inc eax
jmp 0x42ea76
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x42eadb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x441040]
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.00425069
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.00425069
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 0x42eb52
cmp word [ecx], dx
je 0x42eb52
mov eax, dword [0x43962c]
push edi
dec eax
push eax
push 0x439518
call fcn.0042ea7a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42ebc5
cmp word [eax], dx
je 0x42ebc5
mov eax, dword [edi]
test eax, eax
je 0x42eb76
cmp word [eax], dx
je 0x42eb76
lea eax, [ebp - 0x10]
push eax
call fcn.0042e45d
jmp 0x42eb7f
lea eax, [ebp - 0x10]
push eax
call fcn.0042e4f8
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42ebef
mov eax, dword [0x439514]
push dword [ebp - 0x14]
dec eax
push eax
push 0x439208
call fcn.0042ea7a
add esp, 0xc
test al, al
je 0x42ebef
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42ebba
cmp word [eax], di
je 0x42ebba
lea eax, [ebp - 0x10]
push eax
call fcn.0042e45d
pop ecx
jmp 0x42ebf1
lea eax, [ebp - 0x10]
push eax
call fcn.0042e4f8
jmp 0x42ebb7
mov eax, dword [edi]
test eax, eax
je 0x42ebdc
cmp word [eax], dx
je 0x42ebdc
lea eax, [ebp - 0x10]
push eax
call fcn.0042e412
pop ecx
jmp 0x42ebef
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 0x42ecba
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042e8ff
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42ecba
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42ecba
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42ecba
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42ec47
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00426c2e
test ebx, ebx
je 0x42ecb5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00426c2e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42ecba
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 0x42ecba
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00431dd1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42ecbc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004184a5
leave
ret
Function at 0x4336a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4336cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4336cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401b30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov edx, eax
xor ecx, ecx
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 0x24c
mov dword [ebp + eax - 0x220], ecx
add eax, 4
cmp eax, 0x18
jb 0x401b41
mov eax, dword [0x41b03c]
lea esi, [ebp - 0x208]
mov dword [esp + 0x20], edx
mov dword [ebp - 0x218], esi
mov ebx, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x214], 0x100
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x7d2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], str.SysTabControl32
mov dword [esp], 0
call ebx
sub esp, 0x30
mov dword [0x41b004], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x41b03c]
sub esp, 8
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0xfa
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x224]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x41b004]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x133e
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [0x41b03c]
sub esp, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x41b004]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000002
mov dword [esp + 8], 0
mov dword [esp + 4], 0x410020
mov dword [esp], 0x200
call ebx
mov dword [0x41b008], eax
sub esp, 0x30
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4034c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ecx, 0x32
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x4d4]
mov esi, 0x40e0c0
push ebx
mov ebx, eax
sub esp, 0x504
mov dword [ebp - 0x4dc], edx
mov edx, dword [sym.imp.user32.dll_LoadStringW]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x40c]
mov dword [esp], eax
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x4d8], edx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 1
call edx
mov edx, dword [ebp - 0x4d8]
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], 2
mov dword [esp], ebx
call edx
sub esp, 0x10
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
sub esp, 0x30
test eax, eax
je 0x4036f8
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp], 0x50000000
call dword [sym.imp.comctl32.dll_CreateStatusWindowW]
lea ecx, [ebp - 0x4d4]
sub esp, 0x10
mov dword [0x41b028], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebx
mov dword [esp], esi
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x50000000
call sub.comctl32.dll_CreateToolbarEx
mov edi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x34
mov dword [0x41b02c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6f
mov dword [esp + 4], 0x401
mov dword [esp], eax
call edi
mov eax, dword [0x41b02c]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x71
mov dword [esp + 4], 0x401
mov dword [esp], eax
call edi
mov eax, dword [0x41b02c]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x74
mov dword [esp + 4], 0x401
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x4dc]
mov dword [0x41b020], esi
sub esp, 0x10
mov dword [0x41b03c], ebx
mov dword [esp], esi
mov dword [0x41b040], 1
mov dword [0x41b044], 5
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.user32.dll_UpdateWindow]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405410
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x460
mov eax, dword [0x41b674]
mov dword [ebp - 0x448], 5
mov dword [esp + 4], str.AppID_
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x434], 0x100
mov dword [ebp - 0x44c], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x4055fc
mov ebx, 0xffffffff
lea edi, [ebp - 0x40c]
lea esi, [esi]
mov eax, dword [ebp - 0x45c]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4055c0
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x405480
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x454], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x458]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x405520
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], 0
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov byte [eax], 2
mov edx, eax
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x405558
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x405570
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x41b030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x405480
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41b674]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41b030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405610
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x460
mov eax, dword [0x41b67c]
mov dword [ebp - 0x448], 5
mov dword [esp + 4], str.Interface_
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x434], 0x100
mov dword [ebp - 0x44c], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x4057fc
mov ebx, 0xffffffff
lea edi, [ebp - 0x40c]
lea esi, [esi]
mov eax, dword [ebp - 0x45c]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4057c0
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x405680
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x454], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x458]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x405720
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], 0
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov byte [eax], 0xa
mov edx, eax
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x405758
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x405770
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x41b030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x405680
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41b67c]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41b030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405810
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0xffff0000
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x67c
mov eax, dword [0x41b664]
mov dword [ebp - 0x648], 0x45
mov dword [ebp - 0x634], 0x100
test eax, eax
mov dword [esp + 4], str.Component_Categories_
cmove eax, edx
mov dword [esp], 0x80000000
mov dword [ebp - 0x64c], 0xffff0001
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x664]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x628], 1
mov dword [ebp - 0x668], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x405a9c
mov ebx, 0xffffffff
lea esi, [ebp - 0x60c]
lea esi, [esi]
mov eax, dword [ebp - 0x664]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405a60
lea eax, [ebp - 0x660]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
mov eax, dword [ebp - 0x668]
call eax
sub esp, 0xc
test eax, eax
jne 0x405898
lea eax, [ebp - 0x65c]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x65c], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x658], 0x200
mov dword [ebp - 0x654], 0x200
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
jne 0x4059f0
cmp word [ebp - 0x20c], 0
je 0x4059f0
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x638], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov byte [eax], 1
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax + 2], dx
add eax, 2
test dx, dx
jne 0x405988
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [esi + eax]
mov word [ecx + eax + 0x202], dx
add eax, 2
test dx, dx
jne 0x4059a0
lea eax, [ebp - 0x650]
mov dword [ebp - 0x624], ecx
mov dword [esp + 0xc], eax
mov eax, dword [0x41b030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x405898
lea eax, [ebp - 0x658]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x654]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x40c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x660]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x405898
cmp word [ebp - 0x20c], 0
jne 0x40594d
jmp 0x405898
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41b664]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41b030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407170
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
call fcn.00405ab0
call fcn.00405810
call fcn.00405f20
call fcn.00405410
call fcn.00404fc0
pop ebp
jmp fcn.00405610

Function at 0x4071a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
xor eax, eax
mov ebp, esp
mov dword [eax + 0x41b660], edx
add eax, 4
cmp eax, 0x20
jb 0x4071a7
call fcn.00405810
pop ebp
jmp fcn.00405f20
Function at 0x407bd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
mov ebx, edx
lea edx, [ebp - 0x21e]
mov eax, ebx
sub esp, 0x22c
mov word [ebp - 0x20e], cx
mov dword [ebp - 0x21e], 0x790074
mov dword [ebp - 0x21a], 0x650070
mov dword [ebp - 0x216], 0x650064
mov dword [ebp - 0x212], 0x200066
mov dword [ebp - 0x22c], 0x750070
mov dword [ebp - 0x228], 0x6c0062
mov dword [ebp - 0x224], 0x630069
mov word [ebp - 0x220], di
call fcn.00407610
mov eax, dword [0x4171ec]
cmp dword [esi], eax
je 0x407cf8
mov edx, 0x410440
mov eax, ebx
lea edi, [ebp - 0x20c]
call fcn.00407610
mov edx, str.uuid
mov eax, ebx
call fcn.00407610
mov edx, 0x410444
mov eax, ebx
call fcn.00407610
mov dword [esp + 8], 0x100
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
sub esp, 0xc
cmp word [ebp - 0x20c], 0
je 0x407d60
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407ca8
sub eax, edi
sar eax, 1
sub eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x20c], dx
lea edx, [ebp - 0x20a]
mov eax, ebx
call fcn.00407610
mov edx, 0x410448
mov eax, ebx
call fcn.00407610
cmp dword [esi + 0x28], 6
je 0x407d40
mov edx, 0x410452
mov eax, ebx
call fcn.00407610
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4171f0]
cmp dword [esi + 4], eax
jne 0x407c52
mov eax, dword [0x4171f4]
cmp dword [esi + 8], eax
jne 0x407c52
mov eax, dword [0x4171f8]
cmp dword [esi + 0xc], eax
jne 0x407c52
cmp dword [esi + 0x28], 6
jne 0x407ced
mov edx, 0x410440
mov eax, ebx
call fcn.00407610
jmp 0x407d4c
mov edx, 0x41044c
mov eax, ebx
call fcn.00407610
lea edx, [ebp - 0x22c]
mov eax, ebx
call fcn.00407610
jmp 0x407ce1
mov eax, 0xffffffff
jmp 0x407cb8