joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008c942
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x101080d4], 0
je 0x1008c95a
mov eax, dword [0x101080d8]
jmp 0x1008ca2a
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push SysReAllocStringLen
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1008c9a9
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x101080d8
push esi
push esi
push dword [0x10107758]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1008c9a9
cmp dword [ebp - 8], 4
je 0x1008ca03
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x1008c9ba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1008ca0b
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x101080d8
push esi
push esi
push dword [0x10107758]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1008ca0b
cmp dword [ebp - 8], 4
jne 0x1008ca0b
mov esi, dword [0x101080d8]
jmp 0x1008ca11
mov dword [0x101080d8], esi
cmp dword [ebp - 4], 0
mov byte [0x101080d4], 1
je 0x1008ca27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1008ca2e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSID
push SysReAllocStringLen
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1008cac0
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x1008cab6
push 4
pop edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1008cab6
cmp dword [ebp + 8], edi
jne 0x1008cab6
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x1008cab6
cmp dword [ebp - 4], ebx
je 0x1008cac2
push dword [ebp - 4]
call esi
jmp 0x1008cac2
cmp dword [ebp - 4], ebx
je 0x1008cac0
push dword [ebp - 4]
call esi
mov edi, ebx
cmp dword [ebp - 8], ebx
je 0x1008cacc
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1008e509
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100b7bfc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x214], 1
call sub.VCRUNTIME140.dll_memset
mov edx, 0x10108474
mov dword [ebp - 0x210], esi
add esp, 0xc
mov eax, edx
xor ecx, ecx
cmp dword [eax], 0
je 0x1008e56b
add eax, 0x14
inc ecx
cmp eax, 0x1010849c
jge 0x1008e6c2
jmp 0x1008e555
imul esi, ecx, 0x14
add esi, edx
je 0x1008e6c2
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1008e6a6
cmp dword [ebp - 0x214], 1
jne 0x1008e6a6
cmp word [ebp - 0x20c], ax
je 0x1008e6a6
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1008e6a6
shr eax, 1
mov dword [ebp - 0x210], eax
cmp eax, 0x104
jae 0x1008e5ed
add eax, eax
cmp eax, 0x208
jae 0x1008e6d5
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
jmp 0x1008e5f3
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.1008e8d6
mov dword [esi], eax
test eax, eax
je 0x1008e6a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._GetPerfhostHookVersion_0
push eax
call edi
test eax, eax
jne 0x1008e620
mov eax, dword [ebp + 0x10]
jmp 0x1008e622
call eax
mov dword [esi + 4], eax
cmp eax, 1
jne 0x1008e646
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_12
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_4
jmp 0x1008e67a
cmp eax, 2
jne 0x1008e65b
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_8
jmp 0x1008e638
cmp eax, 3
jne 0x1008e684
push str._InitPerf_v3_4
push dword [esi]
call edi
push str._PerfCodeMarker_v3_8
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_v3_4
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 8], 0
je 0x1008e6a6
cmp dword [esi + 0x10], 0
je 0x1008e6a6
cmp dword [esi + 0xc], 0
je 0x1008e6a6
push dword [0x10104f3c]
push esi
call fcn.1008e4d0
test eax, eax
jns 0x1008e6c2
cmp dword [esi], 0
je 0x1008e6b3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001550
mov esp, ebp
pop ebp
ret 0xc
call fcn.1008d759
int3
Function at 0x1008ec07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100b7bfc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push esi
push 0x100d00b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1008ec70
cmp dword [ebp - 0x210], 4
jb 0x1008ec70
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.1008ed2a
jmp 0x1008ec72
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10001550
mov esp, ebp
pop ebp
ret 8

Function at 0x1008ec84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100b7bfc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1008ed17
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x1008ed17
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1008ed2a
jmp 0x1008ed19
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10001550
mov esp, ebp
pop ebp
ret 4

Function at 0x10091792
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100b7bfc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp ax, word [0x101089ea]
je 0x10091824
push edi
mov esi, eax
xor edi, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
push eax
push esi
mov dword [ebp - 0x1c], edi
call fcn.10005b24
test eax, eax
js 0x10091805
mov eax, dword [ebp - 0x1c]
push edi
push edi
push 0xa
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x85
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
push eax
mov dword [ebp - 0x28], edi
call fcn.1009183e
test eax, eax
je 0x10091805
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10098557
mov eax, dword [ebp - 0x20]
test eax, eax
js 0x10091811
cmp eax, 3
jle 0x10091813
mov eax, edi
shl esi, 0x10
and eax, 3
or esi, eax
mov dword [0x101089e8], esi
pop edi
jmp 0x1009182a
mov esi, dword [0x101089e8]
mov ecx, dword [ebp - 4]
and esi, 3
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10001550
mov esp, ebp
pop ebp
ret
Function at 0x10092bd4
Capabilities:
Encrypt data using rc4 prga
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x10092be3
or eax, 0xffffffff
jmp 0x10092c34
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x10092c11
cmp ax, 0x41
jb 0x10092c04
cmp ax, 0x5a
ja 0x10092c04
movzx eax, ax
add eax, 0x20
jmp 0x10092c07
movzx eax, ax
imul ecx, ecx, 0x21
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10092bf0
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4
Function at 0x10093572
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100b7bfc]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x218], 0
lea ecx, [ebp - 0x240]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 1
push 0x101055d4
call fcn.1008fbb0
test byte [esi + 0x20], 2
jne 0x1009376a
cmp dword [esi + 0x14], ebx
je 0x100935c7
push dword [esi + 0x14]
mov ecx, 0x101055ec
call fcn.10005e55
and dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x14]
push 8
push eax
push 0x1004
push dword [esi + 4]
call edi
test eax, eax
je 0x100936c6
lea eax, [ebp - 0x234]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push str.CpgScript
push 0
call fcn.10005f90
mov dword [ebp - 0x218], eax
test eax, eax
js 0x100936c6
mov eax, dword [ebp - 0x230]
xor ecx, ecx
push 4
xor ebx, ebx
pop edx
inc ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov ecx, 0x101055ec
call fcn.1000b754
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10093645
mov dword [ebp - 0x218], 0x8007000e
jmp 0x1009375d
xor edi, edi
cmp dword [ebp - 0x230], edi
jbe 0x10093693
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x234]
push dword [eax + edi*4]
call fcn.100957c1
mov dword [ebp - 0x218], eax
test eax, eax
js 0x10093683
movzx edx, byte [esi + 0x1d]
mov ecx, dword [esi + 0x14]
mov eax, dword [ebp - 0x21c]
mov dword [ecx + edx*4], eax
inc byte [esi + 0x1d]
jmp 0x1009368a
cmp eax, 0x8007000e
je 0x100936ac
inc edi
cmp edi, dword [ebp - 0x230]
jb 0x1009364f
cmp byte [esi + 0x1d], 0
jne 0x10093745
mov eax, dword [esi + 0x14]
mov byte [esi + 0x1d], 1
and dword [eax], 0
jmp 0x10093745
push dword [esi + 0x14]
mov ecx, 0x101055ec
call fcn.10005e55
and dword [esi + 0x14], 0
mov byte [esi + 0x1d], 0
jmp 0x1009375d
push 4
mov ecx, 0x101055ec
call fcn.1000b754
mov dword [esi + 0x14], eax
test eax, eax
jne 0x100936e8
mov dword [ebp - 0x218], 0x8007000e
jmp 0x10093769
mov byte [esi + 0x1d], 1
and dword [eax], ebx
lea eax, [ebp - 0x214]
push 0x100
push eax
push 4
push dword [esi + 4]
call edi
test eax, eax
je 0x10093745
and dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10095076
test eax, eax
je 0x10093739
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call fcn.10097498
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x218], 0x8007000e
je 0x10093769
cmp dword [esi + 8], 0xc00
je 0x10093752
or dword [esi + 0x20], 2
and dword [ebp - 0x218], 0
test ebx, ebx
je 0x10093769
lea eax, [ebp - 0x234]
push eax
call fcn.10005ff2
pop edi
mov esi, dword [ebp - 0x218]
lea ecx, [ebp - 0x240]
call fcn.10002d6f
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001550
mov esp, ebp
pop ebp
ret 4
Function at 0x1009550b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b7bfc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x101055d0], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x10095534
mov esi, 0x8ff000ff
jmp 0x10095587
test ebx, ebx
je 0x10095582
xor esi, esi
cmp dword [0x101055a8], esi
jne 0x10095549
call fcn.10005b4a
mov esi, eax
test esi, esi
js 0x10095587
push edi
call fcn.100919c8
mov edi, eax
test edi, edi
je 0x10095582
test byte [edi + 0x20], 4
jne 0x10095575
push edi
call fcn.10092e86
mov esi, eax
test esi, esi
jns 0x10095575
cmp esi, 0x8007000e
je 0x10095587
xor esi, esi
mov eax, dword [ebp + 0xc]
sub eax, 1
je 0x1009559c
sub eax, 1
je 0x100955b0
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001550
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100955b0
cmp byte [edi + 0x1e], 0
jbe 0x100955b0
movzx eax, byte [eax]
mov dword [ebx], eax
jmp 0x10095587
push 3
lea eax, [ebp - 0xc]
push eax
push 0x1009
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x10095582
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
pop ecx
push ebx
push eax
call fcn.100955de
mov esi, eax
jmp 0x10095587
Function at 0x1009699f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x100b7bfc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x168], edx
xor esi, esi
lea edx, [ebp - 0x164]
mov dword [ebp - 0x174], eax
push edx
push ecx
push eax
push 0x55
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x170], ecx
push eax
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x16c], esi
call fcn.100923b2
mov edi, eax
xor eax, eax
mov word [ebp - 0x15c], ax
test edi, edi
je 0x10096aa5
lea ebx, [edi + edi]
push 0x2d
pop eax
cmp ax, word [ebp + ebx - 0xb0]
jne 0x10096a7a
cmp ebx, 0xaa
jae 0x10096b36
push dword [ebp + 0x1c]
xor eax, eax
push dword [ebp - 0x168]
mov word [ebp + ebx - 0xb0], ax
lea eax, [ebp - 0x16c]
push eax
push 0x55
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.10096932
mov esi, eax
test esi, esi
jne 0x10096a86
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 2
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, eax
test esi, esi
jne 0x10096a86
sub ebx, 2
sub edi, 1
jne 0x10096a0e
test esi, esi
je 0x10096a9f
push 0xffffffffffffffff
push 0x100d25f4
lea eax, [ebp - 0x15c]
push 0x55
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
mov ebx, dword [ebp - 0x160]
mov edi, dword [ebp - 0x174]
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x170]
lea eax, [ebp - 0xb0]
push edi
push 0x55
push eax
call fcn.100923b2
lea eax, [ebp - 0xb0]
push eax
call fcn.100979b2
push 0xffffffffffffffff
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push 0x55
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
test esi, esi
je 0x10096b0b
push 0xffffffffffffffff
push 0x100c47fc
lea eax, [ebp - 0x15c]
push 0x55
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x15c]
push eax
push edi
push dword [ebp + 0x10]
push ebx
call fcn.100923b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001550
mov esp, ebp
pop ebp
ret 0x18
call fcn.1008d759
int3

Function at 0x100984e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 2
push str.office.odf
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret 8
Function at 0x1009954c
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x1009955b
or eax, 0xffffffff
jmp 0x10099598
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x10099575
imul ecx, ecx, 0x21
movzx eax, ax
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10099568
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4

Function at 0x1009b9b0
Capabilities:
Enumerate threads
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100b7bfc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009b9dd
push 0x6998ca
call fcn.1008ee44
jmp 0x1009ba4c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], edi
push eax
push esi
call sub.KERNEL32.dll_Thread32First
jmp 0x1009ba40
cmp dword [ebp - 0x14], edi
jne 0x1009ba36
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], eax
je 0x1009ba36
push dword [ebp - 0x18]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1009ba33
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1009ba05
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10001550
mov esp, ebp
pop ebp
ret

Function at 0x1009ba5b
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100b7bfc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009ba88
push 0x6998cb
call fcn.1008ee44
jmp 0x1009baf7
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], edi
push eax
push esi
call sub.KERNEL32.dll_Thread32First
jmp 0x1009baeb
cmp dword [ebp - 0x14], edi
jne 0x1009bae1
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], eax
je 0x1009bae1
push dword [ebp - 0x18]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1009bade
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1009bab0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10001550
mov esp, ebp
pop ebp
ret
Function at 0x1009e719
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20006
push dword [ebp + 0xc]
push SysReAllocStringLen
call fcn.10091253
test eax, eax
jne 0x1009e767
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
add eax, 0x1c
push eax
push edi
push 3
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1009e759
mov esi, dword [edi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
jne 0x1009e771
push 0x69988b
call fcn.1008ee44
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1009e77a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
call fcn.10002bcd
test eax, eax
je 0x1009e78f
xor eax, eax
jmp 0x1009e856
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
shl esi, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, esi
xor ebx, ebx
and eax, 0x5f5f5f
push ebx
or eax, 0x202020
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push dword [ebp + 0xc]
push SysReAllocStringLen
call fcn.1009121d
test eax, eax
jne 0x1009e848
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x1009e7e8
inc eax
and eax, 0x5f5f5f
or eax, 0x202020
mov dword [ebp - 4], eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call edi
mov esi, eax
mov eax, dword [ebp - 4]
test esi, esi
je 0x1009e7da
mov edi, dword [ebp + 8]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 4], eax
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp esi, 2
jne 0x1009e835
mov eax, dword [edi + 0x18]
add eax, 0x1c
push eax
push edi
push 3
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
jne 0x1009e848
mov eax, dword [ebp - 4]
jmp 0x1009e854
push 0x699889
call fcn.1008ee44
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1009ebb3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x1009ebfb
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1009ebfb
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1009ebfb
cmp word [eax + 2], 0
je 0x1009ebfb
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x1009ebfb
add eax, 0x30
jmp 0x1009ec00
mov eax, 0x100d4d30
pop esi
pop ebp
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x30624c9b
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x6e681d78
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219