joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e4e2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004152d1
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41e51a
xor eax, eax
jmp 0x41e546
cmp esi, dword [ebp - 4]
je 0x41e543
cmp dword [ebp + 0xc], 0
je 0x41e543
push dword [edi + 0x9c]
call fcn.0041e0f0
push dword [edi + 0x9c]
mov esi, eax
call fcn.00410a34
pop ecx
pop ecx
cmp esi, eax
je 0x41e516
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4065ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004023c3
xor ebx, ebx
cmp dword [0x410a94], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x406690
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406770
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ca0c
push edi
call esi
cmp eax, ebx
je 0x406770
push eax
call fcn.00402355
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410a94], eax
call esi
push eax
call fcn.00402355
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410a98], eax
call esi
push eax
call fcn.00402355
mov dword [0x410a9c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401791
test eax, eax
pop ecx
pop ecx
je 0x40665e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040214a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x406690
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402355
cmp eax, ebx
pop ecx
mov dword [0x410aa4], eax
je 0x406690
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402355
pop ecx
mov dword [0x410aa0], eax
mov eax, dword [0x410aa0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x406715
cmp dword [0x410aa4], ecx
je 0x406715
push eax
call fcn.004023cc
push dword [0x410aa4]
mov esi, eax
call fcn.004023cc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x406715
cmp edi, ebx
je 0x406715
call esi
cmp eax, ebx
je 0x4066e2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4066e2
test byte [ebp - 0x18], 1
jne 0x406715
lea eax, [ebp - 0x10]
push eax
call fcn.004017c8
test eax, eax
pop ecx
je 0x4066fd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040214a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40670c
or dword [ebp + 0x10], 0x200000
jmp 0x406750
or dword [ebp + 0x10], 0x40000
jmp 0x406750
mov eax, dword [0x410a98]
cmp eax, dword [ebp - 8]
je 0x406750
push eax
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406750
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x406750
mov eax, dword [0x410a9c]
cmp eax, dword [ebp - 8]
je 0x406750
push eax
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406750
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410a94]
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406770
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406772
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40f0db]
shl eax, 2
mov dword [0x40f0df], eax
push edi
push ecx
xor eax, eax
mov edi, 0x411894
mov ecx, 0x411df8
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.00404537
pop ecx
push 0x40f0a4
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40f0e3], eax
push 0
jmp fcn.0040e424
Function at 0x408b20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0040c928
pop ecx
mov ebx, eax
test eax, eax
jne 0x408b44
xor eax, eax
jmp 0x408bed
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x408b65
cmp esi, 0x104
jb 0x408b70
push ebx
call fcn.0040c820
pop ecx
xor eax, eax
jmp 0x408bed
cmp byte [ebx + 1], 0x3a
jne 0x408ba0
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 2
jae 0x408ba0
push ebx
call fcn.0040c820
pop ecx
xor eax, eax
jmp 0x408bed
inc esi
test edi, edi
je 0x408be3
cmp esi, dword [ebp + 0x10]
jbe 0x408bb5
push ebx
call fcn.0040c820
pop ecx
xor eax, eax
jmp 0x408bed
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0040c820
pop ecx
mov eax, edi
jmp 0x408bed
push esi
push ebx
call fcn.0040cdbc
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x408bf4
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x408c39
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
je 0x408c28
cmp eax, dword [ebp + 0x10]
jle 0x408cc2
mov dword [0x411664], 8
xor eax, eax
jmp 0x408d2d
cmp dword [0x411d14], 1
jne 0x408c7e
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x408cc2
xor eax, eax
jmp 0x408d2d
call sub.KERNEL32.dll_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x408cbe
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
jmp 0x408cc2
xor eax, eax
jmp 0x408d2d
lea edx, [ebp - 0x10c]
push edx
call fcn.004041d0
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x408ce2
mov dword [0x411664], 0x22
xor eax, eax
jmp 0x408d2d
test edi, edi
jne 0x408d04
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040c928
pop ecx
mov edi, eax
test eax, eax
jne 0x408d04
mov dword [0x411664], 8
xor eax, eax
jmp 0x408d2d
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x40927f
mov eax, dword [0x410890]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x40928c
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4092b9
je 0x4092cb
sub ecx, 0x100
je 0x4092d9
sub ecx, 0x100
je 0x4092e0
sub ecx, 0x100
je 0x4092d2
jmp 0x4092e7
sub ecx, 0x600
je 0x4092e0
sub ecx, 0x100
je 0x4092cb
jmp 0x4092e7
mov edi, 1
jmp 0x4092ec
mov edi, 2
jmp 0x4092ec
mov edi, 4
jmp 0x4092ec
mov edi, 5
jmp 0x4092ec
mov edi, 3
test byte [ebp + 0xd], 1
je 0x409313
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x410d98]
test al, 0x80
je 0x40930c
mov ebx, 0x80
jmp 0x409325
mov ebx, 1
jmp 0x409325
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x409325
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x409337
je 0x409340
dec eax
je 0x409349
jmp 0x409352
mov dword [ebp - 4], 0x80000000
jmp 0x409361
mov dword [ebp - 4], 0x40000000
jmp 0x409361
mov dword [ebp - 4], 0xc0000000
jmp 0x409361
push 1
call fcn.00408fd8
pop ecx
mov ebx, eax
jmp 0x40944d
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x40937d
sub eax, 0x10
je 0x409384
sub eax, 0x10
je 0x40938d
sub eax, 0x10
je 0x409396
jmp 0x409396
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x40939d
mov dword [ebp - 8], 1
jmp 0x40939d
mov dword [ebp - 8], 2
jmp 0x40939d
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x409406
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4093fb
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4093fb
add ebx, 0xffffffb2
push ebx
call fcn.00408fd8
pop ecx
mov ebx, eax
jmp 0x40944d
mov edi, esi
push edi
call fcn.004091d0
pop ecx
test eax, eax
je 0x40941a
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x409426
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00408d34
add esp, 8
mov ebx, eax
inc eax
jne 0x40944d
push 4
call fcn.00408fd8
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cc04
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x40d060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x411668], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40d118
cmp byte [0x40f0da], 0
je 0x40d0d2
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0040c174
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40d0bb
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0040c174
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40d0bb
lea ebx, [ebp - 0x54]
jmp 0x40d0bc
inc ebx
call fcn.0040d018
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x40d139
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x41166c
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004041d0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x41166f
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x40d139
cmp dword [0x411668], 0xffffffff
je 0x40d139
mov eax, dword [0x411668]
test eax, eax
je 0x40d139
cmp byte [eax], 0
je 0x40d139
push esi
push eax
call fcn.0040d1c8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40de04
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x411da4], 0
jne 0x40de85
cmp dword [0x411dc0], 0
jne 0x40de34
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x411dc0], eax
test eax, eax
jne 0x40de34
push str.GetEnvironmentStrings_failed
call fcn.0040d150
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x411dc0]
jmp 0x40de48
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004041d0
pop ecx
mov edi, eax
test eax, eax
jne 0x40de40
lea edi, [ebp + 1]
push edi
call fcn.0040c928
pop ecx
mov ebx, eax
mov dword [0x411da8], ebx
test ebx, ebx
jne 0x40de72
xor eax, eax
jmp 0x40df48
push edi
mov edx, dword [0x411dc0]
push edx
push ebx
call fcn.00404034
add esp, 0xc
jmp 0x40dea5
xor esi, esi
mov ebx, dword [0x411da4]
jmp 0x40de9f
push eax
call fcn.004041d0
pop ecx
test eax, eax
jne 0x40de9b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40de8f
lea ebx, [esi + 4]
push 4
mov dword [0x411dac], ebx
inc ebx
push ebx
call fcn.0040c1cc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dec8
xor eax, eax
jmp 0x40df48
cmp dword [0x411da4], 0
jne 0x40def9
xor esi, esi
mov ebx, dword [0x411da8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40deea
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004041d0
pop ecx
mov edi, eax
test eax, eax
jne 0x40dee0
jmp 0x40df2a
xor esi, esi
mov ebx, dword [0x411da4]
mov eax, dword [esp]
mov edi, eax
jmp 0x40df24
push eax
call fcn.004041d0
pop ecx
test eax, eax
je 0x40df19
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40df1d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40df08
mov eax, dword [0x411da4]
test eax, eax
je 0x40df3a
push eax
call fcn.0040c820
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x411da4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
mov ebp, esp
mov ecx, 0x800
push esi
xor esi, esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x810]
sub esp, 0x840
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, 0x20019
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x20], esi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 0x80000001
mov dword [ebp - 0x80c], ecx
call sym._RegCreateKeyExW_36
sub esp, 0x24
test eax, eax
je 0x401180
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0x80c]
mov edx, str.LastKey
mov dword [esp + 0x14], eax
lea esi, [ebp - 0x808]
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x810]
mov dword [esp + 0x10], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x401210
mov dword [esp], esi
mov eax, dword [0x416e20]
add eax, 0x40
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x401210
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._FindPathInTree
test eax, eax
je 0x401210
mov dword [esp + 0xc], eax
mov edx, 0x110b
mov eax, 9
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x401259
mov eax, 0x110a
xor ecx, ecx
mov dword [esp + 4], eax
mov eax, dword [0x416e20]
xor esi, esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, 2
mov dword [esp + 8], eax
mov eax, 0x1102
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov eax, dword [ebp - 0x810]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401470
Capabilities:
Get hostname
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x230
mov dword [ebp - 0x218], eax
xor eax, eax
mov dword [ebp - 0x214], eax
xor eax, eax
test edx, edx
mov dword [ebp - 0x220], eax
je 0x4015a0
mov dword [esp + 4], edx
lea eax, [ebp - 0x220]
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._GetItemPath
mov edx, eax
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x220]
sub esp, 0xc
test esi, esi
jne 0x401550
test eax, eax
je 0x401541
cmp eax, 0x80000000
je 0x4015d0
cmp eax, 0x80000001
je 0x401588
cmp eax, 0x80000002
mov edx, dword [str.HKEY_LOCAL_MACHINE]
je 0x40152c
cmp eax, 0x80000003
je 0x4015e0
cmp eax, 0x80000005
je 0x4015f0
cmp eax, 0x80000006
mov edx, str.Unknown_HKEY._Please_report.
je 0x401590
mov dword [ebp - 0x214], edx
test esi, esi
jne 0x401554
lea eax, [ebp - 0x218]
call sym._CombinePaths.constprop.0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test eax, eax
jne 0x4014e7
lea ebx, [ebp - 0x210]
mov eax, 0x104
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov dword [ebp - 0x218], ebx
sub esp, 8
jmp 0x401536
mov edx, dword [str.HKEY_CURRENT_USER]
jmp 0x40152c
mov edx, dword [str.HKEY_DYN_DATA]
jmp 0x40152c
mov dword [esp], ebx
mov eax, 9
xor ecx, ecx
mov dword [esp + 8], eax
mov eax, 0x110a
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
call sym._SendMessageW_16
sub esp, 0x10
mov edx, eax
jmp 0x40149f
mov edx, dword [str.HKEY_CLASSES_ROOT]
jmp 0x40152c
mov edx, dword [str.HKEY_USERS]
jmp 0x40152c
mov edx, dword [str.HKEY_CURRENT_CONFIG]
jmp 0x40152c

Function at 0x401680
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], 0
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword fs:[0x18]
mov eax, ebx
mov edx, esi
call sym._GetPathRoot
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
call sym._GetItemPath
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
call sym._CombinePaths.constprop.0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
xor edx, edx
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402a90
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, ecx
lea edi, [ebp - 0x1c]
sub esp, 0x4c
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402b10
cmp eax, 2
jne 0x402b90
test ebx, ebx
jne 0x402b90
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov dword [esp], 2
call sym._heap_xalloc
mov word [eax], 0
lea esp, [ebp - 0xc]
mov edx, eax
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [eax], 4
je 0x402b80
mov eax, dword [ebp - 0x1c]
add eax, 2
mov dword [esp], eax
call sym._heap_xalloc
mov dword [esp + 0x14], edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [esp + 8], eax
call sym._RegQueryValueExW_24
mov edx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
jne 0x402be0
mov eax, dword [ebp - 0x1c]
test al, 1
jne 0x402b6a
and eax, 0xfffffffe
mov word [edx + eax], 0
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], 4
mov eax, 6
jmp 0x402b1e
mov dword [esp + 8], ebx
mov eax, 0x8045
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._error_code_messagebox
xor edx, edx
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor edx, edx
mov eax, edx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x2c]
mov ecx, 0x8045
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._error_code_messagebox
mov edx, dword [ebp - 0x30]
jmp 0x402baa
Function at 0x403750
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ecx, 0x2001b
mov ebp, esp
push ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x403790
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegDeleteValueW_8
sub esp, 8
test eax, eax
je 0x4037b2
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x4037d0
xor ebx, ebx
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, ebx
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, 0x8045
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x4037b9