joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418b1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4348f8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418b60
cmp word [esi], dx
jne 0x418b60
or byte [edi + eax + 0x28], 4
jmp 0x418b65
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418cb8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x418c98
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x418ba7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418bdd
cmp eax, edx
jae 0x418be9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x418b7f
jmp 0x418cb8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418c94
cmp dword [ebp - 0x14], 0
je 0x418c94
mov eax, dword [ebx*4 + 0x4348f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x418c6c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x418c35
mov word [esi], cx
jmp 0x418c68
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4348f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4348f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4348f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418cb8
pop ebx
cmp word [ebp - 4], bx
jne 0x418c7d
cmp esi, dword [ebp + 0xc]
jne 0x418c7d
mov word [esi], bx
jmp 0x418cb5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419551
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418cb8
push 0xd
jmp 0x418cb1
mov ecx, dword [ebx*4 + 0x4348f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418caf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418cb8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c1a4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41c241
push ebx
push esi
call fcn.0041c16d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041ae31
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c1ee
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c240
push edi
push eax
call fcn.00414965
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c20e
call fcn.00413358
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c23f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ae31
add esp, 0x20
test eax, eax
jne 0x41c22d
push edi
call fcn.00413358
jmp 0x41c235
push ebx
call fcn.00413358
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10012770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102cbe08
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x102e9418]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x100127b0
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x100127bc
mov al, 1
jmp 0x1001295f
mov dword [ebp - 0x48], 8
call fcn.10009ef0
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10009ef0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10009e50
add esp, 8
movzx eax, al
test eax, eax
je 0x100127ff
xor al, al
jmp 0x1001295f
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10009060
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x28]
call fcn.10012700
mov ecx, eax
call fcn.100126e0
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.10009260
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.10012700
mov ecx, eax
call fcn.100126e0
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.100126b0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1001287a
cmp dword [ebp - 0x38], 1
je 0x10012881
cmp dword [ebp - 0x38], 3
je 0x1001291b
jmp 0x10012933
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10012700
mov ecx, eax
call fcn.100126e0
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x100128e4
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.10012700
mov ecx, eax
call fcn.100126e0
push eax
call fcn.1005d5e5
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x100128e4
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000dc20
mov al, byte [ebp - 0x2d]
jmp 0x1001295f
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10012907
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000dc20
mov al, byte [ebp - 0x2e]
jmp 0x1001295f
cmp dword [ebp - 0x34], 0
jne 0x10012919
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.1000c350
jmp 0x1001294b
mov byte [ebp - 0x2f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000dc20
mov al, byte [ebp - 0x2f]
jmp 0x1001295f
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000dc20
mov al, byte [ebp - 0x30]
jmp 0x1001295f
jmp 0x10012812
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10053c7f
mov esp, ebp
pop ebp
ret
Function at 0x1001c3e0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x1001c433
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.1002d160
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x1001c3f6
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x3f
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x10028c70
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x673], 0
je 0x10028cfc
cmp dword [esi + 0x19c], 0
je 0x10028cc3
push esi
call fcn.10017a40
push 1
push esi
mov byte [esp + 0x14], al
call fcn.10017cd0
push dword [esi + 0x14c]
mov eax, dword [esi + 0x19c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.10017cd0
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x10028cfc
push dword [esi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x102cec98
push 2
push eax
call fcn.1005d5e5
push dword [esi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.1005d5e5
add esp, 0x20
pop esi
ret

Function at 0x1002b380
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x102cf0f8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x1002b39a
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 0x102cf114
push esi
call fcn.100633e0
add esp, 8
test eax, eax
je 0x1002b3e2
test ebp, ebp
je 0x1002b3d3
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 0x1002b408
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002b408
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 0x1002b4bf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002b425
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002b4b5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002b4b5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002b457
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 0x1002b470
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1002b480
test ebp, ebp
je 0x1002b4ac
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x102e9004]
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 [0x102e9004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x100312a0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x100312bf
cmp dword [esi + 0x84], 0
je 0x100312bf
push 2
push 3
push esi
call fcn.1002d780
add esp, 0xc
push dword [esp + 0xc]
call fcn.10030d00
add esp, 4
test esi, esi
je 0x100312e3
cmp dword [esi + 0x84], 0
je 0x100312e3
push 3
push esi
call fcn.1002d7c0
add esp, 8
pop esi
ret

Function at 0x100313f0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10031430
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x1003141f
push 0
call fcn.100313f0
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0x104], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1003144d
xor esi, esi
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
Function at 0x1003afe0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.1001ce90
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.1006add1
push dword [esp + 0x40]
mov edi, eax
call fcn.1006add1
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 0x1003b075
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.1001ce90
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.1001cf30
add esp, 0x20
test edx, edx
ja 0x1003b099
jb 0x1003b067
cmp eax, 0x3e8
ja 0x1003b099
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x1003b030
test edi, edi
je 0x1003b082
push edi
call fcn.1005cfd2
add esp, 4
test esi, esi
je 0x1003b08f
push esi
call fcn.1005cfd2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x1003b0a6
push edi
call fcn.1005cfd2
add esp, 4
test esi, esi
je 0x1003b0b3
push esi
call fcn.1005cfd2
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x1003b5a0
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 0x1003b731
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1003b71c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1003b5fe
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003b5f0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x1003b600
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x1003b611
lea ebp, [eax + 0xe]
jmp 0x1003b61d
cmp eax, 0x17
jne 0x1003b6be
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x1003b6be
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1003b6be
cmp eax, ebp
jb 0x1003b6be
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x1003b70d
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.100561e0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x1003b6aa
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.100561e0
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x1003b6ba
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1003b5e2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x1003b6de
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x1003b718
test ebx, ebx
je 0x1003b6fd
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x102e9004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x1003b6e6
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 0x1003b6cd
test ebx, ebx
jne 0x1003b728
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 0x1003bbc0
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 0x1003bc6b
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.10022630
add esp, 0xc
cmp eax, 4
jne 0x1003bc26
cmp byte [0x102ea750], 0
jne 0x1003bc32
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 0x1003bc6d
mov eax, dword [esp + 0x1c]
jmp 0x1003bc4f
imul eax, dword [0x102ea754], 0x41c64e6d
add eax, 0x3039
mov dword [0x102ea754], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x1003bc63
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x1003bc53
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x1003bbe0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1003bc80
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x1003bd1f
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.10022630
add esp, 0xc
cmp eax, 4
jne 0x1003bd00
cmp byte [0x102ea750], 0
jne 0x1003bce3
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x1003bd04
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
imul eax, dword [0x102ea754], 0x41c64e6d
add eax, 0x3039
mov dword [0x102ea754], eax
rol eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x1003bd04
test eax, eax
jne 0x1003bd24
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x1003bca0
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x1003bca0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1003bd30
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.10056ce0
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 0x1003ed50
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 [0x102e9008]
mov edi, eax
add esp, 8
test edi, edi
je 0x1003ed27
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 0x1003ed3f
cmp esi, ebx
je 0x1003ed3f
cmp esi, 0x8000
ja 0x1003ed3f
cmp esi, ebx
jb 0x1003ed38
push esi
push edi
call dword [0x102e9008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x1003ecf0
push ebp
call dword [0x102e9004]
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 [0x102e9004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x1003ecd0

Function at 0x10043d70
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x102ea758]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x10043dc1
push 3
push 2
push eax
push eax
push 6
call fcn.100490b0
add esp, 0x14
test al, al
je 0x10043db5
mov dword [0x102ea758], 2
add esp, 0xc
ret
mov dword [0x102ea758], 1
jmp 0x10043dc6
cmp eax, 2
je 0x10043e0c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10043df1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x10043e0c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x100446d0
Capabilities:
Connect socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1004470e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [esp + 0x18]
call fcn.10044ae0
add esp, 0xc
pop edi
pop ebx
ret
push dword [esp + 0x10]
mov byte [edi + 0x15e], 1
push ebx
call fcn.10044860
push dword [edi + 0xec]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x120]
lea eax, [edi + 0xf0]
mov ecx, 0x102d4a88
push eax
push dword [edi + 0x98]
mov eax, str.QUIC
cmovne eax, ecx
push eax
push str._s_socket__d_connected:___s:_d_______s:_d_
push ebx
push dword [esp + 0x38]
call fcn.10028e60
push 1
push dword [edi + 0x98]
call fcn.1004d660
add esp, 0x34
xor eax, eax
pop edi
pop ebx
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x102e9418]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x120]
mov eax, dword [ebx]
push 0
push dword [esp + 0x120]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004481f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x100447ec
mov dword [edi], 0x51
jmp 0x1004481c
push 0x100
lea eax, [esp + 0x10]
push eax
push esi
call fcn.10039b50
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.10028d00
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8e4], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [esp + 0x124]
push str.nw_in_read_len_zu______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.10028e60
mov ecx, dword [esp + 0x124]
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10053c7f
add esp, 0x104
ret