joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042680
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x468
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x464], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x5e]
push ecx
mov word [esp + 0x60], ax
call fcn.1007dcf0
add esp, 0xc
push 1
push 0x1a
lea edx, [esp + 0x5c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
movzx ecx, word [esp + eax + 0x54]
mov word [eax + 0x100e08f8], cx
add eax, 2
test cx, cx
jne 0x100426c1
push esi
push edi
mov ecx, 0xd
mov esi, str.Software360360se6Chrome
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
push connect
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x40], 1
mov dword [esp + 0x3c], 0
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop edi
pop esi
test eax, eax
jne 0x100427b2
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.last_install_path
push ecx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100427a8
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x25c]
mov word [eax + 0x100e08f8], cx
add eax, 2
test cx, cx
jne 0x10042770
lea edx, [esp + 0x25c]
push edx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x100427a8
mov dword [0x100d81d4], 0
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x100e08f8
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100427c0
sub eax, edx
sar eax, 1
cmp word [eax*2 + 0x100e08f6], 0x5c
jne 0x100427e4
xor edx, edx
mov word [eax*2 + 0x100e08f6], dx
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.10079a05
add esp, 0x468
ret
Function at 0x100443a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a7720
push 0x1007ddd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100b0380]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
cmp ebx, esi
je 0x100444b7
mov dword [ebp - 4], esi
cmp eax, 0xffffffff
jne 0x100443ff
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x100443f0
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
mov eax, str.Application360se.exe
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10044410
sub eax, edx
sar eax, 1
mov edi, eax
cmp dword [ebp + 8], edi
jb 0x100444b0
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
sub eax, edi
cmp esi, eax
ja 0x100444b0
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp edx, edi
jae 0x10044486
lea ecx, [edx + esi]
movzx eax, word [ebx + ecx*2]
mov ecx, str.Application360se.exe
movzx ecx, word [ecx + edx*2]
cmp ax, cx
je 0x10044481
cmp ax, 0x41
jb 0x10044468
cmp ax, 0x5a
ja 0x10044468
movzx ecx, cx
sub ecx, 0x20
jmp 0x1004447a
cmp ax, 0x61
jb 0x10044484
cmp ax, 0x7a
ja 0x10044484
movzx ecx, cx
add ecx, 0x20
movzx eax, ax
cmp eax, ecx
jne 0x10044484
inc edx
jmp 0x10044438
cmp edx, edi
jne 0x100444a4
lea eax, [ebx + esi*2]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
jmp 0x1004442a
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10045f90
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x814
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
mov ebx, dword [esp + 0x81c]
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x1e]
push ecx
mov dword [esp + 0x14], 1
mov word [esp + 0x20], ax
call fcn.1007dcf0
mov edx, dword [0x100e38a0]
xor edx, dword [0x100e389c]
mov ecx, dword [0x100e3a94]
add esp, 0xc
mov dword [esp + 0x10], 0x208
cmp ecx, edx
je 0x10046021
mov eax, dword [0x100e3898]
xor eax, dword [0x100e3894]
lea edx, [esp + 0x14]
add eax, ecx
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x10]
push ecx
push str.UninstallString
push str.Software360360se6UpdateClientState02E720BD_2B50_4404_947C_65DBE64F6970
push connect
call eax
test eax, eax
jne 0x100460da
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.......
lea edx, [esp + 0x1c]
push edx
call edi
push str.componentsguard360bpsvc.exe
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100460a2
lea edx, [esp + 0x10]
push edx
lea edi, [esp + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
call fcn.10013e60
add esp, 4
cmp dword [esp + 8], 0
je 0x100460a2
lea edx, [esp + 0x18]
mov edi, esi
call fcn.1006d260
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.10079a05
add esp, 0x814
ret
mov eax, dword [0x100d9234]
mov ecx, dword [str.v_ds_dr_dd_d]
push ebx
push 0
push 0x32a
push eax
push ecx
xor ecx, ecx
call fcn.1002d3f0
add esp, 0x14
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.10079a05
add esp, 0x814
ret
mov edx, dword [0x100d9234]
mov eax, dword [str.v_ds_dr_dd_d]
push ebx
push 0
push 0x32b
push edx
push eax
xor ecx, ecx
call fcn.1002d3f0
mov ecx, dword [esp + 0x828]
add esp, 0x14
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10079a05
add esp, 0x814
ret
Function at 0x10047080
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x100d9604]
sub esp, 0x68
cmp eax, 1
je 0x10047155
test eax, eax
je 0x10047155
xor eax, eax
push str.GetNativeSystemInfo
push 0x1009ee2c
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100470e9
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x100470f4
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x18], 2
ja 0x1004710e
mov dword [0x100d9604], 1
mov eax, 1
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.1007dcf0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x10047149
cmp dword [esp + 0x34], 0
ja 0x10047149
jb 0x100470fb
cmp dword [esp + 0x30], 0x80000000
jbe 0x100470fb
mov dword [0x100d9604], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10047160
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x10092d70
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ecx, ecx
xor ebp, ebp
mov eax, 0x16
mov edx, 2
mul edx
seto cl
push 0x100da440
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
lea esi, [ebp + 0x42]
neg ecx
or ecx, eax
push ecx
call fcn.10079cfe
mov edi, eax
add esp, 8
mov dword [esp + 0x1c], edi
cmp edi, ebp
je 0x100471f8
mov edx, 0x100a226c
xor eax, eax
mov ecx, edi
sub edx, edi
lea esp, [esp]
mov bx, word [edx + ecx]
xor bx, si
mov word [ecx], bx
mov ebx, eax
xor ebx, 0x2a
add ebx, esi
and ebx, 0xff
inc eax
add ecx, 2
cmp eax, 0x15
mov esi, ebx
jl 0x100471d0
xor eax, eax
mov word [edi + 0x2a], ax
mov dword [esp + 0x28], ebp
mov edx, dword [0x100e38a0]
xor edx, dword [0x100e389c]
mov ecx, dword [0x100e38f0]
cmp ecx, edx
je 0x10047232
mov eax, dword [0x100e3898]
xor eax, dword [0x100e3894]
push ebp
push ebp
push 3
push ebp
push 3
push 0x80
add eax, ecx
push edi
call eax
mov esi, eax
jmp 0x10047234
xor esi, esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x28], 2
cmp edi, ebp
je 0x1004724e
push edi
call fcn.10079d09
add esp, 4
mov dword [esp + 0x1c], ebp
or eax, 0xffffffff
cmp esi, eax
je 0x10047281
mov dword [esp + 0x28], eax
cmp esi, ebp
je 0x10047268
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebp
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x28], eax
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebp
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x10047710
Capabilities:
Get token membership

Disassembly:
sub esp, 0x124
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
xor ebx, ebx
cmp dword [0x100e4ba4], ebx
jne 0x10047801
push 0x110
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.1007dcf0
mov edx, dword [0x100e38a0]
xor edx, dword [0x100e389c]
mov ecx, dword [0x100e3978]
add esp, 0xc
mov dword [esp + 0x10], 0x114
cmp ecx, edx
je 0x100477f7
mov eax, dword [0x100e3898]
xor eax, dword [0x100e3894]
add eax, ecx
lea ecx, [esp + 0x10]
push ecx
call eax
cmp eax, ebx
je 0x100477f7
mov eax, 5
cmp dword [esp + 0x14], eax
jbe 0x100477ed
lea edx, [esp + 4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
mov byte [esp + 0x31], al
push 2
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [0x100e4ba8], eax
cmp eax, ebx
je 0x100477f7
mov ecx, dword [esp + 4]
push 0x100e4ba8
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x100477f7
mov dword [0x100e4ba8], 1
mov dword [0x100e4ba4], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [0x100e4ba8]
pop ebx
xor ecx, esp
call fcn.10079a05
add esp, 0x124
ret
Function at 0x10047fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10093120
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebp, ebp
mov ebx, 0x100a22c4
sub ebx, 0x65bfd694
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
jmp 0x10048024
mov ebx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
mov esi, 0xb6
cmp ebx, ebp
je 0x10048098
xor ecx, ecx
mov eax, 0xe
mov edx, 2
mul edx
seto cl
push 0x100da440
neg ecx
or ecx, eax
push ecx
call fcn.10079cfe
add esp, 8
mov edi, eax
mov dword [esp + 0x28], edi
cmp eax, ebp
je 0x10048098
xor ecx, ecx
lea edx, [ebx + 0x65bfd694]
lea esp, [esp]
mov bx, word [edx]
xor bx, si
mov word [eax + ecx*2], bx
mov ebx, ecx
xor ebx, 0x2a
add ebx, esi
and ebx, 0xff
inc ecx
add edx, 2
cmp ecx, 0xd
mov esi, ebx
jl 0x10048070
xor ecx, ecx
mov word [eax + 0x1a], cx
mov dword [esp + 0x40], ebp
mov edx, dword [0x100e38a0]
xor edx, dword [0x100e389c]
mov ecx, dword [0x100e3a64]
cmp ecx, edx
je 0x100480c7
mov eax, dword [0x100e3898]
xor eax, dword [0x100e3894]
push ebp
add eax, ecx
push edi
call eax
mov esi, eax
jmp 0x100480c9
xor esi, esi
mov dword [esp + 0x40], 0xffffffff
cmp edi, ebp
je 0x100480e2
push edi
call fcn.10079d09
add esp, 4
mov dword [esp + 0x28], ebp
cmp esi, ebp
je 0x1004811a
mov ecx, dword [0x100e38a0]
xor ecx, dword [0x100e389c]
mov eax, dword [0x100e3a68]
cmp eax, ecx
je 0x100481b8
mov ecx, dword [0x100e3898]
xor ecx, dword [0x100e3894]
lea edx, [esp + 0x18]
push edx
push esi
add ecx, eax
call ecx
jmp 0x100481b8
xor ecx, ecx
mov eax, 0xd
mov edx, 2
mul edx
seto cl
push 0x100da440
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov esi, 0xc0
neg ecx
or ecx, eax
push ecx
call fcn.10079cfe
mov ebx, eax
add esp, 8
mov dword [esp + 0x30], ebx
cmp ebx, ebp
je 0x10048188
mov edx, 0x100a22e0
xor eax, eax
mov ecx, ebx
sub edx, ebx
nop
mov di, word [edx + ecx]
xor di, si
mov word [ecx], di
mov edi, eax
xor edi, 0x2a
add edi, esi
and edi, 0xff
inc eax
add ecx, 2
cmp eax, 0xc
mov esi, edi
jl 0x10048160
xor eax, eax
mov word [ebx + 0x18], ax
mov dword [esp + 0x40], 1
push ebx
mov edi, 0x1009edfc
call fcn.10047e40
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], 0xffffffff
cmp ebx, ebp
je 0x100481b8
push ebx
call fcn.10079d09
add esp, 4
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x100481e1
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0xa
mov dword [esp + 0x1c], eax
jl 0x10048020
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100488f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
cmp eax, 5
jne 0x10048903
mov ecx, 0x144
lea ebx, [ecx - 0x5d]
jmp 0x1004899e
cmp eax, 6
jne 0x10048917
mov ecx, 0x21f
mov ebx, 0xf1
jmp 0x1004899e
cmp eax, 4
jne 0x10048928
mov ecx, 0x2a7
mov ebx, 0xfb
jmp 0x1004899e
cmp eax, 3
jne 0x10048939
mov ecx, 0x2a7
mov ebx, 0xfb
jmp 0x1004899e
cmp eax, 1
jne 0x1004894a
mov ecx, 0x385
mov ebx, 0x180
jmp 0x1004899e
cmp eax, 2
jne 0x1004895b
mov ecx, 0x2f8
mov ebx, 0x1c6
jmp 0x1004899e
cmp eax, 7
jne 0x1004896c
mov ecx, 0x191
mov ebx, 0x36f
jmp 0x1004899e
cmp eax, 0x23
jne 0x1004897b
mov ecx, 0x1a7
lea ebx, [eax + 0x61]
jmp 0x1004899e
cmp eax, 0x24
jne 0x1004898c
mov ecx, 0x20b
mov ebx, 0x2dc
jmp 0x1004899e
add eax, 0xfffffff8
cmp eax, 0x16
ja 0x100489c5
mov ecx, 0x3df
mov ebx, 0x77
xor eax, eax
test edx, edx
je 0x100489c7
test esi, esi
jbe 0x100489b0
xor byte [eax + edx], cl
inc eax
cmp eax, esi
jb 0x100489a8
xor eax, eax
test esi, esi
jbe 0x100489be
xor byte [eax + edx], bl
inc eax
cmp eax, esi
jb 0x100489b6
mov eax, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x1004c4f0
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x238]
push ebx
mov ebx, dword [esp + 0x238]
push ebp
push esi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x3a]
push edx
mov dword [esp + 0x18], eax
xor esi, esi
mov word [esp + 0x3c], cx
call fcn.1007dcf0
mov eax, dword [ebx]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push eax
call ebp
test eax, eax
je 0x1004c60e
push 1
push 0x1a
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1004c60e
xor eax, eax
xor ecx, ecx
push edi
lea esi, [ecx + 8]
lea edi, [esp + 0x14]
mov word [esp + 0x14], cx
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
call fcn.100484d0
mov edx, edi
push edx
lea ecx, [esp + 0x38]
call fcn.1004a3b0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 4
mov eax, edi
push eax
lea ecx, [esp + 0x38]
push ecx
call esi
lea edx, [esp + 0x34]
push edx
call ebp
pop edi
test eax, eax
je 0x1004c628
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [esp + 0x34]
push eax
call esi
mov ebx, dword [ebx]
push 0
lea ecx, [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
test esi, esi
je 0x1004c62a
lea eax, [esp + 0x30]
lea edx, [eax + 2]
jmp 0x1004c5f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004c5f0
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
call fcn.1006d1c0
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.10079a05
add esp, 0x230
ret
xor eax, eax
mov ecx, dword [esp + 0x238]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10079a05
add esp, 0x230
ret
Function at 0x1004c8e0
Capabilities:
Parse pe header
Read file via mapping
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
push ebx
mov dword [esp + 0xc], ebx
call fcn.1007bf02
push eax
call fcn.10079c3c
add esp, 8
cmp dword [0x100e4bb8], ebx
je 0x1004c90f
pop ebp
lea eax, [ebx + 1]
pop ebx
add esp, 8
ret
test ebp, ebp
je 0x1004cad9
cmp dword [esp + 0x18], ebx
je 0x1004cad9
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004cae1
push edi
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x1004cab7
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1004caac
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1004caa5
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x1004caa5
mov ecx, dword [esp + 0x20]
add dword [eax + 0x9c], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1004caa5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1004caea
push 2
push 0
push ebp
mov eax, 0x100e39e8
call fcn.100576d0
cmp eax, 0xffffffff
je 0x1004cac8
xor esi, esi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], esi
jbe 0x1004ca8d
jmp 0x1004ca10
mov edi, dword [esp + 0x20]
sub edi, esi
cmp edi, 0x200000
jbe 0x1004ca23
mov edi, 0x200000
push 0x100da440
push edi
call fcn.10079cfe
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1004ca81
xor esi, esi
test edi, edi
jbe 0x1004ca60
cmp esi, 0x10
jge 0x1004ca60
call fcn.10079c4e
cdq
mov ecx, 0xff
idiv ecx
inc esi
mov byte [esi + ebx - 1], dl
cmp esi, edi
jb 0x1004ca45
push 0
lea edx, [esp + 0x18]
push edx
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [esp + 0x10], edi
push ebx
call fcn.10079d09
mov esi, dword [esp + 0x14]
add esp, 4
cmp esi, dword [esp + 0x20]
jb 0x1004ca10
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
push ebp
mov dword [0x100e4bb8], esi
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x10]
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1004cb00
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edi, edi
jbe 0x1004cbb2
lea ebx, [ebx]
mov cl, byte [eax + esi]
xor cl, byte [0x100d7cf8]
inc eax
xor cl, dl
xor cl, 0xd8
mov byte [eax + esi - 1], cl
xor cl, byte [0x100d7cf9]
xor cl, dl
xor cl, 0xd8
mov byte [eax + esi - 1], cl
xor cl, byte [0x100d7cfa]
xor cl, dl
xor cl, 0xd8
mov byte [eax + esi - 1], cl
xor cl, byte [0x100d7cfb]
xor cl, dl
xor cl, 0xd8
mov byte [eax + esi - 1], cl
xor cl, byte [0x100d7cfc]
xor cl, dl
xor cl, 0xd8
mov byte [eax + esi - 1], cl
xor cl, byte [0x100d7cfd]
xor cl, dl
xor cl, 0xd8
mov byte [eax + esi - 1], cl
xor cl, byte [0x100d7cfe]
xor cl, dl
xor cl, 0xd8
mov byte [eax + esi - 1], cl
xor cl, byte [0x100d7cff]
xor cl, dl
xor cl, 0xd8
mov byte [eax + esi - 1], cl
xor cl, byte [0x100d7d00]
xor cl, dl
xor cl, 0xd8
mov byte [eax + esi - 1], cl
xor cl, byte [0x100d7d01]
xor cl, dl
xor cl, 0xd8
mov byte [eax + esi - 1], cl
cmp eax, edi
jb 0x1004cb10
ret

Function at 0x1004cbc0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x10094189
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov edi, 1
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x28]
push eax
call fcn.1001a210
xor bl, bl
xor eax, eax
mov dword [esp + 0x14], edi
test esi, esi
jbe 0x1004cc1e
xor bl, byte [ebp + eax*2]
add eax, edi
cmp eax, esi
jb 0x1004cc14
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
lea ebp, [eax + eax + 2]
push ebp
call fcn.10079b72
mov esi, eax
add esp, 4
test esi, esi
je 0x1004cc95
push ebp
push 0
push esi
call fcn.1007dcf0
mov ecx, ebp
add esp, 0xc
shr ecx, 1
je 0x1004cc5e
cmp ecx, 0x7fffffff
ja 0x1004cc5e
mov edx, dword [esp + 0x30]
push edx
mov edx, esi
call fcn.1006b400
lea edi, [ebp - 2]
mov dl, bl
call fcn.1004cb00
lea ecx, [ebp - 2]
mov eax, esi
call fcn.10050760
mov ebx, eax
test ebx, ebx
je 0x1004cc8a
mov edi, dword [esp + 0x28]
push ebx
push 0x100a2608
call fcn.1001b8b0
add esp, 8
push esi
call fcn.10079c70
add esp, 4
jmp 0x1004cc99
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x1004cca6
push ebx
call fcn.10079c70
add esp, 4
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004ccce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1004f220
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.1007dcf0
xor eax, eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
add esp, 0xc
lea eax, [esp + 4]
xor edx, edx
push eax
mov word [esp + 8], dx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0x14]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
movzx edx, word [esp + 0xc]
movzx eax, word [esp + 0xa]
movzx ecx, word [esp + 6]
push edx
movzx edx, word [esp + 8]
push eax
push ecx
push edx
push str.4EA41195396D49c2A87A1604628430ED
lea eax, [esp + 0x28]
push eax
mov ecx, eax
push str._s_s__d_d_d_d.ecl
push ecx
mov ecx, 0x104
call fcn.10018220
add esp, 0x20
xor esi, esi
push esi
push 0x80
push 1
push esi
push 1
push 0x40000000
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1004f2e9
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10079a05
add esp, 0x21c
ret