joyce8/EMBER2024-capa huggingface dataset:
Function at 0x625990
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x6259c3
push 0x2e
push edi
call fcn.0062d490
add esp, 8
test eax, eax
je 0x6259c1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x627390
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x70c4c4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x6273bd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x627407
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x62740d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x62746b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x627430
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x627497
mov eax, dword [esi + 4]
push 1
push 0x6755e4
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x6755e5
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x627470
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x64803c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00647eb2

Function at 0x64ab40
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0064a693
Function at 0x1001df5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1001e39
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x1001e42
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1001e61
xor eax, eax
jmp 0x1001e9d
cmp dword [ebp + 0x18], 1
jne 0x1001e76
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
jmp 0x1001e79
mov eax, dword [ebp + 0x14]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x14

Function at 0x100210a
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1002140
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10034c5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100704c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1007058]
je 0x10034ef
inc eax
cmp eax, 0x12
jb 0x10034e0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1007058]
mov dword [ebp - 0x110], esi
jne 0x100369a
mov eax, dword [0x10072c8]
cmp eax, 1
je 0x1003668
test eax, eax
jne 0x1003525
cmp dword [0x1007054], 1
je 0x1003668
cmp ecx, 0xfc
je 0x100369a
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003560
push 5
pop ecx
mov esi, 0x1001854
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100356b
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10035a3
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003583
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001850
push ebx
call fcn.01004220
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10035a8
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x100705c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10035c2
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01004090
mov edx, esp
push 6
pop ecx
mov esi, 0x1001834
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10035ee
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10035fa
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003613
mov eax, dword [ebp - 0x110]
mov esi, 0x1001830
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100705c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003631
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100363d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001808
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01004119
add esp, 0xc
jmp 0x100369a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100369a
mov esi, dword [esi + 0x100705c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100367f
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01002f9c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003bd9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007430]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1003c25
call esi
mov edi, eax
cmp edi, ebx
je 0x1003c0b
mov dword [0x1007430], 1
jmp 0x1003c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1003c20
push 2
pop eax
mov dword [0x1007430], eax
jmp 0x1003c25
mov eax, dword [0x1007430]
cmp eax, 1
jne 0x1003ca2
cmp edi, ebx
jne 0x1003c36
call esi
mov edi, eax
cmp edi, ebx
je 0x1003cab
cmp word [edi], bx
mov eax, edi
je 0x1003c4b
inc eax
inc eax
cmp word [eax], bx
jne 0x1003c3d
inc eax
inc eax
cmp word [eax], bx
jne 0x1003c3d
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1003c99
push eax
call fcn.0100484c
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x1003c99
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1003c96
push dword [ebp - 4]
call fcn.01004787
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1003cfa
cmp eax, 2
je 0x1003caf
cmp eax, ebx
je 0x1003caf
xor eax, eax
jmp 0x1003cfc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1003cab
cmp byte [esi], bl
je 0x1003ccc
inc eax
cmp byte [eax], bl
jne 0x1003cc2
inc eax
cmp byte [eax], bl
jne 0x1003cc2
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100484c
cmp eax, ebx
pop ecx
je 0x1003cf3
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004119
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1007434], ebx
push esi
push edi
jne 0x100419b
push 0x10018d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA_1]
mov edi, eax
cmp edi, ebx
je 0x10041d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10018c4
push edi
call esi
test eax, eax
mov dword [0x1007434], eax
je 0x10041d6
push 0x10018b4
push edi
call esi
push 0x10018a0
push edi
mov dword [0x1007438], eax
call esi
cmp dword [0x10072d8], 2
mov dword [0x100743c], eax
jne 0x100419b
push 0x1001884
push edi
call esi
test eax, eax
mov dword [0x1007444], eax
je 0x100419b
push 0x100186c
push edi
call esi
mov dword [0x1007440], eax
mov eax, dword [0x1007440]
test eax, eax
je 0x10041e0
call eax
test eax, eax
je 0x10041c7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1007444]
test eax, eax
je 0x10041c7
test byte [ebp - 8], 1
jne 0x10041e0
cmp dword [0x10072e4], 4
jb 0x10041da
or byte [ebp + 0x12], 0x20
jmp 0x10041ff
xor eax, eax
jmp 0x100420f
or byte [ebp + 0x12], 4
jmp 0x10041ff
mov eax, dword [0x1007438]
test eax, eax
je 0x10041ff
call eax
mov ebx, eax
test ebx, ebx
je 0x10041ff
mov eax, dword [0x100743c]
test eax, eax
je 0x10041ff
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1007434]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10051f6
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1005227
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100522e
cmp ebx, dword [ebp + 8]
jae 0x100522e
xor eax, eax
jmp 0x100541e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100523f
xor eax, eax
inc eax
jmp 0x100541d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1005255
cmp ecx, edx
jae 0x100539a
cmp dword [eax + 4], 0
je 0x100525e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1005246
cmp dword [ebp + 8], 0
je 0x1005280
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100539a
cmp eax, esi
jae 0x100539a
mov eax, dword [0x1007450]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x10052a5
cmp dword [esi*4 + 0x1007458], edi
je 0x100539e
inc esi
cmp esi, eax
jl 0x1005293
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100541a
cmp dword [ebp - 8], 0x1000000
jne 0x100541a
test byte [ebp - 0xc], 0xcc
je 0x1005323
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100541a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100541a
cmp word [eax + 0x18], 0x10b
jne 0x100541a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100541a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1005323
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1005323
test byte [ecx + 0x27], 0x80
jne 0x100539a
push 1
push 0x1007498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1005237
mov ecx, dword [0x1007450]
test ecx, ecx
mov edx, ecx
jle 0x1005357
lea eax, [ecx*4 + 0x1007454]
cmp dword [eax], edi
je 0x1005357
dec edx
sub eax, 4
test edx, edx
jg 0x100534b
test edx, edx
jne 0x1005388
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1005364
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100537c
lea eax, [edx*4 + 0x1007458]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100536a
cmp ecx, 0x10
jge 0x1005388
inc ecx
mov dword [0x1007450], ecx
push 0
push 0x1007498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1005237
xor eax, eax
jmp 0x100541d
test esi, esi
jle 0x1005237
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1007498
call ebx
test eax, eax
jne 0x1005237
cmp dword [esi*4 + 0x1007458], edi
je 0x10053f4
mov eax, dword [0x1007450]
lea esi, [eax - 1]
test esi, esi
jl 0x10053e2
cmp dword [esi*4 + 0x1007458], edi
je 0x10053de
dec esi
jns 0x10053d2
test esi, esi
jge 0x10053f2
cmp eax, 0x10
jge 0x10053ed
inc eax
mov dword [0x1007450], eax
lea esi, [eax - 1]
jmp 0x10053f4
je 0x100540c
xor ecx, ecx
test esi, esi
jl 0x100540c
lea eax, [ecx*4 + 0x1007458]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x10053fa
push 0
push 0x1007498
call ebx
jmp 0x1005237
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005dca
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01004090
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005e30
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10072d8]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1005e34
xor eax, eax
jmp 0x1005e41
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40434a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
mov dword [ebp - 8], edx
push edi
mov edi, ecx
cmp word [edx], ax
jne 0x404365
mov eax, edi
jmp 0x4043eb
movzx eax, word [edi]
push ebx
push esi
test ax, ax
je 0x4043e7
mov esi, edi
mov ebx, edx
test ax, ax
je 0x4043ca
movzx eax, word [ebx]
test ax, ax
je 0x4043ee
movzx ecx, word [esi]
sub ecx, eax
jne 0x4043ca
push esi
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, edx
sub ecx, ebx
sub eax, esi
xor ecx, eax
test ecx, 0xfffffffe
jne 0x4043ca
jmp 0x4043bf
add esi, 2
add ebx, 2
movzx eax, word [ebx]
movzx ecx, word [esi]
sub ecx, eax
je 0x4043c3
cmp esi, edx
jb 0x4043af
xor eax, eax
cmp word [esi], ax
jne 0x404378
xor edx, edx
cmp word [ebx], dx
je 0x4043ee
push edi
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov edx, dword [ebp - 8]
mov edi, eax
movzx ecx, word [edi]
mov eax, ecx
test cx, cx
jne 0x40436f
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
mov eax, edi
jmp 0x4043e9
Function at 0x4047f7
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x40e200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040bdb0
mov eax, esp
lea ecx, [ebp - 0x28]
push 0x1c
push ecx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test eax, eax
je 0x4048ae
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x48]
lea eax, [esi + 0x2000]
mov edi, ebx
neg edi
and edi, dword [ebp - 8]
sub edi, ebx
mov dword [ebp - 8], eax
cmp edi, eax
jb 0x4048ae
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test eax, eax
je 0x4048ae
add esi, dword [ebp - 0x1c]
mov ecx, 0x1000
test dword [ebp - 0x18], ecx
je 0x404854
test dword [ebp - 0x14], 0x100
mov esi, dword [ebp - 0x28]
je 0x404883
xor eax, eax
inc eax
jmp 0x4048b0
cmp edi, esi
jb 0x4048ae
mov eax, dword [ebp - 8]
cmp esi, eax
jae 0x404890
mov esi, eax
push 4
push ecx
push ebx
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
lea eax, [ebp - 0xc]
push eax
push 0x104
push ebx
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
jmp 0x4048b0
xor eax, eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b490
leave
ret
Function at 0x404a16
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x220
mov eax, 0x40bf6d
call fcn.0040b657
mov edi, ecx
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], ecx
push eax
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [ebp - 0x224], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x404b1d
cmp dword [ebp - 0x21c], esi
je 0x404a7d
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x21c], eax
test esi, esi
jne 0x404b1d
lea ecx, [ebp - 0x22c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push esi
push eax
jmp 0x404ae4
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404a16
mov esi, eax
test esi, esi
jne 0x404b1d
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x100
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x404aad
cmp dword [ebp - 0x21c], 0
je 0x404b13
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [ebp - 0x21c], esi
push ebx
mov ecx, edi
call fcn.00404b53
mov esi, eax
cmp dword [ebp - 0x21c], 0
je 0x404b32
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
call fcn.0040b606
ret 4
Function at 0x40562d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x1c
mov eax, 0x40bff1
call fcn.0040b657
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x20], esi
push 2
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40567a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4057cb
movzx esi, si
or esi, 0x80070000
jmp 0x4057cb
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x4056ac
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4057c2
movzx esi, si
or esi, 0x80070000
jmp 0x4057c2
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40568e
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edi, eax
cmp byte [ecx + eax], 0
je 0x40573e
lea edi, [ecx + 1]
cmp edi, 0x400
ja 0x4056f8
mov ecx, edi
call fcn.004048c2
test al, al
je 0x4056f8
mov eax, edi
call fcn.0040bde0
mov edi, esp
jmp 0x405719
lea eax, [edi + 8]
cmp eax, edi
jae 0x405703
mov edi, ebx
jmp 0x405719
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
je 0x4056ff
mov esi, eax
mov dword [eax], ebx
mov dword [ebp - 0x20], esi
lea edi, [eax + 8]
test edi, edi
jne 0x405727
mov esi, 0x8007000e
jmp 0x4057c2
mov eax, dword [ebp - 0x14]
inc eax
push eax
push dword [ebp - 0x18]
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [edi + eax], bl
test edi, edi
je 0x4057b4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405747
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
add eax, eax
mov dword [ebp - 0x14], eax
cmp eax, 0x400
ja 0x405779
mov ecx, eax
call fcn.004048c2
test al, al
mov eax, dword [ebp - 0x14]
je 0x405779
call fcn.0040bde0
mov esi, esp
jmp 0x405794
lea ecx, [eax + 8]
cmp ecx, eax
jb 0x4057b4
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
je 0x4057b4
mov dword [eax], esi
lea esi, [eax + 8]
mov dword [ebp - 0x20], eax
test esi, esi
je 0x4057b4
push dword [ebp - 0x18]
xor eax, eax
push esi
push 0xffffffffffffffff
push edi
push ebx
push ebx
mov word [esi], ax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, esi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
push ebx
call fcn.0040550d
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea ecx, [ebp - 0x20]
call fcn.004042cb
mov eax, esi
lea esp, [ebp - 0x38]
call fcn.0040b606
ret 0x10