joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180c6197
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x181b3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebx + 0x10]
push esi
mov dword [ebp - 0xd8], ecx
xor ecx, ecx
push edi
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x34], cl
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], ecx
lea ecx, [ebp - 0xfc]
push eax
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0x20], 0xf
call fcn.18112f4d
push 0xc
call fcn.18112f4d
mov esi, eax
lea edi, [ebp - 0xfc]
pop ecx
mov dword [ebp - 0xe4], esi
lea ecx, [esi + 0xc]
mov dword [ebp - 0xdc], ecx
push edi
mov ecx, esi
call fcn.18112f4d
add edi, 0xc
lea eax, [ebp - 0xf0]
add esi, 0xc
cmp edi, eax
jne 0x180c6231
mov edi, dword [ebp - 0xc8]
lea eax, [ebp - 0xbc]
push 3
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xc0], eax
push dword [edi]
call fcn.18112f4d
mov ecx, dword [ebp - 0xc0]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x180c6288
sub ecx, edx
push ecx
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x1c]
call fcn.18112f4d
mov edx, dword [ebp - 0xd0]
lea eax, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.18112f4d
add esp, 0x10
lea ecx, [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0xc1]
call fcn.1800de13
lea eax, [ebp - 0xbc]
cmp dword [ebp - 0xc0], eax
je 0x180c62ef
push dword [ebp - 0xc0]
call fcn.18140476
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.18112f4d
lea ecx, [ebp - 0xfc]
call fcn.1800ae74
lea ecx, [ebp - 0xf0]
call fcn.1800ae74
cmp byte [ebp - 0xc1], 0
je 0x180c6325
mov dword [ebp - 0xcc], 0x80092009
jmp 0x180c639e
mov esi, dword [ebp - 0xd4]
mov ecx, edi
mov edx, esi
call fcn.18112f4d
test al, al
jne 0x180c6344
mov dword [ebp - 0xcc], 0x8000ffff
jmp 0x180c639e
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.1800690f
add eax, 0x10
lea ecx, [ebp - 0xc8]
push str.GoogleUpdateSetup.exe
mov dword [ebp - 0xc8], eax
call fcn.18112f4d
mov esi, dword [ebp - 0xc8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180c6384
mov dword [ebp - 0xcc], 0x80070002
jmp 0x180c6396
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0xc8]
push eax
call fcn.18112f4d
lea ecx, [esi - 0x10]
call fcn.18004135
lea ecx, [ebp - 0x34]
call fcn.1800de13
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xcc]
xor ecx, ebp
pop edi
pop esi
call fcn.18139b3f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x18112f4d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x18112f5c
pop dword [ebp - 0xc]
mov eax, 0xc132cd35
add eax, 0x56de6227
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0xc81a1
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x460d
xor edi, edi
add edi, eax
mov ebx, 0x181daa00
add ebx, dword [ebp - 0xc]
mov edx, 0xb93ddad5
add edx, 0xb4ae4dd7
xor dword [ebp - 8], ebx
mov esi, dword [ebx]
add dword [ebp - 4], ecx
sub esi, edx
add dword [ebp - 8], esi
mov dword [edi], esi
add dword [ebp - 8], eax
add edi, 0x46bc2875
add edi, 0xb943d78f
add ebx, 0xbdb023aa
sub ebx, 0xbdb023a6
loop 0x18112fac
add eax, 0xf6fbac1c
add eax, 0x9055eeb
mov ebx, eax
add eax, 0x5df436c0
sub eax, 0x5df436bb
mov ecx, 0x8de8b576
sub ecx, 0x75e8b576
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x1000fa80
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 [0x1007d00c]
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 [0x1007d328]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x1007e704]
cmp ecx, dword [eax + 4]
jg 0x1000fb53
mov ecx, dword [0x1007e700]
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 0x1000fb3e
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 0x1000fb91
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
je 0x1000fba2
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 0x1000fb04
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f5c0
mov eax, dword [ebp - 0x38]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1007e704
call fcn.1002f5e1
add esp, 4
cmp dword [0x1007e704], 0xffffffff
jne 0x1000fad3
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x1007e700], eax
push 0x1007e704
call fcn.1002f5e1
add esp, 4
jmp 0x1000fad3
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
call fcn.1005a660
jmp 0x1000fb3e
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x40]
call fcn.1005a720
test al, al
je 0x1000fb98
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
mov esi, dword [ebp - 0x3c]
jmp 0x1000fb24
Function at 0x10017b60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x1007e4ec], ebx
je 0x10017c41
mov dword [0x1007e4ec], ebx
lea edi, [ebp - 0x28]
mov ecx, edi
call fcn.1000c270
cmp byte [edi + 4], 0
jne 0x10017c59
lea edi, [ebp - 0x28]
mov eax, dword [edi]
mov dword [ebp - 0x30], eax
mov ecx, edi
call fcn.1000c020
cmp byte [edi + 4], 0
jne 0x10017c67
mov edx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], 0
mov ecx, edi
mov dword [ebp - 0x34], edx
push edx
call fcn.1000c0d0
mov ecx, edi
mov edx, str.Theme
push 6
call fcn.1000c4d0
add esp, 4
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x14], 7
mov eax, edi
jbe 0x10017bf7
mov eax, dword [ebp - 0x28]
mov ecx, 4
lea edx, [ebp - 0x2c]
push ecx
push edx
push ecx
xor ebx, ebx
push ebx
push eax
push dword [ebp - 0x30]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, eax
mov ecx, edi
call fcn.1000bfd0
test esi, esi
jne 0x10017c88
mov edi, dword [ebp + 8]
mov byte [edi + 4], bl
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10017c32
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
push dword [ebp - 0x30]
call dword [sym.imp.advapi32.dll_RegCloseKey]
test esi, esi
je 0x10017c45
jmp 0x10017c7c
mov byte [edi + 4], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f5c0
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp + 8]
mov byte [edi + 4], 1
mov dword [edi], eax
jmp 0x10017c7c
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp + 8]
mov byte [edi + 4], 1
mov dword [edi], eax
push dword [ebp - 0x30]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [0x1007e4ec], 0
jmp 0x10017c45
mov eax, dword [ebp + 8]
mov dword [eax], 8
mov bl, 1
jmp 0x10017c1c

Function at 0x10018290
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x1007e704]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100182d6
mov esi, dword [0x1007e700]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1002f5c0
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
push 0x1007e704
call fcn.1002f5e1
add esp, 4
cmp dword [0x1007e704], 0xffffffff
jne 0x100182be
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x1007e700], eax
push 0x1007e704
call fcn.1002f5e1
add esp, 4
jmp 0x100182be
Function at 0x10018410
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x1007e710]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x10018473
push 0x1007e710
call fcn.1002f5e1
add esp, 4
cmp dword [0x1007e710], 0xffffffff
jne 0x10018473
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x1007e70c], eax
push 0x1007e710
call fcn.1002f5e1
add esp, 4
mov esi, dword [0x1007e70c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1002f5c0
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret

Function at 0x10018730
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [esp + 0xc], eax
xor eax, eax
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], eax
push 8
push ecx
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x10018778
mov esi, dword [esp]
mov edi, dword [esp + 4]
mov ecx, dword [esp + 0xc]
xor ecx, ebp
call fcn.1002f5c0
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
int3
Function at 0x1003e0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, edx
mov eax, dword [edx + 0x1c]
bt eax, 8
jb 0x1003e0c8
mov eax, dword [edi]
jmp 0x1003e0dc
cmp eax, 0x370000
jae 0x1003e13f
shr eax, 0x10
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x1006d3c8]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x18]
mov esi, ecx
mov dword [ecx + 0x18], eax
mov ebx, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [edi + 0x10]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1003e0f2
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0x14]
mov edx, edi
lock cmpxchg8b qword [esi + 0x10]
xor edx, edi
xor eax, dword [ebp - 0x18]
or eax, edx
jne 0x1003e112
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_categoryPairIndex___uint32_t_ProfilingCategoryPair::LAST__
int3

Function at 0x1003e160
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [0x1007e388]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x1003e1e7
push 0x1007e388
call fcn.1002f5e1
add esp, 4
cmp dword [0x1007e388], 0xffffffff
jne 0x1003e1e7
push str.MOZ_BASE_PROFILER_VERBOSE_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1003e1f3
push str.MOZ_BASE_PROFILER_DEBUG_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1003e1fa
push str.MOZ_BASE_PROFILER_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ecx + ecx*2]
mov dword [0x1007e384], eax
push 0x1007e388
call fcn.1002f5e1
add esp, 4
cmp dword [0x1007e384], esi
setge al
pop esi
pop ebp
ret
mov eax, 5
jmp 0x1003e1d5
mov eax, 4
jmp 0x1003e1d5
Function at 0x10056aa0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1007e51c]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10056ac7
mov al, byte [0x1007e51a]
pop ebp
ret
push 0x1007e51c
call fcn.1002f5e1
add esp, 4
cmp dword [0x1007e51c], 0xffffffff
jne 0x10056ac0
push str.MOZ_DISABLE_WALKTHESTACK
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10056b09
cmp byte [eax], 0
sete al
mov byte [0x1007e51a], al
push 0x1007e51c
call fcn.1002f5e1
add esp, 4
jmp 0x10056ac0
mov al, 1
jmp 0x10056af5

Function at 0x10059d90
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
movaps xmm0, xmmword [0x1006e1a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x10059ed0
mov esi, eax
movaps xmm0, xmmword [0x1006e1b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
sub esp, 0x18
xor edi, edi
test eax, eax
je 0x10059eb0
mov ebx, eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
movaps xmm0, xmmword [0x1006e1c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
je 0x10059ed4
mov dword [ebp - 0x3c], eax
mov edi, dword [eax + 0x3c]
lea eax, [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
mov eax, edi
xor edx, edx
div dword [ebp - 0x18]
sub edi, edx
mov dword [ebp - 0x38], edx
lea eax, [edx + 0xf8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
xor edi, edi
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 4
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
je 0x10059e95
mov ecx, dword [ebp - 0x38]
mov edi, dword [eax + ecx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f5c0
mov eax, edi
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
jmp 0x10059ebc
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10059ead
Function at 0x10059ee0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, edx
mov esi, ecx
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
push edx
call sub.version.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10059f8d
mov edi, eax
mov dword [ebp - 0x20], esi
push eax
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov esi, eax
xor eax, eax
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], esi
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x10059fad
lea eax, [ebp - 0x18]
mov dword [eax], 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0x10074b7a
mov esi, dword [ebp - 0x1c]
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
mov edx, esi
je 0x10059fd3
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov esi, dword [ebp - 0x20]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0
push edx
call sym.mozglue.dll__aligned_free
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f5c0
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], ecx
jmp 0x10059f79
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov esi, dword [ebp - 0x20]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], ecx
mov edx, dword [ebp - 0x1c]
jmp 0x10059f70
xor eax, eax
jmp 0x10059f61

Function at 0x1005a660
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1007e704]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1005a6dc
mov eax, dword [esi + 8]
test eax, eax
jne 0x1005a6b2
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f5c0
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x1007e700]
mov dword [ebp - 0x38], ecx
mov ebx, dword [esi + 4]
lea edi, [ebx + eax*8]
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
push dword [ebp - 0x38]
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
add ebx, 8
cmp ebx, edi
je 0x1005a699
jmp 0x1005a6c1
push 0x1007e704
call fcn.1002f5e1
add esp, 4
cmp dword [0x1007e704], 0xffffffff
jne 0x1005a692
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x1007e700], eax
push 0x1007e704
call fcn.1002f5e1
add esp, 4
jmp 0x1005a692
Function at 0x1006bb80
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [0x1007e4e8], 0
je 0x1006bbba
push 0x10074c1c
push str.MOZ_SKELETON_UI_RESTARTING
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov eax, dword [0x1007d204]
cmp eax, 0xffffffff
je 0x1006bbb1
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov byte [esi + 4], 0
mov eax, esi
pop esi
pop ebp
ret
mov byte [esi + 4], 1
mov dword [esi], 2
jmp 0x1006bbb5
Function at 0x405c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x44c470]
sub eax, 0x31f6638a
push esi
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
imul esi, dword [ebp + 0x10]
fstp dword [str.3_N]
fld dword [0x44c4ac]
fsub qword [0x445b18]
mov dword [ebp - 4], 0
fstp dword [0x44c4ac]
fld dword [0x44c4ac]
fadd qword [0x44c528]
fstp dword [0x44c514]
test esi, esi
jne 0x405c91
mov ecx, dword [0x44c4bc]
add ecx, 0x73bc84e1
pop edi
mov word [0x44c0f4], cx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [0x44c474]
mov ecx, dword [0x44c17c]
inc dword [0x44c474]
mov eax, 0x22504946
sub eax, edx
add ecx, eax
cmp ecx, 0x649e0890
jge 0x405cd2
mov edx, dword [0x44c580]
mov dword [ebp + 0xc], edx
fild dword [ebp + 0xc]
fadd dword [0x44c568]
fstp dword [0x44c568]
dec dword [0x44c580]
mov ecx, dword [ebp + 0x14]
call fcn.004345d0
movzx ecx, word [0x44c1d0]
imul ecx, ecx, 0x86128898
push 0
lea edx, [ebp - 4]
push edx
mov word [0x44c1d0], cx
mov ecx, dword [ebp + 8]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
fld qword [0x44c428]
mov eax, dword [ebp - 4]
fsub qword [0x445b20]
div edi
fstp qword [0x44c428]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408c50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x44c4a8]
add eax, 0x737916d5
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fstp dword [str.3_N]
dec dword [0x44c4a8]
call fcn.00402e40
fld qword [0x44c438]
fsub qword [0x445b18]
fstp qword [0x44c438]
fld qword [0x44c438]
fcomp qword [0x446e38]
fnstsw ax
test ah, 0x41
jne 0x408cbe
dec dword [0x44c320]
mov ecx, dword [0x44c320]
sub ecx, 0x1f52c87a
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
fadd dword [0x44c380]
fstp dword [0x44c380]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x410f10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x44c4d8]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
push esi
mov esi, 1
fmul qword [0x44c3e8]
fstp qword [0x44c3e8]
add dword [0x44c4d8], esi
call fcn.0041ce30
add word [0x44c55c], si
mov cx, word [0x44c55c]
mov edx, dword [0x44c38c]
movsx eax, cx
add edx, eax
cmp edx, 0x46ac88be
jne 0x410f8f
fld dword [0x44c444]
fsubr qword [0x44b388]
fadd qword [0x44c2a8]
fmul qword [0x44c350]
fstp qword [0x44c350]
fld dword [0x44c444]
fadd qword [0x445b18]
fstp dword [0x44c444]
jmp 0x410fa7
fld dword [str.3_N]
fadd dword [0x44c3a8]
fmul qword [0x44c618]
fstp qword [0x44c618]
call fcn.004029d0
fld dword [0x44c454]
mov eax, dword [0x44c4a0]
mov dword [ebp - 4], eax
fisub dword [ebp - 4]
push 0x44212c
push 0x442124
fstp dword [0x44c454]
call fcn.00414850
fld dword [0x44c380]
add esp, 8
fsub qword [0x44b380]
fstp dword [0x44c380]
call fcn.0041db00
mov cx, word [0x44c094]
mov edx, dword [0x44c148]
mov esi, eax
movsx eax, cx
add edx, eax
mov word [0x44c094], dx
call fcn.00402e40
movzx eax, word [0x44c2e8]
imul eax, eax, 0x92529e99
push esi
mov word [0x44c2e8], ax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x417e30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
fld dword [0x44c3f0]
mov ax, word [0x44c1b4]
fsub qword [0x446c70]
movsx edx, ax
sub edx, 0x69dc4c0a
mov dword [ebp - 4], edx
fadd qword [0x446c68]
fild dword [ebp - 4]
fcompp
fnstsw ax
fld1
test ah, 5
jp 0x417e9d
fld dword [0x44c14c]
fsubr qword [0x446c60]
fadd qword [0x446c58]
fcomp qword [0x446c50]
fnstsw ax
fld dword [0x44c14c]
fsub st(1)
fstp dword [0x44c14c]
test ah, 5
jp 0x417e9d
fld dword [0x44c5cc]
fstp st(0)
mov dword [ecx], 0
movzx eax, word [0x44c2a0]
movsx edx, ax
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fld qword [0x44c060]
fsub qword [0x446c48]
fadd dword [0x44c3c8]
fsubp st(1)
fistp qword [ebp - 8]
movzx eax, word [ebp - 8]
mov word [0x44c2a0], ax
mov dword [ecx + 4], 0
fld qword [0x44c548]
fsub qword [0x446c40]
fsub dword [0x44c33c]
mov edx, dword [0x44c2c8]
mov dword [ebp - 4], edx
fild dword [ebp - 4]
faddp st(1)
fistp qword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [0x44c2c8], eax
fld dword [0x44c33c]
fsub st(1)
fstp dword [0x44c33c]
mov dword [ecx + 8], 0x67452301
fld dword [0x44c594]
mov dx, word [0x44c330]
movsx eax, dx
mov edx, dword [0x44c15c]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
mov dword [ebp - 4], edx
mov edx, 1
faddp st(1)
fiadd dword [ebp - 4]
fld qword [0x44c398]
fcompp
fnstsw ax
fld qword [0x44c398]
fsub st(1)
fstp qword [0x44c398]
add dword [0x44c15c], edx
add word [0x44c330], dx
or edx, 0xffffffff
test ah, 0x41
jne 0x417fab
fld dword [0x44c1b8]
mov ax, word [0x44c460]
cwde
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fsubp st(1)
fadd dword [0x44c1b0]
mov eax, dword [0x44c4f8]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
faddp st(1)
fistp qword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [0x44c4f8], eax
add word [0x44c460], dx
mov dword [ecx + 0xc], 0xefcdab89
fld dword [0x44c3fc]
fmul qword [0x44c3d0]
fstp qword [0x44c3d0]
mov dword [ecx + 0x10], 0x98badcfe
fld dword [0x446c38]
fstp dword [0x44c0b8]
mov dword [ecx + 0x14], 0x10325476
fld qword [0x44c570]
mov cx, word [0x44c318]
fsubr qword [0x446c30]
add word [0x44c318], dx
movsx eax, cx
sub eax, 0x49b967b0
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fcompp
fnstsw ax
fsubr qword [0x44c570]
fstp qword [0x44c570]
test ah, 5
jp 0x418037
mov cx, word [0x44c394]
movsx edx, cx
sub edx, 0x11a49ba2
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fstp dword [0x44c5ac]
mov esp, ebp
pop ebp
ret