joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100859a0
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 0x100859b5
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 0x10085b48
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 0x10085a27
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 0x10085a15
lea eax, [ebp - 0x240]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100859f0
jmp 0x10085a27
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 0x10085b48
mov esi, dword [0x100eed8c]
push 0x40
push 0x3000
mov dword [ebp - 4], esi
push dword [esi + 0x100eeda0]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [esi + 0x100eeda4]
mov dword [ebp + 8], eax
push 0x100eed50
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 0x100eed56]
jae 0x10085aad
lea esi, [esi + 0x100eee5c]
mov eax, dword [esi]
push 0
push dword [esi - 4]
add eax, 0x100eed50
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 + 0x100eed56]
cmp edi, eax
jl 0x10085a80
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 0x10145574
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.10014380
lea esi, [edi + 0x10]
sub eax, 0x10085b60
push eax
push 0x10085b60
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 0x10088660
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.0x10088676
jmp dword [edi*4 + 0x1008880c]
mov ecx, esi
and ecx, 3
sub edi, ecx
sub ecx, 1
je 0x100886b9
sub ecx, 1
je 0x100886a6
sub ecx, 1
jne 0x100886cc
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10145c78]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10145c78]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10145c78]
inc esi
mov edx, edi
sar edx, 3
test edx, edx
je 0x1008874e
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10145c78]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10145c78]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10145c78]
mov ecx, eax
movzx eax, cl
shr ecx, 8
mov eax, dword [eax*4 + 0x10145c78]
xor eax, dword [esi + 4]
add esi, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10145c78]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10145c78]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10145c78]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10145c78]
sub edx, 1
jne 0x100886d5
and edi, 7
jmp 0x10088671
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10145c78]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10145c78]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10145c78]
inc esi
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
pop edi
pop esi
xor eax, dword [ecx*4 + 0x10145c78]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10145c78]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10145c78]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10145c78]
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 + 0x10145c78]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10145c78]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10145c78]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret
Function at 0x10093a30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10093abc
push esi
call fcn.100a6a70
add esp, 4
test al, al
jne 0x10093abc
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10093a53
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.100afb40
add esp, 0xc
test eax, eax
je 0x10093a87
sub eax, esi
push eax
push 0x2e
push esi
call fcn.100afb40
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10093a89
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 0x10093ab5
mov al, byte [esi]
push eax
call fcn.100a38e0
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 0x10093a97
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10098720
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], 0x1019b6a8
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 0x10098757
mov byte [eax], 0
mov ebp, dword [esp + 0x34]
mov esi, dword [ebp + 0x8d8]
test esi, esi
je 0x10098914
push dword [ecx + 8]
mov edi, dword [esi + 0x14]
call dword [0x1019b664]
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x100987b0
mov eax, dword [ebx + 0xc]
cmp byte [eax + 0x1c9], 0
je 0x100987c2
push dword [eax + 0x64]
call dword [0x1019b664]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x100987bd
mov edi, dword [esp + 0x34]
push edi
call dword [0x1019b65c]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebx + 0xc]
jmp 0x100987ca
mov dword [esp + 0x10], 0
cmp byte [eax + 0x1ca], 0
je 0x100987df
mov ecx, dword [eax + 0x444]
mov dword [esp + 0x14], ecx
jmp 0x100987e7
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x100987fd
test byte [eax + 4], 0x10
je 0x100987fd
lea edx, [eax + 0x78]
mov dword [esp + 0x30], edx
jmp 0x10098807
lea eax, [ebp + 0x8dc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x4a4]
mov ecx, 1
cmp eax, ecx
jbe 0x1009885b
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 0x10098855
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 0x10098820
mov eax, dword [ebp + 0x4a4]
cmp ecx, eax
jne 0x1009886a
push esi
call fcn.100991d0
add esp, 4
jmp 0x10098876
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 [0x1019b65c]
push dword [esi + 4]
call dword [0x1019b65c]
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.10097f50
add esp, 0x10
test al, al
jne 0x10098909
push ebx
call fcn.100981e0
push edi
mov dword [esi + 0xc], 0
call dword [0x1019b65c]
push ebp
call dword [0x1019b65c]
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 0x10098914
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x10098f10
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, 0x1019b6a8
mov dword [esp + 0xc], edx
cmovne ebx, esi
mov esi, 0x3cc
add ebx, dword [ecx + 0xc]
cmp eax, 0x1019b6a8
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 0x100990ad
cmp byte [ecx + 0x3c], 0
je 0x100990ad
cmp dword [ebx + 0x8d8], 0
je 0x100990ad
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x10098f91
test byte [eax + 4], 0x10
je 0x10098f91
add eax, 0x78
jmp 0x10098f97
lea eax, [ebx + 0x8dc]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x4a4], edi
jbe 0x10099076
xor ebp, ebp
nop dword [eax]
mov esi, dword [ebx + 0x8d8]
add esi, ebp
cmp dword [esi + 0xc], 0
je 0x10099066
push dword [esi]
push dword [edx + 8]
call fcn.100a3a20
add esp, 8
test eax, eax
je 0x10099062
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 4]
cmp byte [ecx + 0x1c9], 0
jne 0x10098ff0
test eax, eax
je 0x10099004
jmp 0x10099062
test eax, eax
je 0x10099062
push eax
push dword [ecx + 0x64]
call fcn.100a3a20
add esp, 8
test eax, eax
je 0x10099062
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
cmp byte [ecx + 0x1ca], 0
jne 0x1009901e
cmp eax, 0xffffffff
je 0x1009902b
jmp 0x10099062
cmp eax, 0xffffffff
je 0x10099062
cmp dword [ecx + 0x444], eax
jne 0x10099062
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
cmp eax, dword [esi + 0x18]
jne 0x10099066
mov eax, dword [ecx + 0x1e0]
push dword [esi + 8]
push dword [eax]
call fcn.100a3a20
add esp, 8
test eax, eax
je 0x10099062
lea eax, [esi + 0x20]
push eax
push dword [esp + 0x20]
call fcn.10098b40
add esp, 8
test al, al
jne 0x10099082
mov edx, dword [esp + 0x14]
inc edi
add ebp, 0x60
cmp edi, dword [ebx + 0x4a4]
jb 0x10098fb0
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 0x100990a3
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 0x1009e920
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6d0], 0
je 0x1009e9bd
cmp dword [esi + 0x1a4], 0
je 0x1009e977
push esi
call fcn.1008e890
push 1
push esi
mov byte [esp + 0x14], al
call fcn.1008eb40
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.1008eb40
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x1009e98c
sub eax, 1
je 0x1009e98c
sub eax, 1
jne 0x1009e9bd
push dword [esi + 0x150]
lea eax, [ecx*2 + 0x1014940c]
push 1
add eax, ecx
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
pop esi
ret

Function at 0x100a0730
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100a074a
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 0x10149620
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x100a0792
test ebp, ebp
je 0x100a0783
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 0x100a07b8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100a07b8
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 0x100a086f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a07d5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x1019b658]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100a0865
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100a0865
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a0807
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 0x100a0820
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 0x100a0830
test ebp, ebp
je 0x100a085c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1019b65c]
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 [0x1019b65c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x100a6bd0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x100a6c0e
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 0
jne 0x100a6c02
push 0
call fcn.100a6bd0
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 0x100a6c23
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x100b0290
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.10093db0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
push dword [esp + 0x40]
mov edi, eax
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
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 0x100b0325
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.10093db0
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.10093e60
add esp, 0x20
test edx, edx
ja 0x100b0349
jb 0x100b0317
cmp eax, 0x3e8
ja 0x100b0349
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x100b02e0
test edi, edi
je 0x100b0332
push edi
call fcn.100dda03
add esp, 4
test esi, esi
je 0x100b033f
push esi
call fcn.100dda03
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x100b0356
push edi
call fcn.100dda03
add esp, 4
test esi, esi
je 0x100b0363
push esi
call fcn.100dda03
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x100b0760
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 0x100b08f1
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x100b08dc
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100b07be
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100b07b0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x100b07c0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x100b07d1
lea ebp, [eax + 0xe]
jmp 0x100b07dd
cmp eax, 0x17
jne 0x100b087e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x100b087e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100b087e
cmp eax, ebp
jb 0x100b087e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [0x1019b658]
mov edi, eax
add esp, 4
test edi, edi
je 0x100b08cd
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 sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x100b086a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x100b087a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100b07a2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x100b089e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x100b08d8
test ebx, ebx
je 0x100b08bd
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x1019b65c]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x100b08a6
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 0x100b088d
test ebx, ebx
jne 0x100b08e8
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 0x100b0d60
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 0x100b0e0b
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.10099300
add esp, 0xc
cmp eax, 4
jne 0x100b0dc6
cmp byte [0x101a3ef0], 0
jne 0x100b0dd2
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 0x100b0e0d
mov eax, dword [esp + 0x1c]
jmp 0x100b0def
imul eax, dword [0x101a3eec], 0x41c64e6d
add eax, 0x3039
mov dword [0x101a3eec], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x100b0e03
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x100b0df3
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x100b0d80
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100b0e20
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1019b964]
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 0x100b0f89
test dl, 1
je 0x100b0f89
push esi
dec edx
mov esi, ebx
push edi
mov edi, edx
mov dword [esp + 0xa8], edx
shr edi, 1
mov ecx, 0x2b
je 0x100b0f33
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.10099300
add esp, 0xc
cmp eax, 4
jne 0x100b0ed9
cmp byte [0x101a3ef0], 0
jne 0x100b0ee9
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 0x100b0f70
mov eax, dword [esp + 0x10]
jmp 0x100b0f06
imul eax, dword [0x101a3eec], 0x41c64e6d
add eax, 0x3039
mov dword [0x101a3eec], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x100b0f20
nop word [eax + eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x100b0f10
mov dword [esp + 0x10], eax
test edi, edi
jne 0x100b0e90
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x18]
mov eax, ecx
test eax, eax
jne 0x100b0f70
test edx, edx
je 0x100b0f6a
nop dword [eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x1014b818]
mov byte [ebp], al
movzx eax, byte [ecx + 0x1014b818]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x100b0f40
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.100dd0ae
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov eax, 0x2b
pop ebp
pop ebx
xor ecx, esp
call fcn.100dd0ae
add esp, 0x8c
ret
Function at 0x100b0fb0
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memset
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 0x100b3cf0
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 [0x1019b660]
mov edi, eax
add esp, 8
test edi, edi
je 0x100b3d47
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 0x100b3d5f
cmp esi, ebx
je 0x100b3d5f
cmp esi, 0x8000
ja 0x100b3d5f
cmp esi, ebx
jb 0x100b3d58
push esi
push edi
call dword [0x1019b660]
mov edi, eax
add esp, 8
test edi, edi
jne 0x100b3d10
push ebp
call dword [0x1019b65c]
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 [0x1019b65c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100b5220
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 0x100b526c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1009e9c0
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.100b4e40
add esp, 0x10
pop esi
pop ebx
ret