joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4044bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004029ee
and dword [ebp - 4], 0
cmp dword [0x40e9b0], 0
mov ebx, eax
jne 0x40456c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40461d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40461d
push eax
call fcn.0040297c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e9b0], eax
call esi
push eax
call fcn.0040297c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e9b4], eax
call esi
push eax
call fcn.0040297c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e9b8], eax
call esi
push eax
call fcn.0040297c
pop ecx
mov dword [0x40e9c0], eax
test eax, eax
je 0x40456c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040297c
pop ecx
mov dword [0x40e9bc], eax
mov eax, dword [0x40e9bc]
cmp eax, ebx
je 0x4045c4
cmp dword [0x40e9c0], ebx
je 0x4045c4
push eax
call fcn.004029f7
push dword [0x40e9c0]
mov esi, eax
call fcn.004029f7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4045c4
test edi, edi
je 0x4045c4
call esi
test eax, eax
je 0x4045bb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4045bb
test byte [ebp - 0xc], 1
jne 0x4045c4
or dword [ebp + 0x10], 0x200000
jmp 0x4045fd
mov eax, dword [0x40e9b4]
cmp eax, ebx
je 0x4045fd
push eax
call fcn.004029f7
pop ecx
test eax, eax
je 0x4045fd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4045fd
mov eax, dword [0x40e9b8]
cmp eax, ebx
je 0x4045fd
push eax
call fcn.004029f7
pop ecx
test eax, eax
je 0x4045fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e9b0]
call fcn.004029f7
pop ecx
test eax, eax
je 0x40461d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40461f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x2ebe7183
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x408471aa
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
nop
nop
push ebp
mov esi, esp
mov esp, dword [edi - 0x37f274f8]
rol byte [eax + 0x14], 0x50
sbb dword [edi], 0x40
push 0x40d274
push ecx
call dword [0xd3c180]
mov eax, dword [0x99eeac]
add cl, 0xd3
add byte [ecx + 0x99eeac], ah
add esp, 0xc
test eax, eax
je 0x401787
push eax
push str.Total_of__d_requests_completed_n
mov dword [0xeec164], edx
adc eax, 0xeec164
xor dword [esi - 0xfe95f8], 0x15
jo 0x40174e
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
push ebp
mov eax, ebx
sub esp, 0x990000b8
mov eax, dword [0xc4cc78]
inc eax
add byte [eax - 0x7e3c74ab], dl
in al, dx
mov eax, 0xa1990000
js 0x401768
les eax, [eax]
test eax, eax
mov eax, dword [0x41404c]
je 0x4017bb
push 0x413040
push eax
call 0x7f115850
mov cx, word [0x4102d6]
jmp 0x4017cf
mov ebp, dword [ebp + 0x411800]
push edx
push eax
call 0x40eb50
in al, dx
mov esp, dword [edx + ebx + 0x17]
inc ecx
sub eax, 0x411808a3
add byte [ecx + 0x6f0260], ah
mov dword [0x411808], eax
mov eax, dword [0x6f0260]
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_printf]
ljmp 0x410b

Function at 0x405640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x40563c
movzx ecx, word [edx + 0x26]
nop
jmp 0x405650
mov esi, dword [edx + 0x28]
jmp 0x405663
xor edi, edi
jmp 0x405676
xor eax, eax
jmp 0x405687
lodsb al, byte [esi]
nop
cmp al, 0x61
jmp 0x405698
jl 0x4056ab
nop
nop
jmp 0x4056a9
sub al, 0x20
jmp 0x4056bb
ror edi, 0xd
jmp 0x4056c9
add edi, eax
jmp 0x4056d8
dec ecx
nop
jne 0x405665
nop
jmp 0x4056f1
push edx
jmp 0x4056fe
push edi
mov edx, dword [edx + 0x10]
nop
mov eax, dword [edx + 0x3c]
nop
jmp 0x405716
add eax, edx
nop
jmp 0x405724
mov eax, dword [eax + 0x78]
jmp 0x405732
test eax, eax
nop
je 0x40589b
nop
add eax, edx
jmp 0x40574a
push eax
nop
jmp 0x405758
mov ebx, dword [eax + 0x20]
nop
mov ecx, dword [eax + 0x18]
jmp 0x405769
add ebx, edx
nop
jmp 0x40577a
test ecx, ecx
nop
je 0x405898
nop
jmp 0x405795
nop
dec ecx
mov esi, dword [ebx + ecx*4]
jmp 0x4057a6
add esi, edx
nop
xor edi, edi
nop
jmp 0x4057b6
xor eax, eax
jmp 0x4057c2
ror edi, 0xd
lodsb al, byte [esi]
nop
jmp 0x4057d3
add edi, eax
cmp al, ah
jne 0x4057b6
jmp 0x4057e8
add edi, dword [ebp - 8]
jmp 0x4057f8
cmp edi, dword [ebp + 0x24]
nop
jmp 0x405808
jne 0x40576c
nop
pop eax
nop
jmp 0x405821
mov ebx, dword [eax + 0x24]
nop
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
jmp 0x405839
mov ebx, dword [eax + 0x1c]
nop
jmp 0x40584c
add ebx, edx
nop
invalid
Function at 0x4080f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
or byte [ebx - 0x69], dl

Function at 0x408db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub eax, 0x3310458b
leave
test dword [ebp - 0x762c6af1], ecx
dec ebp
cld
mov ecx, dword [ebp + 0xc]
mov esp, 0x5f564bef
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x149c01e2
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x4f5d29bd
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401130
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x210], bl
call sub.MSVCRT.dll_memset
push 0xff
lea ecx, [ebp - 0x313]
push ebx
push ecx
mov dword [ebp - 8], 0xff0ff
mov byte [ebp - 0x314], bl
call sub.MSVCRT.dll_memset
xor edx, edx
add esp, 0x18
mov word [ebp - reloc.shell32.dll_ShellAboutW], dx
cmp esi, ebx
je 0x4012ce
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x401280
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x102
push ebx
push ebx
push ebx
push 0x4044f4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4012b6
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0x4044e8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 8]
push edx
push 0x40452c
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [ebp - 0x210]
add esp, 0x10
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401221
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401234
sub eax, edx
push edi
mov edi, eax
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 0x314]
call fcn.00401690
lea edx, [ebp - 0x210]
mov ecx, edx
call fcn.004016d0
mov eax, dword [ebp - 4]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 1
push 0
mov edx, ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
pop edi
jmp 0x4012b6
lea ecx, [ebp - 4]
push ecx
push 0x102
push ebx
push 0x404530
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012b6
mov edx, dword [ebp - 4]
push 0x104
push esi
push 1
push ebx
push 0x404560
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4012ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401520
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push 0x401f70
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [ebp - 0x18]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4015f0
push esi
lea ecx, [ebp - 0x328]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x120]
push edx
push 0
push 0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x224]
push edx
call esi
test eax, eax
je 0x4015ef
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4015ef
push 4
push eax
lea edx, [ebp - 0x120]
push edx
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4019b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
xor ebx, ebx
push reloc.shell32.dll_SHFree
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call sub.MSVCRT.dll_memset
push 0x103
xor eax, eax
lea ecx, [ebp - 0x163]
push ebx
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 0x164], bl
call sub.MSVCRT.dll_memset
mov edx, dword [ebp + 8]
add esp, 0x18
push 0x104
push edx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401a8f
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetHandleInformation]
mov esi, eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x401a5d
lea ecx, [ebp + 8]
push ecx
push eax
call edi
test eax, eax
je 0x401a5d
test byte [ebp + 8], 2
jne 0x401a5d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esi, eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x401a81
lea edx, [ebp + 8]
push edx
push eax
call edi
test eax, eax
je 0x401a81
test byte [ebp + 8], 2
jne 0x401a81
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4021b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push ebx
push ebx
push str..KmxAgent
mov dword [ebp - SHGetSpecialFolderPathW], 0xb4
mov dword [ebp - 0xb0], 0x10
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], 0x7b761e52
mov dword [ebp - 0x88], 0x1c94cc7
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 0x20000000
mov dword [ebp - 0x60], 0x1210064
mov dword [ebp - 0x5c], 0x22
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 0x4d0007
mov dword [ebp - 0x50], 0x730065
mov dword [ebp - 0x4c], 0x610073
mov dword [ebp - 0x48], 0x650067
mov dword [ebp - 0x44], 0x420000
mov dword [ebp - 0x40], 0xb0022
mov dword [ebp - 0x3c], 0x490000
mov dword [ebp - 0x38], 0x530053
mov dword [ebp - 0x34], 0x560045
mov dword [ebp - 0x30], 0x4e0045
mov dword [ebp - 0x2c], 0x490054
mov dword [ebp - 0x28], 0x3d0044
mov dword [ebp - 0x24], 0x300034
mov dword [ebp - 0x20], 0x320030
mov dword [ebp - 0x1c], 0x650000
mov dword [ebp - 0x18], 0x70006d
mov dword [ebp - 0x14], 0x790074
mov dword [ebp - 0x10], 0x45003d
mov dword [ebp - 0xc], 0x70006d
mov dword [ebp - 8], 0x790074
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402330
push ebx
lea eax, [ebp - 0xbc]
push eax
push 4
lea ecx, [ebp - 0xb8]
push ecx
push SHGetSpecialFolderPathW
lea edx, [ebp - 0xb4]
push edx
push 0x86000054
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x439bc0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040607a
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e72
jmp 0x402368

Function at 0x403e46
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x43aaf0], eax
push 0x27
push 0x439620
push 0x547
mov esi, 0x439648
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x43aaf0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403ea6
call fcn.00403d5c
xor eax, eax
pop ecx
ret 0x10
Function at 0x401090
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push esi
push 0
push 0
push 0x4267c0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x401136
xor ecx, ecx
mov edx, 2
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov edi, eax
push esi
push edi
push 0x4267c0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec esi
cmp esi, eax
jne 0x40112b
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x40112a
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov esi, eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401120
push esi
push 0x4267c0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
pop ebx
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
pop edi
pop esi
ret
Function at 0x40a8e7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
xor edi, edi
mov esi, 0x811c9dc5
test edx, edx
je 0x40a905
movzx eax, byte [edi + ecx]
xor eax, esi
imul esi, eax, 0x1000193
inc edi
cmp edi, edx
jb 0x40a8f4
pop edi
mov eax, esi
pop esi
ret

Function at 0x40b95d
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [edi + 0x20]
test ecx, ecx
jne 0x40b971
xor al, al
jmp 0x40b9ed
cmp dword [ebp + 0xc], 0x7fffffff
ja 0x40b96d
push esi
xor esi, esi
cmp dword [edi + 0x44], esi
jne 0x40b990
cmp byte [edi], 0
je 0x40b994
call fcn.0040b8fc
test al, al
jne 0x40b994
xor al, al
jmp 0x40b9ec
cmp byte [edi + 0x48], 0
push ebx
push dword [ebp + 0xc]
push esi
push esi
push 4
pop eax
push 6
pop ecx
cmove eax, ecx
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [edi + 0x44], ebx
test ebx, ebx
je 0x40b9e9
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b9d3
mov esi, dword [ebp - 0x18]
sub esi, ebx
add esi, dword [ebp - 0x10]
mov dword [edi + 0x40], esi
lea esi, [edi + 0x28]
add edi, 0x50
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040b8b5
mov al, 1
jmp 0x40b9eb
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x40bab5
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
push edi
push 0x10
xor ebx, ebx
mov dword [ebp - 4], ecx
pop esi
mov eax, ecx
mov dword [ebp - 8], ebx
mov edi, esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
setne al
test al, al
jne 0x40baf7
push ecx
push 0x27
push str.z:_build_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea ecx, [ebp - 0xb8]
or ebx, 1
call fcn.00408d24
test bl, 1
je 0x40bb0a
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffe
call fcn.00408ec2
mov eax, dword [ebp - 4]
sub esi, edi
add eax, edi
mov edi, esi
mov dword [ebp - 4], eax
test esi, esi
jne 0x40bad0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40da81
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa1c
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0xa18], eax
push ebx
push esi
mov esi, dword [0x42d040]
xor ebx, ebx
push edi
or edi, 0xffffffff
mov dword [esp + 0xc], ebx
mov dword [esp + 0xc], esi
cmp esi, edi
jne 0x40db5a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, edi
je 0x40dacb
mov esi, eax
mov dword [esp + 0xc], esi
jmp 0x40dadf
push ecx
push 0x73
push str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea ecx, [esp + 0x1c]
call fcn.00408d24
xor ebx, ebx
inc ebx
test bl, 1
je 0x40daf0
lea ecx, [esp + 0x10]
and ebx, 0xfffffffe
call fcn.00408ec2
cmp esi, edi
jne 0x40db38
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, edi
je 0x40db06
mov esi, eax
mov dword [esp + 0xc], esi
jmp 0x40db1d
push ecx
push 0x7d
push str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea ecx, [esp + 0xcc]
or ebx, 2
call fcn.00408d24
test bl, 2
je 0x40db31
lea ecx, [esp + 0xc0]
and ebx, 0xfffffffd
call fcn.00408ec2
push edi
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, esi
mov edx, 0x42d040
mov eax, edi
lock cmpxchg dword [edx], ecx
cmp eax, edi
je 0x40db5a
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, dword [0x42d040]
mov dword [esp + 0xc], esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40db7f
push ecx
push 0x8f
push str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea ecx, [esp + 0x17c]
or ebx, 4
call fcn.00408d24
test bl, 4
je 0x40db90
lea ecx, [esp + 0x170]
call fcn.00408ec2
mov edi, 0x800
lea eax, [esp + 0x220]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
call dword [sym.imp.mozglue.dll_moz_xmalloc]
pop ecx
mov ebx, eax
lea esi, [esp + 0x220]
push ebx
push dword [esp + 0x10]
mov ecx, 0x200
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0xa24]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405160
mov esp, ebp
pop ebp
ret
Function at 0x40dc45
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.00406050
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42d040]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x140c], eax
push edi
mov ecx, 0x200
lea edi, [ebp - 0x804]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x804]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call dword [sym.imp.mozglue.dll_free]
pop ecx
call fcn.0040dbf3
push eax
mov dword [ebp - 0x1408], eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
push dword [ebp - 0x1408]
mov ecx, 0x300
lea edi, [ebp - 0x1404]
mov esi, 0x42d670
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ebx, 0x100
xor cl, cl
lea edi, [ebp - 0x13fc]
xor esi, esi
mov edx, dword [ebp + esi*8 - 0x804]
test edx, edx
je 0x40dd01
cmp dword [edi - 8], 0
je 0x40dd01
mov eax, dword [ebp + esi*8 - 0x800]
cmp eax, dword [edi]
jne 0x40dd01
cmp dword [edi - 4], 0
je 0x40dd01
and dword [ebp + esi*8 - 0x804], 0
push edx
call dword [edi - 4]
pop ecx
mov cl, 1
inc esi
add edi, 0xc
cmp esi, 0x100
jl 0x40dcd0
dec ebx
test ebx, ebx
jle 0x40dd16
test cl, cl
jne 0x40dcc6
push 0
push dword [ebp - 0x140c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405160
mov esp, ebp
pop ebp
ret