joyce8/EMBER2024-capa huggingface dataset:
Function at 0x687a20
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x14]
push 1
push ebx
call fcn.006053c0
add esp, 8
mov esi, eax
push eax
push ebx
call fcn.00605690
add esp, 8
test eax, eax
je 0x687aa9
mov edi, eax
sub esp, 0x14
movaps xmm0, xmmword [0xa4b370]
movups xmmword [esp + 4], xmm0
lea eax, [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x687a84
push edi
push esi
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
cmove esi, eax
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x687a86
xor esi, esi
lea eax, [esi*8]
push eax
push esi
push ebx
call fcn.00605720
add esp, 0xc
push ebx
call fcn.00605390
add esp, 4
test eax, eax
jne 0x687b2a
push 1
push ebx
call fcn.006053c0
add esp, 8
mov esi, eax
push eax
push ebx
call fcn.00605690
add esp, 8
test eax, eax
je 0x687b21
mov edi, eax
mov eax, esp
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x687b00
push edi
push esi
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
cmove esi, eax
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x687b02
xor esi, esi
lea eax, [esi*8]
push eax
push esi
push ebx
call fcn.00605720
add esp, 0xc
push ebx
call fcn.00605390
add esp, 4
test eax, eax
jne 0x687b2a
push ebx
call fcn.00605390
add esp, 4
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x698370
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
cmp edx, 1
setne cl
add ecx, esi
mov edi, dword [ebx]
xor eax, eax
cmp ecx, edi
ja 0x6983eb
mov ebp, dword [esp + 0x24]
cmp edx, 1
jne 0x6983d2
cmp dword [esp + 0x20], esi
jb 0x6983eb
cmp esi, 0x40
ja 0x6983eb
mov eax, 1
test esi, esi
je 0x6983eb
sub edi, esi
mov dword [ebx], edi
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6983c2
add ebp, edi
mov dword [ecx], ebp
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x6983eb
mov dword [ecx], 0
jmp 0x6983eb
movzx edx, byte [ebp + edi - 1]
cmp dword [esp + 0x38], 0
je 0x6983f3
not esi
add edi, esi
sub edi, edx
mov dword [ebx], edi
mov eax, 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
add ecx, edx
mov ebx, ecx
xor ebx, edi
mov eax, edi
sub eax, ecx
xor eax, ecx
or eax, ebx
xor eax, edi
not eax
sar eax, 0x1f
cmp edi, 0x100
mov ecx, 0x100
cmovb ecx, edi
test edi, edi
mov dword [esp], edi
je 0x69842f
mov esi, edi
xor edi, edi
cmp esi, 4
jae 0x698436
mov esi, edx
mov ebp, ecx
jmp 0x6984f9
mov esi, edx
jmp 0x69852e
mov edi, ecx
and edi, 0x1fc
movd xmm1, eax
movaps xmm0, xmmword [0xa4f550]
movss xmm0, xmm1
mov dword [esp + 4], edx
movd xmm2, edx
pshufd xmm1, xmm2, 0
punpcklbw xmm2, xmm2
pshuflw xmm2, xmm2, 0
lea eax, [esi + ebp]
add eax, 0xfffffffc
mov edx, ecx
mov ebp, ecx
and ebp, 0xfffffffc
neg ebp
movdqa xmm4, xmmword [0xa4f560]
xor ecx, ecx
por xmm1, xmmword [0xa4f570]
pxor xmm5, xmm5
movdqa xmm7, xmmword [0xa4f580]
movdqa xmm3, xmm4
pxor xmm3, xmmword [0xa4f570]
pcmpgtd xmm3, xmm1
movd xmm6, dword [eax + ecx]
punpcklbw xmm6, xmm5
pshuflw xmm6, xmm6, 0x1b
packuswb xmm6, xmm6
pxor xmm6, xmm2
punpcklbw xmm6, xmm5
punpcklwd xmm6, xmm5
pxor xmm6, xmmword [0xa4f590]
por xmm6, xmm3
pand xmm0, xmm6
paddd xmm4, xmm7
add ecx, 0xfffffffc
cmp ebp, ecx
jne 0x698490
pshufd xmm1, xmm0, 0xee
pand xmm1, xmm0
pshufd xmm0, xmm1, 0x55
pand xmm0, xmm1
movd eax, xmm0
mov ebp, edx
cmp edx, edi
mov esi, dword [esp + 4]
je 0x69852e
mov ecx, edi
not ecx
add ecx, dword [esp]
add ecx, dword [esp + 0x24]
nop word cs:[eax + eax]
movzx edx, byte [ecx]
mov ebx, esi
xor dl, bl
cmp edi, esi
movzx edx, dl
not edx
mov ebx, 0xffffffff
cmova edx, ebx
and eax, edx
inc edi
dec ecx
cmp ebp, edi
jne 0x698510
xor ecx, ecx
xor ebx, ebx
cmp al, 0xff
not esi
cmovne esi, ecx
sete bl
neg ebx
add esi, dword [esp]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], esi
mov edx, dword [esp + 0x20]
push dword [esp + 0x3c]
push ebx
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.00698110
add esp, 0x24
jmp 0x6983ee
Function at 0x6a9740
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push 0x1048
push 0xa51960
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
cmp esi, 0x48
mov eax, 0x48
cmovl eax, esi
add eax, edi
xor ecx, ecx
mov edx, edi
jmp 0x6a97ab
movzx edx, byte [edx]
movzx ebx, byte [ebx]
shl edx, 0x10
shl ebx, 8
or ebx, edx
movzx edx, byte [ebp]
or edx, ebx
shl edx, 8
movzx edi, byte [edi]
or edi, edx
mov ebx, dword [esp + 0x1c]
xor dword [ebx + ecx*4], edi
inc ecx
mov edx, esi
cmp ecx, 0x12
je 0x6a97f7
lea ebx, [edx + 1]
cmp ebx, eax
jae 0x6a97d0
lea ebp, [ebx + 1]
cmp ebp, eax
jae 0x6a97db
lea edi, [ebp + 1]
cmp edi, eax
jae 0x6a97e6
lea esi, [edi + 1]
cmp esi, eax
jb 0x6a9780
jmp 0x6a97f1
mov ebx, dword [esp + 0x24]
lea ebp, [ebx + 1]
cmp ebp, eax
jb 0x6a97b9
mov ebp, dword [esp + 0x24]
lea edi, [ebp + 1]
cmp edi, eax
jb 0x6a97c0
mov edi, dword [esp + 0x24]
lea esi, [edi + 1]
cmp esi, eax
jb 0x6a9780
mov esi, dword [esp + 0x24]
jmp 0x6a9780
mov dword [esp], 0
mov dword [esp + 4], 0
mov edi, esp
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 8], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x10], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x18], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x20], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x28], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x30], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x38], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x40], xmm0
mov esi, 0xfffffffe
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + esi*4 + 0x50], xmm0
add esi, 2
cmp esi, 0x3fe
jb 0x6a98c0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
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, 0xa662c0
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 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 + 0xa71e90]
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 + 0xa71f00]
shl eax, 0x18
shr ebx, 0x10
movzx ebx, bl
movzx ebp, byte [ebx + 0xa71f00]
shl ebp, 0x10
or ebp, eax
movzx eax, dh
movzx edx, dl
movzx eax, byte [eax + 0xa71f00]
shl eax, 8
or eax, ebp
movzx edx, byte [edx + 0xa71f00]
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 + 0xa71e94]
xor eax, edi
xor eax, esi
xor eax, ecx
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0xa71f00]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx ebp, byte [edx + 0xa71f00]
shl ebp, 0x10
or ebp, ebx
movzx edx, ah
movzx eax, al
movzx edx, byte [edx + 0xa71f00]
shl edx, 8
or edx, ebp
movzx eax, byte [eax + 0xa71f00]
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 + 0xa71e98]
xor eax, edi
xor eax, ecx
xor eax, dword [esp + 4]
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0xa71f00]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx ebp, byte [edx + 0xa71f00]
shl ebp, 0x10
or ebp, ebx
movzx edx, ah
movzx eax, al
movzx edx, byte [edx + 0xa71f00]
shl edx, 8
or edx, ebp
movzx eax, byte [eax + 0xa71f00]
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 + 0xa71e9c]
xor eax, ecx
xor eax, dword [esp + 4]
xor eax, esi
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0xa71f00]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0xa71f00]
shl edx, 0x10
or edx, ebx
movzx ebx, ah
movzx ebx, byte [ebx + 0xa71f00]
shl ebx, 8
or ebx, edx
movzx eax, al
movzx eax, byte [eax + 0xa71f00]
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 + 0xa73a48]
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 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 [0xa7d210]
xor ebx, ebx
movdqa xmm1, xmmword [0xa7d220]
movdqa xmm2, xmmword [0xa7d230]
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 [0xae260c]
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 + 0x881b1c]
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 [0xae260c], 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 [0x881b1c], eax
mov eax, dword [esp + 0x30]
mov dword [0x881b24], 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 [0xae264c]
test esi, esi
jle 0x787340
mov eax, dword [0xae2650]
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 [0xae2650]
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 [0xae2650]
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 [0xae264c], 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 [0xae2650]
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 [0xae2650]
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], 0xae2668
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xae2660]
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], 0xae2668
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409220
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x409265
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040a388
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x40927c
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x409272
cmp word [esp + 4], 0
je 0x4092a7
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x4092c4
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x409290
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.0040a388
add esp, 0x20c
ret
call fcn.0040d6a1
int3