joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6fa7a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
cmp ebp, 2
jne 0x6fa7e1
mov eax, dword [esp + 0x34]
cmp esi, 0x43f
je 0x6fa7d0
cmp esi, 0x40a
jne 0x6fa81f
mov edi, edx
xor ecx, ecx
cmp esi, 0x40a
setne cl
add ecx, ecx
jmp 0x6fa833
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x6fa9d6
lea eax, [esp + 4]
push edi
push 0
push eax
push 0
call fcn.00578ac0
add esp, 0x10
mov ebx, 0xa9
cmp dword [esp + 4], 0xffffffff
je 0x6fa91a
call fcn.005b5b10
push str.ossl_ecx_key_op
push ebx
jmp 0x6faa1e
mov edi, edx
xor ecx, ecx
cmp esi, 0x40b
setne cl
lea ecx, [ecx*2 + 1]
push eax
push 1
push ecx
push dword [esp + 0x3c]
call fcn.006fab00
add esp, 0x10
test eax, eax
je 0x6fa8db
test ebp, ebp
mov dword [esp], eax
je 0x6fa903
push eax
call fcn.006fac20
add esp, 4
test eax, eax
je 0x6fa93e
cmp ebp, 2
jne 0x6fa94a
test esi, esi
mov ecx, dword [esp]
je 0x6fa97b
mov ecx, 0x20
cmp esi, 0x40a
je 0x6fa89e
cmp esi, 0x43f
je 0x6fa89e
xor ecx, ecx
cmp esi, 0x40b
sete cl
xor ecx, 0x39
push 0
push ecx
mov ebp, eax
push eax
push dword [esp + 0x3c]
call fcn.00603fe0
add esp, 0x10
test eax, eax
jle 0x6fa9bf
cmp esi, 0x40a
mov ecx, dword [esp]
jne 0x6faa43
and byte [ebp], 0xf8
movzx eax, byte [ebp + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [ebp + 0x1f], al
jmp 0x6fa97b
call fcn.005b5b10
push str.ossl_ecx_key_op
push 0xbc
push str.crypto_ec_ecx_backend.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x80010
jmp 0x6faa2f
add eax, 0xc
push edi
push ebx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0xc]
add esp, 0xc
jmp 0x6faa3b
push dword [edi]
call fcn.005f12d0
add esp, 4
test esi, esi
je 0x6fa9cc
mov ebx, 0xaf
cmp eax, esi
jne 0x6fa80f
jmp 0x6fa9ce
mov esi, 0x80010
mov edi, 0xc6
jmp 0x6fa99a
mov ecx, 0x20
cmp esi, 0x40a
je 0x6fa96d
cmp esi, 0x43f
je 0x6fa96d
xor ecx, ecx
cmp esi, 0x40b
sete cl
xor ecx, 0x39
push ecx
push ebx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov ecx, dword [esp]
push ecx
call fcn.006fa500
add esp, 4
test eax, eax
je 0x6fa990
mov eax, dword [esp]
jmp 0x6faa3b
mov esi, 0xa6
mov edi, 0xda
call fcn.005b5b10
push str.ossl_ecx_key_op
push edi
push str.crypto_ec_ecx_backend.c
call fcn.005b5c10
add esp, 0xc
push 0
push esi
push 0x10
call fcn.005b5d00
add esp, 0xc
push dword [esp]
call fcn.006faba0
add esp, 4
jmp 0x6faa39
mov esi, eax
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test ebx, ebx
sete al
test esi, esi
sete cl
or cl, al
jne 0x6faa0f
mov eax, 0x20
cmp esi, 0x40a
je 0x6faa07
cmp esi, 0x43f
je 0x6faa07
xor eax, eax
cmp esi, 0x40b
sete al
xor eax, 0x39
cmp eax, edx
je 0x6fa7bc
call fcn.005b5b10
push str.ossl_ecx_key_op
push 0xb5
push str.crypto_ec_ecx_backend.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x66
push 0x10
call fcn.005b5d00
add esp, 0xc
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
cmp esi, 0x40b
jne 0x6fa97b
and byte [ebp], 0xfc
or byte [ebp + 0x37], 0x80
jmp 0x6fa97b
Function at 0x701230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa0
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 4], ecx
mov ecx, dword [ecx]
xor eax, eax
cmp ecx, 1
sbb eax, eax
mov dword [esp], eax
mov eax, 1
test ebx, ebx
je 0x7013ae
mov edx, dword [ebx]
test edx, edx
je 0x7013ae
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x3c]
mov dword [esp + 8], eax
or dword [esp], ecx
nop word [eax + eax]
xorps xmm0, xmm0
movsd qword [esp + 0x70], xmm0
xorps xmm1, xmm1
movups xmmword [esp + 0x60], xmm1
movups xmmword [esp + 0x50], xmm1
movups xmmword [esp + 0x40], xmm1
movups xmmword [esp + 0x30], xmm1
movups xmmword [esp + 0x20], xmm1
movups xmmword [esp + 0x10], xmm1
lea eax, [esp + 0x88]
movsd qword [eax + 0x10], xmm0
movups xmmword [eax], xmm1
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp]
mov dword [esp + 0x84], eax
mov dword [esp + 0x94], edx
lea ecx, [esp + 0x78]
mov edx, 0x9c3e00
push 0x56
call fcn.007015d0
add esp, 4
mov esi, eax
mov edi, fcn.007009b0
test eax, eax
je 0x701317
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x24]
test edi, edi
mov ecx, fcn.007009b0
cmove edi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x10]
push eax
push esi
push 7
call edi
add esp, 0xc
mov ebp, eax
test eax, eax
jle 0x70135f
cmp dword [esp + 0x14], 0
je 0x70135f
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [esp + 0xc]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.005d0f80
add esp, 0x18
mov ebp, eax
test ebp, ebp
jle 0x701378
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x10]
push eax
push esi
push 8
call edi
add esp, 0xc
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x701393
push 0x2c9
push str.crypto_evp_ctrl_params_translate.c
push eax
call fcn.005db5b0
add esp, 0xc
test ebp, ebp
jle 0x7013ac
mov edx, dword [ebx + 0x14]
add ebx, 0x14
test edx, edx
jne 0x701280
mov eax, 1
jmp 0x7013ae
xor eax, eax
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x719800
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa0
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x71994b
mov edi, ecx
lea eax, [ecx + 0xc]
mov dword [esp + 0x18], eax
lea eax, [ecx + 0x14]
mov dword [esp + 0x10], eax
movzx ecx, byte [ecx + 0xc]
movzx eax, byte [edi + 0x14]
xor ebp, ebp
mov dword [esp + 0x14], edx
nop word [eax + eax]
mov esi, dword [edx + ebp]
mov dword [esp + 0x1c], esi
mov dword [esp], esi
mov dword [esp + 8], esi
mov ebx, dword [edx + ebp + 4]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], ebx
and cl, 0x9f
or cl, 0x40
mov byte [edi + 0xc], cl
and al, 0x9f
or al, 0x20
mov byte [edi + 0x14], al
mov esi, dword [esp + 0x18]
push esi
call fcn.005930e0
add esp, 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00593550
add esp, 8
push 1
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.006b94c0
add esp, 0xc
mov esi, dword [esp + 0x10]
push esi
call fcn.005930e0
add esp, 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00593550
add esp, 8
push 1
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.006b94c0
add esp, 0xc
mov eax, dword [esp]
mov edx, dword [esp + 0x1c]
xor eax, edx
mov ecx, dword [esp + 4]
xor edx, dword [esp + 8]
xor ecx, ebx
xor ebx, dword [esp + 0xc]
mov byte [edi + 0xc], dl
mov byte [edi + 0xd], dh
mov esi, edx
shr edx, 0x10
mov byte [edi + 0xe], dl
mov edx, esi
shr edx, 0x18
mov byte [edi + 0xf], dl
mov byte [edi + 0x10], cl
mov byte [edi + 0x11], ch
mov edx, ecx
shr edx, 0x10
mov byte [edi + 0x12], dl
mov edx, dword [esp + 0x14]
shr ecx, 0x18
mov byte [edi + 0x13], cl
mov byte [edi + 0x14], al
mov byte [edi + 0x15], ah
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 0x16], cl
mov ecx, eax
shr ecx, 0x18
mov byte [edi + 0x17], cl
mov byte [edi + 0x18], bl
mov byte [edi + 0x19], bh
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 0x1a], cl
shr ebx, 0x18
mov byte [edi + 0x1b], bl
mov ebx, dword [esp + 0xb4]
mov ecx, esi
add ebp, 8
cmp ebp, ebx
jb 0x719840
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x735fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
bswap ecx
xor ecx, 0xa3b1bac6
bswap ebx
xor ebx, 0x56aa3350
mov esi, dword [eax + 8]
bswap esi
xor esi, 0x677d9197
mov edi, dword [eax + 0xc]
bswap edi
xor edi, 0xb27022dc
mov eax, 0xfffffffc
nop dword [eax + eax]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov ebp, dword [eax*4 + 0x9cf9d0]
xor ebp, edi
mov edx, esi
xor edx, ebx
xor edx, ebp
mov ebx, edx
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x9cfa40]
shl eax, 0x18
shr ebx, 0x10
movzx ebx, bl
movzx ebp, byte [ebx + 0x9cfa40]
shl ebp, 0x10
or ebp, eax
movzx eax, dh
movzx edx, dl
movzx eax, byte [eax + 0x9cfa40]
shl eax, 8
or eax, ebp
movzx edx, byte [edx + 0x9cfa40]
or edx, eax
mov eax, edx
rol eax, 0xd
xor eax, ecx
mov ecx, edx
rol ecx, 0x17
xor ecx, edx
xor ecx, eax
mov eax, dword [esp]
mov eax, dword [eax*4 + 0x9cf9d4]
xor eax, edi
xor eax, esi
xor eax, ecx
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0x9cfa40]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx ebp, byte [edx + 0x9cfa40]
shl ebp, 0x10
or ebp, ebx
movzx edx, ah
movzx eax, al
movzx edx, byte [edx + 0x9cfa40]
shl edx, 8
or edx, ebp
movzx eax, byte [eax + 0x9cfa40]
or eax, edx
mov edx, eax
rol edx, 0xd
xor dword [esp + 4], eax
rol eax, 0x17
xor eax, edx
xor dword [esp + 4], eax
mov eax, dword [esp]
mov eax, dword [eax*4 + 0x9cf9d8]
xor eax, edi
xor eax, ecx
xor eax, dword [esp + 4]
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0x9cfa40]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx ebp, byte [edx + 0x9cfa40]
shl ebp, 0x10
or ebp, ebx
movzx edx, ah
movzx eax, al
movzx edx, byte [edx + 0x9cfa40]
shl edx, 8
or edx, ebp
movzx eax, byte [eax + 0x9cfa40]
or eax, edx
mov edx, eax
rol edx, 0xd
xor esi, eax
rol eax, 0x17
xor eax, edx
xor esi, eax
mov eax, dword [esp]
mov eax, dword [eax*4 + 0x9cf9dc]
xor eax, ecx
xor eax, dword [esp + 4]
xor eax, esi
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0x9cfa40]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x9cfa40]
shl edx, 0x10
or edx, ebx
movzx ebx, ah
movzx ebx, byte [ebx + 0x9cfa40]
shl ebx, 8
or ebx, edx
movzx eax, al
movzx eax, byte [eax + 0x9cfa40]
or eax, ebx
mov ebx, dword [esp + 4]
mov edx, eax
rol edx, 0xd
xor edi, eax
rol eax, 0x17
xor eax, edx
xor edi, eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp]
mov dword [eax + edx*4 + 0x10], ecx
mov edx, dword [esp]
mov dword [eax + edx*4 + 0x14], ebx
mov edx, dword [esp]
mov dword [eax + edx*4 + 0x18], esi
mov edx, dword [esp]
mov dword [eax + edx*4 + 0x1c], edi
mov eax, dword [esp]
add eax, 4
cmp eax, 0x1c
jb 0x735ff0
mov eax, 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x739de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
jle 0x739e00
nop
movzx eax, byte [ecx + esi]
cmp al, byte [edx + esi]
jne 0x739e00
inc esi
cmp ebx, esi
jne 0x739df0
mov esi, ebx
mov ebp, ebx
sar ebp, 0x1f
and ebp, ebx
lea eax, [ebp - 1]
mov dword [esp], eax
lea edi, [ebx - 1]
mov eax, ebx
lea ebx, [edi + 1]
test ebx, ebx
jle 0x739e2d
cmp byte [ecx + edi], 0
jne 0x739e3d
cmp byte [edx + edi], 0xff
lea edi, [edi - 1]
lea ebx, [eax - 1]
je 0x739e10
jmp 0x739e32
mov eax, ebp
mov ebx, dword [esp]
mov ebp, 0xffffffff
cmp esi, ebx
jge 0x739e4a
jmp case.0x739e6a.2
mov eax, ebx
mov ebx, edi
mov ebp, 0xffffffff
cmp esi, ebx
jl case.0x739e6a.2
cmp esi, eax
jge 0x739e78
movzx ecx, byte [ecx + esi]
movzx edx, byte [edx + esi]
mov ch, dl
xor ch, cl
movzx eax, ch
lea ebx, [eax - 1]
cmp ebx, 0x1e
ja case.default.0x739e6a
mov edi, 7
jmp dword [ebx*4 + 0x9d1588]
mov edi, 6
jmp case.0x739e6a.1
shl esi, 3
mov ebp, esi
jmp case.0x739e6a.2
cmp eax, 0x3f
je 0x739ea5
cmp eax, 0x7f
jne case.0x739e6a.2
mov edi, 1
jmp case.0x739e6a.1
mov edi, 5
jmp case.0x739e6a.1
mov edi, 4
jmp case.0x739e6a.1
mov edi, 3
jmp case.0x739e6a.1
mov edi, 2
not dl
or cl, dl
test ch, cl
jne case.0x739e6a.2
lea ebp, [edi + esi*8]
mov eax, ebp
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x14]
mov ebx, dword [esi + 0x28]
cmp dword [ebx], 5
je 0x7436bd
mov ecx, esi
mov edx, ebx
call fcn.007440f0
test eax, eax
jle 0x74373a
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
cmp dword [ebx + 0x28], 0
je 0x7436fe
push 0xf
push esi
call fcn.0057c080
add esp, 8
push ebp
push edi
push dword [ebx + 0x28]
call fcn.0057c350
add esp, 0xc
mov edi, eax
push 0xf
push dword [ebx + 0x28]
call fcn.0057c090
add esp, 8
push eax
push esi
call fcn.0057c0a0
add esp, 8
jmp 0x74373c
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push ebp
push edi
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
push 0xf
push esi
call fcn.0057c080
add esp, 8
test edi, edi
jg 0x74373c
push edi
call fcn.00583f40
add esp, 4
mov ecx, eax
mov eax, 0xa
test ecx, ecx
jne 0x7436f2
jmp 0x74373c
mov edi, eax
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x744600
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx + 4]
mov edi, eax
cmovl edi, ebx
cmovl ebx, eax
push dword [edi + 4]
push esi
call fcn.005886e0
add esp, 8
test eax, eax
je 0x74465d
cmp dword [ebx + 4], 0
jle 0x744661
mov ecx, dword [edi]
mov edx, dword [ebx]
mov ebp, dword [esi]
xor eax, eax
nop dword [eax]
mov esi, dword [edx + eax*4]
xor esi, dword [ecx + eax*4]
mov dword [ebp + eax*4], esi
inc eax
cmp eax, dword [ebx + 4]
jl 0x744640
mov ebx, dword [edi + 4]
cmp eax, ebx
mov ebp, dword [esp + 0x14]
jl 0x74466e
jmp 0x74468e
xor eax, eax
jmp 0x74469f
xor eax, eax
mov ebx, dword [edi + 4]
cmp eax, ebx
mov ebp, dword [esp + 0x14]
jge 0x74468e
mov ecx, dword [edi]
mov edx, dword [ebp]
nop word cs:[eax + eax]
mov esi, dword [ecx + eax*4]
mov dword [edx + eax*4], esi
inc eax
mov ebx, dword [edi + 4]
cmp eax, ebx
jl 0x744680
mov dword [ebp + 4], ebx
push ebp
call fcn.005891d0
add esp, 4
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x7547a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x28]
mov ecx, dword [ebp + 0x10c]
lea esi, [ebp + 0x114]
mov dword [ebp + 0x114], 0x3020100
inc ecx
cmp ecx, 3
mov edi, 2
cmovae edi, ecx
cmp ecx, 9
mov dword [esp + 4], esi
jae 0x7547e9
mov eax, 1
mov ecx, 0x3020100
jmp 0x754868
mov dword [esp], edi
lea esi, [edi - 1]
mov edi, esi
and edi, 0xfffffff8
imul ecx, edi, 0x4040404
add ecx, 0x3020100
lea eax, [edi + 1]
movdqa xmm0, xmmword [0x9dad50]
xor ebx, ebx
movdqa xmm1, xmmword [0x9dad60]
movdqa xmm2, xmmword [0x9dad70]
movdqa xmm3, xmmword [str._________________NO_ERROR]
nop word cs:[eax + eax]
movdqa xmm4, xmm0
paddd xmm4, xmm1
movdqa xmm5, xmm0
paddd xmm5, xmm2
movdqu xmmword [ebp + ebx*4 + 0x118], xmm4
movdqu xmmword [ebp + ebx*4 + 0x128], xmm5
add ebx, 8
paddd xmm0, xmm3
cmp edi, ebx
jne 0x754830
cmp esi, edi
mov esi, dword [esp + 4]
mov edi, dword [esp]
je 0x75487e
add ecx, 0x4040404
nop
mov dword [esi + eax*4], ecx
inc eax
add ecx, 0x4040404
cmp edi, eax
jne 0x754870
test edx, edx
je 0x754897
lea ecx, [ebp + 0x113]
cmp edx, 1
mov dword [esp + 0xc], edx
jne 0x75489e
xor esi, esi
xor ebx, ebx
jmp 0x75490b
xor ebx, ebx
jmp 0x754940
and edx, 0xfffffffe
mov dword [esp + 0x10], edx
xor esi, esi
xor ebx, ebx
mov dword [esp], ecx
nop dword [eax]
mov edi, dword [esp + 8]
movzx ebp, byte [edi + esi]
mov edx, dword [esp + 4]
movzx eax, byte [edx + ebp]
mov byte [edi + esi], al
mov byte [ecx], al
lea eax, [ebp + 1]
push eax
push ecx
push edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
or ebx, ebp
movzx ebp, byte [edi + esi + 1]
mov edx, dword [esp + 4]
movzx eax, byte [edx + ebp]
mov byte [edi + esi + 1], al
mov ecx, dword [esp]
mov byte [ecx], al
lea eax, [ebp + 1]
push eax
push dword [esp + 4]
push edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov ecx, dword [esp + 0xc]
add esp, 0xc
or ebx, ebp
add esi, 2
cmp dword [esp + 0x10], esi
jne 0x7548b0
test byte [esp + 0xc], 1
je 0x754939
mov edx, dword [esp + 8]
movzx ebp, byte [edx + esi]
mov edi, ecx
mov ecx, dword [esp + 4]
movzx eax, byte [ecx + ebp]
mov byte [edx + esi], al
mov byte [edi], al
lea eax, [ebp + 1]
push eax
push edi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
or ebx, ebp
shr ebx, 2
mov ebp, dword [esp + 0x28]
mov dword [ebp + 0x10c], ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x785b50
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x25c
mov eax, dword [0xa3f60c]
mov dword [esp + 0x24], str.getaddrinfo
movzx ebx, word [esp + 0x270]
mov dword [esp + 0x28], 0x785d60
mov dword [esp + 0x2c], str.getnameinfo
mov dword [esp + 0x30], 0x786110
mov dword [esp + 0x34], str.freeaddrinfo
mov dword [esp + 0x38], fcn.00785d10
test eax, eax
je 0x785bb0
mov eax, dword [ebx*8 + 0x8755bc]
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea esi, [esp + 0x3f]
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
sub esp, 8
test eax, eax
jne 0x785be0
mov dword [0xa3f60c], 1
jmp 0x785b9b
lea edi, [esp + 0x144]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add eax, edi
mov dword [eax], 0x3273775c
mov dword [eax + 4], 0x32335f
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp], edi
mov dword [esp + 0x1c], eax
call eax
sub esp, 4
mov ebp, eax
test eax, eax
je 0x785c9c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 0x18], eax
call eax
sub esp, 8
test eax, eax
je 0x785c90
lea esi, [esp + 0x24]
lea edi, [esp + 0x3c]
mov eax, dword [esi]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov dword [esi + 4], eax
sub esp, 8
test eax, eax
je 0x785cf6
add esi, 8
cmp esi, edi
jne 0x785c46
mov eax, dword [esp + 0x28]
mov dword [0x8755bc], eax
mov eax, dword [esp + 0x30]
mov dword [0x8755c4], eax
mov eax, dword [esp + 0x38]
mov dword [fcn.00785d10], eax
jmp 0x785bcc
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add eax, edi
mov dword [eax], 0x6873775c
mov dword [eax + 4], 0x367069
mov eax, dword [esp + 0x1c]
mov dword [esp], edi
call eax
sub esp, 4
mov ebp, eax
test eax, eax
je 0x785bcc
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 0x18], eax
call eax
sub esp, 8
test eax, eax
jne 0x785c3e
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x785bcc
Function at 0x787220
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xa3f64c]
test esi, esi
jle 0x787340
mov eax, dword [0xa3f650]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x787254
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x7872d7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x787240
mov dword [esp], ebx
call fcn.00787c10
mov edi, eax
test eax, eax
je 0x787367
mov eax, dword [0xa3f650]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00787d50
mov edx, dword [0xa3f650]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x787347
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x7872d0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x7872e0
add dword [0xa3f64c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xa3f650]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x7872d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.007871c0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x78725e
mov eax, dword [0xa3f650]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.007871c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.007871c0
lea esi, [esi]
nop

Function at 0x787880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xa3f668
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xa3f660]
sub esp, 4
test ebx, ebx
je 0x7878d5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x7878ce
test esi, esi
je 0x7878ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x7878b0
mov dword [esp], 0xa3f668
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x18051c9f
Capabilities:
Get number of processors
Parse pe header

Disassembly:
arpl word [edi + 0x6d], bp
arpl word cs:[esi + 0x2f], bp
arpl word [eax + 0x69], bp
outsb dx, byte [esi]
popal
sub eax, 0x7477656e
popal
bound ebp, qword [esi]
imul esp, dword [bp + 0x3f], 0x68633d63
imul ebp, dword [esi + 0x61], 0x7477654e
popal
bound esp, qword [esi]
je 0x18051cdd
invalid
jb 0x18051d07
insd dword es:[edi], dx
outsd dx, dword [esi]
je 0x18051d0b
push eax
popal
jae 0x18051cd2
popal
cmp eax, 0x74696e69
cmp eax, 0x6c6c6977
pop edi
jb 0x18051d21
je 0x18051d30
jns 0x18051ce6
cmp ax, 0x2630
jb 0x18051d03
xor byte [esi], ch
cmp byte [eax], bh
cmp byte [ecx], bh
xor dh, byte [edx + esi]
aaa
xor al, 0x33
xor dh, byte [0x38323330]
arpl word es:[ecx + 0x64], bp
cmp eax, 0x72747300
outsd dx, dword [esi]
add byte [ebx + 0x74], dh
jb 0x18051d51
outsb dx, byte [esi]
insb byte es:[di], dx
jns 0x18051d14
sub eax, 0x6d617266
jb 0x18051d4b
insd dword es:[edi], dx
add byte fs:[ecx], dh
add byte [ebx + 0x65], dh
arpl word [ebp + 0x72], si
imul esi, dword [ecx + edi*2 + 0x2d], 0x6f666e69
add byte [esi + 0x6e], al
push 0x4b416c6c
inc ecx
dec ebx
push edi
push edx
dec eax
inc edi
inc ecx
insb byte es:[edi], dx
outsd dx, dword [esi]
sub eax, dword [ebp + 0x53]
pop eax
jns 0x18051d7d
dec ebx
inc ecx
inc ecx
inc ecx
inc ecx
inc ecx
inc ecx
jo 0x18051d74
inc esi
imul edx, dword [edi + 0x6c], 0x62706272
Function at 0x180521d4
Capabilities:
Get number of processors

Disassembly:
dec esi
push esi
dec eax
push ebx
inc ecx
inc ebp
dec esi
jp 0x1805221e
xor dword [ebp + 0x44], ecx
dec ebp
inc edi
inc edx
insd dword es:[edi], dx
inc edx
inc esp
inc ecx
inc ebp
inc ebx
inc ecx
push esp
inc ecx
jo 0x1805223c
inc ebx
arpl word [edi + 0x43], ax
inc ebx
jae 0x1805223d
inc ecx
push ecx
push ebp
inc esi
inc edx
ja 0x18052246
inc edx
inc esi
push 0x48646f74
push edx
ja 0x18052256
imul edi, dword [eax], 0x64336476
xor ecx, dword [ebp + ebp*2 + 0x52]
jo 0x1805226d
xor ch, byte [edx + ebp*2 + 0x5a]
pop eax
dec edx
xor byte [ebp + ebp*2 + 0x4e], cl
jbe 0x18052281
bound edx, qword [ebx + 0x39]
inc esp
push ebp
inc esi
push ebx
cmp dword [ebp + edx*2 + 0x46], eax
dec ebp
ja 0x1805228e
pop ecx
push ebp
inc edi
inc ebx
inc ebx
jae 0x18052275
inc ecx
push ecx
push ebp
inc esi
inc edx
ja 0x1805227a
inc edx
inc edx
dec esp
inc edi
outsd dx, dword [esi]
dec eax
pop edx