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

Disassembly:
mov eax, dword [0x437100]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x413478
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x413458
mov eax, 2
jmp 0x413473
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x413558
mov eax, 1
mov dword [0x437100], eax
cmp eax, 2
jne 0x413498
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x41356a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4134b3
mov ecx, dword [0x437068]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4134d2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00408260
mov esi, eax
add esp, 4
test esi, esi
jne 0x4134e9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41354f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x413530
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41354f
push esi
call fcn.00408330
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x41355f
push esi
call fcn.00408330
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00408330
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x413c00
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x413dbe
push 0x3d
push edi
call fcn.00408190
mov esi, eax
add esp, 8
test esi, esi
je 0x413dbe
cmp edi, esi
je 0x413dbe
mov dl, byte [esi + 1]
mov ecx, dword [0x436c7c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x436c78]
cmp eax, ecx
jne 0x413c57
push eax
call fcn.00413e90
add esp, 4
mov dword [0x436c78], eax
test eax, eax
jne 0x413cd2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x413c7e
mov eax, dword [0x436c80]
test eax, eax
je 0x413c7e
call fcn.004130d0
test eax, eax
je 0x413ccd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x413c8a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00408260
add esp, 4
mov dword [0x436c78], eax
test eax, eax
je 0x413dbe
mov dword [eax], 0
mov eax, dword [0x436c80]
test eax, eax
jne 0x413ccd
push 4
call fcn.00408260
add esp, 4
mov dword [0x436c80], eax
test eax, eax
je 0x413dbe
mov dword [eax], 0
mov eax, dword [0x436c78]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00413e10
mov esi, eax
add esp, 8
test esi, esi
jl 0x413dcf
cmp dword [ebx], 0
je 0x413dcf
test ebp, ebp
je 0x413dc7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00408330
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x413d29
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x413d18
lea eax, [esi*4]
push eax
push ebx
call fcn.0040b200
add esp, 8
test eax, eax
je 0x413d43
mov dword [0x436c78], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x413db6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00408260
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x413db6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00408330
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x413d47
test ebp, ebp
jne 0x413db6
test esi, esi
jge 0x413dd9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040b200
add esp, 8
test eax, eax
je 0x413dbe
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x436c78], eax
jmp 0x413d47
Function at 0x415760
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x415779
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41577b
xor eax, eax
test eax, eax
je 0x41578c
push eax
call fcn.00409ee0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x416a6d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x416a90
cmp dword [edi + 0x3c], 0
jne 0x416a90
movzx eax, word [edi + 0x40]
mov dword [edi + 0x3c], eax
call fcn.00425611
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00416abd
pop edi
pop esi
pop ebx
ret 8

Function at 0x416de9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4270c4
call fcn.00408110
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.00425611
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x416e37
call fcn.00425611
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x416e45
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x416e53
or eax, 0xffffffff
jmp 0x416f3f
mov ecx, esi
call fcn.00416d74
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00417b92
push edi
call fcn.00417635
and dword [ebp - 0x1c], 0
test edi, edi
je 0x416e8d
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x416e8d
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.00417b46
push edi
call fcn.00417635
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00416b0b
xor ebx, ebx
cmp eax, ebx
je 0x416f06
test byte [esi + 0x24], 0x10
je 0x416ed1
push 4
mov ecx, esi
pop ebx
call fcn.0041a05b
test ah, 1
je 0x416ec7
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00419c4b
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x416f06
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041a0ea
jmp 0x416f06
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x416f18
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x416f2e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x416f2e
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00416dab
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x419b41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x419b83
call fcn.00425611
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x419b83
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x419b7a
xor eax, eax
jmp 0x419b8b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00419b91
pop edi
pop esi
pop ebx
ret 4

Function at 0x41cf8f
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41cfb7
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041d6be
pop esi
ret 4

Function at 0x41d262
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x427964
call fcn.00408110
sub esp, 0x168
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0x800
push 0x160
mov byte [eax], bl
lea eax, [ebp - 0x174]
push eax
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x41d387
test byte [ebp - 0x16a], 1
je 0x41d387
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
push 0x42a6f8
push ebx
push 0x42a6e8
call fcn.0041d039
test eax, eax
jl 0x41d387
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x42a6d8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x41d37e
cmp edi, ebx
jne 0x41d2f3
xor eax, eax
jmp 0x41d314
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00407d70
mov eax, esp
push esi
push edi
push eax
call fcn.0041ad97
mov ecx, dword [ebp - 0x14]
push ebx
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jl 0x41d375
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x41d32e
xor eax, eax
jmp 0x41d331
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp + 0xc]
push 2
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x4c]
test eax, eax
jl 0x41d375
mov eax, dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 0x14]
mov ecx, dword [eax]
push dword [ebp + 0x10]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041d02b
push 1
pop eax
jmp 0x41d395
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041d02b
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x180]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x41e0a7
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
mov eax, dword [esi]
push 1
je 0x41e0bf
push 0
jmp 0x41e0c2
push dword [esi + 0x20]
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x41e0d0
pop esi
ret
push 1
pop eax
pop esi
ret

Function at 0x41e4fb
Capabilities:
Get common file path
Get disk size
Timestomp file

Disassembly:
mov eax, 0x427470
call fcn.00408110
sub esp, 0x240
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.0041a8c7
test byte [ebp + 0xd], 0x10
je 0x41e5cc
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.0041b9b5
test eax, eax
je 0x41e5cc
lea ecx, [ebp - 0x10]
call fcn.0041a7f1
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0041d485
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x41e56b
mov ebx, dword [ebp - 0x2c]
imul ebx, dword [ebp - 0x30]
imul ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x13c]
add eax, eax
cmp ebx, eax
jle 0x41e5c0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x1c]
push 0x105
mov ecx, edi
and byte [eax], 0
call fcn.0041ac79
push eax
push 0
lea eax, [ebp - 0x24c]
push 0x429c84
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041acc8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041a93c
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x41e689
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0041ccb6
test eax, eax
je 0x41e689
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.0041aa84
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41e63a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0041ba67
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
push eax
push ebx
push ebx
push 4
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
je 0x41e684
push dword [ebp + 0xc]
call fcn.0041686e
mov ebx, eax
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push 4
push dword [ebp + 8]
call esi
test eax, eax
je 0x41e67d
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.004168aa
pop ecx
push 1
pop eax
jmp 0x41e6a0
mov ecx, edi
call fcn.0041a8c7
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041ccb6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x41fcd7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x41fcf4
cmp dword [0x436c14], edi
jne 0x41fe46
cmp word [0x436c20], di
mov dword [0x436c14], 1
jne 0x41fd26
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x436c1c], eax
mov word [0x436c20], cx
cmp word [0x436c20], 2
jne 0x41fd62
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x41fd62
mov ecx, dword [0x436c1c]
cmp ecx, edi
je 0x41fd62
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x436c18], eax
jmp 0x41fe4b
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00408130
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x436c18], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41fe46
cmp dword [ebp - 0x8c], 1
je 0x41fdb6
cmp dword [ebp - 0x8c], 2
jne 0x41fe46
cmp dword [ebp - 0x98], 4
jae 0x41fe25
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41fe46
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41fe1a
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00408830
add esp, 0xc
mov dword [0x436c18], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41fe46
cmp dword [ebp - 0x8c], 2
jne 0x41fe46
cmp dword [ebp - 0x98], 4
jb 0x41fe46
push edi
push 0x436c18
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x436c18]
pop edi
leave
ret

Function at 0x42112f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x421173
push dword [ebp + 8]
call fcn.00424f68
mov esi, eax
test esi, esi
je 0x42119e
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x42119e
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x4306d8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x424c81
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x427348
call fcn.00408110
sub esp, 0x120
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x14], ebx
call fcn.0042110b
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x424cc7
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0042111d
cmp eax, ebx
je 0x424cc2
mov edx, dword [eax]
push ebx
push ebx
push 0xfffffffffffffffc
push ebx
mov ecx, eax
call dword [edx + 0x14]
cmp dword [ebp - 0x1c], ebx
jne 0x424ca7
cmp dword [edi + 0x7c], ebx
je 0x424d9e
push str.Software_
lea ecx, [ebp - 0x10]
call fcn.0041a9aa
push dword [edi + 0x7c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0041ac25
lea eax, [ebp - 0x10]
push 0x430200
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041ab52
push dword [edi + 0x90]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041ab52
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0041a93c
lea eax, [ebp - 0x18]
mov esi, 0x80000001
push eax
push esi
mov ecx, edi
call fcn.00424db0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x424d72
lea eax, [ebp - 0x12c]
push 0x104
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x424d69
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push esi
call fcn.00424db0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0041a93c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041a93c
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x424db0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x42735c
call fcn.00408110
sub esp, 0x110
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x424e6f
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
lea eax, [ebp - 0x11c]
push ebx
push eax
push esi
push dword [ebp - 0x14]
call edi
mov esi, eax
test esi, esi
jne 0x424e4f
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041a9aa
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 4], esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.00424db0
mov esi, eax
xor eax, eax
test esi, esi
setne al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov byte [ebp - 0xd], al
call fcn.0041a93c
cmp byte [ebp - 0xd], 0
jne 0x424e4f
lea eax, [ebp - 0x11c]
push ebx
push eax
push 0
push dword [ebp - 0x14]
jmp 0x424df9
cmp esi, 0x103
je 0x424e5f
cmp esi, 0x3f2
jne 0x424e6f
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x425426
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x427686
call fcn.00408110
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.004163f9
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.004163f9
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0041621c
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x416852
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x4258ea
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42591a
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x4259a4
cmp dword [esp + 0x14], ebx
je 0x4259a4
cmp esi, ebx
jne 0x425940
push 0x10
call fcn.00425707
cmp eax, ebx
je 0x42592f
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x425931
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004256a9
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x425957
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x425967
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x425973
call fcn.00415ccf
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.00408130
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x4259da
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x425a2d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x425a10
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x425a10
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x425a27
and dword [ebp - 4], 0
jmp 0x425a27
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x425a20
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x4259f1
cmp dword [ebp - 4], 0
je 0x425a5b
push esi
lea ecx, [ebx + 0x14]
call fcn.004256bc
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x425a51
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8