joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x692114], 1
je 0x4b9c05
call fcn.004b9870
mov eax, dword [0x59f568]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4b9c30
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004b95f0
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x4b9c1c
test esi, esi
je 0x4b9c1c
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x18], eax
sub esp, 0x10
lea eax, [esi + 0x38]
mov dword [esp], eax
call fcn.004b90d0
cmp eax, 1
je 0x4b9d4d
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call ebp
lea edx, [esi + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x575386
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x59f568]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x575386
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004b9410
lea esi, [esi]
lea esi, [esi]
Function at 0x4b9d60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4b9d90
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4b9e60
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x4b9e90
cmp eax, 3
jne 0x4b9d7a
mov eax, dword [0x59f568]
cmp eax, 0xffffffff
je 0x4b9d7a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4b9d7a
test byte [eax + 0x20], 0x30
je 0x4b9ec0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4b9dd3
call fcn.004b9910
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4b9e05
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x4b9df7
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004b8f10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004b90d0
cmp eax, 1
je 0x4b9f40
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x4b9fb0
mov eax, dword [0x59f568]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x4b9d7a
mov eax, dword [0x6920f0]
test eax, eax
je 0x4b9d7a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x6920f0], 0
sub esp, 4
jmp 0x4b9d7a
mov dword [esp + 4], 0x4b9140
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x6920f0], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4b9f48
test eax, eax
je 0x4b9eda
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x4b9ef7
call fcn.004b9910
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x4b9f90
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4b9f20
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.004b8f10
mov dword [esp], esi
call fcn.004b90d0
cmp eax, 1
jne 0x4b9e24
call fcn.004b9410
lea esi, [esi]
test eax, eax
je 0x4b9f58
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.004b8f10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004b90d0
cmp eax, 1
je 0x4b9f40
mov dword [ebx + 0x38], 0xffffffff
jmp 0x4b9d7a
mov dword [esp], edi
call fcn.004b8f10
mov dword [esp], esi
call fcn.004b90d0
cmp eax, 1
jne 0x4b9f7a
jmp 0x4b9f40
mov eax, ebx
call fcn.004b96b0
jmp 0x4b9e39
Function at 0x4ba820
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.004b9bf0
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4ba842
call fcn.004b9910
test byte [ebx + 0x20], 0x30
jne 0x4ba85c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x59f568]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x4ba89f
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x4ba8e3
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x4ba892
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x4ba8a8
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [ebx + 0x14], 0
mov eax, ebx
call fcn.004b9850
mov eax, dword [0x59f568]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x4ba89f
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4ba8f7
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x4ba8c2
Function at 0x4c9d20
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x10
mov eax, dword [ecx + 8]
mov dword [ecx], 0x5f9914
test eax, eax
jns 0x4c9d80
cmp byte [ebx + 4], 0
je 0x4c9d4f
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wremove]
mov dword [esp], ebx
call fcn.004339c0
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
je 0x4c9d5f
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp], eax
call sub.msvcrt.dll__close
test eax, eax
je 0x4c9e00
mov eax, dword [0x678a20]
test eax, eax
jne 0x4c9e10
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov edi, eax
test eax, eax
je 0x4c9e25
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x4c9e25
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], 0x5a7db3
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.004c1a60
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00432f50
mov dword [esp + 4], esi
mov dword [esp], 0x5a7d38
call fcn.004c19d0
mov dword [esp], 2
call sub.msvcrt.dll_exit
lea esi, [esi]
nop
mov dword [ebx + 8], 0xffffffff
jmp 0x4c9d35
mov dword [esp + 4], 1
mov dword [esp], 0x6789e0
call dword [sym.imp.msvcrt.dll_longjmp]
cmp dword [0x678a20], 0
jne 0x4c9e10
mov eax, 0x40000
call fcn.00439440
mov esi, eax
mov eax, 0x40000
call fcn.00439440
mov dword [esp + 8], 0x40000
mov dword [esp + 4], 0x5a7d14
mov ebx, eax
mov dword [esp], esi
call fcn.004c1a60
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00432f50
mov dword [esp + 4], ebx
mov dword [esp], 0x5a7d38
call fcn.004c19d0
mov dword [esp], 2
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4cc0f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x5e81fd
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x5e8261]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.004a1a70
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.00574490
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x5a10d8], 0
jne 0x4cc216
mov byte [0x5a10d8], 1
call fcn.00570ad0
test eax, eax
je 0x4cc1e4
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.004a0950
mov dword [esp], 2
mov esi, dword [fcn.004b6b80]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x4cc1d4
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5e708d
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x573330
jmp 0x573328
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x4cc19a
mov dword [esp], 2
call dword [0x59f554]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x573323
mov dword [esp], 2
call dword [0x59f554]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x5f9fa0
call fcn.005689b0
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.00570880
add esp, 0x18
pop ebx
ret
Function at 0x51e660
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
jmp 0x51e683
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
jne 0x51e6a1
mov ecx, ebx
call fcn.0051e460
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x51e678
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x100036c0
Capabilities:
Enumerate gui resources
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push str.s.bin
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push 0x1000b340
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0x1000b340
call dword [sym.imp.USER32.dll_EnumWindows]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10008640
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005d018]
jne 0x1000864a
repz ret
jmp fcn.10008bac

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x42b32aae
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x7ef366e6
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401a30
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41b0af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov eax, dword [0x4223c8]
mov dword [esp + 0x20], 1
mov dword [esp + 8], eax
lea ecx, [esp + 4]
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.00401ed0
push 0
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x2c], 3
call fcn.00411c63
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x30], 4
call fcn.00411c63
mov ecx, esi
mov byte [esp + 0x2c], 3
call fcn.00401770
test eax, eax
je 0x401aef
push ecx
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00411c63
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00401d30
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call fcn.00411fdb
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.00411eee
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00411c63
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x20], 2
call fcn.00411eee
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.00411eee
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.00411eee
mov ecx, dword [esp + 0x18]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 8
Function at 0x401b50
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x41b0f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x810
mov al, byte [0x425a60]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0x1c], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x1d]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x4223c8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x830]
mov ebx, 1
cmp eax, 6
mov dword [esp + 0x824], ebx
ja case.0x401bb7.5
jmp dword [eax*4 + 0x401d10]
push 0
lea edx, [esp + 0x20]
push 0x26
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp case.0x401bb7.5
push 0
lea eax, [esp + 0x20]
push 6
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp case.0x401bb7.5
lea ecx, [esp + 0x1c]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp case.0x401bb7.5
lea edx, [esp + 0x1c]
push 0x800
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp case.0x401bb7.5
lea eax, [esp + 0x1c]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp case.0x401bb7.5
lea ecx, [esp + 0x1c]
push 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0xc]
push edx
call fcn.0041202b
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jae 0x401c6a
mov esi, dword [esp + 0x82c]
push 0x425a60
mov ecx, esi
call fcn.00411f5c
mov dword [esp + 0x10], ebx
jmp 0x401ce0
mov byte [esp + 0x1f], 0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
call fcn.0041202b
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4220d0
call fcn.00411f5c
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x834], 2
call fcn.00411c63
mov ecx, esi
mov byte [esp + 0x830], bl
call fcn.004031d0
test eax, eax
jne 0x401cc9
push 0x4220d0
lea ecx, [esp + 0x10]
call fcn.0041227e
mov esi, dword [esp + 0x82c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00411c63
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x824], 0
call fcn.00411eee
mov ecx, dword [esp + 0x81c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x81c
ret 8
Function at 0x401ed0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
mov al, byte [0x425a60]
mov edx, ecx
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
mov ecx, edx
stosb byte es:[edi], al
call fcn.00401b50
mov eax, dword [eax]
lea edx, [esp + 8]
push edx
push 0
push 0x425a60
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 4]
call fcn.00411eee
mov eax, dword [esp + 0x114]
pop edi
test eax, eax
jne 0x401f3d
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [esp + 0x110]
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.00411f5c
mov eax, esi
pop esi
add esp, 0x108
ret 8

Function at 0x401f60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b192
push eax
mov eax, 0x4e30
mov dword fs:[0], esp
call fcn.004060e0
push ebx
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x4e54]
mov dword [esp + 8], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov edx, dword [eax - 8]
mov dword [esp + 0x4e40], 3
cmp edx, esi
jne 0x401fc3
add ecx, 4
push ecx
lea ecx, [esp + 0x4e58]
call fcn.00411fdb
mov eax, dword [esp + 0x4e54]
cmp dword [eax - 8], esi
jne 0x401fe9
mov esi, dword [esp + 0x4e48]
push 0x425a60
mov ecx, esi
call fcn.00411f5c
mov ebx, 1
mov dword [esp + 0xc], ebx
jmp 0x4020c3
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push edx
push esi
push 0x20019
push esi
push esi
push esi
push eax
mov eax, dword [esp + 0x4e78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402024
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x425a60
jmp 0x4020ac
mov ecx, dword [esp + 0x4e4c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push esi
push esi
push ecx
push edx
mov dword [esp + 0x28], 0x4e20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402072
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x4e48]
lea ecx, [esp + 0x4e50]
push ecx
mov ecx, esi
call fcn.00411c63
jmp 0x4020ba
mov edx, dword [esp + 8]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x4020a7
mov esi, dword [esp + 0x4e48]
lea eax, [esp + 0x4e50]
push eax
mov ecx, esi
call fcn.00411c63
jmp 0x4020ba
lea ecx, [esp + 0x18]
push ecx
mov esi, dword [esp + 0x4e4c]
mov ecx, esi
call fcn.00411f5c
mov ebx, 1
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x4e4c]
mov byte [esp + 0x4e40], 2
call fcn.00411eee
lea ecx, [esp + 0x4e50]
mov byte [esp + 0x4e40], bl
call fcn.00411eee
lea ecx, [esp + 0x4e54]
mov byte [esp + 0x4e40], 0
call fcn.00411eee
mov ecx, dword [esp + 0x4e38]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4e3c
ret 0x14
Function at 0x402240
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41b1d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 2
mov edx, dword [eax - 8]
test edx, edx
jne 0x40227c
add ecx, 4
push ecx
lea ecx, [esp + 0x24]
call fcn.00411fdb
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4022d7
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4022cc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 8]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402317
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 1
call fcn.00411eee
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10], 0
call fcn.00411eee
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.00411eee
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 1
call fcn.00411eee
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10], 0
call fcn.00411eee
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.00411eee
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10

Function at 0x402860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b2f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
push 0xffffffffffffffff
push ecx
mov ebx, 1
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x425a60
mov dword [esp + 0x30], ebx
call fcn.00411f5c
push ecx
mov byte [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4220d0
call fcn.00411f5c
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x38], 3
call fcn.00411c63
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
push ecx
mov ecx, esi
call fcn.004030a0
lea ecx, [esp + 0xc]
call fcn.00411eee
push 0x5c
lea ecx, [esp + 0x34]
call fcn.00411069
cmp eax, 0xffffffff
jne 0x40290b
mov esi, dword [esp + 0x2c]
push 0x425a60
mov ecx, esi
call fcn.00411f5c
mov dword [esp + 8], ebx
jmp 0x402940
lea edx, [esp + 0xc]
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00410ff1
mov esi, dword [esp + 0x2c]
push 0x4220d0
push eax
push esi
mov byte [esp + 0x30], 4
call fcn.00412137
lea ecx, [esp + 0xc]
mov dword [esp + 8], ebx
mov byte [esp + 0x24], bl
call fcn.00411eee
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.00411eee
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8