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

Disassembly:
mov eax, 0x4753d7
call fcn.004535cc
sub esp, 0xe8
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push 0x47ed18
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], 2
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 1
mov ecx, esi
call dword [eax + 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 8]
call fcn.0040b964
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00401436
push dword [ebp + 8]
lea ecx, [ebp - 0xf4]
call fcn.0040b7a3
mov byte [ebp - 4], 4
push dword [eax]
lea ecx, [ebp - 0x54]
call fcn.00401a8d
mov byte [ebp - 4], 6
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xf4], eax
je 0x41c243
push dword [ebp - 0xf4]
call fcn.00455077
pop ecx
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x41c24f
lea eax, [ebp - 0x50]
push 0x47ed14
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004590e7
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x41c3b6
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x41c2b0
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.004014ab
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00401436
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0xf
call fcn.004013d5
mov byte [ebp - 4], 7
push 2
push ebx
push dword [ebp - 0x14]
call fcn.004588d8
push dword [ebp - 0x14]
call fcn.00458fb5
add esp, 0x10
push ebx
push eax
lea ecx, [ebp - 0x38]
call fcn.0041fc7e
push dword [ebp - 0x14]
call fcn.00458d52
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x24]
push edi
push ebx
call fcn.004036e2
push eax
call fcn.00458d35
push dword [ebp - 0x14]
call fcn.00458a19
add esp, 0x14
push dword [ebp + 0xc]
lea ecx, [ebp - 0xf4]
call fcn.0040b7a3
mov byte [ebp - 4], 8
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.00401a8d
mov byte [ebp - 4], 9
cmp dword [eax + 0x18], 0x10
jb 0x41c339
mov eax, dword [eax + 4]
jmp 0x41c33c
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00401a8d
mov byte [ebp - 4], 0xa
sub esp, 0x1c
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00404312
mov byte [ebp - 4], 0xb
mov eax, dword [esi]
mov byte [ebp - 4], 9
mov ecx, esi
call dword [eax + 0x28]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 8
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.004014ab
mov byte [ebp - 4], 7
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xf4], eax
je 0x41c39d
push dword [ebp - 0xf4]
call fcn.00455077
pop ecx
mov byte [ebp - 4], 6
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.004014ab
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x41c277
mov byte [ebp - 0xd], bl
jmp 0x41c277
Function at 0x41c9eb
Capabilities:
Get common file path

Disassembly:
mov eax, 0x475591
call fcn.004535cc
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 0x41ca38
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.00415196
jmp 0x41ca61
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.00415196
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 0x41cebf
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov eax, 0x4756c6
call fcn.004535cc
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.0040b964
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.00409440
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041fc33
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041fc11
push dword [esi + 4]
lea ecx, [ebp - 0x3c]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.00420832
mov byte [ebp - 4], 4
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x41cf84
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41cfcf
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 0x41cf90
mov byte [ebp - 0xd], 1
jmp 0x41cf93
Function at 0x42019d
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4758d5
call fcn.004535cc
sub esp, 0x44
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x4202b2
cmp byte [esi + 0x41], 0
je 0x4202b2
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4201d6
xor al, al
jmp 0x4202b4
push edi
push 8
lea ecx, [ebp - 0x50]
call fcn.004148d9
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 0x42024c
dec eax
je 0x420250
dec eax
dec eax
je 0x4202ae
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 0x4202b4
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 0x420290
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.00457cb7
add esp, 0x10
cmp edi, eax
jne 0x420235
cmp byte [esi + 0x41], 0
je 0x4202ae
test edi, edi
jne 0x4201e5
push edi
push 8
lea ecx, [ebp - 0x50]
call fcn.00403de1
jmp 0x4201e5
mov bl, 1
jmp 0x420237
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4204af
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4758fb
call fcn.004535cc
sub esp, 0x50
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4204cc
xor eax, eax
jmp 0x4204f4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x420504
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x420504
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 0x42051d
cmp dword [esi + 0x3c], edi
jne 0x420522
push eax
push ebx
call fcn.0041f52d
pop ecx
pop ecx
test al, al
jne 0x4204f1
or eax, 0xffffffff
jmp 0x4204f3
push edi
push 8
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x10], bl
call fcn.004148d9
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 0x420614
cmp eax, 1
jg 0x420638
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 0x4205b9
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.00457cb7
add esp, 0x10
cmp edi, eax
jne 0x42064e
lea eax, [ebp - 0x10]
mov byte [esi + 0x41], 1
cmp dword [ebp - 0x1c], eax
jne 0x420668
test edi, edi
ja 0x4205df
cmp dword [ebp - 0x48], 0x20
jae 0x42064e
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 0x42056c
jmp 0x42064e
cmp eax, 3
jne 0x42064e
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call fcn.0041f52d
pop ecx
pop ecx
test al, al
jne 0x420668
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.004014ab
mov eax, esi
jmp 0x4204f3
mov esi, dword [ebp + 8]
jmp 0x420651
Function at 0x42397f
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 0x423b04
push edi
mov edi, 0x10000000
cmp ecx, 0x7c
je 0x423b03
cmp ecx, 0x29
jne 0x4239c3
cmp dword [esi + 0x1c], 0
jne 0x423b03
test dword [esi + 0x50], edi
jne 0x4239c3
push 5
call fcn.0047086c
pop ecx
jmp 0x423aec
cmp ecx, 0x2e
jne 0x4239de
push 5
lea ecx, [esi + 0x24]
call fcn.0041e694
mov ecx, esi
call fcn.0041f9af
jmp 0x423aec
cmp ecx, 0x5c
jne 0x423a3b
mov ecx, esi
call fcn.0041f9af
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x423a10
cmp byte [esi + 0x4a], 0x62
jne 0x423a10
push 4
lea ecx, [esi + 0x24]
call fcn.0041e694
mov ecx, esi
call fcn.0041f9af
jmp 0x423af3
test eax, eax
je 0x423a2f
cmp byte [esi + 0x4a], 0x42
jne 0x423a2f
push 4
lea ecx, [esi + 0x24]
call fcn.0041e694
mov eax, dword [esi + 0x28]
add eax, 8
or dword [eax], 1
jmp 0x423a04
mov ecx, esi
call fcn.0042268f
jmp 0x423aec
cmp ecx, 0x5b
jne 0x423a5e
mov ecx, esi
call fcn.0041f9af
mov ecx, esi
call fcn.00423933
push 4
push 0x5d
mov ecx, esi
call fcn.0041fa3f
jmp 0x423aec
cmp ecx, 0x28
jne 0x423a80
mov ecx, esi
call fcn.0041f9af
mov ecx, esi
call fcn.0041fa62
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.0041fa3f
jmp 0x423ae8
cmp ecx, 0x5e
jne 0x423a8c
push 2
jmp 0x4239fc
cmp ecx, 0x24
jne 0x423a98
push 3
jmp 0x4239fc
cmp ecx, 0x2a
je 0x423ae0
cmp ecx, 0x2b
je 0x423ae0
cmp ecx, 0x3f
je 0x423ae0
cmp ecx, 0x7b
je 0x423ae0
cmp ecx, 0x7d
jne 0x423abd
test dword [esi + 0x50], edi
jne 0x423abd
push 6
jmp 0x4239b8
cmp ecx, 0x5d
jne 0x423ace
test dword [esi + 0x50], edi
jne 0x423ace
push 4
jmp 0x4239b8
movzx eax, byte [esi + 0x4a]
push eax
lea ecx, [esi + 0x24]
call fcn.00421d59
jmp 0x4239d2
push 0xa
call fcn.0047086c
pop ecx
test bl, bl
je 0x423af3
mov ecx, esi
call fcn.00422112
mov ecx, dword [esi + 0x4c]
mov al, 1
mov bl, al
cmp ecx, 0xffffffff
jne 0x423999
pop edi
pop esi
pop ebx
ret
Function at 0x42ac26
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x476988
call fcn.004535cc
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 0x42ac78
call fcn.0042aa54
test eax, eax
je 0x42ac89
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push 0x42abc6
push edi
push edi
call fcn.0045955e
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x42ac78
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 0x42ac78
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 0x42ac78
push edi
mov ecx, esi
call fcn.0042b59a
xor eax, eax
inc eax
jmp 0x42ac7a

Function at 0x42b3e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x476a00
call fcn.004535cc
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.004477b5
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 0x42b453
call fcn.004477b5
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42b453
call fcn.004477b5
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 0x42b466
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 0x42b4b3
cmp dword [ebp + 0xc], 0
je 0x42b4b3
push edi
push eax
push dword [ebp + 0xc]
call fcn.00456a70
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.0042af84
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x42b455
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42b44c
Function at 0x42be23
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 0x42be47
inc eax
jmp 0x42bf2d
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 0x42be8c
cmp eax, 2
jne 0x42be7a
push str.Key_not_found._n
call fcn.00459398
xor eax, eax
pop ecx
inc eax
jmp 0x42bf2c
push str.Error_opening_key._n
call fcn.00459398
pop ecx
xor eax, eax
jmp 0x42bf2c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebx + eax*2]
cmp word [esi - 2], 0x5c
je 0x42beab
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 0x42befd
lea eax, [ebp - 0x218]
push eax
push 0x208
push esi
call fcn.0042d13f
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp + 8]
call fcn.0042c149
test eax, eax
je 0x42bf0d
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 0x42bec6
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 0x42c5cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x476b8b
call fcn.004535cc
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 0x42c63a
lea eax, [ebp - 0x18]
push eax
push 0x20119
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x42c63a
push 0x47ad14
mov ecx, dword [ebp + 8]
call fcn.00415196
jmp 0x42c6f8
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 0x42c6c8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0042d172
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x28], ebx
je 0x42c6ef
push str.NULLABLE
call fcn.0040b9c7
jmp 0x42c6f8
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 0x42ca6c
Capabilities:
Set registry value

Disassembly:
mov eax, 0x476cbc
call fcn.004535cc
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.00425458
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.0042bf90
push eax
mov ecx, esi
call fcn.0042c85a
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.0042bf90
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42cb5f
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.0042bf90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x42cb5f
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.0040940c
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42cb8a
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.0042d172
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00408de5
jmp 0x42cb1e
Function at 0x42cbc9
Capabilities:
Set registry value

Disassembly:
mov eax, 0x476cf6
call fcn.004535cc
push ecx
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00425458
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.0042bf90
push eax
mov ecx, esi
call fcn.0042c85a
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.0042bf90
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42ccad
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.0042bf90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x42ccad
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 0x42cc78
Function at 0x42ea74
Capabilities:
Reference wmi statements

Disassembly:
mov eax, 0x4770e4
call fcn.004535cc
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.0042e78c
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 0x42eac0
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x477107
call fcn.004535cc
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.00454e90
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