joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10075b40
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
cmp dword [ebp + 8], 0
je 0x10075b55
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10075ce8
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push esi
xor ebx, ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10075bc7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop
push str.csgo.exe
lea eax, [ebp - 0x21c]
push eax
call edi
test eax, eax
je 0x10075bb5
lea eax, [ebp - 0x240]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10075b90
jmp 0x10075bc7
push dword [ebp - 0x238]
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10075ce8
mov esi, dword [0x1010b3b4]
push 0x40
push 0x3000
mov dword [ebp - 4], esi
push dword [esi + 0x1010b3c8]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [esi + 0x1010b3cc]
mov dword [ebp + 8], eax
push 0x1010b378
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 0x1010b37e]
jae 0x10075c4d
lea esi, [esi + 0x1010b484]
mov eax, dword [esi]
push 0
push dword [esi - 4]
add eax, 0x1010b378
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 4]
lea esi, [esi + 0x28]
inc edi
movzx eax, word [eax + 0x1010b37e]
cmp edi, eax
jl 0x10075c20
push 0x20
push 0x3000
push 0x1000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlZeroMemory
push 0x10161b9c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
push 0
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.10005840
lea esi, [edi + 0x10]
sub eax, 0x10075d00
push eax
push 0x10075d00
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10077fd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [ebx]
mov edi, dword [ebp + 0x10]
cmp edi, 7
ja case.default.0x10077fe6
jmp dword [edi*4 + 0x1007817c]
mov ecx, esi
and ecx, 3
sub edi, ecx
sub ecx, 1
je 0x10078029
sub ecx, 1
je 0x10078016
sub ecx, 1
jne 0x1007803c
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10162768]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10162768]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10162768]
inc esi
mov edx, edi
sar edx, 3
test edx, edx
je 0x100780be
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10162768]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10162768]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10162768]
mov ecx, eax
movzx eax, cl
shr ecx, 8
mov eax, dword [eax*4 + 0x10162768]
xor eax, dword [esi + 4]
add esi, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10162768]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10162768]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10162768]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10162768]
sub edx, 1
jne 0x10078045
and edi, 7
jmp 0x10077fe1
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10162768]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10162768]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10162768]
inc esi
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
pop edi
pop esi
xor eax, dword [ecx*4 + 0x10162768]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10162768]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10162768]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10162768]
mov dword [ebx], eax
pop ebx
pop ebp
ret
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10162768]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10162768]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10162768]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret
Function at 0x10078820
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.100d07e0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x40]
mov ecx, 0x20
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], ecx
mov eax, 0x3f
shr ecx, 3
add esp, 0xc
and ecx, 0x3f
mov dword [ebp - 0x58], 0x67452301
add edx, ecx
mov dword [ebp - 0x54], 0xefcdab89
mov dword [ebp - 0x50], 0x98badcfe
sub eax, ecx
mov dword [ebp - 0x4c], 0x10325476
mov dword [ebp - 0x44], 0
mov byte [edx], 0x80
inc edx
cmp eax, 8
jae 0x100788aa
push eax
push 0
push edx
call fcn.100d07e0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100781a0
push 0x38
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.100d07e0
add esp, 0x20
jmp 0x100788b9
add eax, 0xfffffff8
push eax
push 0
push edx
call fcn.100d07e0
add esp, 0xc
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100781a0
mov eax, dword [ebp - 0x52]
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x10084d30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10084dbc
push esi
call fcn.10097d80
add esp, 4
test al, al
jne 0x10084dbc
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10084d53
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.100a0e50
add esp, 0xc
test eax, eax
je 0x10084d87
sub eax, esi
push eax
push 0x2e
push esi
call fcn.100a0e50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10084d89
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x10084db5
mov al, byte [esi]
push eax
call fcn.10094bf0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x10084d97
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10089a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
mov eax, 0x180
mov edx, 0x140
push ebp
push esi
cmp dword [ebx], 0x101d4d10
mov ecx, dword [ebx + 8]
cmovne eax, edx
mov dword [esp + 0x20], ecx
add eax, dword [ebx + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
push edi
test eax, eax
je 0x10089a57
mov byte [eax], 0
mov ebp, dword [esp + 0x34]
mov esi, dword [ebp + 0x8d8]
test esi, esi
je 0x10089c14
push dword [ecx + 8]
mov edi, dword [esi + 0x14]
call dword [0x101d4ccc]
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x10089ab0
mov eax, dword [ebx + 0xc]
cmp byte [eax + 0x1c9], 0
je 0x10089ac2
push dword [eax + 0x64]
call dword [0x101d4ccc]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x10089abd
mov edi, dword [esp + 0x34]
push edi
call dword [0x101d4cc4]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebx + 0xc]
jmp 0x10089aca
mov dword [esp + 0x10], 0
cmp byte [eax + 0x1ca], 0
je 0x10089adf
mov ecx, dword [eax + 0x444]
mov dword [esp + 0x14], ecx
jmp 0x10089ae7
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x10089afd
test byte [eax + 4], 0x10
je 0x10089afd
lea edx, [eax + 0x78]
mov dword [esp + 0x30], edx
jmp 0x10089b07
lea eax, [ebp + 0x8dc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x4a4]
mov ecx, 1
cmp eax, ecx
jbe 0x10089b5b
mov eax, dword [ebp + 0x8d8]
add eax, 0x74
nop
cmp dword [eax - 8], 0
mov edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
je 0x10089b55
mov edi, dword [eax]
inc ecx
mov esi, dword [esp + 0x18]
add eax, 0x60
add esi, 0xffffffec
cmp edi, edx
cmovge esi, dword [esp + 0x20]
cmp edi, edx
cmovge edi, edx
cmp ecx, dword [ebp + 0x4a4]
jb 0x10089b20
mov eax, dword [ebp + 0x4a4]
cmp ecx, eax
jne 0x10089b6a
push esi
call fcn.1008a4d0
add esp, 4
jmp 0x10089b76
lea esi, [ecx + ecx*2]
shl esi, 5
add esi, dword [ebp + 0x8d8]
mov eax, dword [esp + 0x38]
push dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
call dword [0x101d4cc4]
push dword [esi + 4]
call dword [0x101d4cc4]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esi], edi
mov dword [esi + 4], ebp
mov eax, dword [eax + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0xc]
lea ebx, [esi + 0x20]
push ebx
push dword [esp + 0x34]
mov eax, dword [eax + 0x1e0]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.10089250
add esp, 0x10
test al, al
jne 0x10089c09
push ebx
call fcn.100894e0
push edi
mov dword [esi + 0xc], 0
call dword [0x101d4cc4]
push ebp
call dword [0x101d4cc4]
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10089c14
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x1008a210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push ebx
push esi
mov esi, 0x140
mov byte [esp + 0xb], 1
mov eax, dword [ecx]
mov ebx, 0x180
mov edx, dword [ecx + 8]
cmp eax, 0x101d4d10
mov dword [esp + 0xc], edx
cmovne ebx, esi
mov esi, 0x3cc
add ebx, dword [ecx + 0xc]
cmp eax, 0x101d4d10
mov eax, dword [esp + 0x24]
mov ecx, 0x434
mov dword [esp + 0x14], ebx
cmovne ecx, esi
mov ebx, dword [esp + 0x20]
mov dword [eax], 0
add ecx, ebx
je 0x1008a3ad
cmp byte [ecx + 0x3c], 0
je 0x1008a3ad
cmp dword [ebx + 0x8d8], 0
je 0x1008a3ad
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x1008a291
test byte [eax + 4], 0x10
je 0x1008a291
add eax, 0x78
jmp 0x1008a297
lea eax, [ebx + 0x8dc]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x4a4], edi
jbe 0x1008a376
xor ebp, ebp
nop dword [eax]
mov esi, dword [ebx + 0x8d8]
add esi, ebp
cmp dword [esi + 0xc], 0
je 0x1008a366
push dword [esi]
push dword [edx + 8]
call fcn.10094d30
add esp, 8
test eax, eax
je 0x1008a362
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 4]
cmp byte [ecx + 0x1c9], 0
jne 0x1008a2f0
test eax, eax
je 0x1008a304
jmp 0x1008a362
test eax, eax
je 0x1008a362
push eax
push dword [ecx + 0x64]
call fcn.10094d30
add esp, 8
test eax, eax
je 0x1008a362
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
cmp byte [ecx + 0x1ca], 0
jne 0x1008a31e
cmp eax, 0xffffffff
je 0x1008a32b
jmp 0x1008a362
cmp eax, 0xffffffff
je 0x1008a362
cmp dword [ecx + 0x444], eax
jne 0x1008a362
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
cmp eax, dword [esi + 0x18]
jne 0x1008a366
mov eax, dword [ecx + 0x1e0]
push dword [esi + 8]
push dword [eax]
call fcn.10094d30
add esp, 8
test eax, eax
je 0x1008a362
lea eax, [esi + 0x20]
push eax
push dword [esp + 0x20]
call fcn.10089e40
add esp, 8
test al, al
jne 0x1008a382
mov edx, dword [esp + 0x14]
inc edi
add ebp, 0x60
cmp edi, dword [ebx + 0x4a4]
jb 0x1008a2b0
mov al, byte [esp + 0x13]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1008a3a3
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret
Function at 0x10091a40
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x1016619c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x10091a5a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x101661b8
push esi
call fcn.100e46c0
add esp, 8
test eax, eax
je 0x10091aa2
test ebp, ebp
je 0x10091a93
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10091ac8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10091ac8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x10091b7f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091ae5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x101d4cc0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10091b75
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10091b75
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091b17
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091b30
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10091b40
test ebp, ebp
je 0x10091b6c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x101d4cc4]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x101d4cc4]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10097ee0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10097f1e
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 0
jne 0x10097f12
push 0
call fcn.10097ee0
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xe8], cl
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 2
pop esi
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10097f33
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x100a15a0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.100850b0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.100dcbad
push dword [esp + 0x40]
mov edi, eax
call fcn.100dcbad
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x100a1635
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.100850b0
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.10085160
add esp, 0x20
test edx, edx
ja 0x100a1659
jb 0x100a1627
cmp eax, 0x3e8
ja 0x100a1659
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x100a15f0
test edi, edi
je 0x100a1642
push edi
call fcn.100d8c72
add esp, 4
test esi, esi
je 0x100a164f
push esi
call fcn.100d8c72
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x100a1666
push edi
call fcn.100d8c72
add esp, 4
test esi, esi
je 0x100a1673
push esi
call fcn.100d8c72
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x100a1a70
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x100a1c01
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x100a1bec
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100a1ace
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a1ac0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x100a1ad0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x100a1ae1
lea ebp, [eax + 0xe]
jmp 0x100a1aed
cmp eax, 0x17
jne 0x100a1b8e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x100a1b8e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100a1b8e
cmp eax, ebp
jb 0x100a1b8e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [0x101d4cc0]
mov edi, eax
add esp, 4
test edi, edi
je 0x100a1bdd
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.100d00a0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x100a1b7a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.100d00a0
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x100a1b8a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100a1ab2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x100a1bae
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x100a1be8
test ebx, ebx
je 0x100a1bcd
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x101d4cc4]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x100a1bb6
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x100a1b9d
test ebx, ebx
jne 0x100a1bf8
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x100a2070
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x100a211b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.1008a600
add esp, 0xc
cmp eax, 4
jne 0x100a20d6
cmp byte [0x10215dd8], 0
jne 0x100a20e2
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x100a211d
mov eax, dword [esp + 0x1c]
jmp 0x100a20ff
imul eax, dword [0x10215dd4], 0x41c64e6d
add eax, 0x3039
mov dword [0x10215dd4], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x100a2113
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x100a2103
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x100a2090
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100a2130
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x101d5000]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, edx
push ebx
and eax, 0xfffffffe
lea ebx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x9c]
cmp eax, 0x100
jae 0x100a2299
test dl, 1
je 0x100a2299
push esi
dec edx
mov esi, ebx
push edi
mov edi, edx
mov dword [esp + 0xa8], edx
shr edi, 1
mov ecx, 0x2b
je 0x100a2243
nop word [eax + eax]
push 4
lea eax, [esp + 0x14]
mov ebx, 4
push eax
push dword [esp + 0x1c]
cmp edi, ebx
cmovb ebx, edi
call fcn.1008a600
add esp, 0xc
cmp eax, 4
jne 0x100a21e9
cmp byte [0x10215dd8], 0
jne 0x100a21f9
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x100a2280
mov eax, dword [esp + 0x10]
jmp 0x100a2216
imul eax, dword [0x10215dd4], 0x41c64e6d
add eax, 0x3039
mov dword [0x10215dd4], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x100a2230
nop word [eax + eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x100a2220
mov dword [esp + 0x10], eax
test edi, edi
jne 0x100a21a0
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x18]
mov eax, ecx
test eax, eax
jne 0x100a2280
test edx, edx
je 0x100a227a
nop dword [eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x101683b8]
mov byte [ebp], al
movzx eax, byte [ecx + 0x101683b8]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x100a2250
mov byte [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100cf30e
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov eax, 0x2b
pop ebp
pop ebx
xor ecx, esp
call fcn.100cf30e
add esp, 0x8c
ret
Function at 0x100a22c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.100d07e0
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x100a5000
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x101d4cc8]
mov edi, eax
add esp, 8
test edi, edi
je 0x100a5057
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x100a506f
cmp esi, ebx
je 0x100a506f
cmp esi, 0x8000
ja 0x100a506f
cmp esi, ebx
jb 0x100a5068
push esi
push edi
call dword [0x101d4cc8]
mov edi, eax
add esp, 8
test edi, edi
jne 0x100a5020
push ebp
call dword [0x101d4cc4]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x101d4cc4]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100a6530
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x100a657c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1008fcc0
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.100a6150
add esp, 0x10
pop esi
pop ebx
ret