joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401370
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
push 0
push edi
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4013dd
push dword [edi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4013dd
push 0
push 0
push dword [ebp + 0xc]
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4013ee
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi], eax
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4048a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 8], eax
movups xmm0, xmmword [edx]
push esi
movups xmm1, xmmword [edx + 0x10]
mov edx, dword [ebp + 8]
mov esi, ecx
movd eax, xmm0
lea ecx, [ebp - 0x16c]
movups xmmword [ebp - 0x18], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x28], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [ebp - 9], al
call fcn.00401e40
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x20c]
call fcn.00403100
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x1bc]
call fcn.00403480
lea eax, [ebp - 0x1bc]
push eax
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x11c]
call fcn.00401400
add esp, 0xc
lea ecx, [ebp - 0x11c]
call fcn.004018d0
lea ecx, [ebp - 0x11c]
call fcn.004019b0
movups xmm0, xmmword [ebp - 0x11c]
lea edx, [ebp - 0x84]
mov ecx, esi
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [ebp - 0x10c]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [ebp - 0xfc]
movups xmmword [ebp - 0x64], xmm0
movups xmm0, xmmword [ebp - 0xec]
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [ebp - 0xdc]
movups xmmword [ebp - 0x44], xmm0
call fcn.00402140
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00409a70
mov esp, ebp
pop ebp
ret
Function at 0x4049b0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e4
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x47c], 0x425130
mov dword [ebp - 0x478], 0x425138
xor esi, esi
mov dword [ebp - 0x474], 0x425140
mov dword [ebp - 0x470], 0x425148
mov dword [ebp - 0x46c], 0x425150
mov dword [ebp - 0x468], 0x425158
mov dword [ebp - 0x464], 0x425160
mov dword [ebp - 0x460], 0x425168
mov dword [ebp - 0x45c], 0x425170
mov dword [ebp - 0x458], 0x425178
mov dword [ebp - 0x454], 0x425180
mov dword [ebp - 0x450], 0x425188
mov dword [ebp - 0x44c], 0x425190
mov dword [ebp - 0x448], 0x425198
mov dword [ebp - 0x444], 0x4251a0
mov dword [ebp - 0x440], 0x4251a8
mov dword [ebp - 0x43c], 0x4251b0
mov dword [ebp - 0x438], 0x4251b8
mov dword [ebp - 0x434], 0x4251c0
mov dword [ebp - 0x430], 0x4251c8
mov dword [ebp - 0x42c], 0x4251d0
mov dword [ebp - 0x428], 0x4251d8
mov dword [ebp - 0x424], 0x4251e0
mov dword [ebp - 0x420], 0x4251e8
mov dword [ebp - 0x41c], 0x4251f0
mov dword [ebp - 0x418], 0x4251f8
mov dword [ebp - 0x410], edi
nop dword [eax]
nop dword [eax + eax]
mov ebx, dword [ebp + esi*4 - 0x47c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x404afb
mov dword [ebp + edi*4 - 0x4e4], ebx
inc edi
inc esi
cmp esi, 0x1a
jl 0x404ae0
xor eax, eax
push 0x10000
push eax
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x404c34
push 0x8000
push 0
push esi
call fcn.0040ad30
add esp, 0xc
push 0x8000
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x414], eax
mov ebx, eax
nop dword [eax + eax]
test edi, edi
je 0x404c1d
lea eax, [ebp - 0x410]
push eax
push 0x78
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x404b90
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x404b90
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x404c08
mov ebx, dword [ebp + edi*4 - 0x4e8]
dec edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
je 0x404bbd
cmp byte [0x42a33b], 0
je 0x404c02
push ebx
push str._t___Mounted___s_n
call fcn.004012f0
add esp, 8
jmp 0x404c02
cmp byte [0x42a33b], 0
je 0x404c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push pe_nt_image_headers32
lea ecx, [ebp - 0x40c]
push ecx
push 0x409
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x40c]
push eax
push ebx
push str._t____Failed_to_mount__s:__s
call fcn.004012f0
add esp, 0xc
mov ebx, dword [ebp - 0x414]
push 0x8000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x404b50
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409a70
mov esp, ebp
pop ebp
ret
Function at 0x404c50
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x429004]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x4000
push eax
push ecx
push 0x13
push 0
push 2
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x404d89
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x404d7f
push dword [esp + 0xc]
push 0
push ebx
call fcn.0040ad30
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x404d6f
nop
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x404d52
lea esi, [ebx + 0xc]
nop dword [eax + eax]
cmp dword [ebx + 8], 3
jne 0x404d38
push dword [esi + 8]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x42532c
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp byte [0x42a33b], 0
je 0x404d2f
lea eax, [esp + 0x18]
push eax
push 0x425330
call fcn.004012f0
add esp, 8
lea ecx, [esp + 0x18]
call fcn.00404e00
test dword [esi], 2
je 0x404d48
lea ecx, [esi - 0xc]
call fcn.00404c50
inc edi
add esi, 0x20
cmp edi, dword [esp + 0x14]
jb 0x404cf0
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x404ce0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409a70
mov esp, ebp
pop ebp
ret
Function at 0x405f90
Capabilities:
Create restart manager session
Enumerate processes that use resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x218], ecx
push eax
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x4061a0
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x4061a0
push edi
mov edi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x208]
call edi
cmp eax, 0xea
jne 0x406183
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x406183
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
imul eax, eax, 0x29c
push esi
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x4060b3
push 0x29c
push 0
push esi
call fcn.0040ad30
mov eax, dword [ebp - 0x214]
add esp, 0xc
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x208]
call edi
test eax, eax
je 0x4060d2
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a70
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp dword [ebp - 0x20c], ebx
jbe 0x406144
mov edi, esi
nop
mov eax, dword [edi + 0x28c]
cmp eax, 4
je 0x40612f
cmp eax, 0x3e8
je 0x40612f
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x40612f
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x40612f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add edi, 0x29c
cmp ebx, dword [ebp - 0x20c]
jb 0x4060e0
mov esi, dword [ebp - 0x21c]
push 0
push 1
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a70
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a70
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00409a70
mov esp, ebp
pop ebp
ret
Function at 0x406ff0
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x407102
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x426498
call ebx
xor ecx, ecx
add eax, 0x20
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004105aa
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x407102
push 0x426498
call ebx
add eax, 0x20
push eax
push 2
push edi
call fcn.0040ad30
mov edi, dword [ebp - 0xc]
add esp, 0xc
mov ebx, dword [ebp - 0x10]
push 0
push 0
push edi
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0x426498
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push edi
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call fcn.0041058f
add esp, 4
push 0x426498
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
cmp dword [ebp - 8], eax
jne 0x407102
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a70
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409a70
mov esp, ebp
pop ebp
ret
Function at 0x407120
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using curve25519
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x20], 0
jne 0x407155
mov dword [esi + 0x24], 0xd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a70
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x20
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0xf0000000
push 0x18
push 0
mov dword [esi + 0x28], eax
lea eax, [ebp - 8]
push 0
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4071b3
push 0xf0000008
push 0x18
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4071b3
call ebx
mov dword [esi + 0x24], eax
xor edi, edi
jmp 0x407211
push 0x20
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x4071d7
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call ebx
mov dword [esi + 0x24], eax
jmp 0x407211
push edi
push 0x20
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 8]
test eax, eax
jne 0x40720b
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call ebx
mov dword [esi + 0x24], eax
xor edi, edi
jmp 0x407211
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x20
mov dword [esi + 0x2c], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x40
push 0
mov dword [esi + 0x30], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x40
push 0
mov dword [esi + 0x34], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [esi + 0x28], 0
mov dword [esi + 0x38], eax
je 0x4072c7
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4072c7
cmp dword [esi + 0x30], 0
je 0x4072c7
cmp dword [esi + 0x34], 0
je 0x4072c7
test eax, eax
je 0x4072c7
and byte [ecx], 0xf8
mov eax, dword [esi + 0x2c]
push esi
and byte [eax + 0x1f], 0x7f
mov eax, dword [esi + 0x2c]
or byte [eax + 0x1f], 0x40
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
call fcn.004048a0
mov edx, dword [esi + 0x2c]
add esp, 4
mov ecx, dword [esi + 0x30]
push dword [esi + 0x20]
call fcn.004048a0
mov ecx, dword [esi + 0x30]
add esp, 4
push dword [esi + 0x34]
call fcn.004099d0
mov ecx, dword [esi + 0x28]
add esp, 4
push dword [esi + 0x38]
call fcn.004099d0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a70
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004072f0
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x24], eax
xor ecx, ebp
pop esi
xor al, al
pop ebx
call fcn.00409a70
mov esp, ebp
pop ebp
ret
Function at 0x40a275
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a2b4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a2b4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a2b4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a2b4
cmp dword [ecx + 0x74], 0xe
jbe 0x40a2b4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411f36
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420778
push 0x420770
push str.FlsAlloc
push 0x1f
call fcn.00411df5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411f6a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f2a0]
call esi
jmp 0x411f70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411fb4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420788
push 0x420780
push str.FlsGetValue
push 0x21
call fcn.00411df5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411feb
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f2a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x411ff4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420790
push 0x420788
push str.FlsSetValue
push 0x22
call fcn.00411df5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41202e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41f2a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4156e5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x415782
push ebx
push esi
call fcn.004156ae
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00415642
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41572f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415781
push edi
push eax
call fcn.004126e6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41574f
call fcn.00411c88
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415780
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415642
add esp, 0x20
test eax, eax
jne 0x41576e
push edi
call fcn.00411c88
jmp 0x415776
push ebx
call fcn.00411c88
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41da30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41da5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41da5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4080c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4969d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x408127
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004586c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x408115
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x408115
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push 0x47fb00
push eax
call fcn.0045aec7
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004586c3
mov esp, ebp
pop ebp
ret
Function at 0x4081c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.004705d0
mov eax, dword [0x4969d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2720], eax
mov eax, dword [0x47febc]
mov esi, ecx
mov ecx, dword [str.SoftwareClasses_]
mov ebx, edx
mov edx, dword [0x47feb8]
push 0x26fe
mov dword [ebp - 0x270c], eax
mov dword [ebp - 0x2714], ecx
mov ecx, dword [0x47fec0]
mov dword [ebp - 0x2710], edx
mov dx, word [0x47fec4]
lea eax, [ebp - 0x2702]
push 0
push eax
mov byte [ebp - 0x2715], 0
mov dword [ebp - 0x2708], ecx
mov word [ebp - 0x2704], dx
call fcn.00463a80
mov eax, esi
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408244
push edi
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408255
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]
test ebx, ebx
je 0x4082b8
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408276
mov cx, word [0x47fec8]
mov eax, ebx
mov word [edi], cx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408290
lea edi, [ebp - 0x2714]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4082a2
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]
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
test eax, eax
jne 0x40835d
mov esi, dword [ebp - 0x2720]
test esi, esi
je 0x408317
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4082f4
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x408338
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004586c3
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004586c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.004586c3
mov esp, ebp
pop ebp
ret
Function at 0x408380
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.004705d0
mov eax, dword [0x4969d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x47febc]
mov eax, dword [str.SoftwareClasses_]
push esi
push edi
mov esi, ecx
mov ecx, dword [0x47feb8]
push 0x26fe
mov dword [ebp - 0x270c], edx
mov dword [ebp - 0x2714], eax
mov eax, dword [0x47fec0]
mov dword [ebp - 0x2710], ecx
mov cx, word [0x47fec4]
lea edx, [ebp - 0x2702]
push 0
push edx
mov dword [ebp - 0x2708], eax
mov word [ebp - 0x2704], cx
call fcn.00463a80
mov eax, esi
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4083f1
lea edi, [ebp - 0x2714]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408401
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x2714]
push eax
and ecx, 3
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.004586c3
mov esp, ebp
pop ebp
ret