joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a90c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45a93a
mov eax, ebx
call fcn.0045b3c0
cmp dword [ebx + 0x40], 0
je 0x45a933
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45a9ab
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45a99d
cmp dword [ebx + 8], 0
je 0x45a95c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45a96e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45a99d
cmp dword [ebx + 8], 0
je 0x45a94f
cmp eax, 3
je 0x45a981
dec eax
jne 0x45a94f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45a94f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45a94f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45a9c9
cmp dword [ebx + 0x14], 0xcc
je 0x45a9c9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045a9d4
pop ebx
ret

Function at 0x46e9d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, edx
nop
nop
push 2
push eax
mov eax, dword [0x4817f4]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x4817f4]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [esi], eax
push ebx
mov eax, dword [0x4817f4]
push eax
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
pop esi
pop ebx
ret
Function at 0x40b550
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e804c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e8044]
sub esp, 4
test ebx, ebx
je 0x40b59b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40b594
test esi, esi
je 0x40b594
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b570
mov dword [esp], 0x4e804c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b780
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40b7d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40b8a8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b80e
cmp eax, 4
jne 0x40b830
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b81e
cmp edx, 4
je 0x40b81e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b780

Function at 0x40be20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40be50
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40be74
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41d860
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a3abc], 0
jne 0x41d934
mov byte [0x4a3abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d9ce
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d92a
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a4355
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d961
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d8fb
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d925
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41d9c9
Function at 0x413212
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4276dc]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x42c]
push eax
mov dword [ebp - 0x434], 0x20
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], esi
mov byte [ebp - 0x24], 0xa3
mov byte [ebp - 0x23], 0x29
mov byte [ebp - 0x22], 0xb2
mov byte [ebp - 0x21], 0x69
mov byte [ebp - 0x20], 0x1c
mov byte [ebp - 0x1f], 0xb4
mov byte [ebp - 0x1e], pe_nt_image_headers32
mov byte [ebp - 0x1d], 0x54
mov byte [ebp - 0x1c], 0x49
mov byte [ebp - 0x1b], 0x23
mov byte [ebp - 0x1a], 0xc8
mov byte [ebp - 0x19], 0xd0
mov byte [ebp - 0x18], 0x59
mov byte [ebp - 0x17], 0x3f
mov byte [ebp - 0x16], 0xa9
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x24
mov byte [ebp - 0x12], 0xe7
mov byte [ebp - 0x11], 0x54
mov byte [ebp - 0x10], 0xf4
mov byte [ebp - 0xf], 0xac
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 0xd], 0x78
mov byte [ebp - 0xc], 0xea
mov byte [ebp - 0xb], 0x3d
mov byte [ebp - 0xa], 0xa5
mov byte [ebp - 9], 0x5a
mov byte [ebp - 8], 0xd6
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4133b9
push ebx
push edi
lea eax, [ebp - 0x428]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4132f5
xor edi, edi
jmp 0x4133a8
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x1d
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
jne 0x413315
xor edi, edi
jmp 0x41339c
push 0x401714
push dword [ebp + 8]
mov dword [ebp - 0x430], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x41337c
push ebx
push 0x400
lea eax, [ebp - 0x424]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x413374
add dword [ebp - 0x430], eax
push esi
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
je 0x4133c6
cmp dword [ebp - 0x430], 0x5000
jb 0x413331
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x434]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x41339c
inc edi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.00416451
leave
ret 8
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x4133b7
Function at 0x4133eb
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4276dc]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x401720
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4134d7
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x4134cb
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x41347a
xor edi, edi
jmp 0x4134c2
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x413476
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x4134a2
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x413476
push dword [ebp - 0x38]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00416451
leave
ret 8
Function at 0x413c88
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x413d6a
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x413d05
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x413d55
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413d74
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x413d55
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00413c70
test eax, eax
je 0x413d74
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413d74
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x413cb5
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x413d6d
Function at 0x415600
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x403d30
push 1
xor ebx, ebx
push ebx
push 0x403dd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x4156b3
mov eax, dword [ebp - 8]
push ebx
lea edx, [ebp - 4]
push edx
push 0x40253c
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jne 0x4156b3
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp + 0xc]
jmp 0x4156ae
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0xc]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x4156b2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
push 0x403d20
push ebx
push ebx
push eax
call dword [ecx + 0x20]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jl 0x4156ae
push dword [ebp + 8]
push dword [esi]
call fcn.0041558e
mov edi, eax
cmp edi, ebx
jge 0x4156b2
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
cmp dword [esi], ebx
je 0x41565e
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8

Function at 0x416451
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4276dc]
jne 0x41645a
ret
jmp 0x41645f
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4276dc]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x429974]
test eax, eax
je 0x416483
call eax
cmp dword [0x429978], 0
je 0x4164ca
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x429978]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.00416451
add ebp, 0x2a8
leave
ret
Function at 0x416a57
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
push 5
pop ecx
mov esi, 0x4040a4
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, 0x40408c
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x404078
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
movsw word es:[edi], word [esi]
mov esi, 0x404064
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
push 0x404044
movsb byte es:[edi], byte [esi]
xor esi, esi
lea eax, [ebp - 0xc4]
push 0x64
push eax
mov dword [0x4298dc], esi
mov dword [0x4298e0], esi
mov dword [0x4298e4], esi
call fcn.004169ff
add esp, 0x10
test eax, eax
jl 0x416bfb
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xc4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416c04
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push 0x4298dc
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 4
call edi
test eax, eax
je 0x416b25
mov dword [0x4298dc], esi
lea eax, [ebp - 4]
push eax
push 0x4298e0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x416b46
mov dword [0x4298e0], esi
lea eax, [ebp - 4]
push eax
push 0x4298e4
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x416b67
mov dword [0x4298e4], esi
lea eax, [ebp - 4]
push eax
push 0x4298e8
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x416b8c
mov dword [0x4298e8], 0xffff0000
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4298dc], esi
jne 0x416bb5
cmp dword [0x4298e0], esi
jne 0x416bc5
cmp dword [0x4298e4], esi
jne 0x416bc5
xor eax, eax
inc eax
jmp 0x416c39
cmp dword [0x4298e0], esi
jne 0x416bc5
cmp dword [0x4298e4], esi
je 0x416bea
push ebx
push 0x404040
push 0x64
push 0x429878
call fcn.004169ff
add esp, 0x10
test eax, eax
jl 0x416bfb
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov dword [0x4276e0], eax
cmp dword [0x4298dc], esi
jne 0x416bff
cmp dword [0x4276e0], 0xffffffff
jne 0x416bff
xor eax, eax
jmp 0x416c39
xor eax, eax
inc eax
jmp 0x416c34
push ebx
push 0x404040
push 0x64
push 0x429878
call fcn.004169ff
add esp, 0x10
test eax, eax
jl 0x416bfb
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, 0xffffffff
mov dword [0x4276e0], ecx
je 0x416c39
mov dword [0x4298ec], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416c40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor esi, esi
cmp dword [0x4298dc], esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x201
jbe 0x416d67
test dword [0x4298e8], edi
je 0x416d67
cmp edi, 0x10002
je 0x416cac
cmp edi, 0x20002
je 0x416ca9
cmp edi, 0x40002
je 0x416ca5
cmp edi, 0x80002
je 0x416ca0
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
mov esi, eax
jmp 0x416cac
push 3
pop esi
jmp 0x416cac
push 2
jmp 0x416ca2
xor esi, esi
inc esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [esi*4 + 0x4276e4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push 0x429878
push 0x404104
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004169ff
add esp, 0x28
test eax, eax
jl 0x416dff
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0041697f
test eax, eax
jl 0x416dff
mov eax, dword [ebp - 4]
cmp eax, ebx
jae 0x416dff
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x218]
push eax
call fcn.004169e4
test eax, eax
jge 0x416d48
cmp eax, 0x7a
jne 0x416dff
push 0x404100
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.00416a26
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x4276e0], 0xffffffff
je 0x416dff
xor eax, eax
cmp dword [0x4298e0], eax
ja 0x416d86
cmp dword [0x4298e4], eax
jbe 0x416dff
cmp edi, 0x10002
je 0x416dc2
cmp edi, 0x20002
je 0x416dbf
cmp edi, 0x40002
je 0x416dbb
cmp edi, 0x80002
je 0x416db6
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
jmp 0x416dc2
push 3
pop eax
jmp 0x416dc2
push 2
jmp 0x416db8
xor eax, eax
inc eax
push dword [ebp + 0xc]
push dword [eax*4 + 0x4276e4]
lea eax, [ebp - 0x218]
push 0x4040f8
push ebx
push eax
call fcn.004169ff
add esp, 0x14
test eax, eax
jl 0x416dff
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
or edi, 4
push edi
push dword [0x4276e0]
call sub.rtutils.dll_TraceVprintfExA
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4236d0
Capabilities:
Create thread

Disassembly:
mov eax, 0x4252e1
call fcn.004167a8
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4298ec], edi
mov esi, ecx
mov ebx, 0x80002
je 0x4236fd
push 0x40f2a8
push ebx
call fcn.00416c40
pop ecx
pop ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x30], edi
mov dword [ebp - 4], edi
jne 0x42377d
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x423740
cmp dword [0x4298ec], edi
je 0x423739
push 0x40f288
push 0x10002
call fcn.00416c40
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x423795
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x4236c4
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x40], eax
jne 0x42377d
cmp dword [0x4298ec], edi
je 0x423739
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40f26c
push 0x10002
call fcn.00416c40
add esp, 0xc
jmp 0x423739
inc dword [esi + 0x30]
cmp dword [0x4298ec], edi
je 0x423795
push 0x40f24c
push ebx
call fcn.00416c40
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4030e0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x200c
call fcn.0040a5b0
mov eax, dword [0x2b98744]
mov ecx, dword [0x2b986b8]
shr eax, 3
test eax, eax
jbe 0x403212
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x403130
cmp dword [0x2b98744], 0x959
jne 0x4031f4
push 0
lea eax, [esp + 0x420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0xc20]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1820]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x402b44
push 0x402b54
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00402f30
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403130
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret