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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45d813
push esi
call fcn.004608d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45d80c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45d899
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45d882
mov eax, dword [esi + 8]
test eax, eax
je 0x45d837
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45d87e
cmp eax, 2
je 0x45d882
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45d82a
cmp eax, 3
je 0x45d85d
cmp eax, 1
jne 0x45d82a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45d82a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45d82a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045d8c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45d8a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045d8c0
add esp, 4
pop esi
ret

Function at 0x46ab70
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5d9484]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x46ab83
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x46abc4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5d952c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x46abf6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x46abfa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x46abeb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x46ac18
mov bl, byte [esp + ecx + 0x4c]
jmp 0x46ac1c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x46ac0d
xor ecx, ecx
mov eax, 0x5d9494
xor ebx, ebx
mov bl, byte [ecx + 0x5d953c]
cmp byte [esp + ebx + 0x14], 0
je 0x46ac47
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5d9554]
cmp byte [esp + ebx + 0x14], 0
je 0x46ac5e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x46ac2e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x46abb7
lea edx, [esp + 0x84]
push edx
call fcn.0046aca0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x46ed70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x46edd6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x46edd6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46edb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x46f160
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46f198
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x46fe30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x46fe79
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4702f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491b50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0046fea0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046ff20
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046ff20
lea ecx, [esi + 0xc]
call fcn.00483416
lea ecx, [esi + 0x10]
call fcn.00483416
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004714b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004714b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004714b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048348b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048348b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48582f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x485867
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004838e6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004838be
jmp 0x485873
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x486f21
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x486f63
call fcn.0048cc9a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x486f63
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x486f5a
xor eax, eax
jmp 0x486f6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00486f71
pop edi
pop esi
pop ebx
ret 4

Function at 0x48d1ca
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48d1f8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48d216
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048d130
jmp 0x48d216
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48d216
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048d130
test edi, edi
mov eax, edi
jne 0x48d200
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401029
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40366b
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
je 0x40369d
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40369d
push edi
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jl 0x40369d
je 0x403696
and byte [esi + edi - 1], 0
jmp 0x403699
and byte [esi], 0
xor eax, eax
jmp 0x4036a0
push 2
pop eax
pop edi
pop esi
ret
Function at 0x405120
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x4051b4
push ebx
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4051b4
lea eax, [ebp + 0xc]
push eax
push 0x10008
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x405195
push edi
push edi
push edi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 4], 0x104
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x40519d
cmp esi, edi
jne 0x4051a9
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
call fcn.00405120
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x405156
jmp 0x4051a9
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4051b9
mov esi, 0x3f2
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407a73
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.004080ca
mov esi, eax
push esi
mov dword [ebp - 0xc], esi
call fcn.00407784
test eax, eax
pop ecx
js 0x407b73
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strrchr]
xor ebx, ebx
pop ecx
cmp eax, ebx
pop ecx
je 0x407afd
sub eax, esi
push ebx
mov esi, str.PATH
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov edi, eax
call ebx
mov dword [ebp - 0x10], eax
lea eax, [eax + edi + 1]
add eax, 3
and al, 0xfc
call fcn.004088f0
mov dword [ebp - 8], esp
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, edi
push dword [ebp - 0x10]
mov byte [eax], 0x3b
inc eax
push eax
push esi
and byte [eax], 0
call ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor ebx, ebx
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x407b16
mov dword [eax + 4], ebx
mov dword [eax], 0x409580
mov esi, eax
jmp 0x407b18
xor esi, esi
cmp esi, ebx
jne 0x407b28
call fcn.004078ae
mov eax, 0x8007000e
jmp 0x407b73
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x407b41
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
lea eax, [ebp - 4]
push ebx
push eax
call fcn.004078cf
add esp, 0xc
mov edi, eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
test edi, edi
js 0x407b64
cmp dword [ebp - 4], ebx
je 0x407b64
xor edi, edi
jmp 0x407b69
call fcn.004078ae
lea ecx, [ebp - 4]
call fcn.00407ba8
mov eax, edi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408272
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
push edi
push str.GRE_HOME
call esi
mov edi, eax
pop ecx
test edi, edi
je 0x4082d1
cmp byte [edi], 0
je 0x4082d1
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x18]
call dword [sym.imp.MSVCRT.dll__fullpath]
add esp, 0xc
test eax, eax
jne 0x408380
push edi
call sub.MSVCRT.dll_strlen
cmp eax, dword [ebp + 0x1c]
pop ecx
jb 0x4082c1
mov eax, 0x80520011
jmp 0x408389
push edi
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x408380
push str.USE_LOCAL_GRE
call esi
test eax, eax
pop ecx
je 0x4082ed
cmp byte [eax], 0
je 0x4082ed
mov eax, dword [ebp + 0x18]
and byte [eax], 0
jmp 0x408380
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov ebx, str.Softwaremozilla.orgGRE
push eax
push 0x20019
push 0
push ebx
push 0x80000001
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408344
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0040838e
add esp, 0x1c
mov dword [ebp - 8], eax
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], 0
jne 0x408380
lea eax, [ebp - 4]
push eax
push 8
push 0
push ebx
push 0x80000002
call edi
test eax, eax
jne 0x408384
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0040838e
add esp, 0x1c
mov edi, eax
push dword [ebp - 4]
call esi
test edi, edi
je 0x408384
xor eax, eax
jmp 0x408389
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40838e
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x18], 0x104
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40851d
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 1
lea eax, [ebp - 0x250]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40839f
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x28
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408502
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push dword [ebp + 0xc]
push eax
call fcn.0040855e
add esp, 0xc
test eax, eax
je 0x408502
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], 1
lea edi, [esi + eax*8]
cmp esi, edi
jae 0x408485
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x104
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40847a
push dword [esi + 4]
lea eax, [ebp - 0x148]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40847d
mov dword [ebp - 4], ebx
add esi, 8
cmp dword [ebp - 4], ebx
jne 0x40843b
cmp dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0x104
je 0x4084d7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.GreHome
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4084ff
cmp byte [ebp - 0x148], bl
je 0x4084ff
push dword [ebp - 0x14]
lea eax, [ebp - 0x148]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x1c]
call fcn.004085b3
add esp, 0x10
test eax, eax
je 0x4084ff
push dword [ebp + 0x20]
push str.xpcom.dll
push dword [ebp + 0x1c]
call fcn.00408529
add esp, 0xc
test eax, eax
je 0x4084ff
push 4
push dword [ebp + 0x1c]
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
test eax, eax
pop ecx
je 0x408502
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
jne 0x408518
inc dword [ebp - 0x10]
jmp 0x40839f
xor eax, eax
inc eax
jmp 0x408524
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002860
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x12c
mov eax, dword [0x10048870]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov edx, dword [0x1003f7ec]
mov dword [esp + 8], eax
mov ax, word [0x1003f7f0]
mov dword [esp + 0x10], ecx
mov cl, byte [0x1003f7f2]
mov dword [esp + 0x24], edx
mov word [esp + 0x28], ax
mov byte [esp + 0x2a], cl
call dword [0x10048004]
lea edx, [esp]
push edx
push 0x1003f590
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
je 0x100028db
xor eax, eax
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1000d1b1
add esp, 0x12c
ret 8
mov eax, dword [esp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100028e1
sub eax, edx
push ebx
sar eax, 1
add eax, 1
push ebp
push eax
call fcn.1000d900
add esp, 4
mov ebp, eax
mov eax, dword [esp + 8]
push ebp
push eax
call fcn.10001ea0
mov eax, ebp
xor ebx, ebx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10002911
push esi
push edi
lea edi, [esp + 0x34]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10002927
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
pop edi
pop esi
jne 0x100029b2
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0x1003f7e4
push eax
mov dword [esp + 0x2c], 0xc
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100029a7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ebx, 1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1000d8fb
mov eax, dword [esp + 0xc]
add esp, 4
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x130]
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1000d1b1
add esp, 0x12c
ret 8
Function at 0x100029f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x120
mov eax, dword [0x10048870]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
mov ecx, dword [0x1003f7ec]
mov dx, word [0x1003f7f0]
mov dword [esp + 8], eax
mov al, byte [0x1003f7f2]
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], dx
mov byte [esp + 0x1e], al
call dword [0x10048004]
lea ecx, [esp]
push ecx
push 0x1003f590
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
je 0x10002a60
xor eax, eax
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000d1b1
add esp, 0x120
ret 8
mov eax, dword [esp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002a66
sub eax, edx
push ebx
sar eax, 1
add eax, 1
push ebp
push eax
call fcn.1000d900
mov edx, dword [esp + 0xc]
add esp, 4
mov ebp, eax
push ebp
push edx
call fcn.10001ea0
mov eax, ebp
xor ebx, ebx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10002a96
push esi
push edi
lea edi, [esp + 0x28]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10002ab0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
pop edi
pop esi
jne 0x10002b2e
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x130]
push 0xc
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
push edx
push 3
push 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
push 0x1003f7e4
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10002b23
mov ebx, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1000d8fb
mov edx, dword [esp + 0xc]
add esp, 4
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x124]
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1000d1b1
add esp, 0x120
ret 8
Function at 0x10009e20
Capabilities:
Set registry value

Disassembly:
movzx eax, byte [esp + 4]
push esi
push 4
mov esi, ecx
mov edx, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi], eax
mov eax, esi
pop esi
ret 4

Function at 0x10009e50
Capabilities:
Set registry value

Disassembly:
movzx eax, word [esp + 4]
push esi
push 4
mov esi, ecx
mov edx, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi], eax
mov eax, esi
pop esi
ret 4

Function at 0x10009e80
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov eax, edx
push edi
mov esi, ecx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10009e90
mov ecx, dword [esi + 4]
sub eax, edi
add eax, 1
push eax
mov eax, dword [esi + 8]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x10009ec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x10048870]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
mov edi, dword [esp + 0x11c]
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x1c], 0
call fcn.1000de70
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esi], eax
jne 0x10009f4c
cmp dword [esp + 8], 1
jne 0x10009f4c
lea eax, [esp + 0x10]
mov edx, edi
mov ecx, eax
enter 0xffffffffffffd12b, 0xffffffffffffff8b
invalid
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10009f40
mov ecx, dword [esp + 0x114]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.1000d1b1
add esp, 0x110
ret 4
Function at 0x1000a580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003e903
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x20], esi
call fcn.1000a4d0
mov ebx, dword [esp + 0x30]
lea edi, [esi + 0x30]
push ebx
mov ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esi], vtable.ModuleConfig::CParamStr.1.0
mov dword [esi + 0xc], vtable.ModuleConfig::CParamStr.0
call fcn.10009c40
push ebx
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 1
call fcn.10009c40
mov edi, dword [edi]
mov edx, dword [esp + 0x2c]
push edi
mov dword [esi + 0x2c], edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [esi + 0x2c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c