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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x42727d
cmp dword [0x44d1c0], edi
jne 0x4273cf
cmp word [0x44d1cc], di
mov dword [0x44d1c0], 1
jne 0x4272af
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x44d1c8], eax
mov word [0x44d1cc], cx
cmp word [0x44d1cc], 2
jne 0x4272eb
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x4272eb
mov ecx, dword [0x44d1c8]
cmp ecx, edi
je 0x4272eb
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x44d1c4], eax
jmp 0x4273d4
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.0040ec80
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x44d1c4], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4273cf
cmp dword [ebp - 0x8c], 1
je 0x42733f
cmp dword [ebp - 0x8c], 2
jne 0x4273cf
cmp dword [ebp - 0x98], 4
jae 0x4273ae
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4273cf
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4273a3
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0040f070
add esp, 0xc
mov dword [0x44d1c4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4273cf
cmp dword [ebp - 0x8c], 2
jne 0x4273cf
cmp dword [ebp - 0x98], 4
jb 0x4273cf
push edi
push 0x44d1c4
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x44d1c4]
pop edi
leave
ret

Function at 0x42823b
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
mov eax, dword [esi]
push 1
je 0x428253
push 0
jmp 0x428256
push dword [esi + 0x20]
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x428264
pop esi
ret
push 1
pop eax
pop esi
ret
Function at 0x42868f
Capabilities:
Get common file path
Get disk size
Timestomp file

Disassembly:
mov eax, 0x439714
call fcn.0040edc0
sub esp, 0x240
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00423713
test byte [ebp + 0xd], 0x10
je 0x428760
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.004260d5
test eax, eax
je 0x428760
lea ecx, [ebp - 0x10]
call fcn.0042363d
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00425226
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4286ff
mov ebx, dword [ebp - 0x2c]
imul ebx, dword [ebp - 0x30]
imul ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x13c]
add eax, eax
cmp ebx, eax
jle 0x428754
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x1c]
push 0x105
mov ecx, edi
and byte [eax], 0
call fcn.00423b7a
push eax
push 0
lea eax, [ebp - 0x24c]
push 0x43de94
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00423bc9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00423788
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x42881d
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.00424a57
test eax, eax
je 0x42881d
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.004238d0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4287ce
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.00426187
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
push eax
push ebx
push ebx
push 4
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
je 0x428818
push dword [ebp + 0xc]
call fcn.0041f236
mov ebx, eax
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push 4
push dword [ebp + 8]
call esi
test eax, eax
je 0x428811
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.0041f272
pop ecx
push 1
pop eax
jmp 0x428834
mov ecx, edi
call fcn.00423713
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00424a57
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x42c655
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
call fcn.00420030
test eax, eax
jne 0x42c844
mov edi, dword [ebx + 4]
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0040b548
test byte [esi + 0x64], 0x20
mov dword [ebp - 0x10], eax
jne 0x42c69b
cmp edi, 0x201
je 0x42c69b
cmp edi, 0x202
jne 0x42c7fa
cmp edi, 0x200
jb 0x42c6ab
cmp edi, 0x209
jbe 0x42c6c3
cmp edi, 0xa0
jb 0x42c7fa
cmp edi, 0xa9
ja 0x42c7fa
call fcn.0043501f
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
lea eax, [ebp - 0x44]
pop edi
push edi
push 0
push eax
call fcn.0040ec80
add esp, 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov edi, dword [esi]
push eax
mov ecx, esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [edi + 0x6c]
cmp dword [ebp - 0x20], 0xffffffff
mov dword [ebp + 8], eax
je 0x42c71c
push dword [ebp - 0x20]
call fcn.0040ea30
pop ecx
mov eax, 0x201
cmp dword [ebp - 4], eax
jne 0x42c735
test byte [ebp - 0x3d], 0x80
je 0x42c735
mov dword [ebp - 8], 1
jmp 0x42c739
and dword [ebp - 8], 0
cmp dword [ebp - 4], eax
je 0x42c757
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x42c757
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x104]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jl 0x42c7c3
cmp dword [ebp - 8], 0
jne 0x42c7c3
cmp dword [ebp - 4], 0x202
jne 0x42c782
push 0xffffffffffffffff
mov ecx, esi
call dword [edi + 0xe4]
push 0xc8
push 0xe001
jmp 0x42c7ad
test byte [esi + 0x60], 8
jne 0x42c7b6
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x42c7b6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x104]
je 0x42c7ee
push 0x12c
push 0xe000
mov ecx, esi
call fcn.0042c41f
jmp 0x42c7ee
push dword [ebp + 8]
mov ecx, esi
call dword [edi + 0xe4]
jmp 0x42c7ee
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x42c7d6
cmp dword [ebp - 8], 0
je 0x42c7ee
push 0xffffffffffffffff
mov ecx, esi
call dword [edi + 0xe4]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x104], eax
mov ecx, esi
call fcn.00420e8b
test eax, eax
je 0x42c80f
cmp dword [eax + 0x50], 0
je 0x42c80f
xor eax, eax
jmp 0x42c83d
cmp dword [ebp - 0x10], 0
je 0x42c835
mov edi, dword [ebp - 0x10]
push ebx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x98]
test eax, eax
jne 0x42c844
mov ecx, edi
call fcn.00420d1e
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x42c815
push ebx
mov ecx, esi
call fcn.00422026
pop edi
pop esi
pop ebx
leave
ret 4
push 1
pop eax
jmp 0x42c83d
Function at 0x42e14f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x42e193
push dword [ebp + 8]
call fcn.00437231
mov esi, eax
test esi, esi
je 0x42e1be
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x42e1be
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x43d7cc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x435187
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x43954a
call fcn.0040edc0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.0041ecd7
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0041ecd7
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0041e87a
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x41f21a
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x435ca6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.00435372
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x435ce5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x435ce5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x435ce9
xor eax, eax
jmp 0x435d63
movzx eax, word [esi + 6]
shl eax, 2
push eax
call fcn.0041f236
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x435d1f
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x435d09
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00435e56
push ebx
mov edi, eax
call fcn.0041f272
test edi, edi
pop ecx
je 0x435d61
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00435c52
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00435d6a
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x436b5f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x436b8f
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x436c19
cmp dword [esp + 0x14], ebx
je 0x436c19
cmp esi, ebx
jne 0x436bb5
push 0x10
call fcn.0043697c
cmp eax, ebx
je 0x436ba4
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x436ba6
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0043691e
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x436bcc
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x436bdc
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x436be8
call fcn.0041e271
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.0040ec80
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x436c4f
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x436ca2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x436c85
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x436c85
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x436c9c
and dword [ebp - 4], 0
jmp 0x436c9c
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x436c95
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x436c66
cmp dword [ebp - 4], 0
je 0x436cd0
push esi
lea ecx, [ebx + 0x14]
call fcn.00436931
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x436cc6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43705f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x43710f
mov ecx, 0x44f06c
call fcn.00436dc5
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x4370ed
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4370cb
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4370cb
push ebx
push edi
push eax
call fcn.0042593a
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.004238d0
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x1002d450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100ad470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100a242b
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100323f0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1002d4a4
jmp dword [ecx*4 + 0x1002d60c]
mov al, byte [esi]
test al, al
je 0x1002d4d2
cmp al, 0x20
je 0x1002d4be
cmp al, 0xa1
jne 0x1002d4d2
cmp byte [esi + 1], al
jne 0x1002d4d2
test al, 0x80
je 0x1002d4ca
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1002d4d2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002d4b1
test ecx, ecx
je case.default.0x1002d4a4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1002d4a4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1002d518
cmp dl, 0xa1
jne 0x1002d50c
cmp byte [eax + 1], 0xa1
jne 0x1002d50c
test ecx, ecx
jne 0x1002d504
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1002d52c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1002d546
jmp 0x1002d52c
cmp dl, 0x20
jne 0x1002d52a
test ecx, ecx
jne 0x1002d523
mov edi, eax
mov ecx, 1
jmp 0x1002d52c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002d4ec
cmp ecx, 1
jne case.default.0x1002d4a4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002d4a4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002d4a4
mov al, byte [esi]
test al, al
je 0x1002d59e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1002d584
mov cl, byte [esi + 1]
test cl, cl
je 0x1002d59e
cmp al, 0xa1
jne 0x1002d574
cmp cl, al
je 0x1002d581
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100326c0
inc esi
jmp 0x1002d596
cmp al, 0x20
je 0x1002d596
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10032700
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002d55d
push 0
lea ecx, [esp + 0x14]
call fcn.10032700
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10041860
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1002d5d1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100f2890
call fcn.100325f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100a23bd
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1002fb80
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x100ad598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x101136a8]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.1002f650
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1002fc22
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1002fcdb
mov edx, dword [esi + 8]
push edx
call fcn.100405e0
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x1002fc72
cmp eax, 0x80000301
jne 0x1002fc40
mov eax, dword [esi]
jmp 0x1002fc4d
push 0
push esi
push 0x7d1
call fcn.10045b10
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1002fcd0
jmp 0x1002fcca
cmp eax, 0x80000004
jne 0x1002fca1
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1002fcd0
jmp 0x1002fcca
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x1002fcd0
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1002fcd0
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.100a23bd
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1003a410
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100adddb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.100a2132
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1003a492
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1009fa7d
mov eax, dword [eax]
push 0x10107248
push eax
call fcn.1008ff24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100a23bd
test bl, bl
je 0x1003a492
push 0x10107248
lea ecx, [esp + 0xc]
call fcn.100a274d
push 0x1010adcc
lea ecx, [esp + 0xc]
call fcn.100a274d
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1003a4ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100a23bd
jmp 0x1003a599
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1003a552
lea edx, [esp + 0x7c]
push 0x1010adc8
push edx
call fcn.1008ff24
add esp, 8
test eax, eax
je 0x1003a552
lea eax, [esp + 0x7c]
push 0x1010adc4
push eax
call fcn.1008ff24
add esp, 8
test eax, eax
je 0x1003a552
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1003a4e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.100a23bd
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x1003ad90
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1003adf2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc