joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101e8ea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push 2
push 0x9c
push 0x1003f18
lea ecx, [ebp - 0x2c]
call fcn.0101a2c6
mov esi, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
mov eax, 0xa3
cmp esi, edi
jne 0x101e930
mov dword [ebp - 0x2c], 0x80070057
mov word [ebp - 0x26], ax
jmp 0x101ea58
mov word [ebp - 0x28], ax
mov eax, 0xa4
cmp dword [ebp + 8], edi
je 0x101e920
push 0x20
pop edx
mov ecx, esi
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x28], ax
call fcn.010219f8
mov dword [ebp - 0x2c], eax
cmp eax, edi
mov eax, 0xa9
jl 0x101e927
mov word [ebp - 0x28], ax
mov eax, dword [esi + 8]
push ebx
lea eax, [eax + eax - 2]
mov dword [ebp - 4], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x101e9cd
cmp ebx, 0xea
jne 0x101ea34
mov edx, dword [ebp - 4]
and dword [ebp - 0x2c], 0
add edx, 3
lea eax, [ebx - 0x2b]
shr edx, 1
mov ecx, esi
mov word [ebp - 0x28], ax
call fcn.010219f8
mov dword [ebp - 0x2c], eax
test eax, eax
lea eax, [ebx - 0x24]
jl 0x101ea53
mov word [ebp - 0x28], ax
mov eax, dword [esi + 8]
lea eax, [eax + eax - 2]
mov dword [ebp - 4], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov edx, dword [esi + 8]
mov ecx, esi
mov ebx, eax
call fcn.01021786
test ebx, ebx
jne 0x101e97e
cmp dword [ebp - 8], 1
je 0x101e9ff
cmp dword [ebp - 8], 2
je 0x101e9ff
mov dword [ebp - 0x2c], 0x8000ffff
mov eax, 0xc9
jmp 0x101ea53
mov edx, dword [ebp - 4]
mov eax, 0xc9
mov word [ebp - 0x28], ax
mov al, dl
not al
test al, 1
mov eax, 0xd5
jne 0x101ea21
mov dword [ebp - 0x2c], 0x8000ffff
jmp 0x101ea53
and dword [ebp - 0x2c], 0
shr edx, 1
mov ecx, esi
mov word [ebp - 0x28], ax
call fcn.01021786
jmp 0x101ea57
test ebx, ebx
jle 0x101ea44
and ebx, 0xffff
or ebx, 0x80070000
mov dword [ebp - 0x2c], ebx
mov eax, 0xbf
mov dword [ebp - 0x24], 1
mov word [ebp - 0x26], ax
pop ebx
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0101a59c
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x101f193
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
push 0x11a
push 0x1003f78
lea ecx, [ebp - 0x38]
call fcn.0101a2c6
xor esi, esi
push 0x40
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
call sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x14], 0x48
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov eax, 0x123
cmp edi, esi
jne 0x101f203
mov dword [ebp - 0x38], 0x80070057
mov word [ebp - 0x32], ax
jmp 0x101f334
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x101f22f
call fcn.0101df25
mov dword [ebp - 0x38], eax
mov eax, 0x125
jmp 0x101f1fa
mov eax, 0x125
mov word [ebp - 0x34], ax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push 8
push edi
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x101f261
call fcn.0101df25
mov dword [ebp - 0x38], eax
mov eax, 0x126
jmp 0x101f1fa
mov eax, 0x126
mov word [ebp - 0x34], ax
inc eax
cmp dword [ebp - 0xc], 4
je 0x101f27a
mov dword [ebp - 0x38], 0x80004005
jmp 0x101f1fa
cmp dword [ebp - 0x10], 2
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], ax
je 0x101f2fb
cmp dword [ebp - 4], esi
je 0x101f29a
cmp dword [ebp - 4], 0xffffffff
je 0x101f29a
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
push 2
push 2
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x101f2c1
call fcn.0101df25
mov dword [ebp - 0x38], eax
mov eax, 0x12a
jmp 0x101f1fa
mov eax, 0x12a
mov word [ebp - 0x34], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x101f2f4
call fcn.0101df25
mov dword [ebp - 0x38], eax
mov eax, 0x12b
jmp 0x101f1fa
mov eax, 0x12b
jmp 0x101f325
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x101f320
call fcn.0101df25
mov dword [ebp - 0x38], eax
mov eax, 0x12f
jmp 0x101f1fa
mov eax, 0x12f
mov ecx, dword [ebp - 8]
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], esi
mov dword [eax], ecx
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 4], esi
je 0x101f34a
cmp dword [ebp - 4], 0xffffffff
je 0x101f34a
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x38]
call fcn.0101a59c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x101f4a3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
inc ebx
push ebx
push 0x8c
push 0x1003fd4
lea ecx, [ebp - 0x28]
call fcn.0101a2c6
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], ebx
mov eax, 0x8f
cmp esi, edi
jne 0x101f4e5
mov dword [ebp - 0x28], 0x80070057
mov word [ebp - 0x22], ax
jmp 0x101f5c7
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
call fcn.0101f3eb
mov dword [ebp - 0x28], eax
cmp eax, edi
mov eax, 0x92
jl 0x101f4dc
mov word [ebp - 0x24], ax
cmp dword [ebp - 0x28], ebx
jne 0x101f515
add eax, 4
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
jmp 0x101f5c7
mov eax, dword [esi]
test al, 0xb
jne 0x101f51f
or eax, ebx
mov dword [esi], eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001009
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x101f548
call fcn.0101df25
mov dword [ebp - 0x28], eax
mov eax, 0xa0
jmp 0x101f4dc
push dword [ebp - 4]
mov eax, 0xa0
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
call fcn.0101f439
mov dword [ebp - 0x28], eax
cmp eax, edi
mov eax, 0xa3
jl 0x101f4dc
mov word [ebp - 0x24], ax
cmp dword [ebp - 0x28], edi
jne 0x101f5bd
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and eax, 0x3ff
cmp ax, 0xd
jne 0x101f5a9
mov eax, dword [esi]
test bl, al
je 0x101f5a1
cmp dword [ebp - 4], 8
je 0x101f5a1
and eax, 0xffffffcf
mov dword [esi], eax
mov eax, 0xb4
jmp 0x101f509
and eax, 0xffffffef
or eax, 0x20
mov dword [esi], eax
mov eax, dword [esi]
and eax, 0xffffffef
or eax, 0x20
mov dword [esi], eax
mov eax, 0xba
jmp 0x101f509
mov eax, dword [esi]
and eax, 0xffffffdf
or eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0101a59c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1020834
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
push 0x23e
push 0x1004190
lea ecx, [ebp - 0x38]
call fcn.0101a2c6
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x18]
cmp edi, esi
je 0x102086a
mov dword [edi], esi
mov ebx, dword [ebp + 8]
mov eax, 0x246
cmp ebx, esi
jne 0x1020886
mov dword [ebp - 0x38], 0x80070057
mov word [ebp - 0x32], ax
jmp 0x102093a
mov word [ebp - 0x34], ax
mov eax, 0x247
cmp dword [ebp + 0xc], esi
je 0x1020876
mov word [ebp - 0x34], ax
inc eax
cmp edi, esi
je 0x1020876
push dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], ax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
cmp eax, esi
jne 0x10208c0
call fcn.0101df25
mov dword [ebp - 0x38], eax
mov eax, 0x24b
jmp 0x102087d
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x24b
push 0x10206da
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], cx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x102092c
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x102091e
test dword [eax + 0x1c], 0x4000000
je 0x102091e
push 0x1004088
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e9b8
mov dword [ebp - 0x38], 1
mov eax, 0x258
jmp 0x1020936
mov dword [edi], eax
mov dword [ebp - 0x38], esi
mov eax, 0x25c
mov word [ebp - 0x34], ax
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
call fcn.0101a59c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1022a25
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 1
push 0xb9
push 0x10088a0
lea ecx, [ebp - 0x24]
call fcn.0101a2c6
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov eax, 0xbb
jne 0x1022a66
mov dword [ebp - 0x24], 0x80070057
mov word [ebp - 0x1e], ax
jmp 0x1022b16
mov esi, dword [ebp + 8]
push ebx
push dword [esi + 8]
mov dword [esi + 4], edi
push 2
push 0x46f
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], ax
call edi
push 0x1e
push 1
push 0x46b
push dword [esi + 4]
call edi
push ebx
push ebx
push esi
push 0x10227e7
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x1022ac0
cmp eax, 0xffffffff
je 0x1022ac0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x1022acf
cmp eax, 0xffffffff
jne 0x1022ae2
call fcn.0101df25
mov dword [ebp - 0x24], eax
mov eax, 0xce
mov word [ebp - 0x1e], ax
jmp 0x1022b15
mov eax, 0xce
mov word [ebp - 0x20], ax
mov eax, dword [esi + 0x20]
push 0xc8
push eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1022b15
push ebx
push 2
push 0x466
push dword [esi + 4]
mov dword [esi + 0x18], 1
call edi
pop ebx
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.0101a59c
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x405596
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x441e68], 2
jl 0x4055bb
movaps xmm0, xmmword [0x430460]
movaps xmmword [0x43ab80], xmm0
movaps xmm0, xmmword [0x430450]
movaps xmmword [0x43ab90], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405967
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x430428]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4055c9
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x405ce7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405d19
test dl, 7
je 0x405d19
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43aba0]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405cf9
cmp esi, 8
jb 0x405da9
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x43aba0]
xor ecx, dword [eax*4 + 0x43afa0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43b3a0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43bba0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43bfa0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43c3a0]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43b7a0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43c7a0]
mov ebx, ecx
sub edi, 1
jne 0x405d28
pop edi
test esi, esi
je 0x405dc5
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43aba0]
inc edx
sub esi, 1
jne 0x405dad
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x405f32
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push 0x20
pop ebp
cmp dword [esi], 2
jne 0x405f89
mov eax, dword [esi + 4]
push edi
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x4c]
push eax
push ebp
push dword [esp + 0x58]
call fcn.00406624
mov dword [esi + 4], ebx
mov edx, ebx
mov edi, ebx
movzx eax, byte [esp + edx + 0x10]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebp
jb 0x405f6f
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x405fb5
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
add esi, 4
push eax
push ebp
push esi
push ebp
push dword [esp + 0x54]
call fcn.00406624
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041dd50
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x4063cd
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x4065c9
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x406431
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040db7e
test al, al
je 0x406431
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0041e69a
add esp, 0xc
test eax, eax
je 0x4065d3
inc edi
add esi, 0x178
cmp edi, 4
jb 0x4063f7
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.004106b4
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00421ea0
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0040682f
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040ddac
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041dd50
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041dd50
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041dd50
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041dd50
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040dcb7
cmp dword [esp + 0x290], ebp
je 0x406557
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041dd50
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x40658a
push 8
push ebp
push esi
call fcn.0041dbf0
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x40656e
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040ddac
cmp dword [esp + 0x288], 0
je 0x4065bb
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040d252
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040ddac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041dd50
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040dcb7
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041dd50
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041dd50
add esp, 0x18
jmp 0x406539
Function at 0x406624
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1bc
push ebx
mov ebx, dword [esp + 0x1c8]
push ebp
push esi
push edi
push 0x40
pop edi
cmp ebx, edi
jbe 0x406679
lea eax, [esp + 0x164]
push eax
call fcn.0040e979
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040e9bf
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040e88a
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x406680
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4066ab
mov edx, dword [esp + 0x1e8]
cmp byte [edx], 0
je 0x4066ab
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x40670c
xor edx, edx
test ebx, ebx
je 0x4066cb
mov esi, eax
lea eax, [esp + 0x14]
sub esi, eax
lea ecx, [esp + 0x14]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x4066b9
cmp ebx, edi
jae 0x4066e5
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041dbf0
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040e979
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040e9bf
mov edx, dword [esp + 0x1e8]
test ebp, ebp
je 0x406726
cmp byte [edx], 0
jne 0x406726
push 0x1a
pop ecx
lea esi, [esp + 0x94]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1dc]
lea eax, [esp + 0x98]
push dword [esp + 0x1dc]
push eax
call fcn.0040e9bf
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040e88a
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x40677a
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x40677a
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x4067e0
test ebx, ebx
je 0x40679c
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
sub edx, eax
xor esi, esi
lea ecx, [esp + 0x14]
add ecx, esi
mov al, byte [edx + ecx]
xor al, 0x5c
inc esi
mov byte [ecx], al
cmp esi, ebx
jb 0x40678a
cmp ebx, 0x40
jae 0x4067b8
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041dbf0
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040e979
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040e9bf
mov eax, dword [esp + 0x1f0]
test ebp, ebp
je 0x4067fa
cmp byte [eax], 0
jne 0x4067fa
push 0x1a
pop ecx
lea esi, [esp + 0xfc]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040e9bf
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040e88a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x40682f
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x18c
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x406849
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041dd50
add esp, 0xc
mov dword [ebp + esi - 0x44], 0x1000000
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406624
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041dd50
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov byte [ebp + 0x6b], 0
mov dword [ebp + 0x4c], eax
xor esi, esi
mov byte [ebp + 0x6f], 0
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
mov edi, dword [ebp + esi + 0x4c]
test edi, edi
je 0x406915
lea eax, [ebp + 0x6f]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp + 0x6b]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406624
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041dd50
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x20]
xor byte [ebp + ecx], al
inc ecx
cmp ecx, ebx
jb 0x406903
sub edi, 1
jne 0x4068c6
push ebx
lea eax, [ebp]
push eax
push dword [ebp + esi + 0x40]
call fcn.0041dd50
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x4068be
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040ddac
push ebx
lea eax, [ebp]
push eax
call fcn.0040ddac
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.0040ddac
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040ddac
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20
Function at 0x40902f
Capabilities:
Move file

Disassembly:
mov eax, 0x42f4c3
call fcn.0041cafc
mov eax, 0x5024
call fcn.0041cbd0
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4030]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4091ee
cmp eax, ebx
jae 0x4091ee
push ebx
lea eax, [ebp - 0x5030]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4091ee
cmp eax, ebx
jae 0x4091ee
lea eax, [ebp - 0x4030]
push eax
call fcn.0040b61b
mov dword [ebp + 8], eax
lea eax, [ebp - 0x5030]
push eax
call fcn.0040b61b
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x4091ee
push edi
push dword [ebp + 8]
call fcn.00410853
test eax, eax
je 0x4091ee
push edi
push esi
call fcn.0040b61b
push eax
call fcn.00410853
test eax, eax
jne 0x4091ee
mov word [ebp - 0x100c], ax
mov edi, ebx
test ax, ax
jne 0x409150
push 0x800
push esi
lea eax, [ebp - 0x100c]
push eax
call fcn.0040ee95
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x100c]
push eax
call fcn.0040b61b
push eax
call fcn.00403db0
add esp, 0x10
lea eax, [ebp - 0x100c]
push eax
call fcn.00409c01
test al, al
je 0x409135
xor eax, eax
mov word [ebp - 0x100c], ax
jmp 0x40913c
mov ax, word [ebp - 0x100c]
add edi, 0x7b
cmp edi, 0x2710
jl 0x4090e3
test ax, ax
je 0x4091ee
mov edi, 0x800
lea eax, [ebp - 0x3030]
push edi
push esi
push eax
call fcn.0040ee95
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x3030]
push eax
call fcn.0040b691
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x3030]
push eax
call edi
test eax, eax
je 0x4091ee
lea ecx, [ebp - 0x2030]
call fcn.00409203
push esi
mov dword [ebp - 4], ebx
call fcn.00409c01
test al, al
jne 0x4091b5
push 0x12
push esi
lea ecx, [ebp - 0x2030]
call fcn.004092f3
mov bl, al
lea eax, [ebp - 0x3030]
push eax
lea eax, [ebp - 0x100c]
push eax
call edi
test bl, bl
je 0x4091df
lea ecx, [ebp - 0x2030]
call fcn.004092a5
lea ecx, [ebp - 0x2030]
call fcn.004093ec
lea ecx, [ebp - 0x2030]
call fcn.00409239
mov al, 1
jmp 0x4091f0
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4