joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c9e1
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47553c
call fcn.0045357c
sub esp, 0x414
push ebx
xor ebx, ebx
push str.getTempPath
mov ecx, 0x49fb88
mov dword [ebp - 0x10], ebx
call fcn.004019b3
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp byte [ebp + 0xc], bl
je 0x41ca2e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.0041518e
jmp 0x41ca57
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x47ad14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
call fcn.0041518e
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x41ceb5
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov eax, 0x475671
call fcn.0045357c
sub esp, 0x254
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x47be64
mov ecx, 0x49fb88
call fcn.004019b3
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 1
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], bl
mov ecx, esi
call dword [eax + 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 8]
call fcn.0040b95f
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401436
push 0x104
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040943b
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041fc29
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041fc07
push dword [esi + 4]
lea ecx, [ebp - 0x3c]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.00420828
mov byte [ebp - 4], 4
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x41cf7a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41cfc5
mov byte [ebp - 0xd], bl
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.004014ab
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00408de5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
test al, 0x10
je 0x41cf86
mov byte [ebp - 0xd], 1
jmp 0x41cf89
Function at 0x420193
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x475848
call fcn.0045357c
sub esp, 0x44
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x4202a8
cmp byte [esi + 0x41], 0
je 0x4202a8
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4201cc
xor al, al
jmp 0x4202aa
push edi
push 8
lea ecx, [ebp - 0x50]
call fcn.004148d1
mov dword [ebp - 4], edi
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403d32
mov ecx, eax
call fcn.00408c0d
mov edi, dword [ebp - 0x3c]
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403d32
mov ecx, eax
call fcn.00408c0d
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
add edi, ebx
push edi
push dword [ebp - 0x10]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x420242
dec eax
je 0x420246
dec eax
dec eax
je 0x4202a4
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004014ab
mov al, bl
pop ebx
jmp 0x4202aa
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403d32
mov ecx, eax
call fcn.00408c0d
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x420286
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403d32
mov ecx, eax
call fcn.00408c0d
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00457c47
add esp, 0x10
cmp edi, eax
jne 0x42022b
cmp byte [esi + 0x41], 0
je 0x4202a4
test edi, edi
jne 0x4201db
push edi
push 8
lea ecx, [ebp - 0x50]
call fcn.00403de1
jmp 0x4201db
mov bl, 1
jmp 0x42022d
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4204a5
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x47586e
call fcn.0045357c
sub esp, 0x50
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4204c2
xor eax, eax
jmp 0x4204ea
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x4204fa
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4204fa
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov eax, dword [esi + 0x4c]
cmp eax, edi
je 0x420513
cmp dword [esi + 0x3c], edi
jne 0x420518
push eax
push ebx
call fcn.0041f523
pop ecx
pop ecx
test al, al
jne 0x4204e7
or eax, 0xffffffff
jmp 0x4204e9
push edi
push 8
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x10], bl
call fcn.004148d1
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403d32
mov ecx, eax
call fcn.00408c0d
mov edi, dword [ebp - 0x48]
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403d32
mov ecx, eax
call fcn.00408c0d
lea edx, [ebp - 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x42060a
cmp eax, 1
jg 0x42062e
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403d32
mov ecx, eax
call fcn.00408c0d
mov edi, dword [ebp - 0x18]
sub edi, eax
je 0x4205af
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403d32
mov ecx, eax
call fcn.00408c0d
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00457c47
add esp, 0x10
cmp edi, eax
jne 0x420644
lea eax, [ebp - 0x10]
mov byte [esi + 0x41], 1
cmp dword [ebp - 0x1c], eax
jne 0x42065e
test edi, edi
ja 0x4205d5
cmp dword [ebp - 0x48], 0x20
jae 0x420644
push 0
push 8
lea ecx, [ebp - 0x5c]
call fcn.00403de1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403d32
mov ecx, eax
call fcn.00408c0d
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403d32
mov ecx, eax
call fcn.00408c0d
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x20]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0xf]
push edx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x420562
jmp 0x420644
cmp eax, 3
jne 0x420644
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call fcn.0041f523
pop ecx
pop ecx
test al, al
jne 0x42065e
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.004014ab
mov eax, esi
jmp 0x4204e9
mov esi, dword [ebp + 8]
jmp 0x420647
Function at 0x423975
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
xor al, al
mov bl, 1
cmp ecx, 0xffffffff
je 0x423afa
push edi
mov edi, 0x10000000
cmp ecx, 0x7c
je 0x423af9
cmp ecx, 0x29
jne 0x4239b9
cmp dword [esi + 0x1c], 0
jne 0x423af9
test dword [esi + 0x50], edi
jne 0x4239b9
push 5
call fcn.0047081c
pop ecx
jmp 0x423ae2
cmp ecx, 0x2e
jne 0x4239d4
push 5
lea ecx, [esi + 0x24]
call fcn.0041e68a
mov ecx, esi
call fcn.0041f9a5
jmp 0x423ae2
cmp ecx, 0x5c
jne 0x423a31
mov ecx, esi
call fcn.0041f9a5
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x423a06
cmp byte [esi + 0x4a], 0x62
jne 0x423a06
push 4
lea ecx, [esi + 0x24]
call fcn.0041e68a
mov ecx, esi
call fcn.0041f9a5
jmp 0x423ae9
test eax, eax
je 0x423a25
cmp byte [esi + 0x4a], 0x42
jne 0x423a25
push 4
lea ecx, [esi + 0x24]
call fcn.0041e68a
mov eax, dword [esi + 0x28]
add eax, 8
or dword [eax], 1
jmp 0x4239fa
mov ecx, esi
call fcn.00422685
jmp 0x423ae2
cmp ecx, 0x5b
jne 0x423a54
mov ecx, esi
call fcn.0041f9a5
mov ecx, esi
call fcn.00423929
push 4
push 0x5d
mov ecx, esi
call fcn.0041fa35
jmp 0x423ae2
cmp ecx, 0x28
jne 0x423a76
mov ecx, esi
call fcn.0041f9a5
mov ecx, esi
call fcn.0041fa58
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.0041fa35
jmp 0x423ade
cmp ecx, 0x5e
jne 0x423a82
push 2
jmp 0x4239f2
cmp ecx, 0x24
jne 0x423a8e
push 3
jmp 0x4239f2
cmp ecx, 0x2a
je 0x423ad6
cmp ecx, 0x2b
je 0x423ad6
cmp ecx, 0x3f
je 0x423ad6
cmp ecx, 0x7b
je 0x423ad6
cmp ecx, 0x7d
jne 0x423ab3
test dword [esi + 0x50], edi
jne 0x423ab3
push 6
jmp 0x4239ae
cmp ecx, 0x5d
jne 0x423ac4
test dword [esi + 0x50], edi
jne 0x423ac4
push 4
jmp 0x4239ae
movzx eax, byte [esi + 0x4a]
push eax
lea ecx, [esi + 0x24]
call fcn.00421d4f
jmp 0x4239c8
push 0xa
call fcn.0047081c
pop ecx
test bl, bl
je 0x423ae9
mov ecx, esi
call fcn.00422108
mov ecx, dword [esi + 0x4c]
mov al, 1
mov bl, al
cmp ecx, 0xffffffff
jne 0x42398f
pop edi
pop esi
pop ebx
ret
Function at 0x42ac1c
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x476918
call fcn.0045357c
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x8c], edi
je 0x42ac6e
call fcn.0042aa4a
test eax, eax
je 0x42ac7f
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push 0x42abbc
push edi
push edi
call fcn.004594ee
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x42ac6e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0xb0]
cmp eax, edi
je 0x42ac6e
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
push edi
mov edx, dword [ebp - 0x14]
neg edx
push edx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push edi
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
push edi
push dword [esi + 0x90]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x42ac6e
push edi
mov ecx, esi
call fcn.0042b590
xor eax, eax
inc eax
jmp 0x42ac70

Function at 0x42b3d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x476990
call fcn.0045357c
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
call fcn.00447763
mov eax, dword [eax + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42b449
call fcn.00447763
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42b449
call fcn.00447763
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x42b45c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42b4a9
cmp dword [ebp + 0xc], 0
je 0x42b4a9
push edi
push eax
push dword [ebp + 0xc]
call fcn.00456a00
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push esi
mov ecx, dword [ebp - 0x14]
call fcn.0042af7a
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x42b44b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42b442
Function at 0x42bdcf
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x42bdf3
inc eax
jmp 0x42bed9
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x42be38
cmp eax, 2
jne 0x42be26
push str.Key_not_found._n
call fcn.00459328
xor eax, eax
pop ecx
inc eax
jmp 0x42bed8
push str.Error_opening_key._n
call fcn.00459328
pop ecx
xor eax, eax
jmp 0x42bed8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebx + eax*2]
cmp word [esi - 2], 0x5c
je 0x42be57
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x42bea9
lea eax, [ebp - 0x218]
push eax
push 0x208
push esi
call fcn.0042d0eb
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp + 8]
call fcn.0042c0f5
test eax, eax
je 0x42beb9
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push dword [ebp - 4]
mov dword [ebp + 0xc], 0x104
call edi
test eax, eax
je 0x42be72
xor eax, eax
mov word [esi - 2], ax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x42c577
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x476b1b
call fcn.0045357c
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00401407
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call esi
test eax, eax
je 0x42c5e6
lea eax, [ebp - 0x18]
push eax
push 0x20119
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x42c5e6
push 0x47ad14
mov ecx, dword [ebp + 8]
call fcn.0041518e
jmp 0x42c6a4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.0040147f
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 3
jmp 0x42c674
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0042d11e
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x28], ebx
je 0x42c69b
push str.NULLABLE
call fcn.0040b9c2
jmp 0x42c6a4
lea eax, [ebp - 0x14]
push eax
call fcn.0040181b
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00401436
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00401436
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x14]
call fcn.00401436
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42ca18
Capabilities:
Set registry value

Disassembly:
mov eax, 0x476c4c
call fcn.0045357c
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.0042544e
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0042bf3c
push eax
mov ecx, esi
call fcn.0042c806
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0042bf3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42cb0b
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0042bf3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x42cb0b
push 0xfffffffffffffff6
pop esi
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00401436
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401436
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.00401436
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 7
call fcn.00408d47
mov byte [ebp - 4], 7
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
call fcn.00409407
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42cb36
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp + 0x14]
call fcn.0042d11e
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00408de5
jmp 0x42caca
Function at 0x42cb75
Capabilities:
Set registry value

Disassembly:
mov eax, 0x476c86
call fcn.0045357c
push ecx
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.0042544e
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0042bf3c
push eax
mov ecx, esi
call fcn.0042c806
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0042bf3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42cc59
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0042bf3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x42cc59
push 0xfffffffffffffff6
pop esi
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401436
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401436
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret 0x10
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42cc24
Function at 0x42ea20
Capabilities:
Reference wmi statements

Disassembly:
mov eax, 0x477074
call fcn.0045357c
push ecx
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
push str.Caption
push 0x47a98b
push str.SELECT__FROM_Win32_OperatingSystem
push str.ROOTcimv2
push dword [ebp + 8]
call fcn.0042e738
add esp, 0x14
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret

Function at 0x42ea6c
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x477097
call fcn.0045357c
sub esp, 0x204
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
xor eax, eax
push 0x1fc
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00454e40
add esp, 0xc
push 0x1fe
lea eax, [ebp - 0x210]
push eax
push 0x59
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [ebp + 8]
call fcn.00401407
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x10], 1
call fcn.004019b3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x43b994
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x43b9db
call fcn.00447763
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43b9db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43b9f7
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043b50c
mov esi, eax
test edi, edi
je 0x43b9f5
test ebx, ebx
je 0x43b9f5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43c19a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x478135
call fcn.00459827
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43c1bf
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43c205
lea ecx, [ebp - 0x10]
call fcn.00401407
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042f993
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040101a
mov eax, esi
call fcn.004598ff
ret 8

Function at 0x43cabd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43cb05
call fcn.00447763
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43cb05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43cb48
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x43cb31
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43cb31
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x43cb45
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc