joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00425a60
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x427f79
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00422e00
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00422df0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.004275d0
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x4815a4]
push 0
lea ecx, [esp + 0x4c]
call fcn.004779af
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0043e100
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00425480
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x481110]
mov ecx, ebx
call fcn.00422d70
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x428044
push edi
mov ecx, esi
call fcn.00425590
push eax
push ebp
mov ecx, esi
call fcn.00425750
cmp eax, dword [esp + 0x40]
jg 0x428040
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x42801e
mov eax, ebx
jmp 0x42804a
cmp edi, ebx
jl 0x428048
mov eax, ebx
jmp 0x42804a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x42805b
mov dword [esp + 0x30], eax
jmp 0x428066
cmp edi, ebx
jl 0x428061
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00422d30
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x4280ad
push edi
mov ecx, esi
call fcn.004254b0
push eax
push ebx
mov ecx, esi
call fcn.00425880
cmp eax, dword [esp + 0x44]
jg 0x4280a5
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x42807f
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4280b7
cmp edi, ebp
jl 0x4280b1
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4280b7
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x4280c0
mov ecx, eax
jmp 0x4280c9
cmp edi, ebp
jl 0x4280c6
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.004254a0
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00477a21
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x43e7a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47efd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4815a4]
push 0
lea ecx, [esp + 0x20]
call fcn.004779af
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e100
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004778dd
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004741a0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004741a0
push 1
push 0
push 0
mov ecx, esi
call fcn.00474148
push 1
push 0
push 1
mov ecx, esi
call fcn.00474148
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00477a21
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43e920
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47eff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004779af
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e100
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004778dd
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4815a4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43e9e4
cmp dword [esp + 0x40], 1
jne 0x43e9e2
cmp ecx, eax
jge 0x43e9e4
mov eax, ecx
cmp eax, 0xc8
jge 0x43e9f0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043e7a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4815a0]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00477a21
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43f1e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f0a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004725b8
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x487030
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x486f78
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4810dc]
push eax
mov ecx, edi
call fcn.00477c57
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00479173
test eax, eax
je 0x43f2fc
mov ecx, dword [esp + 0x3c]
call fcn.00477c84
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x48141c]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f2c0
push edi
mov ecx, esi
call fcn.004752ee
mov ecx, esi
call fcn.0043f4a0
cmp dword [esp + 0x38], 1
jne 0x43f2f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00475429
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4414e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441513
push esi
call fcn.0044f880
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44150c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441599
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441582
mov eax, dword [esi + 8]
test eax, eax
je 0x441537
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44157e
cmp eax, 2
je 0x441582
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44152a
cmp eax, 3
je 0x44155d
cmp eax, 1
jne 0x44152a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44152a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44152a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004415c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4415a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004415c0
add esp, 4
pop esi
ret
Function at 0x45d940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47f5f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045d4f0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045d570
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045d570
lea ecx, [esi + 0xc]
call fcn.00470f95
lea ecx, [esi + 0x10]
call fcn.00470f95
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045eb10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045eb10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045eb10
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047100a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047100a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40218d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4021cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4021cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4021cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4021cc
cmp dword [ecx + 0x74], 0xe
jbe 0x4021cc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x102c5460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x3525b], al
inc dword [eax]
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.102c4c57
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.102c4c0c
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.102c4c57
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.102c4c0c
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
invalid
invalid
Function at 0x100014db
Capabilities:
Encode data using base64

Disassembly:
push 0x18
mov eax, 0x10067306
call fcn.10052cc9
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], edi
call fcn.1000190a
xor ebx, ebx
inc ebx
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp + 0x10], edi
je 0x10001631
mov eax, dword [ebp + 0xc]
dec dword [ebp + 0x10]
mov al, byte [eax]
mov byte [ebp + esi - 0x10], al
inc esi
inc dword [ebp + 0xc]
cmp esi, 3
jne 0x10001585
mov al, byte [ebp - 0x10]
mov cl, byte [ebp - 0xf]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xf]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
movzx edi, byte [ebp + esi - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.100019de
mov al, byte [eax]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.10001ab9
inc esi
cmp esi, 4
jl 0x1000155e
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x10001510
cmp esi, edi
je 0x10001631
cmp esi, 3
jge 0x100015ab
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x10]
push edi
push eax
call fcn.1004db40
add esp, 0xc
mov cl, byte [ebp - 0x10]
mov al, cl
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0xf]
and cl, 3
mov dl, al
shl cl, 4
shr dl, 4
add cl, dl
mov byte [ebp - 0x13], cl
mov cl, byte [ebp - 0xe]
and al, 0xf
mov dl, cl
shl al, 2
shr dl, 6
add al, dl
mov byte [ebp - 0x12], al
and cl, 0x3f
lea eax, [esi + 1]
cmp eax, edi
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x10], edi
jle 0x10001616
mov eax, dword [ebp - 0x10]
movzx edi, byte [ebp + eax - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.100019de
mov al, byte [eax]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.10001ab9
inc dword [ebp - 0x10]
lea eax, [esi + 1]
cmp dword [ebp - 0x10], eax
jl 0x100015eb
push 3
pop eax
cmp esi, eax
jge 0x10001631
sub eax, esi
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x1c]
push 0x3d
call fcn.10001ab9
dec dword [ebp - 0x18]
jne 0x10001622
mov eax, dword [ebp - 0x1c]
call fcn.10052d68
ret 0xc
Function at 0x1000163c
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1007b430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
pop edi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
push 0xf0000000
xor esi, esi
push 0x18
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x48], eax
push esi
lea eax, [ebp - 0x38]
push eax
xor bl, bl
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x58], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x100016ab
xor al, al
jmp 0x100017b9
xor eax, eax
push 0x20
mov word [ebp - 0x2e], ax
pop eax
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push esi
push eax
mov byte [ebp - 0x30], 8
mov byte [ebp - 0x2f], 2
mov dword [ebp - 0x2c], 0x6610
call fcn.1004db40
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
add esp, 0xc
cmp eax, 0x20
jb 0x100016e1
push 0x20
pop eax
push eax
push dword [ebp - 0x54]
lea eax, [ebp - 0x24]
push eax
call fcn.1004b910
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 1
push esi
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x1000179a
push esi
lea eax, [ebp - 0x5c]
push eax
push edi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1000179a
push dword [ebp - 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov edi, eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x3c]
push eax
push 8
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x1000179a
shr dword [ebp - 0x3c], 3
cmp edi, esi
je 0x1000179a
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x50]
mov eax, dword [ebx]
mov ecx, dword [edi]
cmp eax, ecx
jb 0x1000175e
mov eax, ecx
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.1004b910
mov eax, dword [edi]
add esp, 0xc
push dword [ebx]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
push esi
push 1
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x1000179a
mov eax, dword [edi]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
cmp dword [ebp - 0x34], esi
je 0x100017a8
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x38], esi
je 0x100017b7
push esi
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004b8fc
leave
ret 0x18
Function at 0x100022c5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov cl, byte [edx]
or eax, 0xffffffff
test cl, cl
je 0x100022f3
push esi
movzx ecx, cl
push 7
xor eax, ecx
pop ecx
mov esi, eax
and esi, 1
neg esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec ecx
jns 0x100022d7
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x100022cf
pop esi
not eax
ret
Function at 0x100022f6
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x1007b430]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push 0x103
xor ebx, ebx
lea eax, [ebp - 0x73]
push ebx
push eax
call fcn.1004db40
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x20119
push ebx
lea eax, [ebp - 0x74]
push eax
push reloc.WS2_32.dll_bind
xor edi, edi
mov byte [ebp - 0x50], 0x44
mov byte [ebp - 0x5b], 0x66
mov byte [ebp - 0x6c], 0x5c
mov byte [ebp - 0x6d], 0x45
mov byte [ebp - 0x51], 0x20
mov byte [ebp - 0x60], 0x63
mov byte [ebp - 0x6f], 0x41
mov byte [ebp - 0x5e], 0x6f
mov byte [ebp - 0x54], 0x6f
mov byte [ebp - 0x63], 0x5c
mov byte [ebp - 0x68], 0x69
mov byte [ebp - 0x5a], 0x74
mov byte [ebp - 0x56], 0x6e
mov byte [ebp - 0x52], 0x73
mov byte [ebp - 0x55], 0x64
mov byte [ebp - 0x62], 0x4d
mov byte [ebp - 0x71], 0x54
mov byte [ebp - 0x66], 0x69
mov byte [ebp - 0x4d], 0x65
mov byte [ebp - 0x74], 0x53
mov byte [ebp - 0x5d], 0x73
mov byte [ebp - 0x57], 0x69
mov byte [ebp - 0x64], 0x73
mov byte [ebp - 0x70], 0x57
mov byte [ebp - 0x4a], 0x65
mov byte [ebp - 0x4b], 0x64
mov byte [ebp - 0x5f], 0x72
mov byte [ebp - 0x69], 0x6c
mov byte [ebp - 0x61], 0x69
mov byte [ebp - 0x67], 0x63
mov byte [ebp - 0x4e], 0x66
mov byte [ebp - 0x6a], 0x6f
mov byte [ebp - 0x5c], 0x6f
mov byte [ebp - 0x6e], 0x52
mov byte [ebp - 0x49], 0x72
mov byte [ebp - 0x6b], 0x50
mov byte [ebp - 0x53], 0x77
mov byte [ebp - 0x59], 0x5c
mov byte [ebp - 0x72], 0x46
mov byte [ebp - 0x4f], 0x65
mov byte [ebp - 0x4c], 0x6e
mov byte [ebp - 0x65], 0x65
mov byte [ebp - 0x58], 0x57
mov byte [ebp - 0x73], 0x4f
mov byte [ebp - 0x47], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, 0x104
test eax, eax
jne 0x10002492
mov ecx, esi
lea eax, [ebp - 0x74]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10002408
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], 4
mov byte [ebp - 0x74], 0x50
mov byte [ebp - 0x68], 0x6e
mov byte [ebp - 0x6d], 0x65
mov byte [ebp - 0x73], 0x55
mov byte [ebp - 0x6e], 0x74
mov byte [ebp - 0x71], 0x50
mov byte [ebp - 0x6a], 0x69
mov byte [ebp - 0x6c], 0x63
mov byte [ebp - 0x6b], 0x74
mov byte [ebp - 0x72], 0x41
mov byte [ebp - 0x69], 0x6f
mov byte [ebp - 0x70], 0x72
mov byte [ebp - 0x6f], 0x6f
mov byte [ebp - 0x66], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000247e
mov ecx, esi
lea eax, [ebp - 0x74]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1000246f
cmp dword [ebp - 0x7c], 1
jne 0x1000247e
push 0x10
pop edi
mov ecx, esi
lea eax, [ebp - 0x74]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10002483
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x74]
mov byte [eax], bl
inc eax
dec esi
jne 0x10002495
mov ecx, dword [ebp + 0x90]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004b8fc
add ebp, 0x94
leave
ret
Function at 0x100035a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100035ba
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100035ef
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100035eb
cmp edi, eax
jae 0x100035ef
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x100035dd
cmp edi, eax
jb 0x100035f3
xor eax, eax
jmp 0x100035fc
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x100036bd
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
mov eax, dword [esp + 8]
mov dword [0x1007d82c], eax
mov eax, dword [esp + 0x10]
mov dword [0x1007d828], eax
mov eax, dword [esp + 0xc]
mov dword [0x1007d830], eax
call fcn.10003e07
call fcn.10003f4f
call fcn.1000424e
mov dword [0x1007d848], eax
call fcn.1000448c
call fcn.10003d59
jmp section..mu923