joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ae10
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.00419f80
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41ae32
call fcn.00419fb0
test byte [ebx + 0x20], 0x30
jne 0x41ae4c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x41ae8d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41aecd
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x41ae82
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x41ae96
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]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.00419d50
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41ae8d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41aee1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x41aeae

Function at 0x41aef0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ffafc]
test eax, eax
jne 0x41af00
xor eax, eax
ret
sub esp, 0x1c
call fcn.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41af40
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x41af30
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x41af24
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x41af26
call fcn.00419e30
test eax, eax
jne 0x41af1d
jmp 0x41af24

Function at 0x41af50
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41af90
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x41af80
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.00419e30
test eax, eax
jne 0x41af6d
add esp, 0x1c
ret
Function at 0x41b090
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41b100
test byte [ebx + 0x20], 0xc
jne 0x41b0c0
mov eax, dword [0x4ffafc]
test eax, eax
jne 0x41b0d0
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.00418f70
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x41b0f2
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x41b0f2
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x41b111
mov dword [esp], esi
call fcn.004192b0
add esp, 0x14
pop ebx
pop esi
ret
call fcn.00419e30
mov ebx, eax
test eax, eax
jne 0x41b0b1
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41b131
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.004192b0
call fcn.0041afa0
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41b1c0
mov dword [esp], eax
call fcn.00418cb0
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x41b200
call fcn.00419d70
mov eax, dword [0x49cd48]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41b260
test edi, edi
je 0x41b1da
call fcn.0041b090
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41b238
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00418dc0
call fcn.0041b090
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.00419d70
mov eax, dword [0x49cd48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41b250
call fcn.0041b090
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.0041b090
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.00419d70
mov eax, dword [0x49cd48]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x41b192
call fcn.00419e30
mov ebx, eax
jmp 0x41b192
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x41b1ae
call fcn.00419e30
jmp 0x41b1da
call fcn.00419e30
mov ebx, eax
jmp 0x41b18e
Function at 0x479320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x4db641
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 [0x4db6a5]
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.0040d190
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.0048c228
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4a305c], 0
jne 0x479446
mov byte [0x4a305c], 1
call fcn.00487460
test eax, eax
je 0x479414
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.0040c080
mov dword [esp], 2
mov esi, dword [fcn.00417220]
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 0x479404
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], 0x4db601
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x48c118
jmp 0x48c110
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x4793ca
mov dword [esp], 2
call dword [0x49cd30]
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 0x48c10b
mov dword [esp], 2
call dword [0x49cd30]
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], 0x4de8e8
call fcn.00484370
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.00485950
add esp, 0x18
pop ebx
ret
Function at 0x300025cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x3000262b
push esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x3000262b
cmp dword [ebp + 0x10], 4
mov eax, dword [ebp - 4]
je 0x3000262e
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x30002634
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x3000267f
mov edx, dword [ebp + 0x10]
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret 0x10

Function at 0x300026bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30001760
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x3000270b
mov ecx, dword [ebp - 4]
push esi
push eax
push eax
push eax
push eax
push 0x300017b0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x30002711
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300015e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x30002787
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x3000180c
push ecx
mov dword [ebp - 8], 4
call edi
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call ebx
test esi, esi
jne 0x30002787
cmp dword [ebp - 0xc], 4
jne 0x30002787
xor eax, eax
cmp dword [ebp - 0x10], 1
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30001668
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x300027e8
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x3000180c
push ecx
mov dword [ebp - 0x10], 4
call edi
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call ebx
test esi, esi
jne 0x300027e8
cmp dword [ebp - 0xc], 4
jne 0x300027e8
xor eax, eax
cmp dword [ebp - 8], 1
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x300027f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30001448
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x30002866
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x30001830
push ecx
mov dword [ebp - 8], 4
call edi
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call ebx
test esi, esi
jne 0x30002866
cmp dword [ebp - 0xc], 4
jne 0x30002866
xor eax, eax
cmp dword [ebp - 0x10], eax
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300013d8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x300028c5
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x30001830
push ecx
mov dword [ebp - 0x10], 4
call edi
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call ebx
test esi, esi
jne 0x300028c5
cmp dword [ebp - 0xc], 4
jne 0x300028c5
cmp dword [ebp - 8], esi
jne 0x300028c5
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x300028ce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x3000207c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push 0x300013d8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x30002941
push 4
lea edx, [ebp - 0x40c]
push edx
push 4
push eax
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x408]
push 0x30001830
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.300027f1
test al, al
jne 0x300029b9
mov eax, dword [0x3000b28c]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0xff
lea edx, [ebp - 0x204]
push edx
push 0x2714
push eax
call esi
mov edx, dword [0x3000b28c]
push 0xff
lea ecx, [ebp - 0x404]
push ecx
push 0x2710
push edx
call esi
mov edx, dword [0x3000b284]
push 0
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x3000b270]
mov ecx, dword [0x3000b284]
push 0
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.300068d0
mov esp, ebp
pop ebp
ret

Function at 0x300029c7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
xor edi, edi
cmp word [0x3000b290], di
jne 0x30002a21
push 0x300012d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push 0x30001854
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 4]
push ecx
push 0x3000b290
push 0xfffffffffffffffe
push 0x300012c0
push 0x300012e8
mov dword [ebp - 4], 0x104
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [0x3000b290], di
je 0x30002a83
xor eax, eax
push 0x40
push eax
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x58], 0x44
call sub.MSVCR80.dll_memset
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push edx
push 0x3000b290
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x30002a83
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x30002ab2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30001448
mov edi, 4
push 0x80000001
mov dword [ebp - 8], edi
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x30002b39
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x300016d4
push ecx
call ebx
mov edx, dword [ebp - 4]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x30002b34
cmp dword [ebp - 0xc], 4
jne 0x30002b2b
cmp dword [ebp - 0x10], 0
jne 0x30002b2b
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 4
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300013d8
push 0x80000001
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x30002b85
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x300016d4
push ecx
call ebx
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x30002b85
cmp dword [ebp - 0xc], edi
jmp 0x30002b17
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x30003276
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
mov eax, dword [0x3000207c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0x30001a0c
push 0x30001528
push 0x80000001
call fcn.300025cc
push 0
push 0x300019dc
push 0x300013d8
push 0x80000001
mov esi, eax
call fcn.300025cc
test eax, eax
jne 0x300032c4
test esi, esi
jne 0x3000338c
mov ecx, dword [0x3000b28c]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push ebx
push edi
push 0x28
lea eax, [ebp - 0x54]
push eax
push 0x2710
push ecx
call esi
mov eax, dword [0x3000b28c]
push 0x280
lea edx, [ebp - 0x554]
push edx
push 0x2731
push eax
call esi
push 0
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x554]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x558]
push eax
push 0x20006
push 0
push 0x30001528
push 0x80000001
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x30003355
mov ecx, dword [ebp - 0x558]
push 0x30001a0c
push ecx
call edi
mov edx, dword [ebp - 0x558]
push edx
call ebx
lea eax, [ebp - 0x558]
push eax
push 0x20006
push 0
push 0x300013d8
push 0x80000001
call esi
test eax, eax
jne 0x3000338a
mov ecx, dword [ebp - 0x558]
push 0x300019dc
push ecx
call edi
mov edx, dword [ebp - 0x558]
push edx
call ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.300068d0
mov esp, ebp
pop ebp
ret
Function at 0x3000364b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push 0x300013d8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x300036a3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x300018f0
push ecx
mov dword [ebp + 8], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call fcn.3000359e
mov esp, ebp
pop ebp
ret 4
Function at 0x300053e2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [0x3000b288], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [ebp + 8]
push ecx
push 0xffffffffffffffff
mov ecx, 0x3000b4ec
mov dword [0x3000b4c8], eax
mov dword [ebp + 8], 0
call fcn.30005d51
test al, al
je 0x30005460
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
mov dword [ebp - 0xc], 0x8642
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x30005429
mov dword [ebp - 4], eax
sub ecx, esi
lea eax, [ebp - 0xc]
push eax
sar ecx, 1
push 0
lea edx, [ecx + ecx + 2]
mov ecx, dword [ebp + 8]
push 0x4a
push ecx
mov dword [ebp - 8], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.30004db6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x30005cb4
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov esi, ecx
je 0x30005cc8
mov dword [edi], 0
cmp dword [esi], 0
jne 0x30005cd5
pop edi
xor al, al
pop esi
pop ebp
ret 0x10
push ebx
push 0x30001e7c
push 0
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [ebp + 0x14], eax
je 0x30005d48
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x30005d37
push eax
push eax
push eax
mov eax, dword [esi]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x30005d37
test edi, edi
je 0x30005d18
mov ecx, dword [eax]
mov dword [edi], ecx
cmp byte [ebp + 8], 0
jne 0x30005d29
cmp byte [ebp + 0xc], 0
je 0x30005d2e
cmp dword [eax], 0
jne 0x30005d2e
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
mov esi, dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x30005d51
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x1e
push edi
mov eax, dword [ebp - 4]
xor edi, edi
cmp dword [eax], edi
je 0x30005dd4
push 0x30001e7c
push 0
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x30005dd4
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x30005dbd
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push eax
push eax
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x30005dbd
mov edi, dword [eax]
test edi, edi
jne 0x30005db4
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x30005dd4
cmp edi, 0xffffffff
jne 0x30005df0
mov esi, dword [ebp - 8]
sub esi, 1
push 0x1f4
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jg 0x30005d64
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x30005df9
mov dword [eax], edi
test edi, edi
je 0x30005e1a
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x30005e1a
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x30005e3d
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x30005e49
xor eax, eax
pop edi
ret
push esi
push 0x30001ea4
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x30005e7c
test eax, eax
jle 0x30005ed9
and eax, 0xffff
pop esi
or eax, 0x80070000
pop edi
ret
cmp eax, 0xb7
mov dword [edi], esi
je 0x30005ed7
push 0x30001e7c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x30005ed7
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x30005ec9
push eax
push eax
push eax
mov eax, dword [edi]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x30005ec9
push eax
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
ret

Function at 0x30006185
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x300061bb
push 0
push 4
push esi
push 0x3000600e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xc], eax
je 0x300061bb
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
cmp dword [esi + 0xc], eax
pop esi
setne al
ret