joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101b42e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x1066bbc0]
xor eax, esp
mov dword [esp + 0x1c0], eax
cmp byte [0x106d2a40], 0
push ebx
mov ebx, dword [esp + 0x1cc]
mov dword [esp + 0x10], ebx
jne 0x101b4319
call fcn.101d2f50
test eax, eax
je 0x101b4331
mov byte [0x106d2a40], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.102c15f2
add esp, 0x1c4
ret
mov eax, dword [ebx + 0x9cc]
test eax, eax
je 0x101b4352
push 0x400
push eax
call fcn.101d3c00
add esp, 8
call fcn.101d2f50
test eax, eax
jne 0x101b4319
push ebp
push esi
push edi
nop word [eax + eax]
mov ebx, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.101a7890
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x28], xmm0
call fcn.101a2680
lea eax, [esp + 0x58]
push eax
call fcn.101a7890
mov esi, dword [eax + 8]
lea eax, [esp + 0x6c]
push eax
call fcn.101a7890
add esp, 0x10
lea ebp, [ebx + 1]
mov ecx, eax
mov eax, esi
cdq
push 0
add eax, dword [ecx]
push ebp
adc edx, dword [ecx + 4]
push edx
push eax
call fcn.102c29a0
movups xmm1, xmmword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov edi, eax
mov ebx, edx
dec esi
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
shld ebx, edi, 8
push ecx
push eax
push 0
push esi
shl edi, 8
call fcn.102c29a0
xor edi, eax
xor ebx, edx
lea eax, [esp + 0x70]
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x28], ebx
call fcn.101a7890
lea esi, [eax + 8]
lea eax, [esp + 0x84]
push eax
call fcn.101a7890
mov edx, dword [esp + 0x18]
add esp, 8
mov ebx, ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
add ecx, dword [esi]
lea eax, [edx + 2]
imul edx, dword [esp + 0x28]
imul ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 0x10
xor ecx, edx
mov dword [esp + 0x28], ecx
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x101b4380
movsd xmm0, qword [0x102de640]
lea eax, [esp + 0x90]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.101d2da0
add esp, 0x10
call fcn.101d2f50
test eax, eax
je 0x101b4360
lea eax, [esp + 0xd0]
mov byte [esp + 0xd0], 0
push 0x100
push eax
call fcn.101d3a40
add esp, 8
cmp byte [esp + 0xd0], 0
pop edi
pop esi
pop ebp
je 0x101b44e2
lea eax, [esp + 0xc4]
push 0x400
push eax
call fcn.101d3c00
add esp, 8
call fcn.101d2f50
test eax, eax
jne 0x101b4319
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x14]
call fcn.1019f3d0
add esp, 8
call fcn.101d2f50
mov ecx, dword [esp + 0x1c4]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.102c15f2
add esp, 0x1c4
ret
Function at 0x101b8d60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.102c2890
mov eax, dword [0x1066bbc0]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push eax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x101b8dc9
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x101b8dc9
lea eax, [esp]
push eax
call dword [0x106680e4]
add esp, 4
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.102c15f2
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1000]
xor eax, eax
xor ecx, esp
call fcn.102c15f2
add esp, 0x1004
ret
Function at 0x101dd0f0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.102c2890
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x101dd138
sub eax, 2
je 0x101dd138
sub eax, 0x15
je 0x101dd138
push 0x293
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.101d6330
add esp, 0x14
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
call fcn.101dcf10
cmp eax, 1
jne 0x101dd130
mov eax, dword [esp + 0x3c]
xor ecx, ecx
push ebp
push edi
xorps xmm0, xmm0
mov dword [esp + 0x10], ecx
xor edi, edi
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x101dd179
or ecx, 0x400
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x3c], 1
jne 0x101dd187
or ecx, 1
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x101dd1df
cmp esi, 8
je 0x101dd226
mov ecx, dword [esp + 0x10]
test ecx, 0x400
je 0x101dd1ee
push ebp
lea eax, [esp + 0x14]
and ecx, 0xfffffbff
push eax
push dword [esp + 0x40]
or ecx, 4
mov edi, esi
push dword [esp + 0x40]
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x101dd1a5
mov ebx, 1
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2d4
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.101d6330
test edi, edi
cmovne esi, edi
push esi
call fcn.101dd630
push eax
push 1
call fcn.101d5970
add esp, 0x20
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2c5
push str.crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.101d6330
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
Function at 0x1022c200
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.102c2890
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x1022c244
cmp ecx, edx
jb 0x1022c244
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x1022c233
pop edi
jmp 0x1022c251
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.10202da0
add esp, 0x14
pop esi
test eax, eax
je 0x1022c27b
cmp dword [esp], 0x10
jne 0x1022c27b
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x1022c3c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x1022c433
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1022c433
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov eax, dword [ebx + 0xc]
cmp edx, eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x1022c403
push esi
mov esi, ebp
lea ecx, [ebx + 0x10]
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x1022c3f0
mov eax, dword [ebx + 0xc]
pop esi
cmp edx, eax
jbe 0x1022c431
sub edx, eax
cmp edx, 0x10
jbe 0x1022c415
mov edx, 0x10
jmp 0x1022c419
test edx, edx
je 0x1022c431
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0xc]
add eax, ecx
mov al, byte [eax + ebp]
xor byte [ebx + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x1022c420
pop edi
pop ebx
pop ebp
ret
Function at 0x10232190
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.102c2890
mov eax, dword [0x1066bbc0]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test edi, edi
je 0x102321fd
cmp edi, eax
je 0x102321f1
test ebp, ebp
je 0x10232270
test ebx, ebx
js 0x10232270
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x10232203
test eax, eax
je 0x10232270
mov edi, eax
push edi
call fcn.101a7a40
add esp, 4
test al, 2
jne 0x10232270
test ebp, ebp
je 0x1023237b
push edi
mov dword [esp + 0x14], 1
call fcn.101c6d40
add esp, 4
cmp eax, 0x90
jg 0x10232270
cmp eax, ebx
jge 0x1023228b
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.101cd640
add esp, 0xc
test eax, eax
je 0x10232270
push ebx
push ebp
push dword [esi + 4]
call fcn.101cd7f0
add esp, 0xc
test eax, eax
je 0x10232270
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.101cd5a0
add esp, 0xc
test eax, eax
jne 0x102322a7
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.102c15f2
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x10232270
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x102322ca
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x102322d0
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.101cd640
add esp, 0xc
test eax, eax
je 0x10232388
push edi
call fcn.101c6d40
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.101cd7f0
add esp, 0x10
test eax, eax
je 0x10232388
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10232320
push ebp
push edi
push dword [esi + 0xc]
call fcn.101cd640
add esp, 0xc
test eax, eax
je 0x10232388
push edi
call fcn.101c6d40
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.101cd7f0
add esp, 0x10
test eax, eax
je 0x10232388
push dword [esi + 8]
push dword [esi + 4]
call fcn.101cd980
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x1023238a
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1023235f
jmp 0x102322ce
xor ebp, ebp
test ebx, ebx
je 0x102323a0
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.10001320
add esp, 8
mov eax, ebp
jmp 0x10232272

Function at 0x1026e940
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x1026e954
mov dword [esp + 0x18], fcn.1026d120
jmp fcn.10266680
mov dword [esp + 0x18], fcn.1026c3c0
jmp fcn.10266380
Function at 0x102b3470
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.102c2890
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x102b34fa
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x102b34fe
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3cc]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.101cb100
push eax
call fcn.101c6d50
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x102b3507
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x102b34b2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x102b3583
mov edx, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr edx, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov eax, esi
lea edi, [edi - 1]
sub eax, ebp
mov ecx, ebp
shr ecx, 0x1f
inc ebp
shr eax, 0x1f
xor al, cl
xor cl, dl
or al, cl
movzx ecx, byte [esp + 0x2c]
dec al
movzx edx, al
movzx eax, byte [edi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x10]
jb 0x102b3545
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edi + 8], esi
mov dword [esp + 0x2c], ecx
not ecx
pop ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x102c1014
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x102c103b
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x102c103e
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.102c0ff0
pop esi
leave
ret 8
Function at 0x421ab4
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x421a60
cmp dword [eax + 0xc], ebx
je 0x421b03
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004214bb
les ecx, [edx + 0x5d39de40]
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x421af1
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x421acc
and eax, 0xffff
push eax
jmp 0x421ad0
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00421480
add esp, 0xc
les ecx, [ebx + edi]
sti
mov dword [edi], eax
je 0x421caa
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x421ab1
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x421a52
call fcn.004214bb

Function at 0x421b08
Capabilities:
Inspect section memory permissions

Disassembly:
add al, 0x3d
arpl word [ebp + 0xa0878b], bp
add byte [eax], al
cmp eax, ebx
je 0x421b6f
add eax, esi
Function at 0x421b5c
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x421b6f
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x421b6a
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
rol dword [ecx + 0xf000e2], 1
add byte [ecx + 0x3000fa], al
add byte [ebp + 0x13], dh
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp fcn.00421b5c
cmp edx, ebx
jne 0x421caa
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x421b2b
add eax, dword [eax + 4]
jmp 0x421b18
mov dword [ebp + 0xc], ebx
jmp 0x421b7a
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x421b92
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x421bb0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x421c0e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x421bf5
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x421bfe
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x421c08
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x421bea
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x421b74
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x421c5b
dec eax
je 0x421c52
sub eax, 3
je 0x421c49
mov dword [ebp - 4], 0x40
jmp 0x421c78
mov dword [ebp - 4], 4
jmp 0x421c5e
mov dword [ebp - 4], 0x20
jmp 0x421c5e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x421caa
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x421c2a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004214bb
retf
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401270
Capabilities:
Check if file exists
Encrypt data using dpapi
Get file attributes

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401463
test al, 0xa7
je 0x401463
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.0049e080
test al, al
je 0x401463
mov esi, dword [esp + 0x30]
mov dword [esp + 0x18], esi
test esi, esi
je 0x40143d
cmp byte [esi], 0xef
jne 0x4012d2
cmp byte [esi + 1], 0xbb
jne 0x4012d2
cmp byte [esi + 2], 0xbf
jne 0x4012d2
lea eax, [esi + 3]
mov dword [esp + 0x18], eax
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.0041bf30
mov ebx, eax
test ebx, ebx
je 0x401432
cmp dword [ebx + 4], 4
jne 0x40142b
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x40142b
push 8
mov edx, str.os_crypt
call fcn.0041bb10
add esp, 4
test eax, eax
je 0x40142b
cmp dword [eax + 4], 4
jne 0x40142b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40142b
push 0xd
mov edx, str.encrypted_key
call fcn.0041bb10
add esp, 4
test eax, eax
je 0x40142b
cmp dword [eax + 4], 2
jne 0x40142b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40142b
mov edx, ecx
lea edi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x401360
lea eax, [esp + 0x20]
sub edx, edi
push eax
call fcn.0049e120
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40142b
push 5
push str.DPAPI
push ebp
call fcn.004a97a0
add esp, 0xc
test eax, eax
jne 0x401422
mov edi, dword [esp + 0x20]
lea eax, [ebp + 5]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
push 1
push 0
push 0
push 0
push 0
lea eax, [esp + 0x40]
mov byte [esp + 0x2f], 0
push eax
mov dword [esp + 0x44], edi
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x401422
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401422
mov ecx, dword [esp + 0x20]
cmp ecx, edi
jae 0x4013f5
push ecx
push eax
lea eax, [ebp + 5]
mov byte [esp + 0x1f], 1
push eax
call fcn.004a5830
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [esp + 0x17], 0
je 0x401422
push edi
call fcn.004a9d98
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x401422
push edi
lea ecx, [ebp + 5]
push ecx
push eax
call fcn.004a5830
add esp, 0xc
push ebp
call fcn.004a9b70
add esp, 4
mov ecx, ebx
call fcn.0041c630
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40144e
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x401459
push eax
call esi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
Function at 0x401470
Capabilities:
Encode data using xor
Encrypt data using dpapi

Disassembly:
sub esp, 0x288
cmp dword [esp + 0x28c], 0
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, ecx
je 0x40159e
mov eax, dword [esi]
lea ebx, [edi - 0x10]
push eax
mov dword [esp + 0x24], eax
add ebx, eax
lea ecx, [eax - 0x1f]
mov dword [esp + 0x1c], ecx
call fcn.004a9d98
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40159e
mov edx, dword [esp + 0x29c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040e880
add esp, 4
push dword [esp + 0x20]
push 0
push ebp
call fcn.004a3c90
add esp, 8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
push dword [esp + 0x20]
lea eax, [edi + 0xf]
push ebp
push eax
sub esp, 0xc
lea eax, [edi + 3]
push eax
call fcn.0040eac0
lea eax, [esp + 0x44]
add esp, 0x24
lea ecx, [esp + 0x24]
sub eax, ebx
xorps xmm4, xmm4
xorps xmm3, xmm3
sub ecx, ebx
mov edx, 2
nop dword [eax]
movd xmm2, dword [eax + ebx]
xorps xmm0, xmm0
movd xmm1, dword [ebx]
lea ebx, [ebx + 8]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [ebx - 4]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [ecx + ebx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
sub edx, 1
jne 0x401510
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x40160d
push dword [esp + 0x18]
push edx
push ebp
call fcn.004a3c90
add esp, 0xc
push ebp
call fcn.004a9b70
add esp, 4
mov eax, dword [esi]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
mov byte [esp + 0x2f], 0
push eax
mov dword [esp + 0x40], edi
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x401638
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x401638
mov ebp, dword [esp + 0x18]
cmp ebp, dword [esi]
jae 0x4015ed
push ebp
push ebx
push edi
mov byte [esp + 0x23], 1
call fcn.004a5830
add esp, 0xc
mov dword [esi], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [esp + 0x17]
test al, al
je 0x40163c
mov ecx, dword [esi]
mov byte [edi + ecx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x288
ret
add dword [esi], 0xffffffe1
push dword [esi]
push ebp
push edi
call fcn.004a5830
mov eax, dword [esi]
add esp, 0xc
push ebp
mov byte [edi + eax], 0
call fcn.004a9b70
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x288
ret
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x288
ret