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

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x15
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xce
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x3b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x81
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbd
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe2
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x16
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1a
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe8
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x91
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1f
add esp, 0x40
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5d
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x55
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5d
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451bc9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bda
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b072
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b083
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b0ab
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x11
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xae
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xea
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x70
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1f
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x20
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf2
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc6
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x25
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x70
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x9b
add esp, 0x40
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb6
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x93
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x2c
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x69
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451bc9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bda
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b072
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b083
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b0ab
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x411450
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x411472
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411468
mov eax, 1
add ebx, ebx
jne 0x41148b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411480
jne 0x41149c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411480
xor ecx, ecx
sub eax, 3
jb 0x4114b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411522
mov ebp, eax
add ebx, ebx
jne 0x4114bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4114c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4114ec
inc ecx
add ebx, ebx
jne 0x4114d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4114cd
jne 0x4114e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4114cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41150c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4114fd
jmp 0x41146e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41150c
add edi, ecx
jmp 0x41146e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41152a
cmp byte [edi], 5
jne 0x41152a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41152f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x41159e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x146ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14760]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41155c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14764]
or eax, eax
je 0x411598
mov dword [ebx], eax
add ebx, 4
jmp 0x411579
call dword [esi + 0x14774]
mov ebp, dword [esi + 0x14768]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4115d2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402180
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, ecx
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [esp + 0xc0], eax
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0
mov eax, dword [0x437028]
cmp eax, 0xffffffff
je 0x4021c1
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x4021c6
call fcn.00402350
mov eax, dword [0x438114]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x40221f
push 0x438114
call fcn.00409b1a
add esp, 4
cmp dword [0x438114], 0xffffffff
jne 0x40221f
push 4
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00401be0
mov dword [0x438110], edi
push 0x438114
call fcn.00409ad0
add esp, 4
mov edi, dword [0x438110]
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x43750c]
inc eax
xor ecx, ecx
lea edx, [eax + ecx]
movzx edx, dl
lea ebx, [edx + edx*2]
cmp dword [ebx*4 + 0x437510], 0
jne 0x4022c0
lea eax, [ebx*4 + 0x437510]
mov dword [eax], 1
lea eax, [edx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x437514], ecx
mov dword [0x43750c], edx
mov dword [esi], edx
mov eax, dword [eax + eax*2 + 0x437518]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x4022cf
mov eax, dword [esi]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
cmp eax, 0xff
jg 0x402309
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.0040a740
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
inc ecx
cmp ecx, 0x100
jne 0x402234
jmp 0x402277
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kInvalidSlotValue
push eax
push ecx
call fcn.0040d570
add esp, 0xc
test eax, eax
je 0x402291
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x196
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0040d360
mov ecx, edi
call fcn.0040d3c0
jmp 0x402291
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kThreadLocalStorageSize
push eax
push ecx
call fcn.0040d570
add esp, 0xc
test eax, eax
je 0x4022a6
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x197
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0040d360
mov ecx, edi
call fcn.0040d3c0
jmp 0x4022a6
Function at 0x4025a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.0040ae80
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x437028]
cmp eax, 0xffffffff
je 0x4025d2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
jne 0x4025e7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, dword [0x437028]
lea eax, [ebp - 0x80f]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebx, ebx
je 0x402620
push ebx
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
call fcn.0040b720
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea eax, [ebp - 0x1410]
push 0xc00
push 0x437510
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov edx, 0x100
lea ecx, [ebp - 0x1408]
test al, al
je 0x4026b4
mov dword [ebp - 0x1418], edi
xor eax, eax
mov edi, ecx
xor ebx, ebx
mov esi, dword [ebp + ebx*8 - 0x810]
test esi, esi
jne 0x402684
inc ebx
add edi, 0xc
cmp ebx, 0x100
jne 0x40266b
jmp 0x40269e
cmp dword [edi - 8], 0
je 0x402676
mov ecx, dword [ebp + ebx*8 - 0x80c]
cmp ecx, dword [edi]
jne 0x402676
mov ecx, dword [edi - 4]
test ecx, ecx
je 0x402676
jmp 0x4026c2
cmp edx, 2
mov edi, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1408]
jb 0x4026b4
dec edx
and al, 1
jmp 0x40265b
push 2
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4025d2
mov dword [ebp + ebx*8 - 0x810], 0
mov dword [ebp - 0x1414], edx
call dword [section..00cfg]
push esi
call ecx
mov edx, dword [ebp - 0x1414]
add esp, 4
mov al, 1
jmp 0x402676
Function at 0x403330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 8]
cmp dword [ecx], edi
je 0x403396
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4033a0
lea eax, [edi + 1]
cmp eax, 2
jb 0x40338d
mov dword [esi], edi
call fcn.00403400
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x14], eax
call fcn.00403410
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
push dword [ebp + 8]
call ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00403400
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
call fcn.00403410
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x10]
call edi
mov edi, dword [esi]
call fcn.00403410
mov ebx, eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [section..00cfg]
mov ecx, ebx
push edi
mov edi, dword [ebp + 8]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x403353
Function at 0x4062a0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
lea eax, [ecx + 0x10]
mov dword [ebp - 0x38], ecx
mov dword [ecx + 4], eax
mov eax, dword [0x437100]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x438438]
cmp ecx, dword [eax + 4]
jg 0x406373
mov ecx, dword [0x438434]
lea eax, [ebx + edi]
dec eax
xor edi, edi
xor edx, edx
div ecx
mov esi, eax
mov eax, ebx
xor edx, edx
div ecx
sub esi, eax
inc esi
mov dword [ebp - 0x48], esi
je 0x40635e
mov ebx, eax
mov eax, dword [ebp - 0x38]
add eax, 4
mov dword [ebp - 0x40], eax
imul ebx, ecx
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x34]
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4063b1
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
je 0x4063c2
mov edx, ecx
mov ecx, dword [ecx + 4]
mov dword [ecx + eax*8], esi
mov dword [ecx + eax*8 + 4], ebx
inc dword [edx + 8]
inc edi
mov ecx, dword [ebp - 0x44]
add ebx, ecx
cmp edi, dword [ebp - 0x48]
jne 0x406324
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, dword [ebp - 0x38]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x438438
call fcn.00409b1a
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x4062f3
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.00409ad0
add esp, 4
jmp 0x4062f3
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
call fcn.0042e380
jmp 0x40635e
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x40]
call fcn.0042e440
test al, al
je 0x4063b8
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
mov esi, dword [ebp - 0x3c]
jmp 0x406344
Function at 0x408310
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x438404]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x408373
push 0x438404
call fcn.00409b1a
add esp, 4
cmp dword [0x438404], 0xffffffff
jne 0x408373
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x438400], eax
push 0x438404
call fcn.00409ad0
add esp, 4
mov esi, dword [0x438400]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040a740
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret

Function at 0x408390
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x438438]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4083d6
mov esi, dword [0x438434]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040a740
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
push 0x438438
call fcn.00409b1a
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x4083be
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.00409ad0
add esp, 4
jmp 0x4083be
Function at 0x40c900
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x24
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push str.MOZ_ENABLE_HANDLE_VERIFIER
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x40c93a
call fcn.0040ca10
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040a740
add esp, 0x24
pop esi
pop edi
pop ebp
ret
movaps xmm0, xmmword [str.kernel32]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x64002e
mov dword [ebp - 0x14], 0x6c006c
mov word [ebp - 0x10], 0
cmp dword [0x4383a0], 0
jne 0x40c971
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4383a0], eax
lea esi, [ebp - 0x2c]
mov dword [esi], 0
lea edi, [ebp - 0x28]
mov dword [edi], 0x4383ec
mov dword [edi + 4], 0x43836c
mov dword [edi + 8], 0x4318ad
mov dword [edi + 0xc], 0x42dda0
mov byte [edi + 0x10], 0
push esi
push edi
push 0x42de00
push 0x4383f0
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x40c924
cmp dword [ebp - 0x2c], 0
je 0x40c924
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x4383f4
mov dword [ebp - 0x24], 0x43836c
mov dword [ebp - 0x20], 0x43189d
mov dword [ebp - 0x1c], 0x42ddc0
mov byte [ebp - 0x18], 0
push esi
push edi
push 0x42de00
push 0x4383f8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x40c924
cmp dword [ebp - 0x2c], 0
jne 0x40c929
jmp 0x40c924

Function at 0x40df10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x10], edx
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
movzx edx, byte [esi + 1]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [esi + 2]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [esi + 3]
xor edx, eax
imul edi, edx, 0x1000193
and edi, dword [ecx + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + edi*8]
add edi, edi
inc edi
mov dword [ebp - 0x14], edi
mov edi, dword [esi]
mov ebx, eax
cmp edx, eax
je 0x40df80
mov esi, dword [ebp - 0x14]
mov esi, dword [ecx + esi*4]
mov esi, dword [esi]
cmp ebx, esi
je 0x40df86
cmp dword [ebx + 8], edi
je 0x40df84
mov ebx, dword [ebx]
jmp 0x40df67
mov esi, eax
jmp 0x40df73
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40fb20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.0040fb70
test edi, edi
je 0x40fb59
test al, al
je 0x40fb59
mov ecx, ebx
sar ecx, 0x1f
add edi, ebx
adc ecx, 0
mov eax, ecx
and eax, 1
neg eax
xor ecx, eax
jne 0x40fb59
test eax, eax
js 0x40fb59
cmp dword [esi + 8], edi
jae 0x40fb62
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040fb80

Function at 0x40fb80
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [esi + 4], 0
setne al
mov ebx, ecx
sar ebx, 0x1f
add eax, eax
add eax, 4
push dword [ebp + 0xc]
push ecx
push ebx
mov dword [ebp - 0x30], eax
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
test edi, edi
je 0x40fbfe
mov esi, dword [ebp + 0x14]
lea ebx, [ebp - 0x2c]
push 0x1c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [ebx + 0xc]
sub ecx, edi
add ecx, dword [ebx + 4]
test eax, eax
cmove ecx, eax
mov dword [esi], ecx
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push dword [ebp - 0x30]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
test edi, edi
jne 0x40fbc7
xor ebx, ebx
jmp 0x40fbe8