joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414085
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.004091e6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
mov dword [ebp - 4], 0x400
jb 0x4140b2
mov eax, dword [eax + 4]
jmp 0x4140b5
add eax, 4
push esi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x404]
push ecx
push 0
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4140e4
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x404]
push eax
call fcn.00409393
mov eax, esi
pop esi
leave
ret

Function at 0x41494b
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x414974
xor eax, eax
jmp 0x4149c1
push edi
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4149b9
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x4149a3
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
push esi
push esi
push esi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 4]
mov esi, eax
call edi
pop ebx
push dword [ebp - 8]
call edi
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4150d7
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x479e65
call fcn.00457fe8
sub esp, 0xe8
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push 0x484b80
mov ecx, 0x4a8db0
call fcn.0040198f
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004017f7
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.0040bbb4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00401436
push dword [ebp + 8]
lea ecx, [ebp - 0xf4]
call fcn.0040ba08
mov byte [ebp - 4], 4
push dword [eax]
lea ecx, [ebp - 0x54]
call fcn.00401a69
mov byte [ebp - 4], 6
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xf4], eax
je 0x415176
push dword [ebp - 0xf4]
call fcn.00459a97
pop ecx
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x415182
lea eax, [ebp - 0x50]
push 0x484b7c
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0045d4a7
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x4152e9
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x4151e3
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.0045cc98
push dword [ebp - 0x14]
call fcn.0045d375
add esp, 0x10
push ebx
push eax
lea ecx, [ebp - 0x38]
call fcn.00419436
push dword [ebp - 0x14]
call fcn.0045d112
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x24]
push edi
push ebx
call fcn.0040369e
push eax
call fcn.0045d0f5
push dword [ebp - 0x14]
call fcn.0045cdd9
add esp, 0x14
push dword [ebp + 0xc]
lea ecx, [ebp - 0xf4]
call fcn.0040ba08
mov byte [ebp - 4], 8
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.00401a69
mov byte [ebp - 4], 9
cmp dword [eax + 0x18], 0x10
jb 0x41526c
mov eax, dword [eax + 4]
jmp 0x41526f
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00401a69
mov byte [ebp - 4], 0xa
sub esp, 0x1c
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004042ce
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 0x4152d0
push dword [ebp - 0xf4]
call fcn.00459a97
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 0x4151aa
mov byte [ebp - 0xd], bl
jmp 0x4151aa
Function at 0x415c99
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47a0a4
call fcn.00457fe8
sub esp, 0x414
push ebx
xor ebx, ebx
push str.getTempPath
mov ecx, 0x4a8db0
mov dword [ebp - 0x10], ebx
call fcn.0040198f
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp byte [ebp + 0xc], bl
je 0x415ce6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.0040e1f5
jmp 0x415d0f
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x481d7c
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.0040e1f5
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 0x415e1f
Capabilities:
Create directory

Disassembly:
mov eax, 0x47a13d
call fcn.00457fe8
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401407
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
inc esi
push eax
mov ecx, ebx
mov dword [ebp - 0x14], esi
call fcn.004156d7
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.00415503
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00412e5f
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00401436
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.00401436
push 0x481d7c
push 0x484c80
lea ecx, [ebp - 0x10]
call fcn.004191f2
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0040bbb4
push 0x484cd4
mov ecx, edi
call fcn.0040dbff
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x415ed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415efc
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.00415503
mov byte [ebp - 4], 6
push eax
mov ecx, edi
call fcn.0040bc9d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.00401436
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41628e
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov eax, 0x47a21c
call fcn.00457fe8
sub esp, 0x254
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x484cf8
mov ecx, 0x4a8db0
call fcn.0040198f
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004017f7
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.0040bbb4
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.004093c7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x58]
call fcn.00419390
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041936e
push dword [esi + 4]
lea ecx, [ebp - 0x3c]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.0041a0d0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x416353
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41639e
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.00408d6c
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 0x41635f
mov byte [ebp - 0xd], 1
jmp 0x416362
Function at 0x419a3b
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x47a441
call fcn.00457fe8
sub esp, 0x44
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x419b50
cmp byte [esi + 0x41], 0
je 0x419b50
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x419a74
xor al, al
jmp 0x419b52
push edi
push 8
lea ecx, [ebp - 0x50]
call fcn.004199cb
mov dword [ebp - 4], edi
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403cee
mov ecx, eax
call fcn.00408b94
mov edi, dword [ebp - 0x3c]
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403cee
mov ecx, eax
call fcn.00408b94
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 0x419aea
dec eax
je 0x419aee
dec eax
dec eax
je 0x419b4c
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 0x419b52
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403cee
mov ecx, eax
call fcn.00408b94
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x419b2e
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403cee
mov ecx, eax
call fcn.00408b94
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045c057
add esp, 0x10
cmp edi, eax
jne 0x419ad3
cmp byte [esi + 0x41], 0
je 0x419b4c
test edi, edi
jne 0x419a83
push edi
push 8
lea ecx, [ebp - 0x50]
call fcn.00403d9d
jmp 0x419a83
mov bl, 1
jmp 0x419ad5
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x419d4d
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x47a479
call fcn.00457fe8
sub esp, 0x50
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x419d6a
xor eax, eax
jmp 0x419d92
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x419da2
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x419da2
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 0x419dbb
cmp dword [esi + 0x3c], edi
jne 0x419dc0
push eax
push ebx
call fcn.00418ad0
pop ecx
pop ecx
test al, al
jne 0x419d8f
or eax, 0xffffffff
jmp 0x419d91
push edi
push 8
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x10], bl
call fcn.004199cb
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403cee
mov ecx, eax
call fcn.00408b94
mov edi, dword [ebp - 0x48]
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403cee
mov ecx, eax
call fcn.00408b94
lea edx, [ebp - 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x419eb2
cmp eax, 1
jg 0x419ed6
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403cee
mov ecx, eax
call fcn.00408b94
mov edi, dword [ebp - 0x18]
sub edi, eax
je 0x419e57
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403cee
mov ecx, eax
call fcn.00408b94
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045c057
add esp, 0x10
cmp edi, eax
jne 0x419eec
lea eax, [ebp - 0x10]
mov byte [esi + 0x41], 1
cmp dword [ebp - 0x1c], eax
jne 0x419f06
test edi, edi
ja 0x419e7d
cmp dword [ebp - 0x48], 0x20
jae 0x419eec
push 0
push 8
lea ecx, [ebp - 0x5c]
call fcn.00403d9d
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403cee
mov ecx, eax
call fcn.00408b94
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403cee
mov ecx, eax
call fcn.00408b94
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 0x419e0a
jmp 0x419eec
cmp eax, 3
jne 0x419eec
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call fcn.00418ad0
pop ecx
pop ecx
test al, al
jne 0x419f06
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.004014ab
mov eax, esi
jmp 0x419d91
mov esi, dword [ebp + 8]
jmp 0x419eef
Function at 0x41d45f
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 0x41d5e4
push edi
mov edi, 0x10000000
cmp ecx, 0x7c
je 0x41d5e3
cmp ecx, 0x29
jne 0x41d4a3
cmp dword [esi + 0x1c], 0
jne 0x41d5e3
test dword [esi + 0x50], edi
jne 0x41d4a3
push 5
call fcn.00475dac
pop ecx
jmp 0x41d5cc
cmp ecx, 0x2e
jne 0x41d4be
push 5
lea ecx, [esi + 0x24]
call fcn.00417b95
mov ecx, esi
call fcn.00418f5f
jmp 0x41d5cc
cmp ecx, 0x5c
jne 0x41d51b
mov ecx, esi
call fcn.00418f5f
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x41d4f0
cmp byte [esi + 0x4a], 0x62
jne 0x41d4f0
push 4
lea ecx, [esi + 0x24]
call fcn.00417b95
mov ecx, esi
call fcn.00418f5f
jmp 0x41d5d3
test eax, eax
je 0x41d50f
cmp byte [esi + 0x4a], 0x42
jne 0x41d50f
push 4
lea ecx, [esi + 0x24]
call fcn.00417b95
mov eax, dword [esi + 0x28]
add eax, 8
or dword [eax], 1
jmp 0x41d4e4
mov ecx, esi
call fcn.0041c16f
jmp 0x41d5cc
cmp ecx, 0x5b
jne 0x41d53e
mov ecx, esi
call fcn.00418f5f
mov ecx, esi
call fcn.0041d413
push 4
push 0x5d
mov ecx, esi
call fcn.00418fef
jmp 0x41d5cc
cmp ecx, 0x28
jne 0x41d560
mov ecx, esi
call fcn.00418f5f
mov ecx, esi
call fcn.00419012
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.00418fef
jmp 0x41d5c8
cmp ecx, 0x5e
jne 0x41d56c
push 2
jmp 0x41d4dc
cmp ecx, 0x24
jne 0x41d578
push 3
jmp 0x41d4dc
cmp ecx, 0x2a
je 0x41d5c0
cmp ecx, 0x2b
je 0x41d5c0
cmp ecx, 0x3f
je 0x41d5c0
cmp ecx, 0x7b
je 0x41d5c0
cmp ecx, 0x7d
jne 0x41d59d
test dword [esi + 0x50], edi
jne 0x41d59d
push 6
jmp 0x41d498
cmp ecx, 0x5d
jne 0x41d5ae
test dword [esi + 0x50], edi
jne 0x41d5ae
push 4
jmp 0x41d498
movzx eax, byte [esi + 0x4a]
push eax
lea ecx, [esi + 0x24]
call fcn.0041b6de
jmp 0x41d4b2
push 0xa
call fcn.00475dac
pop ecx
test bl, bl
je 0x41d5d3
mov ecx, esi
call fcn.0041ba97
mov ecx, dword [esi + 0x4c]
mov al, 1
mov bl, al
cmp ecx, 0xffffffff
jne 0x41d479
pop edi
pop esi
pop ebx
ret

Function at 0x41de31
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x47a8c3
call fcn.00457fe8
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push str.openUrlOnDefaultBrowser
mov ecx, 0x4a8db0
call fcn.0040198f
mov byte [ebp - 4], 1
push 1
push esi
push esi
push dword [ebp + 8]
push 0x483f64
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42eb5e
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x47d26e
call fcn.00457fe8
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 0x42ebb0
call fcn.0042e98c
test eax, eax
je 0x42ebc1
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push 0x42eafe
push edi
push edi
call fcn.0045e4aa
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x42ebb0
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 0x42ebb0
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 0x42ebb0
push edi
mov ecx, esi
call fcn.0042f4d2
xor eax, eax
inc eax
jmp 0x42ebb2

Function at 0x42f319
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x47d2e6
call fcn.00457fe8
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.0044b2c8
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 0x42f38b
call fcn.0044b2c8
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42f38b
call fcn.0044b2c8
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 0x42f39e
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 0x42f3eb
cmp dword [ebp + 0xc], 0
je 0x42f3eb
push edi
push eax
push dword [ebp + 0xc]
call fcn.0045aea0
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.0042eebc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x42f38d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42f384
Function at 0x42fd5e
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 0x42fd82
inc eax
jmp 0x42fe68
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 0x42fdc7
cmp eax, 2
jne 0x42fdb5
push str.Key_not_found._n
call fcn.0045a50b
xor eax, eax
pop ecx
inc eax
jmp 0x42fe67
push str.Error_opening_key._n
call fcn.0045a50b
pop ecx
xor eax, eax
jmp 0x42fe67
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebx + eax*2]
cmp word [esi - 2], 0x5c
je 0x42fde6
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 0x42fe38
lea eax, [ebp - 0x218]
push eax
push 0x208
push esi
call fcn.0043106b
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp + 8]
call fcn.00430084
test eax, eax
je 0x42fe48
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 0x42fe01
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 0x4304f7
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47d471
call fcn.00457fe8
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 0x430566
lea eax, [ebp - 0x18]
push eax
push 0x20119
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x430566
push 0x481d7c
mov ecx, dword [ebp + 8]
call fcn.0040e1f5
jmp 0x430624
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 0x4305f4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0043109e
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x28], ebx
je 0x43061b
push str.NULLABLE
call fcn.0040bc4e
jmp 0x430624
lea eax, [ebp - 0x14]
push eax
call fcn.004017f7
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 0x430998
Capabilities:
Set registry value

Disassembly:
mov eax, 0x47d5a2
call fcn.00457fe8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.00424cad
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004017f7
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0042fecb
push eax
mov ecx, esi
call fcn.00430786
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.004017f7
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0042fecb
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x430a8b
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.004017f7
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0042fecb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x430a8b
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.00408cce
mov byte [ebp - 4], 7
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
call fcn.00409393
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x430ab6
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.0043109e
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00408d6c
jmp 0x430a4a