joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f2e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdb4], 0
push esi
jne 0x405f65
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f3f
mov dword [ecx*4 + 0x42bdb0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f3a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f96
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdb0]
xor eax, esi
inc ecx
dec edx
jne 0x405f78
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40b4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4e83a0]
test esi, esi
jle 0x40b5e0
mov edi, dword [0x4e83a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40b504
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40b585
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x40b4f0
mov dword [esp], eax
mov ebx, eax
call fcn.0040bdc0
test eax, eax
mov edi, eax
je 0x40b607
mov eax, dword [0x4e83a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040bec0
add eax, dword [edi + 0xc]
mov edx, dword [0x4e83a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40b5e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40b57e
sub eax, 4
and eax, 0xfffffffb
jne 0x40b590
add dword [0x4e83a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4e83a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40b57e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0049bf34
lea esi, [esi]
xor esi, esi
jmp 0x40b50e
mov eax, dword [0x4e83a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0049bf34
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0049bf34
mov esi, esi
lea edi, [edi]

Function at 0x40ba40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4e83b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4e83b0]
sub esp, 4
test ebx, ebx
je 0x40ba95
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40ba8e
test esi, esi
je 0x40ba8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40ba70
mov dword [esp], 0x4e83b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41c2b0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4a2090], eax
je 0x41c2c7
add esp, 0xc
ret
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x41c7c0
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x41c7f0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.0041c170
cmp eax, 1
je 0x41c7f2
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
repz ret
lea ebx, [esp + 0x15]
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x41c845
jmp 0x41c862
cmp eax, 0x6a
je 0x41c853
add eax, 1
cmp byte [ebx + eax], 0
jne 0x41c840
cmp eax, 0x6a
jne 0x41c862
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
jmp 0x41c853
Function at 0x41c900
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 [0x4e8e04], 1
je 0x41c915
call fcn.0041c870
mov eax, dword [0x4a2090]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41c940
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041c710
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x41c92c
test esi, esi
je 0x41c92c
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 + 0x18], eax
lea eax, [esi + 0x38]
sub esp, 0x10
mov dword [esi + 0x1c], 0xffffffff
call fcn.0041c7c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
lea edx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x41ca42
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
mov dword [esi + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x4a2090]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41ca42
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll_abort
mov esi, esi
lea edi, [edi]
Function at 0x41cb80
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 0x41cbb0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x41cc51
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x41cc80
cmp eax, 3
jne 0x41cb9a
mov eax, dword [0x4a2090]
cmp eax, 0xffffffff
je 0x41cb9a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41cb9a
test byte [eax + 0x20], 0x30
je 0x41cca2
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x41cda4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41cc24
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 0x41cc16
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.0041bfb0
lea eax, [ebx + 0x38]
call fcn.0041c7c0
mov esi, dword [ebx + 0xb0]
test esi, esi
jne 0x41cd29
mov eax, ebx
call fcn.0041c4b0
jmp 0x41cd29
mov eax, dword [0x4e8de0]
test eax, eax
je 0x41cb9a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x4e8de0], 0
sub esp, 4
jmp 0x41cb9a
mov dword [esp + 4], 0x41c1d0
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x4e8de0], eax
jmp 0x41cb9a
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41cd50
test eax, eax
je 0x41ccc0
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
jne 0x41cd80
test byte [ebx + 0x24], 4
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
je 0x41cd90
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41cd05
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.0041bfb0
mov eax, esi
call fcn.0041c7c0
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
je 0x41cc45
mov eax, dword [0x4a2090]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x41cb9a
test eax, eax
je 0x41cd60
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.0041bfb0
lea eax, [ebx + 0x38]
call fcn.0041c7c0
jmp 0x41cb9a
call fcn.0041ca90
jmp 0x41ccdc
mov dword [esp], edi
call fcn.0041bfb0
mov eax, esi
call fcn.0041c7c0
jmp 0x41cb9a
call fcn.0041ca90
jmp 0x41cbf2
Function at 0x41d720
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.0041c900
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x41d7a2
test byte [ebx + 0x20], 0x30
jne 0x41d756
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, dword [0x4a2090]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
push edx
mov ebx, eax
je 0x41d799
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41d7e6
test eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
je 0x41d78c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x41d7a9
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.0041ca90
jmp 0x41d73d
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
je 0x41d80d
mov eax, dword [0x4a2090]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x41d799
test eax, eax
mov dword [ebx], 0xdeadbeef
je 0x41d7fa
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x41d7cc
mov eax, ebx
call fcn.0041c4b0
jmp 0x41d7cc
Function at 0x421ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x4a4ea9
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 [0x4a4f0d]
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.0040c020
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.00494a50
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4a3ab4], 0
jne 0x422006
mov byte [0x4a3ab4], 1
call fcn.004996d0
test eax, eax
je 0x421fd4
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.0040af30
mov dword [esp], 2
mov esi, dword [fcn.0041a6d0]
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 0x421fc4
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], 0x4a5651
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x49b574
jmp 0x49b56c
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x421f8a
mov dword [esp], 2
call dword [0x4a2070]
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 0x49b567
mov dword [esp], 2
call dword [0x4a2070]
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], 0x4ac230
call fcn.004932a0
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.004993c0
add esp, 0x18
pop ebx
ret
Function at 0x49bf34
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0041a6d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0041a6d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
Function at 0x491304
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x491332
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x491350
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049126a
jmp 0x491350
mov eax, dword [esi + 0x14]
test eax, eax
je 0x491350
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049126a
test edi, edi
mov eax, edi
jne 0x49133a
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x101819a
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jne 0x10181b5
push 0x57
pop esi
jmp 0x101822c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1018208
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x1018208
lea eax, [ebp - 8]
push eax
push 0x10000
push edi
push 0x1001778
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x1018210
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov esi, eax
cmp esi, edi
jne 0x1018210
xor esi, esi
jmp 0x1018210
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 4], edi
je 0x101821e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], edi
je 0x101822c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x10184c5
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x10184e4
xor bl, bl
jmp 0x1018541
push esi
push edi
xor edi, edi
inc edi
cmp dword [ebp + 8], edi
jle 0x1018534
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
mov eax, dword [ebp - 4]
push 7
lea ebx, [eax + edi*4]
push 0x100180c
push dword [ebx]
call esi
add esp, 0xc
test eax, eax
jne 0x1018515
mov byte [0x105c054], 1
jmp 0x101852e
push 8
push 0x10017fc
push dword [ebx]
call esi
add esp, 0xc
test eax, eax
jne 0x1018548
mov byte [0x105c055], 1
inc edi
cmp edi, dword [ebp + 8]
jl 0x10184f4
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
xor bl, bl
jmp 0x1018536
Function at 0x1018ae7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
je 0x1018c1e
cmp ecx, esi
je 0x1018c1e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x208]
push ecx
push 0x20019
push esi
push 0x1001848
push eax
call ebx
mov edi, eax
cmp edi, esi
jne 0x1018c21
mov dword [ebp - 0x214], esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x210], 0x100
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, esi
jne 0x1018ba0
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x204]
push eax
call fcn.010186b6
inc dword [ebp - 0x214]
cmp edi, esi
je 0x1018b5a
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push esi
push 0x1001834
push dword [ebp - 0x21c]
call ebx
mov edi, eax
cmp edi, esi
jne 0x1018c21
xor ebx, ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, esi
jne 0x1018c0d
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x204]
push eax
call fcn.010186d5
inc ebx
cmp edi, esi
je 0x1018bcc
cmp edi, 0x103
jne 0x1018c21
xor edi, edi
jmp 0x1018c21
push 0x57
pop edi
cmp dword [ebp - 0x20c], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1018c37
push dword [ebp - 0x20c]
call ebx
cmp dword [ebp - 0x208], esi
je 0x1018c47
push dword [ebp - 0x208]
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010193f0
leave
ret 8
Function at 0x1018f33
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [0x105c050], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.010184c5
test al, al
jne 0x1018f5f
or eax, 0xffffffff
jmp 0x101900b
call fcn.010183bf
test eax, eax
jne 0x1018f70
cmp byte [0x105c055], bl
je 0x1018f57
push esi
push edi
lea eax, [ebp - 4]
push eax
call fcn.01018c5f
cmp eax, 2
mov esi, dword [ebp - 4]
je 0x1018f87
cmp esi, ebx
jne 0x1018f8b
cmp esi, ebx
je 0x1018fc6
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x1018fc6
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x1018fe8
push 1
call fcn.010230d4
test eax, eax
jl 0x1018fe8
push 2
call fcn.010229f5
test eax, eax
jl 0x1018fbf
push esi
push edi
call fcn.01018966
call fcn.01022b41
call fcn.01022fab
jmp 0x1018fe8
cmp byte [0x105c054], bl
jne 0x1018fe8
cmp esi, ebx
jne 0x1018fec
push 0xfffd
push 0x3ed
push ebx
push 0x3e9
push ebx
call fcn.01018a36
cmp esi, ebx
je 0x1019001
cmp dword [esi + 8], ebx
jne 0x1018ff8
push dword [esi]
call fcn.0101819a
push 1
mov ecx, esi
call fcn.01018399
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x1019340
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x104dcf0
call fcn.01019368
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x105c830
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10190ee
cmp eax, esi
jne 0x10190e1
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10190f1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10190c8
xor esi, esi
inc esi
mov eax, dword [0x105c82c]
cmp eax, esi
jne 0x1019104
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1019133
mov eax, dword [0x105c82c]
test eax, eax
jne 0x101912d
mov dword [0x105c82c], esi
push 0x10015d0
push 0x10015c4
call fcn.0101902d
pop ecx
pop ecx
test eax, eax
je 0x1019133
jmp 0x101925b
mov dword [0x105c074], esi
mov eax, dword [0x105c82c]
cmp eax, esi
jne 0x1019157
push 0x10015c0
push 0x10015a8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x105c82c], 2
test ebx, ebx
jne 0x1019163
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x105c834], 0
je 0x1019187
push 0x105c834
call fcn.0101950b
pop ecx
test eax, eax
je 0x1019187
push 0
push 2
push 0
call dword [0x105c834]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10191e3
test al, al
je 0x10191a1
cmp dword [ebp - 0x1c], 0
jne 0x10191e3
mov al, byte [esi]
test al, al
je 0x10191b1
cmp al, 0x20
ja 0x10191b1
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10191a1
test byte [ebp - 0x3c], 1
je 0x10191bd
movzx eax, word [ebp - 0x38]
jmp 0x10191c0
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x105c070], eax
cmp dword [0x105c064], 0
jne 0x1019237
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10191f2
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1019205
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x101918e
cmp dword [0x105c074], 0
jne 0x1019246
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x105c070]
jmp 0x1019267
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010193ad
ret
call fcn.0101964d
jmp 0x101908e

Function at 0x1019480
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1019493
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101948f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret