joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50ac10
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [esi], vtable.nbase::Thread.0
test eax, eax
je 0x50ac57
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x50ac40
mov eax, dword [esi + 8]
test eax, eax
je 0x50ac57
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test byte [ebp + 8], 1
je 0x50ac68
push 0x10
push esi
call fcn.0060223e
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x50acc0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
push 0
push esi
push 0x50ad80
push 0
push 0
call fcn.00628498
mov edx, eax
add esp, 0x18
mov dword [esi + 8], edx
cmp edx, 2
jae 0x50acf5
mov dword [esi + 8], 0
xor edx, edx
mov dword [edi], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x50ad6d
or eax, 0xffffffff
cmp ecx, 1
jne 0x50ad1d
mov eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
cmp edx, 1
pop edi
seta al
pop esi
ret
cmp ecx, 2
jne 0x50ad39
or eax, 0xffffffff
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
cmp edx, 1
pop edi
seta al
pop esi
ret
cmp ecx, 3
jne 0x50ad57
mov eax, 2
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
cmp edx, 1
pop edi
seta al
pop esi
ret
cmp ecx, 4
mov edi, 0xf
cmove eax, edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
cmp edx, 1
pop edi
seta al
pop esi
ret

Function at 0x50b8a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00509c30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x14], 0
lea eax, [ebp - 0x1c]
je 0x50b8f5
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0xf
push 0xf
push 0
push eax
call edi
test eax, eax
jne 0x50b8f1
push 1
push 0x113
push 0x113
push eax
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x50b8f1
xor bl, bl
jmp 0x50b907
mov bl, 1
jmp 0x50b907
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x50b920
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.nbase::WinUIMessagePump.0
jne 0x50b96d
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x50b95b
push eax
push esi
push 0x401
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0050b690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0050b690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call edx
jmp 0x50b95b
Function at 0x50c230
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651718
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6e1c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
je 0x50c288
call fcn.00509c30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
jne 0x50c288
mov bl, 1
jmp 0x50c28a
xor bl, bl
test esi, esi
je 0x50c295
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50c2e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651750
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6e1c7c]
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
lea esi, [edi + 0xc]
xor bl, bl
push esi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
je 0x50c3ae
call fcn.00509c30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
je 0x50c3ae
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00450c60
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x50c367
lea ecx, [ebx + 8]
lock inc dword [ecx]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x50c367
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.._AV___Func_impl_no_alloc_V__WeakCallback_V___Binder_U_Unforced_std__AAP8MessageLoopProxy_nbase__BEXXZAAPBV34__std___nbase__X__V_std__.0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x50c3f0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x24]
push eax
call fcn.00509060
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x50c3ac
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov bl, 1
test esi, esi
je 0x50c3b9
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x50c3c5
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
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.006021fd
mov esp, ebp
pop ebp
ret
Function at 0x519f90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x51a03f
push esi
call fcn.0052f1a0
add esp, 4
test al, al
jne 0x51a03f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x519fb7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00539a70
add esp, 0xc
test eax, eax
je 0x519feb
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00539a70
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x519fed
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x51a01e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.0052a7a0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x51a000
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x525e60
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6cb], 0
je 0x525efd
cmp dword [esi + 0x1a4], 0
je 0x525eb7
push esi
call fcn.00515000
push 1
push esi
mov byte [esp + 0x14], al
call fcn.00515270
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.00515270
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x525ecc
sub eax, 1
je 0x525ecc
sub eax, 1
jne 0x525efd
push dword [esi + 0x150]
lea eax, [ecx*2 + 0x657138]
push 1
add eax, ecx
push 2
push eax
call fcn.0061e053
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0061e053
add esp, 0x20
pop esi
ret
Function at 0x5289e0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x657564
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x5289fa
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 0x657580
push esi
call fcn.0062a3b0
add esp, 8
test eax, eax
je 0x528a42
test ebp, ebp
je 0x528a33
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 0x528a68
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x528a68
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 0x528b1f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x528a85
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 0x528b15
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x528b15
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x528ab7
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 0x528ad0
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 0x528ae0
test ebp, ebp
je 0x528b0c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x6dd004]
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 [0x6dd004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x52f350
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x52f38e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x52f382
push 0
call fcn.0052f350
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 2
pop esi
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x52f3a3
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x530110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x6e1c7c]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push edi
xor edi, edi
mov dword [esp + 8], eax
cmp byte [eax + 0x6cb], 0
je 0x5302f2
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x5302f1
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call fcn.0053e290
add esp, 0xc
test eax, eax
jg 0x5302f1
lea eax, [esp + 0x34]
push eax
push ebx
push 0x17
call fcn.0053e290
add esp, 0xc
test eax, eax
jg 0x5302f1
cmp byte [ebx], 0
mov eax, str._none_
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp]
cmovne eax, ebx
mov ebp, dword [esp + 0x14]
push eax
push str.Host__s:_d_was_resolved.
push ebp
call fcn.00525fd0
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.0051ae10
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.0051ae10
add esp, 0x20
test esi, esi
je 0x530264
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x5301d8
cmp ecx, 2
jne 0x530259
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebx, [esp + 0x14]
cmovne eax, edx
add ebx, eax
sub ecx, 2
je 0x530207
sub ecx, 0x15
jne 0x53021f
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x530217
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call fcn.00559060
add esp, 0x10
push ebx
call fcn.0051ae30
add esp, 4
test eax, eax
je 0x53023e
push 2
push 0x6b5e50
push ebx
call fcn.0051add0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x530284
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.0051ad80
mov edi, eax
add esp, 8
test edi, edi
jne 0x530284
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x5301c7
lea eax, [esp + 0x24]
push eax
call fcn.0051ae30
add esp, 4
test eax, eax
je 0x530294
lea eax, [esp + 0x24]
push eax
call fcn.0051ae40
add esp, 4
jmp 0x530299
push str.too_many_IP__cant_show
push ebp
call fcn.00525fd0
add esp, 8
jmp 0x5302d9
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.00525fd0
lea eax, [esp + 0x20]
push eax
call fcn.0051ae30
add esp, 0x10
test eax, eax
je 0x5302c5
lea eax, [esp + 0x14]
push eax
call fcn.0051ae40
add esp, 4
jmp 0x5302ca
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.00525fd0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.0051ade0
lea eax, [esp + 0x28]
push eax
call fcn.0051ade0
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.006021fd
add esp, 0x6c
ret
Function at 0x53a1c0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0051a2f0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.0062f59c
push dword [esp + 0x40]
mov edi, eax
call fcn.0062f59c
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 0x53a255
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0051a2f0
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.0051a3a0
add esp, 0x20
test edx, edx
ja 0x53a279
jb 0x53a247
cmp eax, 0x3e8
ja 0x53a279
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x53a210
test edi, edi
je 0x53a262
push edi
call fcn.0062208a
add esp, 4
test esi, esi
je 0x53a26f
push esi
call fcn.0062208a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x53a286
push edi
call fcn.0062208a
add esp, 4
test esi, esi
je 0x53a293
push esi
call fcn.0062208a
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x53ad70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ecx, 0x2b
test edi, edi
je 0x53ae59
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [esp + 0x1c]
push 4
lea eax, [esp + 0x24]
mov ebx, 4
push eax
push dword [esp + 0x20]
cmp edi, ebx
cmovb ebx, edi
call fcn.0051f7f0
add esp, 0xc
cmp eax, 4
jne 0x53ae14
cmp byte [0x6ec2c4], 0
jne 0x53ae20
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x53adec
mov eax, 2
jmp 0x53ae14
lea eax, [esp + 0x20]
push eax
push 4
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
jne 0x53ae10
call ebp
mov eax, 2
jmp 0x53ae14
call ebp
xor eax, eax
mov ecx, eax
test eax, eax
jne 0x53ae5b
mov eax, dword [esp + 0x20]
jmp 0x53ae3d
imul eax, dword [0x6ec2c0], 0x41c64e6d
add eax, 0x3039
mov dword [0x6ec2c0], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x53ae51
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x53ae41
mov dword [esp + 0x20], eax
test edi, edi
jne 0x53ad90
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x53ae70
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0xc
sub dword [esp + 0x18], 1
push ebx
push ebp
push esi
push edi
je 0x53af72
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 0x18], eax
push 4
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0051f7f0
add esp, 0xc
cmp eax, 4
je 0x53aebf
test eax, eax
jne 0x53af7b
jmp 0x53af24
cmp byte [0x6ec2c4], 0
jne 0x53af09
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
push eax
mov dword [esp + 0x28], 0
call edi
test eax, eax
je 0x53af65
lea eax, [esp + 0x10]
push eax
push 4
push dword [esp + 0x1c]
call ebp
push 0
push dword [esp + 0x18]
test eax, eax
je 0x53af63
call esi
jmp 0x53af24
imul eax, dword [0x6ec2c0], 0x41c64e6d
add eax, 0x3039
mov dword [0x6ec2c0], eax
rol eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, 0xfffffffc
jae 0x53aea0
xor edx, edx
mov ecx, 0x3e
div ecx
mov ecx, dword [esp + 0x18]
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [ecx], al
inc ecx
sub dword [esp + 0x28], 1
mov dword [esp + 0x18], ecx
jne 0x53aea0
pop edi
pop esi
pop ebp
mov byte [ecx], 0
xor eax, eax
pop ebx
add esp, 0xc
ret
call esi
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
mov byte [ecx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x53af90
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push dword [esp + 0xc]
push 0
push dword [esp + 0x10]
call fcn.00619cc0
add esp, 0xc
mov dword [esp], 0
lea eax, [esp]
push 0xf0000040
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x53afe5
push dword [esp + 8]
push dword [esp + 0x10]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 4]
test eax, eax
jne 0x53afec
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
pop ecx
ret
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ecx
ret

Function at 0x53de60
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 [0x6dd008]
mov edi, eax
add esp, 8
test edi, edi
je 0x53deb7
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 0x53decf
cmp esi, ebx
je 0x53decf
cmp esi, 0x8000
ja 0x53decf
cmp esi, ebx
jb 0x53dec8
push esi
push edi
call dword [0x6dd008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x53de80
push ebp
call dword [0x6dd004]
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 [0x6dd004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x54c570
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 + 0x18]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x140]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x54c5bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00525f00
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.0054c190
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x54c700
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0x18]
mov ebp, dword [ebx + 0x11c]
mov dword [esp + 8], eax
jne 0x54c84f
push esi
push edi
lea eax, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x54c74d
mov byte [eax], 0xff
inc eax
mov dword [edi], eax
cmp eax, edi
jae 0x54c74d
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c74d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x54c7b7
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c7b7
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c7b7
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c7b7
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c7b7
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x54c7b7
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.0054c290
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x140]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x54c80f
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00525f00
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.0054c5e0
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x140]
call edi
test eax, eax
jns 0x54c84d
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00525f00
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret