joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adc60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
call fcn.004adc77

Function at 0x4adda0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x103
lea edx, [ebp - 0x14]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x4adde8
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0xc0000011
jne 0x4addf8
mov dword [esi + 4], 0
jmp 0x4ade09
cmp eax, 0x103
je 0x4ade21
test eax, eax
js 0x4ade13
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4ade0c
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x583404
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
call fcn.00489b40
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.00489c30
mov ecx, 7
int 0x29
ud2

Function at 0x4b0bf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x10]
push 0x10
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4b0c39
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
lea edi, [esp + 8]
lea esi, [esp + 0x20]
mov byte [esp + 8], 0
mov dword [esp + 0x28], 0x583590
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], fcn.004ad860
mov dword [esp + 0x34], 1
lea ecx, [esp + 0x28]
mov edx, 0x5835bc
call fcn.004696f0
ud2
Function at 0x4b30f0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x572198]
test eax, eax
je 0x4b31e5
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x4b3120
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x4b31e0
mov eax, dword [0x572198]
test eax, eax
je 0x4b3203
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x4b321c
mov esi, eax
test eax, eax
jne 0x4b31a2
movzx eax, byte [0x597110]
mov eax, dword [0x5970d8]
test eax, eax
jne 0x4b3165
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x4b3235
mov dword [0x5970d8], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x4b3235
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x572198
mov esi, eax
mov eax, dword [0x572198]
test eax, eax
je 0x4b3226
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x4b31c1
movaps xmm0, xmmword [esp]
jmp 0x4b31cf
lea ecx, [esp + 0x10]
call fcn.004b0bf0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x4b321e
mov ecx, 0x572198
call fcn.0048a3d0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x4b3113
jmp 0x4b3120
mov ecx, 0x572198
call fcn.0048a3d0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x4b313d
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x572198
call fcn.0048a3d0
jmp 0x4b319b
mov ecx, 8
mov edx, 0x20
call fcn.00429f40
nop word cs:[eax + eax]
nop
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x18]
mov eax, dword [esi]
test eax, eax
je 0x4b3264
dec eax
jmp 0x4b326b
mov ecx, esi
call fcn.0048a3d0
push 1
push eax
call sub.KERNEL32.dll_TlsSetValue
push edi
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi]
test eax, eax
je 0x4b328a
dec eax
jmp 0x4b3291
mov ecx, esi
call fcn.0048a3d0
push 0
push eax
call sub.KERNEL32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret
Function at 0x4c6840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a8
mov edi, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
mov dword [esp + 0xa4], ecx
mov ecx, dword [edx + 0xc]
call fcn.004c6864
Function at 0x5030f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov edi, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
call fcn.0050310a
Function at 0x55acf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edx, dword [ebp + 8]
test edx, edx
je 0x55ad64
mov dword [ebp - 0x10], ecx
xor edi, edi
mov eax, 0x811c9dc5
mov ecx, 0x1b3
nop word cs:[eax + eax]
nop dword [eax + eax]
mov dword [ebp - 0x14], edx
movzx edx, byte [esi]
imul edi, ecx
inc esi
xor edx, eax
mov eax, 0x100
mov ebx, edx
imul ebx, eax
mov eax, edx
mul ecx
add edx, ebx
add edi, edx
mov edx, dword [ebp - 0x14]
dec edx
jne 0x55ad20
mov ecx, 0x1b3
xor eax, 0xff
mov esi, 0x100
imul esi, eax
mul ecx
imul edi, ecx
mov ecx, dword [ebp - 0x10]
add edx, esi
add edi, edx
jmp 0x55ad6e
mov edi, 0x1c9d3adb
mov eax, 0x639f298e
mov edx, eax
push edi
call fcn.00565240
add esp, 4
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x55adc4
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
shl ecx, 2
add edx, 0xfffffff4
lea ecx, [ecx + ecx*2]
test ecx, ecx
je 0x55adc4
add ecx, 0xfffffff4
cmp dword [edx + 0x14], 0
lea esi, [edx + 0xc]
mov edx, esi
je 0x55ad90
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x20]
mov edx, dword [eax + 4]
push dword [eax + 8]
call fcn.0046eb40
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x55adcc
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x55adc4
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x586abd
mov edx, 0x23
push 0x586b50
call fcn.0046f1c0
Function at 0x56a280
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5721b4], eax
cmp eax, 0xffffffff
je 0x570218
add esp, 0xc
ret

Function at 0x56a860
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x56a890
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.0056d950
cmp eax, 1
je 0x56a891
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
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 + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x56a8e5
jmp 0x56a8f3
cmp eax, 0x6a
je 0x56a8fd
add eax, 1
cmp byte [ebx + eax], 0
jne 0x56a8e0
cmp eax, 0x6a
je 0x56a8fd
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x56a910
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 [0x59718c], 1
je 0x56a925
call fcn.0056a7d0
mov eax, dword [0x5721b4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x56a950
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0056a710
mov esi, eax
mov eax, dword [entry4]
test eax, eax
je 0x56a93c
test esi, esi
je 0x56a93c
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]
call fcn.0056a860
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
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 0x57021d
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 [0x5721b4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x57021d
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll_abort
mov eax, dword [pe_dos_header]
ud2
Function at 0x56aba0
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 0x56abd0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x56ac80
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x56acb0
cmp eax, 3
jne 0x56abba
mov eax, dword [0x5721b4]
cmp eax, 0xffffffff
je 0x56abba
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x56abba
test byte [eax + 0x20], 0x30
je 0x56ace0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x56ac13
call fcn.0056aaa0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x56ac45
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 0x56ac37
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.0056a000
lea eax, [ebx + 0x38]
call fcn.0056a860
mov eax, ebx
call fcn.0056a490
mov eax, dword [0x5721b4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x56abba
mov eax, dword [0x597168]
test eax, eax
je 0x56abba
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x597168], 0
sub esp, 4
jmp 0x56abba
mov dword [esp + 4], 0x56a1b0
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x597168], 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 0x56ad58
test eax, eax
je 0x56acfa
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 0x56ad17
call fcn.0056aaa0
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x56ad90
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x56ad3c
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.0056a000
mov eax, esi
jmp 0x56ac53
test eax, eax
je 0x56ad68
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.0056a000
lea eax, [ebx + 0x38]
call fcn.0056a860
jmp 0x56abba
mov dword [esp], edi
call fcn.0056a000
mov eax, esi
call fcn.0056a860
jmp 0x56abba
Function at 0x56b6f0
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.0056a910
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x56b712
call fcn.0056aaa0
test byte [ebx + 0x20], 0x30
jne 0x56b72c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x5721b4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x56b76f
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x56b7b3
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x56b762
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x56b778
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.0056a490
mov eax, dword [0x5721b4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x56b76f
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x56b7c7
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x56b792

Function at 0x56f350
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0056f0b0
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.0056f0b0
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
lea esi, [esi]
Function at 0x56f3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5971d4]
test esi, esi
jle 0x56f4d0
mov eax, dword [0x5971d8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x56f3e4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x56f467
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x56f3d0
mov dword [esp], ebx
call fcn.0056fd40
mov edi, eax
test eax, eax
je 0x56f4f7
mov eax, dword [0x5971d8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0056fe50
mov edx, dword [0x5971d8]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x56f4d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x56f460
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x56f470
add dword [0x5971d4], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5971d8]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x56f460
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0056f350
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x56f3ee
mov eax, dword [0x5971d8]
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.0056f350
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0056f350
lea esi, [esi]
nop

Function at 0x56f9b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5971f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5971e8]
sub esp, 4
test ebx, ebx
je 0x56fa05
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 0x56f9fe
test esi, esi
je 0x56f9fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x56f9e0
mov dword [esp], 0x5971f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402431
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x40244c
push 0x80004005
call fcn.00402107
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40244e
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x402b9a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x40a0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.0040238f
mov edi, eax
cmp edi, esi
je 0x402bfc
lea ecx, [ebp - 0x208]
call fcn.0040231c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407ccc
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402c1a
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.00402b9a
cmp eax, esi
jne 0x402c62
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x402c04
lea ecx, [ebp - 0x208]
call fcn.0040231c
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.0040231c
mov eax, esi
jmp 0x402beb
Function at 0x404809
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x40864e
call fcn.00407dd5
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x41c], eax
jne 0x404862
call fcn.00402260
mov esi, eax
jmp 0x404962
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40487b
call fcn.00402260
jmp 0x404954
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x428], eax
je 0x404871
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x420], edi
jae 0x4048e1
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4048c7
lea ecx, [ebp - 0x418]
call fcn.00402a6d
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0040297c
mov eax, esi
call fcn.00407e40
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004038fc
mov dword [ebp - 4], 1
jmp 0x404908
cmp dword [ebp - 0x418], esi
jne 0x404917
mov esi, 0x8007000e
jmp 0x404956
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x404871
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0040464f
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4048cc
lea ecx, [ebp - 0x418]
call fcn.00402a6d
jmp 0x4048cc
Function at 0x406830
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc30
mov eax, dword [0x40a0e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x401b54
lea edi, [ebp - 0xc14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc28]
push eax
movsd dword es:[edi], dword [esi]
push 0x401ae8
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4068ed
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xc30]
push eax
push 0
push 0x401b3c
push dword [ebp - 0xc28]
mov dword [ebp - 0xc2c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4068ed
push 0x400
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll_wcstombs]
add esp, 0xc
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00404ce2
test eax, eax
jl 0x4068ed
lea esi, [ebp - 0xc24]
lea edi, [ebp - 0xc14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0xc28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
test edi, edi
jl 0x406947
lea esi, [ebx + 0x10]
push esi
push 0x401eb8
push 5
push 0
lea eax, [ebp - 0xc14]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jl 0x406947
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebx + 0x14]
push edx
push 0x401e98
push eax
call dword [ecx]
mov esi, dword [esi]
mov eax, dword [esi]
add ebx, 0x18
push ebx
push 0x401ea8
push esi
call dword [eax]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407ccc
leave
ret