joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ade0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x47ae80
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x47ae32
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x49a6e4]
xor eax, edx
inc esi
cmp esi, edi
jl 0x47ae13
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x47ae5b
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x49a6e4]
xor eax, edx
inc esi
cmp esi, edi
jl 0x47ae3e
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x433590
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x433e58
call fcn.00433a78
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x434514
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4333b8
cmp eax, esi
jne 0x4333ab
xor esi, esi
inc esi
mov edi, esi
jmp 0x4333bb
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x43338f
xor esi, esi
inc esi
cmp dword [0x434518], esi
jne 0x4333cd
push 0x1f
call fcn.004c4000
pop ecx
jmp 0x433407
cmp dword [0x434518], ebx
jne 0x433401
mov dword [0x434518], esi
push 0x401034
push 0x401028
call fcn.004334ec
pop ecx
pop ecx
test eax, eax
je 0x433407
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4334dc
mov dword [0x4341c8], esi
cmp dword [0x434518], esi
jne 0x43342a
push 0x401024
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x434518], 2
test edi, edi
jne 0x433437
xor eax, eax
mov ecx, 0x434514
xchg dword [ecx], eax
cmp dword [0x434524], 0
je 0x433463
push 0x434524
call fcn.004338d0
pop ecx
test eax, eax
je 0x433463
push ebx
push 2
push ebx
mov esi, dword [0x434524]
mov ecx, esi
call dword [0x43514c]
call esi
push dword [0x4341d4]
push dword [0x4341d0]
push dword [0x4341cc]
call fcn.004260e2
add esp, 0xc
mov dword [0x4341c4], eax
cmp dword [0x4341dc], 0
jne 0x4334c1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x4341c8], 0
jne 0x4334d5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4341c4]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004339c5
jmp 0x433373

Function at 0x4337b4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x433e98
call fcn.00433a78
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x433814
cmp eax, 0xffffffff
je 0x433814
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x43380d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x43380d
cmp edx, 0x10000000
jae 0x43380d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x43380a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x433880
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4338be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4338b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4338c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4338a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10001065
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0xa4]
push esi
mov esi, dword [ebp + 0x98]
push 0x104
lea ecx, [ebp - 0x78]
push ecx
push 0x64
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push eax
push str.SoftwareCLASSESCLSID280A8F40_E382_11d2_B561_00A0C92E6848
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 0x7c], 0
jne 0x100010cc
push str.SoftwareInteligfx
push esi
call fcn.10008200
pop ecx
pop ecx
jmp 0x100010ee
mov eax, dword [ebp + 0x9c]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
push esi
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.10008090
test eax, eax
pop ecx
je 0x10001111
push 0x1001141c
push esi
call fcn.10008210
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.10008210
add esp, 0x10
push esi
call fcn.10008090
pop ecx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop esi
call fcn.100082f8
add ebp, 0x90
leave
ret

Function at 0x1000112e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push str.SoftwareCLASSESCLSID280A8F40_E382_11d2_B561_00A0C92E6848
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100011a8
cmp dword [ebp - 8], edi
jne 0x10001183
push str.SoftwareInteligfx
push esi
call fcn.10008200
push esi
call fcn.10008090
add esp, 0xc
mov edi, eax
jmp 0x100011a8
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x1000119f
push esi
call fcn.10008090
pop ecx
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100082f8
leave
ret

Function at 0x1000121b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
movzx edi, word [ebp + 8]
push 0
push 0
push 3
push edi
call esi
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.100066cb
pop ecx
push ebx
push eax
push 3
push edi
mov dword [ebp + 8], eax
call esi
mov esi, dword [ebp + 8]
push 0x10011474
push esi
call fcn.10008310
test eax, eax
pop ecx
pop ecx
jne 0x1000126b
push 0x100112f0
push esi
call fcn.10008200
pop ecx
pop ecx
push esi
push dword [ebp + 0xc]
call fcn.10008200
push esi
call fcn.1000120e
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10001282
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 4
pop esi
push esi
call fcn.100066cb
push esi
mov dword [ebp - 4], eax
call fcn.100066cb
push esi
mov ebx, eax
call fcn.100066cb
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
add esp, 0xc
push ebx
mov dword [ebp - 0xc], eax
call edi
push eax
call fcn.1000121b
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
push eax
call fcn.1000121b
xor eax, eax
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
call fcn.100066cb
add esp, 0xc
mov esi, eax
lea eax, [ebp - 8]
push eax
push str.SoftwareIntelDisplayigfxcuihkcmd_resources
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000132e
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.UserLangID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x10001325
mov dword [ebp - 0x14], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call edi
and eax, 0xffff03ff
push eax
call fcn.1000121b
push ebx
call fcn.100011df
add esp, 0xc
test eax, eax
jne 0x1000135d
push dword [ebp - 4]
call fcn.100011df
test eax, eax
pop ecx
je 0x1000139c
push dword [ebp - 4]
jmp 0x1000135e
push ebx
push dword [ebp + 8]
call fcn.10008200
test esi, esi
pop ecx
pop ecx
je 0x1000139c
push dword [ebp - 0xc]
push ebx
call fcn.10008310
test eax, eax
pop ecx
pop ecx
je 0x10001384
mov dword [ebp - 0x10], 1
jmp 0x1000139c
push esi
push ebx
call fcn.10008310
test eax, eax
pop ecx
pop ecx
je 0x1000139c
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
jne 0x1000139c
mov dword [ebp - 0x10], eax
push ebx
call fcn.1000120e
push dword [ebp - 0xc]
call fcn.1000120e
push dword [ebp - 4]
call fcn.1000120e
push esi
call fcn.1000120e
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001494
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x1a0]
and dword [ebp - 0x80], 0
push eax
push dword [ebp + 0x198]
lea eax, [ebp + 0x88]
push 0x104
push eax
call sym.hccutils.DLL_GetMyRegKey
add esp, 0x10
dec eax
cmp eax, 0x102
ja 0x10001539
lea eax, [ebp + 0x88]
push str._resources
push eax
call fcn.10008210
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x88]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 0x80], 0
je 0x10001539
push dword [ebp + 0x19c]
lea eax, [ebp - 0x7c]
push 0x100114b4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
call fcn.100082f8
add ebp, 0x190
leave
ret

Function at 0x1000154e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1b8]
push ebx
mov ebx, dword [ebp + 0x1b0]
push esi
push edi
push eax
push dword [ebp + 0x1a4]
lea eax, [ebp + 0x94]
xor edi, edi
push 0x104
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
call sym.hccutils.DLL_GetMyRegKey
push dword [ebp + 0x1b4]
mov esi, eax
push edi
push ebx
call fcn.100083a0
add esp, 0x1c
dec esi
cmp esi, 0x102
ja 0x1000167c
lea eax, [ebp + 0x94]
push str._resources
push eax
call fcn.10008210
cmp dword [ebp + 0x1a8], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
mov edi, 0x100114b4
je 0x1000160f
push dword [ebp + 0x1a8]
lea eax, [ebp - 0x70]
push edi
push eax
call esi
lea eax, [ebp + 0x94]
push 0x1001141c
push eax
call fcn.10008210
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x94]
push eax
call fcn.10008210
add esp, 0x1c
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x94]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 0x74], 0
je 0x1000167c
push dword [ebp + 0x1ac]
lea eax, [ebp - 0x70]
push edi
push eax
call esi
mov eax, dword [ebp + 0x1b4]
add esp, 0xc
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 0
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001666
cmp dword [ebp - 0x80], 1
jne 0x1000166d
cmp eax, 0xea
jne 0x10001673
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x198]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100082f8
add ebp, 0x19c
leave
ret
Function at 0x10001697
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001707
lea eax, [ebp - 0x38]
push eax
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
cmp dword [ebp - 0x18], esi
jne 0x10001700
push edi
push dword [ebp - 0x14]
call fcn.100066cb
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100016f8
mov esi, edi
jmp 0x100016ff
push edi
call fcn.100068b4
pop ecx
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10001af4
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0
push dword [0x1001617c]
push 0x10001aa3
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x10016140], eax
mov al, 1
ret
Function at 0x10002798
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x294], eax
push ebx
mov ebx, dword [ebp + 0x2a0]
push esi
push edi
mov edi, dword [ebp + 0x2a4]
push edi
mov esi, 0x104
push esi
lea eax, [ebp + 0x8c]
push eax
push 0x66
push ebx
call fcn.10001e2f
push edi
push esi
lea eax, [ebp - 0x78]
push eax
push 0x68
push ebx
call fcn.10001e2f
push edi
push esi
lea eax, [ebp + 0x190]
push eax
push 0x69
push ebx
call fcn.10001e2f
add esp, 0x3c
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
push 3
push eax
mov dword [ebp - 0x7c], eax
call esi
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.100066cb
pop ecx
push ebx
push eax
push 3
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call esi
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x10002865
push esi
call fcn.10008090
test eax, eax
pop ecx
je 0x10002865
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp + 0x8c]
push eax
push esi
call fcn.1000252d
push esi
mov dword [0x10016144], eax
call fcn.100068b4
add esp, 0x18
jmp 0x1000286c
push esi
call fcn.100068b4
pop ecx
mov ecx, dword [ebp + 0x294]
mov eax, dword [0x10016144]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100082f8
add ebp, 0x298
leave
ret
Function at 0x10002c16
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x1a4]
and dword [ebp - 0x80], 0
push edi
mov edi, dword [ebp + 0x1a0]
push eax
push dword [ebp + 0x198]
lea eax, [ebp + 0x88]
push 0x104
push eax
call sym.hccutils.DLL_GetMyRegKey
add esp, 0x10
dec eax
cmp eax, 0x102
ja 0x10002cec
push esi
lea eax, [ebp + 0x88]
push str._resources
push eax
call fcn.10008210
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x88]
push eax
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 0x80], 0
jne 0x10002cb0
lea eax, [ebp + 0x88]
push eax
push esi
call sym.hccutils.DLL_CreateThisKey
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
je 0x10002ceb
push dword [ebp + 0x19c]
lea eax, [ebp - 0x7c]
push 0x100114b4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.10008090
add esp, 0x10
inc eax
push eax
push edi
push 1
push 0
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.100082f8
add ebp, 0x190
leave
ret
Function at 0x10002d02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3b4]
push ebx
mov ebx, dword [ebp + 0x3ac]
push esi
push edi
push eax
mov dword [ebp - 0x78], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x70]
push eax
push 0x1235
push ebx
call sym.hccutils.DLL_LoadSTRING
push dword [ebp + 0x3b0]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x94]
push eax
call edi
lea eax, [ebp + 0x94]
push eax
call fcn.10001697
add esp, 0x24
test eax, eax
mov dword [ebp - 0x80], eax
jne 0x10002e32
push dword [ebp - 0x78]
and dword [ebp - 0x74], eax
push ebx
lea eax, [ebp + 0x198]
push esi
push eax
call sym.hccutils.DLL_GetMyRegKey
add esp, 0x10
dec eax
cmp eax, 0x102
ja 0x10002e32
lea eax, [ebp + 0x198]
push str._resources
push eax
call fcn.10008210
pop ecx
pop ecx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x198]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
cmp dword [ebp - 0x74], ebx
je 0x10002e32
push dword [ebp + 0x3b0]
lea eax, [ebp + 0x29c]
push 0x100114b4
push eax
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push ebx
lea eax, [ebp + 0x29c]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], ebx
call esi
cmp dword [ebp - 0x78], 3
jne 0x10002e29
push dword [ebp - 0x7c]
call fcn.100066cb
pop ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
push ebx
lea eax, [ebp + 0x29c]
push eax
push dword [ebp - 0x74]
call esi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x3a0]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100082f8
add ebp, 0x3a4
leave
ret

Function at 0x1000370a
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x1000375d
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x10003773
push 0x80004005
call fcn.1000313a
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10003776
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x10003caa
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.10003250
mov edi, eax
cmp edi, esi
je 0x10003d12
lea ecx, [ebp - 0x70]
call fcn.10003239
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100082f8
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10003d2a
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.10003caa
cmp eax, esi
jne 0x10003d5d
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x10003d1a
lea ecx, [ebp - 0x70]
call fcn.10003239
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.10003239
mov eax, esi
jmp 0x10003cf8
Function at 0x1000571c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x100101b6
call fcn.100088e1
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x100153c0]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x100057d6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.1000309e
add esp, 0xc
test eax, eax
jl 0x100057d6
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x100057be
push edi
call fcn.1000338d
test al, al
pop ecx
je 0x100057be
mov eax, edi
call fcn.10009290
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x100057c7
push edi
lea ecx, [ebp - 0x20]
call fcn.100034d4
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.10003102
cmp eax, ebx
jne 0x1000581b
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x100057e6
lea ecx, [ebp]
call fcn.10003c5b
lea ecx, [ebp - 0x20]
call fcn.1000332d
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.100082f8
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x1000583a
call fcn.10003220
mov esi, eax
jmp 0x100058fd
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x10005857
call fcn.10003220
jmp 0x100058f2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1000584d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x1000589e
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000588a
lea ecx, [ebp]
call fcn.10003c5b
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.1000332d
mov eax, esi
jmp 0x100057f3
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.1000495d
mov dword [ebp - 4], 1
jmp 0x100058bf
cmp dword [ebp], ebx
jne 0x100058cb
mov esi, 0x8007000e
jmp 0x100058f4
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.100035bc
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.100055ad
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000588f
lea ecx, [ebp]
call fcn.10003c5b
jmp 0x1000588f

Function at 0x100082f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10015450]
jne 0x10008302
repz ret
jmp fcn.1000a245