joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100362d3
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esi]
push ebx
push edi
lea edi, [esi + 4]
mov ecx, dword [edi]
lea edx, [eax + ecx]
cmp edx, ecx
mov dword [edi], edx
jae 0x100362e8
inc dword [esi + 8]
mov byte [eax + esi + 0x1c], 0x80
inc dword [esi]
mov eax, dword [esi]
xor ebx, ebx
cmp eax, 0x38
jbe 0x1003631b
push 0x40
pop ecx
sub ecx, eax
push ecx
lea eax, [eax + esi + 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
mov dword [esi], 0x40
call fcn.10035c37
mov dword [esi], ebx
mov eax, dword [esi]
push 0x38
pop ecx
sub ecx, eax
push ecx
lea eax, [eax + esi + 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [edi]
mov ecx, eax
shl eax, 3
lea ebx, [esi + 8]
mov edx, dword [ebx]
push 4
shr ecx, 0x1d
mov dword [edi], eax
lea eax, [esi + 0x54]
lea ecx, [ecx + edx*8]
push edi
push eax
mov dword [ebx], ecx
call sub.MSVCRT.dll_memcpy
push 4
lea eax, [esi + 0x58]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, esi
call fcn.10035c37
push 0x10
lea eax, [esi + 0xc]
push eax
push dword [esp + 0x38]
call sub.MSVCRT.dll_memcpy
add esp, 0x30
pop edi
mov eax, esi
pop ebx
jmp fcn.10035c10

Function at 0x1003637e
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 0xac]
push edi
lea edi, [esi + 0x6c]
mov dword [ebp + 8], ecx
mov byte [esi + 0x10d], 0
mov byte [esi + 0x10c], al
je 0x100363b5
cmp eax, 1
je 0x100363b5
cmp eax, 2
je 0x100363b5
cmp eax, 5
jne 0x100363d9
sub eax, 0
je 0x100363d2
dec eax
je 0x100363c9
dec eax
jne 0x100363d9
mov eax, esi
call fcn.10037f32
jmp 0x100363d9
mov eax, esi
call fcn.1003856a
jmp 0x100363d9
mov eax, esi
call fcn.10035c10
movzx eax, byte [esi + 0x10c]
sub eax, 0
je 0x1003641d
dec eax
je 0x10036404
dec eax
jne 0x10036442
cmp ebx, 0x40
push ebx
push edx
jbe 0x10036424
call fcn.10038360
push edi
call fcn.100383c8
add esp, 0xc
push 0x20
jmp 0x10036441
cmp ebx, 0x40
push ebx
push edx
jbe 0x10036424
call fcn.10037550
push edi
call fcn.100375b8
add esp, 0xc
push 0x14
jmp 0x10036441
cmp ebx, 0x40
ja 0x1003642f
push ebx
push edx
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x10036442
push edx
mov eax, ebx
call fcn.1003627b
push edi
call fcn.100362d3
pop ecx
pop ecx
push 0x10
pop ebx
push 0x40
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
push 0x40
sub eax, edi
pop ecx
mov dl, byte [edi]
xor dl, 0x5c
mov byte [eax + edi], dl
xor byte [edi], 0x36
inc edi
dec ecx
jne 0x1003645e
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100375b8
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esi]
push ebx
lea ebx, [esi + 4]
mov ecx, dword [ebx]
lea edx, [eax + ecx]
cmp edx, ecx
push edi
lea edi, [esi + 0x20]
mov dword [ebx], edx
jae 0x100375d0
inc dword [esi + 8]
mov byte [eax + edi], 0x80
inc dword [esi]
mov eax, dword [esi]
cmp eax, 0x38
jbe 0x10037608
push 0x40
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
pop eax
mov edx, edi
mov ecx, edi
mov dword [esi], eax
call fcn.100365c7
mov eax, esi
call fcn.100365f5
and dword [esi], 0
mov eax, dword [esi]
push 0x38
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebx]
mov edx, dword [esi + 8]
mov ecx, eax
shr ecx, 0x1d
lea ecx, [ecx + edx*8]
shl eax, 3
mov dword [esi + 8], ecx
mov dword [ebx], eax
push 0x40
pop eax
mov edx, edi
mov ecx, edi
call fcn.100365c7
push 4
lea eax, [esi + 8]
push eax
lea eax, [edi + 0x38]
push eax
call sub.MSVCRT.dll_memcpy
push 4
push ebx
add edi, 0x3c
push edi
call sub.MSVCRT.dll_memcpy
mov eax, esi
call fcn.100365f5
lea edi, [esi + 0xc]
push 0x14
pop eax
mov edx, edi
mov ecx, edi
call fcn.100365c7
push 0x14
push edi
push dword [esp + 0x38]
call sub.MSVCRT.dll_memcpy
add esp, 0x30
pop edi
mov eax, esi
pop ebx
jmp fcn.1003856a

Function at 0x10037f32
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0xa54ff53a
mov dword [eax + 0x1c], 0x510e527f
mov dword [eax + 0x20], 0x9b05688c
mov dword [eax + 0x24], 0x1f83d9ab
mov dword [eax + 0x28], 0x5be0cd19
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
ret
Function at 0x100383c8
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esi]
push ebx
lea ebx, [esi + 4]
mov ecx, dword [ebx]
lea edx, [eax + ecx]
cmp edx, ecx
push edi
lea edi, [esi + 0x2c]
mov dword [ebx], edx
jae 0x100383e0
inc dword [esi + 8]
mov byte [eax + edi], 0x80
inc dword [esi]
mov eax, dword [esi]
cmp eax, 0x38
jbe 0x10038418
push 0x40
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
pop eax
mov edx, edi
mov ecx, edi
mov dword [esi], eax
call fcn.100365c7
mov eax, esi
call fcn.10037f75
and dword [esi], 0
mov eax, dword [esi]
push 0x38
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebx]
mov edx, dword [esi + 8]
mov ecx, eax
shr ecx, 0x1d
lea ecx, [ecx + edx*8]
shl eax, 3
mov dword [esi + 8], ecx
mov dword [ebx], eax
push 0x40
pop eax
mov edx, edi
mov ecx, edi
call fcn.100365c7
push 4
lea eax, [esi + 8]
push eax
lea eax, [edi + 0x38]
push eax
call sub.MSVCRT.dll_memcpy
push 4
push ebx
add edi, 0x3c
push edi
call sub.MSVCRT.dll_memcpy
mov eax, esi
call fcn.10037f75
lea edi, [esi + 0xc]
push 0x20
pop eax
mov edx, edi
mov ecx, edi
call fcn.100365c7
push 0x20
push edi
push dword [esp + 0x38]
call sub.MSVCRT.dll_memcpy
add esp, 0x30
pop edi
mov eax, esi
pop ebx
jmp fcn.10037f32

Function at 0x100384f1
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x10], 0
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
mov dword [ebp - 4], ecx
je 0x10038560
push ebx
push esi
push edi
mov esi, 0xff
mov ecx, dword [ebp - 4]
dec dword [ebp + 0x10]
lea ecx, [eax + ecx + 2]
mov dword [ebp - 8], ecx
movzx ecx, byte [ecx]
mov edi, dword [ebp - 8]
add edx, ecx
and edx, esi
movzx ebx, byte [eax + edx + 2]
mov byte [edi], bl
mov edi, dword [ebp - 4]
inc edi
and edi, esi
mov dword [ebp - 4], edi
mov edi, ebx
add edi, ecx
and edi, esi
mov byte [eax + edx + 2], cl
mov cl, byte [edi + eax + 2]
mov edi, dword [ebp + 0xc]
xor cl, byte [edi]
mov edi, dword [ebp + 8]
inc dword [ebp + 8]
inc dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xc], ebx
mov byte [edi], cl
jne 0x1003850f
pop edi
pop esi
pop ebx
mov cl, byte [ebp - 4]
mov byte [eax], cl
mov byte [eax + 1], dl
leave
ret

Function at 0x1003856a
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax + 0xc], 0x67452301
mov dword [eax + 0x10], 0xefcdab89
mov dword [eax + 0x14], 0x98badcfe
mov dword [eax + 0x18], 0x10325476
mov dword [eax + 0x1c], 0xc3d2e1f0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
ret
Function at 0x10039883
Capabilities:
Encode data using xor

Disassembly:
mov edx, eax
or edx, ecx
sub ecx, eax
test dl, 3
push esi
jne 0x1003989f
push 4
pop edx
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x10039892
pop esi
ret
push 0x10
pop esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x100398a2
pop esi
ret
Function at 0x1003ab5b
Capabilities:
Encode data using xor

Disassembly:
mov edx, eax
or edx, ecx
sub ecx, eax
test dl, 3
push esi
jne 0x1003ab77
push 2
pop edx
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x1003ab6a
pop esi
ret
push 8
pop esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x1003ab7a
pop esi
ret

Function at 0x1003ac7d
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
xor ecx, ecx
push edi
movzx eax, byte [ecx + 0x10046560]
mov edi, dword [ebp + 8]
dec eax
mov edx, eax
sar edx, 3
mov dl, byte [edx + edi]
and eax, 7
test byte [eax*4 + 0x100465d8], dl
setne al
mov byte [ebp + ecx - 0x78], al
inc ecx
cmp ecx, 0x38
jl 0x1003ac87
xor ebx, ebx
push 8
lea eax, [ebp - 8]
push 0
push eax
call sub.MSVCRT.dll_memset
movzx eax, byte [ebx + 0x10046598]
add esp, 0xc
xor ecx, ecx
xor edx, edx
cmp ecx, 0x1c
setge dl
mov edi, eax
dec edx
and edx, 0xffffffe4
add edx, 0x38
cmp eax, edx
jl 0x1003ace4
lea edi, [eax - 0x1c]
mov dl, byte [ebp + edi - 0x78]
mov byte [ebp + ecx - 0x40], dl
inc ecx
inc eax
cmp ecx, 0x38
jl 0x1003accc
xor edi, edi
movzx eax, byte [edi + 0x100465a8]
cmp byte [ebp + eax - 0x41], 0
je 0x1003ad1b
mov eax, edi
cdq
push 6
pop ecx
idiv ecx
mov ecx, dword [edx*4 + 0x100465d8]
lea eax, [ebp + eax - 8]
sar ecx, 2
or byte [eax], cl
inc edi
cmp edi, 0x30
jl 0x1003acf5
movzx eax, byte [ebp - 8]
movzx ecx, byte [ebp - 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 4]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 5]
mov dword [esi + ebx*8], eax
movzx eax, byte [ebp - 7]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov dword [esi + ebx*8 + 4], eax
inc ebx
cmp ebx, 0x10
jl 0x1003acb3
cmp dword [ebp + 0xc], 1
jne 0x1003ad9e
xor edi, edi
lea eax, [esi + 0x7c]
mov ebx, dword [eax - 4]
lea edx, [esi + edi*4]
mov ecx, dword [edx]
mov dword [edx], ebx
mov dword [eax - 4], ecx
mov ebx, dword [eax]
lea ecx, [esi + edi*4 + 4]
mov edx, dword [ecx]
inc edi
mov dword [ecx], ebx
mov dword [eax], edx
inc edi
sub eax, 8
cmp edi, 0x10
jl 0x1003ad7b
pop edi
pop ebx
leave
ret
Function at 0x1003ae17
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
push 0x3f
mov dword [ebp - 4], eax
add edx, 8
mov dword [ebp - 8], 8
pop ecx
ror eax, 4
xor eax, dword [edx - 8]
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x100465f8]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x100467f8]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x100469f8]
and eax, ecx
xor edi, dword [eax*4 + 0x10046bf8]
mov eax, dword [edx - 4]
xor eax, dword [ebp - 4]
xor esi, edi
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x100466f8]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x100468f8]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x10046af8]
and eax, ecx
xor edi, dword [eax*4 + 0x10046cf8]
xor esi, edi
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 0x10
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x100465f8]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x100467f8]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x100469f8]
and eax, ecx
xor edi, dword [eax*4 + 0x10046bf8]
mov eax, dword [edx - 0xc]
xor dword [ebp - 4], edi
xor eax, esi
mov edi, eax
shr edi, 0x18
mov ebx, eax
and edi, ecx
mov edi, dword [edi*4 + 0x100466f8]
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x100468f8]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x10046af8]
and eax, ecx
xor edi, dword [eax*4 + 0x10046cf8]
mov eax, dword [ebp - 4]
xor eax, edi
dec dword [ebp - 8]
mov dword [ebp - 4], eax
jne 0x1003ae39
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
leave
ret
Function at 0x1003d32a
Capabilities:
Hash data using sha256

Disassembly:
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea edx, [eax + ecx]
cmp edx, ecx
push ebx
push edi
lea edi, [esi + 0x50]
mov dword [esi + 4], edx
jae 0x1003d341
inc dword [esi + 8]
mov ebx, 0x80
mov byte [eax + edi], bl
inc dword [esi]
mov eax, dword [esi]
cmp eax, 0x70
jbe 0x1003d37b
mov ecx, ebx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
mov eax, ebx
mov edx, edi
mov dword [esi], ebx
call fcn.1003b10c
pop ecx
push esi
call fcn.1003b1f0
and dword [esi], 0
pop ecx
mov eax, dword [esi]
push 0x70
pop ecx
sub ecx, eax
push ecx
xor ebx, ebx
add eax, edi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
add esp, 0xc
mov ecx, eax
shl eax, 3
push edi
shr ecx, 0x1d
lea ecx, [ecx + edx*8]
mov dword [esi + 4], eax
push 0x70
pop eax
mov edx, edi
mov dword [esi + 8], ecx
call fcn.1003b10c
mov eax, dword [esi + 8]
pop ecx
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 4]
push esi
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], ebx
call fcn.1003b1f0
pop ecx
lea edi, [esi + 0x10]
push edi
push 0x40
pop eax
mov edx, edi
call fcn.1003b10c
pop ecx
push 0x40
push edi
push dword [esp + 0x14]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, esi
pop edi
pop ebx
jmp fcn.1003b175

Function at 0x1003d400
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1003d425
push 0xffffffffffffff99
pop edi
jmp 0x1003d467
lea eax, [ebp - 0x20]
push eax
push 0x20
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1003d43b
push 0xffffffffffffff98
jmp 0x1003d422
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 0x20]
push 0x20
push eax
lea eax, [esi + 4]
call fcn.10038494
push 0x100
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.1003d46c
add esp, 0x14
mov eax, edi
pop edi
leave
ret
Function at 0x1003d495
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea edx, [eax + 0x20]
mov esi, edx
push 8
pop ebx
mov ecx, ebx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x40]
mov esi, 0x4d34d34d
add ecx, esi
add dword [edx], ecx
mov edx, dword [edx]
cmp edx, dword [ebp - 0x2c]
mov ecx, 0x2cb2cb2d
sbb edx, edx
neg edx
sub edx, ecx
add dword [eax + 0x24], edx
mov edx, dword [eax + 0x24]
cmp edx, dword [ebp - 0x28]
mov edx, 0x34d34d34
sbb edi, edi
neg edi
add edi, edx
add dword [eax + 0x28], edi
mov edi, dword [eax + 0x28]
cmp edi, dword [ebp - 0x24]
mov dword [ebp - 0xc], ebx
sbb edi, edi
neg edi
add edi, esi
add dword [eax + 0x2c], edi
mov edi, dword [eax + 0x2c]
cmp edi, dword [ebp - 0x20]
sbb edi, edi
neg edi
sub edi, ecx
add dword [eax + 0x30], edi
mov edi, dword [eax + 0x30]
cmp edi, dword [ebp - 0x1c]
sbb edi, edi
neg edi
add edi, edx
add dword [eax + 0x34], edi
mov edx, dword [eax + 0x34]
cmp edx, dword [ebp - 0x18]
sbb edx, edx
neg edx
add edx, esi
add dword [eax + 0x38], edx
mov edx, dword [eax + 0x38]
cmp edx, dword [ebp - 0x14]
mov esi, eax
sbb edx, edx
neg edx
sub edx, ecx
add dword [eax + 0x3c], edx
mov ecx, dword [eax + 0x3c]
cmp ecx, dword [ebp - 0x10]
mov dword [ebp - 8], esi
sbb ecx, ecx
neg ecx
mov dword [eax + 0x40], ecx
lea ecx, [ebp - 0x2c]
sub ecx, eax
mov edx, dword [esi + 0x20]
add edx, dword [esi]
movzx edi, dx
mov esi, edx
shr esi, 0x10
mov dword [ebp - 4], esi
imul esi, edi
mov ebx, edi
imul ebx, edi
shr ebx, 0x11
add ebx, esi
mov esi, dword [ebp - 4]
imul esi, esi
shr ebx, 0xf
add ebx, esi
mov esi, edx
imul esi, edx
xor ebx, esi
mov esi, dword [ebp - 8]
mov dword [ecx + esi], ebx
add esi, 4
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
jne 0x1003d545
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov esi, ecx
rol esi, 0x10
add esi, edx
rol edi, 0x10
add edi, esi
mov esi, edx
rol esi, 8
add esi, dword [ebp - 0x28]
mov dword [eax], edi
add esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
rol edi, 0x10
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x24]
add edi, esi
rol edx, 0x10
add edx, edi
mov edi, dword [ebp - 0x20]
mov dword [eax + 8], edx
mov edx, esi
rol edx, 8
add edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
rol edi, 0x10
rol esi, 0x10
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1c]
add edi, edx
add esi, edi
mov dword [eax + 0x10], esi
mov esi, edx
rol esi, 8
add esi, dword [ebp - 0x18]
pop edi
add esi, dword [ebp - 0x20]
mov dword [eax + 0x14], esi
mov esi, dword [ebp - 0x18]
rol esi, 0x10
add esi, ecx
rol edx, 0x10
add edx, esi
rol ecx, 8
add ecx, dword [ebp - 0x18]
pop esi
add ecx, dword [ebp - 0x10]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
pop ebx
leave
ret
Function at 0x1003d695
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ebx
push edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
shl eax, 0x10
mov ebx, edi
shr ebx, 0x10
or eax, ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
shr eax, 0x10
mov ebx, ecx
shl ebx, 0x10
or eax, ebx
mov dword [esi + 0xc], eax
mov eax, edx
shl eax, 0x10
mov ebx, ecx
shr ebx, 0x10
or eax, ebx
mov dword [esi + 0x14], eax
mov ebx, edx
shr ebx, 0x10
mov eax, edi
shl eax, 0x10
or eax, ebx
mov dword [esi + 0x1c], eax
mov eax, edi
rol eax, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
rol eax, 0x10
mov dword [esi + 0x28], eax
mov eax, ecx
rol eax, 0x10
mov ebx, edx
mov dword [esi + 0x30], eax
mov eax, edx
xor ebx, ecx
rol eax, 0x10
mov dword [esi + 0x38], eax
mov eax, 0xffff
and ebx, eax
xor ebx, ecx
mov dword [esi + 0x24], ebx
mov dword [esi + 8], edx
mov ebx, edi
xor ebx, edx
and ebx, eax
xor ebx, edx
mov edx, dword [ebp - 4]
xor edx, edi
and edx, eax
xor edx, edi
mov dword [esi + 0x34], edx
mov edx, dword [ebp - 4]
xor edx, ecx
and edx, eax
xor edx, dword [ebp - 4]
and dword [esi + 0x40], 0
push 4
mov dword [esi + 0x10], edi
mov dword [esi], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x3c], edx
pop edi
mov eax, esi
call fcn.1003d495
dec edi
jne 0x1003d74b
pop edi
xor ecx, ecx
lea eax, [esi + 0x20]
pop ebx
lea edx, [ecx - 4]
and edx, 7
mov edx, dword [esi + edx*4]
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 8
jb 0x1003d75c
push 8
lea eax, [esi + 0x20]
pop ecx
mov edx, dword [eax - 0x20]
mov dword [eax + 0x24], edx
mov edx, dword [eax]
mov dword [eax + 0x44], edx
add eax, 4
dec ecx
jne 0x1003d776
mov eax, dword [esi + 0x40]
mov dword [esi + 0x84], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003d79e
mov edx, esi
call fcn.1003d60d
leave
ret
Function at 0x1003d7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x10
push ebx
push esi
push edi
mov ebx, eax
mov esi, ecx
jb 0x1003d82a
mov ecx, dword [ebp + 0xc]
shr ecx, 4
lea eax, [esi + 0x44]
mov dword [ebp - 4], ecx
call fcn.1003d495
movzx edx, word [esi + 0x5a]
mov ecx, dword [esi + 0x50]
shl ecx, 0x10
xor edx, ecx
xor edx, dword [eax]
mov ecx, dword [ebp + 8]
xor edx, dword [ebx]
sub dword [ebp + 0xc], 0x10
mov dword [ecx], edx
movzx edx, word [esi + 0x62]
mov edi, dword [esi + 0x58]
shl edi, 0x10
xor edx, edi
xor edx, dword [ebx + 4]
add ecx, 0x10
xor edx, dword [esi + 0x4c]
add ebx, 0x10
mov dword [ecx - 0xc], edx
movzx edx, word [esi + 0x4a]
mov edi, dword [esi + 0x60]
shl edi, 0x10
xor edx, edi
xor edx, dword [ebx - 8]
mov dword [ebp + 8], ecx
xor edx, dword [esi + 0x54]
mov dword [ecx - 8], edx
movzx edx, word [esi + 0x52]
mov edi, dword [esi + 0x48]
shl edi, 0x10
xor edx, edi
xor edx, dword [ebx - 4]
xor edx, dword [esi + 0x5c]
dec dword [ebp - 4]
mov dword [ecx - 4], edx
jne 0x1003d7bf
cmp dword [ebp + 0xc], 0
je 0x1003d8a9
lea eax, [esi + 0x44]
call fcn.1003d495
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x50]
mov edi, ecx
mov eax, edx
shl eax, 0x10
shr edi, 0x10
xor eax, edi
xor eax, dword [esi + 0x44]
mov edi, dword [esi + 0x60]
mov dword [ebp - 0x14], eax
shl ecx, 0x10
mov eax, edi
shr eax, 0x10
xor eax, ecx
xor eax, dword [esi + 0x4c]
shl edi, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x48]
mov ecx, eax
shr ecx, 0x10
xor ecx, edi
xor ecx, dword [esi + 0x54]
shl eax, 0x10
shr edx, 0x10
xor eax, edx
xor eax, dword [esi + 0x5c]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 8], eax
jbe 0x1003d8a9
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov esi, ebx
sub esi, eax
sub edi, eax
lea eax, [ebp + ecx - 0x14]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, dword [ebp + 0xc]
mov byte [edi + eax], dl
jb 0x1003d897
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10040e46
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10057c90]
jne 0x10040e50
repz ret
jmp fcn.1004108e
Function at 0x4014c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401517
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401517
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401506
cmp esi, edx
jae 0x401517
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4014f4
cmp esi, edx
jae 0x401517
movzx eax, word [esi]
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447c0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.0040b0d1
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x4019db
push eax
push esi
call fcn.0040ecf8
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.0040b279
int3
Function at 0x405650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447f5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
mov edi, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 2
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x405785
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x1000
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edx, dword [ebp - 0x10]
test edx, edx
js 0x40577b
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x4056dd
push edx
mov ecx, esi
call fcn.00403990
lea eax, [ebp - 0x10]
push eax
push dword [esi]
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esi]
test eax, eax
jne 0x4056ff
xor ecx, ecx
jmp 0x405711
push dword [eax - 8]
push eax
call fcn.0042821c
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40577b
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40577b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40574d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x405769
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004013d0
push 0x80004005
call fcn.004013d0
int3