joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor ebx, ebx
mov byte [ebp - 0x266], 1
push edi
mov dword [ebp - 0x26c], ebx
mov esi, ecx
push ebx
push 2
mov dword [ebp - 0x264], 0x100a66cc
mov byte [ebp - 0x25c], bl
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], 0x100a6594
call fcn.1000b3e0
lea ecx, [ebp - 0x264]
call fcn.10017eb0
test eax, eax
je 0x10018156
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [eax + eax]
push dword [eax + 8]
push 0
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x270]
call fcn.10017f70
test bl, 1
je 0x100180bf
lea ecx, [ebp - 0x324]
and ebx, 0xfffffffe
call fcn.100168c0
cmp byte [ebp - 0x270], 0
je 0x100180cc
call esi
jmp 0x100180d2
mov eax, dword [ebp - 0x26c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
mov byte [ebp - 0x265], al
test al, al
je 0x10018119
cmp byte [ebp - 0x270], 0
je 0x100180f7
call esi
jmp 0x100180fd
mov eax, dword [ebp - 0x26c]
push 0xea60
push eax
call edi
test eax, eax
je 0x1001812c
test bl, 2
je 0x1001812c
and ebx, 0xfffffffd
lea ecx, [ebp - 0x3dc]
jmp 0x10018127
test bl, 4
je 0x10018132
and ebx, 0xfffffffb
lea ecx, [ebp - 0x494]
call fcn.10016b90
mov al, byte [ebp - 0x265]
and byte [ebp - 0x266], al
lea ecx, [ebp - 0x26c]
call fcn.100121b0
lea ecx, [ebp - 0x264]
call fcn.10017eb0
test eax, eax
jne 0x10018090
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x264], 0x100a6594
call fcn.1000b2d0
push dword [ebp - 0x260]
mov dword [ebp - 0x264], 0x100a66cc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x266]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret
Function at 0x10019ad0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x10019aeb
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x64], eax
call fcn.100104f0
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.10010610
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.10019a30
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret

Function at 0x1001aea0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x100ac06c]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x100aca90]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.10020937
add esp, 4
mov edi, 0x100
nop word [eax + eax]
mov esi, dword [0x100afb9c]
xor dl, dl
test esi, esi
jle 0x1001af38
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x1001af33
mov eax, dword [esi*4 + 0x100af420]
test eax, eax
je 0x1001af33
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x1001af10
dec edi
test edi, edi
jle 0x1001af41
test dl, dl
jne 0x1001af00
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100205ba
mov esp, ebp
pop ebp
ret
Function at 0x1001b150
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3bdc
call fcn.10021150
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x10bc]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.10062800
push 0x400
lea eax, [ebp - 0x14bc]
push 0
push eax
call fcn.10062800
push esi
lea eax, [ebp - 0x104]
xor ebx, ebx
push str..PhysicalDrive_d
push eax
call fcn.1001bdd0
add esp, 0x24
lea eax, [ebp - 0x104]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001b378
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x3bdc], ebx
lea eax, [ebp - 0x3bcc]
movq qword [ebp - 0x3bd8], xmm0
push ebx
push eax
mov dword [ebp - 0x3bd0], ebx
mov dword [ebp - 0x3bd8], ebx
mov dword [ebp - 0x3bd4], ebx
call fcn.10062800
add esp, 0xc
lea eax, [ebp - 0x3bdc]
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x3bcc]
push eax
push 0xc
lea eax, [ebp - 0x3bd8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001b36b
mov edx, dword [ebp - 0x3bc0]
lea eax, [ebp - 0xcbc]
push eax
push ebx
lea ecx, [ebp - 0x3bcc]
call fcn.1001afe0
mov edx, dword [ebp - 0x3bbc]
lea eax, [ebp - 0x8d4]
push eax
push ebx
lea ecx, [ebp - 0x3bcc]
call fcn.1001afe0
mov edx, dword [ebp - 0x3bb8]
lea eax, [ebp - 0xcbc]
push eax
push ebx
lea ecx, [ebp - 0x3bcc]
call fcn.1001afe0
mov edx, dword [ebp - 0x3bb4]
lea eax, [ebp - 0x4ec]
push eax
push 1
lea ecx, [ebp - 0x3bcc]
call fcn.1001afe0
add esp, 0x20
cmp byte [ebp - 0x10bc], bl
jne 0x1001b31d
movsx eax, byte [ebp - 0x4ec]
push eax
call fcn.10069609
add esp, 4
test eax, eax
jne 0x1001b2cc
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.10069609
add esp, 4
test eax, eax
je 0x1001b31d
lea eax, [ebp - 0x4ec]
push eax
lea eax, [ebp - 0x10bc]
push 0x400
push eax
call fcn.100650d8
lea eax, [ebp - 0x8d4]
push eax
lea eax, [ebp - 0x14bc]
push 0x400
push eax
call fcn.100650d8
lea ecx, [ebp - 0x4ec]
add esp, 0x18
mov eax, ecx
mov ebx, 1
sub edi, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x1001b310
push 0x2710
lea eax, [ebp - 0x3bcc]
push 0
push eax
call fcn.10062800
add esp, 0xc
lea eax, [ebp - 0x3bdc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x3bcc]
push eax
push 0
push 0
push 0x700a0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret
Function at 0x1001b670
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008861d
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x78], edi
push 0x64
lea eax, [ebp - 0x74]
mov dword [ebp - 0x94], edi
push 0
push eax
mov dword [ebp - 0x90], 0
call fcn.10062800
add esp, 0xc
mov byte [ebp - 0x80], 0
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7f], 0
mov byte [ebp - 0x7b], 0
mov dword [ebp - 0x78], 0
push eax
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x1001b793
push ebx
lea ecx, [ebp - 0x8c]
call fcn.1000fc50
mov esi, dword [ebp - 0x8c]
mov eax, esi
mov ecx, dword [ebp - 0x88]
sub eax, ecx
add eax, ebx
push eax
push 0
push ecx
call fcn.10062800
add esp, 0xc
lea eax, [esi + ebx]
mov dword [ebp - 0x88], eax
test esi, esi
je 0x1001b793
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1001b793
mov ebx, dword [ebp - 0x80]
nop
lea ecx, [esi + 8]
call fcn.1001b390
mov ecx, eax
cmp ecx, 1
je 0x1001b773
test ecx, ecx
jne 0x1001b78b
mov ax, word [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [ebp - 0x80], ebx
mov word [ebp - 0x7c], ax
test ecx, ecx
je 0x1001b796
mov esi, dword [esi]
test esi, esi
jne 0x1001b760
jmp 0x1001b796
mov ebx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
shr eax, 8
movzx eax, al
push eax
movzx eax, byte [ebp - 0x7c]
push eax
mov eax, ebx
shr eax, 0x18
push eax
mov eax, ebx
shr ebx, 8
shr eax, 0x10
movzx eax, al
push eax
movzx eax, bl
push eax
movzx eax, byte [ebp - 0x80]
push eax
push str._02X__02X__02X__02X__02X__02X
lea eax, [ebp - 0x74]
push 0x64
push eax
call fcn.1000e940
mov dword [edi + 0x14], 0xf
add esp, 0x24
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [ebp - 0x74], 0
jne 0x1001b7ee
xor ecx, ecx
jmp 0x1001b7fd
lea ecx, [ebp - 0x74]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b7f4
sub ecx, edx
push ecx
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.1000bf10
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x90], 1
mov byte [ebp - 4], 0
call fcn.10016680
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret
Function at 0x1001d290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x1001d270
push 0
push 0
call fcn.10073ebd
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
mov dword [ebp - 4], eax
push 0
push dword [ebp - 8]
call esi
cmp eax, 0x102
jne 0x1001d320
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x1001d312
lea eax, [ebp - 0x28]
push eax
call ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push dword [ebp - 8]
call esi
cmp eax, 0x102
je 0x1001d2f0
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001d380
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1604
call fcn.10021150
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x44
lea eax, [ebp - 0x1600]
xor bl, bl
push 0
push eax
call fcn.10062800
add esp, 0xc
lea eax, [ebp - 0x210]
xorps xmm0, xmm0
movups xmmword [ebp - 0x15b4], xmm0
push 0x208
push 0
push eax
call fcn.10062800
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x1598]
call fcn.1001d5d0
mov eax, ecx
mov dword [ebp - 0x15a0], 0x20
push 0x989680
lea ecx, [ebp - 0x15a4]
mov dword [ebp - 0x15a4], eax
mov dword [ebp - 0x159c], 0xffffffff
call fcn.1001d620
push eax
push str.c:WindowsSystem32_d.exe
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1001d230
add esp, 0x10
lea eax, [ebp - 0x15b4]
push eax
lea eax, [ebp - 0x1600]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001d47b
push dword [ebp - 0x15b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x15b4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret
Function at 0x1001d490
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
mov eax, dword [0x100ac06c]
xor eax, esp
mov dword [esp + 0x40c], eax
push esi
push edi
call fcn.1001d290
call fcn.1001d380
test al, al
je 0x1001d4d0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.100205ba
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [esp + 0x14]
push 0
push eax
call fcn.10062800
add esp, 0xc
mov dword [esp + 0xc], 0x400
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, dword [esp + 0xc]
xor ecx, ecx
xor edx, edx
test edi, edi
je 0x1001d541
nop dword [eax + eax]
movsx eax, byte [esp + edx + 0x10]
imul eax, eax, 0xd
shl ecx, 4
add ecx, eax
mov esi, ecx
and esi, 0xf0000000
je 0x1001d530
mov eax, esi
shr eax, 0x18
xor eax, esi
xor ecx, eax
inc edx
cmp edx, edi
jb 0x1001d510
cmp ecx, 0x1d52f71
je 0x1001d4ba
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x400
push eax
push 0
call esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.1001d340
cmp eax, 0xe0decd8
je 0x1001d4ba
call fcn.1001d380
test al, al
jne 0x1001d4ba
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x400
push eax
lea eax, [esp + 0x14]
push eax
push 2
call esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.1001d340
cmp eax, 0xe0decd8
je 0x1001d4ba
call fcn.1001d380
mov ecx, dword [esp + 0x414]
test al, al
pop edi
setne al
pop esi
xor ecx, esp
call fcn.100205ba
mov esp, ebp
pop ebp
ret

Function at 0x1001d5d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x1001d5f0
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc

Function at 0x1001d710
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x1001d720
pop esi
ret
Function at 0x1001d760
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x1001d770
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x1001d7b2
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret
Function at 0x1001d9c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov dword [ebp - 0x38], esi
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x1001d9ef
xor ecx, ecx
jmp 0x1001da0c
cmp byte [edi], 0
jne 0x1001d9f8
xor ecx, ecx
jmp 0x1001da0c
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001da00
sub ecx, esi
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
call fcn.10017020
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1001da23
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.1000b2d0
test ebx, ebx
jne 0x1001da4d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x1001daf9
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002093c
add esp, 4
mov esi, eax
push ebx
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x1001da99
cmp byte [edi], 0
jne 0x1001da88
xor edi, edi
jmp 0x1001da99
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x1001da90
sub edi, ecx
lea eax, [ebp - 0x1c]
mov dword [edx + 4], edi
push eax
call fcn.10017020
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1001dab0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
call fcn.1000b2d0
push esi
lea ecx, [ebp - 0x1c]
call fcn.1000b360
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.10016f20
mov ecx, dword [ebp - 0x38]
push eax
call fcn.1000b5d0
lea ecx, [ebp - 0x34]
call fcn.1000b590
lea ecx, [ebp - 0x1c]
call fcn.1000b2d0
test esi, esi
je 0x1001daf9
push esi
call fcn.10020937
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret 8

Function at 0x10027e88
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10027eef
push esi
call fcn.1002816b
pop ecx
test al, al
jne 0x10027eef
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.1002810a
pop ecx
mov esi, eax
mov ebx, 0x1505
pop ecx
mov ecx, dword [ebp + 8]
xor eax, eax
and dword [ebp + 8], 0
add ecx, esi
mov edi, ecx
sub edi, esi
cmp esi, ecx
cmova edi, eax
test edi, edi
je 0x10027ee8
mov al, byte [esi]
push eax
call fcn.10033428
imul ebx, ebx, 0x21
pop ecx
movsx ecx, al
mov eax, dword [ebp + 8]
xor ebx, ecx
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x10027ecb
pop edi
movzx eax, bl
pop ebx
jmp 0x10027ef1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10028c1c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10028c3d
cmp dword [esi + 0x8c], 0
je 0x10028c3d
push 2
push 3
push esi
call fcn.10033ee4
add esp, 0xc
push dword [ebp + 0xc]
call fcn.100342f3
pop ecx
test esi, esi
je 0x10028c5d
cmp dword [esi + 0x8c], 0
je 0x10028c5d
push 3
push esi
call fcn.10033f1f
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x10030e51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x608], edi
je 0x10030e90
push 1
push esi
call fcn.1002486b
push dword [esi + 0x59c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [esi + 0x608]
push 0
push esi
mov edi, eax
call fcn.1002486b
add esp, 0x24
jmp 0x10030ec6
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x10030ec6
push dword [esi + 0x598]
imul eax, eax, 3
push 1
push 2
add eax, 0x1008f00c
push eax
call fcn.10068bea
push dword [esi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10068bea
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx + eax*4 + 0x1a8]
push eax
push ebx
mov dword [ebp - 0x88], ecx
call fcn.1003174a
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov eax, dword [ebp - 0x88]
and dword [eax], 0
cmp esi, 0xffffffff
jne 0x10031341
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x1003130b
mov eax, dword [ebp - 0x88]
xor esi, esi
mov dword [eax], 0x51
jmp 0x10031341
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.10054b84
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.10030ecc
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcac], edi
mov eax, dword [ebp - 0x88]
mov dword [eax], 0x37
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret
Function at 0x1003174a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
add edi, edi
mov eax, dword [esi + 0x2a8]
mov edx, dword [esi + ecx*4 + 0x1a8]
mov dword [ebp + 8], edx
mov ebx, dword [esi + edi*8 + 0x1d0]
sub ebx, dword [esi + edi*8 + 0x1d4]
test byte [eax + 0x40], 3
je 0x10031832
cmp dword [esi + ecx*4 + 0x1bc], 0x100311d1
jne 0x10031832
xor eax, eax
cmp dword [esi + edi*8 + 0x1cc], eax
je 0x100317a6
test ebx, ebx
je 0x10031832
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.10030a71
add esp, 0x14
cmp eax, 0xffffffff
je 0x10031832
test al, 1
je 0x10031832
xor ecx, ecx
cmp dword [esi + edi*8 + 0x1cc], ecx
jne 0x1003180d
mov eax, dword [esi]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + edi*8 + 0x1d0], eax
call dword [0x100ac090]
mov ebx, dword [esi + edi*8 + 0x1d0]
pop ecx
xor ecx, ecx
mov dword [esi + edi*8 + 0x1cc], eax
mov dword [esi + edi*8 + 0x1d4], ecx
mov dword [esi + edi*8 + 0x1d8], ecx
test eax, eax
jne 0x1003180d
mov dword [esi + edi*8 + 0x1d0], ecx
jmp 0x10031832
mov eax, dword [esi + edi*8 + 0x1cc]
add eax, dword [esi + edi*8 + 0x1d4]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10031832
add dword [esi + edi*8 + 0x1d4], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100318f6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x1f8], 1
je 0x10031914
push eax
call fcn.1002b14c
pop ecx
test eax, eax
jne 0x10031930
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x10031910
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x1003190c
mov al, 1
pop ebp
ret

Function at 0x10032011
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x100ae160]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x10032058
push 3
push esi
push eax
push 6
call fcn.10033177
add esp, 0x10
test al, al
je 0x10032050
mov dword [0x100ae160], esi
jmp 0x10032098
xor eax, eax
inc eax
mov dword [0x100ae160], eax
cmp eax, esi
je 0x10032098
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10032086
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10032097
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret