joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415cd0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x415e8e
push 0x3d
push edi
call fcn.0040a240
mov esi, eax
add esp, 8
test esi, esi
je 0x415e8e
cmp edi, esi
je 0x415e8e
mov dl, byte [esi + 1]
mov ecx, dword [0x4390bc]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x4390b8]
cmp eax, ecx
jne 0x415d27
push eax
call fcn.00415f60
add esp, 4
mov dword [0x4390b8], eax
test eax, eax
jne 0x415da2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415d4e
mov eax, dword [0x4390c0]
test eax, eax
je 0x415d4e
call fcn.00415170
test eax, eax
je 0x415d9d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x415d5a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040a310
add esp, 4
mov dword [0x4390b8], eax
test eax, eax
je 0x415e8e
mov dword [eax], 0
mov eax, dword [0x4390c0]
test eax, eax
jne 0x415d9d
push 4
call fcn.0040a310
add esp, 4
mov dword [0x4390c0], eax
test eax, eax
je 0x415e8e
mov dword [eax], 0
mov eax, dword [0x4390b8]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00415ee0
mov esi, eax
add esp, 8
test esi, esi
jl 0x415e9f
cmp dword [ebx], 0
je 0x415e9f
test ebp, ebp
je 0x415e97
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040a3e0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x415df9
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 0x415de8
lea eax, [esi*4]
push eax
push ebx
call fcn.0040d2d0
add esp, 8
test eax, eax
je 0x415e13
mov dword [0x4390b8], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415e86
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040a310
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x415e86
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.0040a3e0
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 0x415e17
test ebp, ebp
jne 0x415e86
test esi, esi
jge 0x415ea9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040d2d0
add esp, 8
test eax, eax
je 0x415e8e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x4390b8], eax
jmp 0x415e17
Function at 0x417830
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x417849
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41784b
xor eax, eax
test eax, eax
je 0x41785c
push eax
call fcn.0040bf90
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x418b3d
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 0x418b60
cmp dword [edi + 0x3c], 0
jne 0x418b60
movzx eax, word [edi + 0x40]
mov dword [edi + 0x3c], eax
call fcn.00427660
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.00418b8d
pop edi
pop esi
pop ebx
ret 8

Function at 0x418eb9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x429100
call fcn.0040a1c0
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.00427660
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x418f07
call fcn.00427660
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 0x418f15
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x418f23
or eax, 0xffffffff
jmp 0x41900f
mov ecx, esi
call fcn.00418e44
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00419c62
push edi
call fcn.00419705
and dword [ebp - 0x1c], 0
test edi, edi
je 0x418f5d
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x418f5d
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.00419c16
push edi
call fcn.00419705
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00418bdb
xor ebx, ebx
cmp eax, ebx
je 0x418fd6
test byte [esi + 0x24], 0x10
je 0x418fa1
push 4
mov ecx, esi
pop ebx
call fcn.0041c0d7
test ah, 1
je 0x418f97
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041bcc7
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x418fd6
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041c166
jmp 0x418fd6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x418fe8
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x418ffe
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x418ffe
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.00418e7b
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 0x41bbbd
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 0x41bbff
call fcn.00427660
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41bbff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41bbf6
xor eax, eax
jmp 0x41bc07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041bc0d
pop edi
pop esi
pop ebx
ret 4

Function at 0x41efde
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 0x41f006
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041f70d
pop esi
ret 4

Function at 0x41f2b1
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4299b4
call fcn.0040a1c0
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 0x41f3d6
test byte [ebp - 0x16a], 1
je 0x41f3d6
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
push 0x42c6f0
push ebx
push 0x42c6e0
call fcn.0041f088
test eax, eax
jl 0x41f3d6
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x42c6d0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x41f3cd
cmp edi, ebx
jne 0x41f342
xor eax, eax
jmp 0x41f363
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.00409e20
mov eax, esp
push esi
push edi
push eax
call fcn.0041ce13
mov ecx, dword [ebp - 0x14]
push ebx
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jl 0x41f3c4
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x41f37d
xor eax, eax
jmp 0x41f380
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 0x41f3c4
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.0041f07a
push 1
pop eax
jmp 0x41f3e4
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.0041f07a
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 0x4200f6
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 0x42010e
push 0
jmp 0x420111
push dword [esi + 0x20]
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x42011f
pop esi
ret
push 1
pop eax
pop esi
ret

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

Disassembly:
mov eax, 0x4294ac
call fcn.0040a1c0
sub esp, 0x240
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.0041c943
test byte [ebp + 0xd], 0x10
je 0x42061b
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.0041d908
test eax, eax
je 0x42061b
lea ecx, [ebp - 0x10]
call fcn.0041c86d
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0041f4d4
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 0x4205ba
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 0x42060f
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.0041ccf5
push eax
push 0
lea eax, [ebp - 0x24c]
push 0x42bc7c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041cd44
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c9b8
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x4206d8
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0041ed05
test eax, eax
je 0x4206d8
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.0041cb00
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 0x420689
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0041d9ba
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 0x4206d3
push dword [ebp + 0xc]
call fcn.0041893e
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 0x4206cc
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.0041897a
pop ecx
push 1
pop eax
jmp 0x4206ef
mov ecx, edi
call fcn.0041c943
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041ed05
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x421d26
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 0x421d43
cmp dword [0x439054], edi
jne 0x421e95
cmp word [0x439060], di
mov dword [0x439054], 1
jne 0x421d75
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 [0x43905c], eax
mov word [0x439060], cx
cmp word [0x439060], 2
jne 0x421db1
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x421db1
mov ecx, dword [0x43905c]
cmp ecx, edi
je 0x421db1
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x439058], eax
jmp 0x421e9a
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.0040a1e0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x439058], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x421e95
cmp dword [ebp - 0x8c], 1
je 0x421e05
cmp dword [ebp - 0x8c], 2
jne 0x421e95
cmp dword [ebp - 0x98], 4
jae 0x421e74
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421e95
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 0x421e69
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0040a8e0
add esp, 0xc
mov dword [0x439058], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421e95
cmp dword [ebp - 0x8c], 2
jne 0x421e95
cmp dword [ebp - 0x98], 4
jb 0x421e95
push edi
push 0x439058
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x439058]
pop edi
leave
ret

Function at 0x42317e
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 0x4231c2
push dword [ebp + 8]
call fcn.00426fb7
mov esi, eax
test esi, esi
je 0x4231ed
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 0x4231ed
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x4327a0
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 0x426cd0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x429384
call fcn.0040a1c0
sub esp, 0x120
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x14], ebx
call fcn.0042315a
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x426d16
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0042316c
cmp eax, ebx
je 0x426d11
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 0x426cf6
cmp dword [edi + 0x7c], ebx
je 0x426ded
push str.Software_
lea ecx, [ebp - 0x10]
call fcn.0041ca26
push dword [edi + 0x7c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0041cca1
lea eax, [ebp - 0x10]
push 0x432210
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041cbce
push dword [edi + 0x90]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041cbce
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0041c9b8
lea eax, [ebp - 0x18]
mov esi, closesocket
push eax
push esi
mov ecx, edi
call fcn.00426dff
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x426dc1
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 0x426db8
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push esi
call fcn.00426dff
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.0041c9b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c9b8
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x426dff
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x429398
call fcn.0040a1c0
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 0x426ebe
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 0x426e9e
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041ca26
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 4], esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.00426dff
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.0041c9b8
cmp byte [ebp - 0xd], 0
jne 0x426e9e
lea eax, [ebp - 0x11c]
push ebx
push eax
push 0
push dword [ebp - 0x14]
jmp 0x426e48
cmp esi, 0x103
je 0x426eae
cmp esi, 0x3f2
jne 0x426ebe
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 0x427475
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4296c2
call fcn.0040a1c0
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.004184c9
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.004184c9
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.004182ec
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x418922
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x427919
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 0x427949
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x4279d3
cmp dword [esp + 0x14], ebx
je 0x4279d3
cmp esi, ebx
jne 0x42796f
push 0x10
call fcn.00427736
cmp eax, ebx
je 0x42795e
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x427960
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004276d8
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x427986
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x427996
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 0x4279a2
call fcn.00417d9f
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.0040a1e0
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 0x427a09
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 0x427a5c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x427a3f
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x427a3f
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x427a56
and dword [ebp - 4], 0
jmp 0x427a56
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x427a4f
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 0x427a20
cmp dword [ebp - 4], 0
je 0x427a8a
push esi
lea ecx, [ebx + 0x14]
call fcn.004276eb
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x427a80
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
Function at 0x427f94
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040ad90
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
je 0x428010
mov edi, closesocket
and byte [eax], 0
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x428010
lea eax, [ebp - 0x108]
xor ebx, ebx
push 0x105
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x427fed
push 1
pop ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x428010
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x5c
push esi
call fcn.0040b950
pop ecx
test eax, eax
pop ecx
jne 0x427fbb
push esi
call fcn.0040a3e0
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b25d
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040b40d
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40b35b
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40b2fe
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40b341
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40b315
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40b330
test al, 0x40
je 0x40b327
mov ecx, dword [edi + 0x20]
jmp 0x40b32e
test al, 0x80
je 0x40b341
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40b341
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40b2cd
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret