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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40416c
jl 0x404160
test ecx, ecx
jne 0x40416c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404185
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4041d3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4041d9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4041d9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x404246
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x404202
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x404234
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x404246
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x404210
test edi, edi
je 0x404246
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4045c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b965c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4045f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40462c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40462c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404703
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404654
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404660
movsx eax, bl
jmp 0x404698
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4046c2
sub eax, 1
je 0x4046c2
sub eax, 2
jne 0x404703
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4046e0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x404703
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a039d
mov esp, ebp
pop ebp
ret 4
Function at 0x405450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b965c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40550c
cmp byte [esi + 0x3d], 0
je 0x40550c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4054fa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4054c1
sub eax, 1
je 0x4054c5
sub eax, 2
jne 0x4054fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4054e3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4054fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004a039d
mov esp, ebp
pop ebp
ret
Function at 0x413da0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 4
mov esi, esp
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x1008
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp esi, esp
call fcn.004a09b1
test eax, eax
jne 0x413e0d
cmp dword [ebp - 8], 1
jne 0x413e0d
mov esi, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.004a09b1
push edx
mov ecx, ebp
push eax
lea edx, [0x413e30]
call fcn.004a095d
pop eax
pop edx
pop esi
add esp, 0x18
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret

Function at 0x419110
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jae 0x419178
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 - 9], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
movzx eax, byte [ebp - 9]
push eax
call fcn.00438af0
add esp, 4
movsx ecx, al
xor ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
jmp 0x41913b
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x3f
div ecx
mov eax, edx
add esp, 0xc
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret
Function at 0x42e660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x6cb]
test ecx, ecx
je 0x42e75e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1a4], 0
je 0x42e6f4
mov eax, dword [ebp + 8]
push eax
call fcn.004123b0
add esp, 4
mov byte [ebp - 1], al
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412360
add esp, 8
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x154]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a4]
call eax
add esp, 0x14
cmp esi, esp
call fcn.004a09b1
movzx ecx, byte [ebp - 1]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00412360
add esp, 8
jmp 0x42e75e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42e70e
cmp dword [ebp - 8], 1
je 0x42e70e
cmp dword [ebp - 8], 2
je 0x42e70e
jmp 0x42e75e
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
push edx
push 1
push 2
imul eax, dword [ebp + 0xc], 3
add eax, 0x4a3a08
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.004a09b1
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
push edx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.004a09b1
pop esi
add esp, 8
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret

Function at 0x432b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
push eax
call fcn.00432a30
add esp, 4
mov esi, esp
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp esi, esp
call fcn.004a09b1
pop esi
cmp ebp, esp
call fcn.004a09b1
pop ebp
ret

Function at 0x43c840
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x4004747b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43c8b7
mov esi, esp
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.004a09b1
push edx
mov ecx, ebp
push eax
lea edx, [0x43c8d8]
call fcn.004a095d
pop eax
pop edx
pop esi
add esp, 0x1c
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret
Function at 0x43e1e0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x43e29a
xor eax, eax
jne 0x43e20e
xor ecx, ecx
jne 0x43e212
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7c]
movzx ecx, byte [eax + 0x104]
test ecx, ecx
jne 0x43e25b
push 0
call fcn.0043e1e0
add esp, 4
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
test edx, edx
je 0x43e245
mov dword [ebp - 0x10], 2
jmp 0x43e24c
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
mov dl, byte [ebp - 0x10]
mov byte [ecx + 0x104], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
movzx edx, byte [ecx + 0x104]
cmp edx, 2
jne 0x43e276
mov dword [ebp - 0x14], 1
jmp 0x43e27d
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x43e28c
mov dword [ebp - 0x18], 0
jmp 0x43e293
mov dword [ebp - 0x18], 1
mov al, byte [ebp - 0x18]
jmp 0x43e311
mov dword [ebp - 8], 0xffffffff
mov esi, esp
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x43e2c8
mov dword [ebp - 8], 0
jmp 0x43e2e2
mov dword [ebp - 8], 1
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.004a09b1
cmp dword [ebp - 8], 0
jle 0x43e2f1
mov dword [ebp - 0x1c], 1
jmp 0x43e2f8
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
jne 0x43e307
mov dword [ebp - 0x20], 0
jmp 0x43e30e
mov dword [ebp - 0x20], 1
mov al, byte [ebp - 0x20]
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret
Function at 0x4427d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, 0x88
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x50]
mov dword [ecx + 0xd78], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x471]
mov eax, dword [ebp + 8]
mov dword [eax + 0xd80], edx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0xd51]
test edx, edx
je 0x44283d
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xd51]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x471]
cmp ecx, eax
jle 0x44284f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov al, byte [edx + 0x471]
mov byte [ecx + 0xd51], al
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0xc38]
or ecx, dword [eax + 0xc3c]
je 0x44288d
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xd52]
test eax, eax
jne 0x44288d
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x50], 0x1a0
jne 0x44288d
mov edx, dword [ebp - 4]
mov byte [edx + 0xb9], 1
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x471]
cmp ecx, 0xa
jne 0x4428bd
push str.HTTP_1.0__assume_close_after_body
mov edx, dword [ebp + 8]
push edx
call fcn.0042e8d0
add esp, 8
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.00430460
add esp, 8
jmp 0x442914
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x471]
cmp edx, 0x14
je 0x4428de
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 2
jne 0x4428f3
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x50], 0x65
jne 0x4428f3
xor edx, edx
jne 0x4428de
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x440]
mov dword [ecx], 2
jmp 0x442914
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x471]
cmp eax, 0xb
jl 0x442914
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x1e6]
test edx, edx
jne 0x442914
xor eax, eax
jne 0x442910
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x50], 0x64
jl 0x442932
mov edx, dword [ebp - 4]
cmp dword [edx + 0x50], 0xc8
jge 0x442932
mov dword [ebp - 0xc], 1
jmp 0x442939
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x442948
mov dword [ebp - 0x10], 0
jmp 0x44294f
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 0x10]
mov byte [eax + 0xba], cl
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x50]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xcc
je 0x442990
cmp dword [ebp - 0x14], 0x130
je 0x442978
jmp 0x4429b3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x3c0]
test edx, edx
je 0x442990
mov eax, dword [ebp + 8]
mov byte [eax + 0xe3c], 1
mov ecx, dword [ebp - 4]
xor edx, edx
xor eax, eax
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
xor edx, edx
xor eax, eax
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xba], 1
xor eax, eax
add esp, 0x14
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret
Function at 0x44dbe0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x44dc12
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x44dc43
cmp dword [ebp + 0x10], 0
je 0x44dc20
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x44dc43
cmp dword [ebp + 0x14], 0
je 0x44dc2e
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
jne 0x44dc43
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.0044db20
add esp, 8
jmp 0x44dcd7
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00493730
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x14], 0
je 0x44dc70
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
je 0x44dc70
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
jmp 0x44dc77
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], 0
je 0x44dc8d
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x44dc8d
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
jmp 0x44dc94
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0
je 0x44dcaa
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x44dcaa
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
jmp 0x44dcb1
mov dword [ebp - 0x20], 0
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp esi, esp
call fcn.004a09b1
push edx
mov ecx, ebp
push eax
lea edx, [0x44dcf8]
call fcn.004a095d
pop eax
pop edx
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret
Function at 0x4507c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x45080c
cmp dword [ebp - 4], 0xffffffff
jne 0x450810
xor eax, eax
jmp 0x450813
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret

Function at 0x450b90
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 2
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x450bc1
mov eax, 2
jmp 0x450bc3
xor eax, eax
cmp ebp, esp
call fcn.004a09b1
pop ebp
ret
Function at 0x4561d0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, esp
push 0xf0000040
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004a09b1
test eax, eax
jne 0x456244
jmp 0x45631c
mov esi, esp
lea edx, [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp esi, esp
call fcn.004a09b1
test eax, eax
jne 0x456269
jmp 0x4562e8
mov esi, esp
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp esi, esp
call fcn.004a09b1
test eax, eax
jne 0x45628c
jmp 0x4562e8
mov esi, esp
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
push 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.004a09b1
test eax, eax
jne 0x4562b1
jmp 0x4562e8
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x20]
jae 0x4562bb
jmp 0x4562e8
mov esi, esp
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.004a09b1
test eax, eax
je 0x4562e0
jmp 0x4562e8
xor eax, eax
jne 0x456244
cmp dword [ebp - 0x14], 0
je 0x456301
mov esi, esp
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.004a09b1
cmp dword [ebp - 8], 0
je 0x45631c
mov esi, esp
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.004a09b1
push edx
mov ecx, ebp
push eax
lea edx, [0x456340]
call fcn.004a095d
pop eax
pop edx
pop edi
pop esi
add esp, 0x3c
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret
Function at 0x4564c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0x8000
mov esi, esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [0x4ab008]
add esp, 8
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45652d
mov esi, esp
mov edx, dword [ebp - 4]
push edx
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
xor eax, eax
jmp 0x456599
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45656d
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
je 0x45656d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jbe 0x456587
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
xor eax, eax
jmp 0x456599
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jae 0x456594
mov eax, dword [ebp - 4]
jmp 0x456599
jmp 0x4564f0
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret