joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70e130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
test esi, esi
je 0x70e149
push 5
push 0x70e19c
call sub.kernel32.dll_WinExec
jmp 0x70e155
push 5
push 0x70e1ac
call sub.kernel32.dll_WinExec
mov ebx, 0xa
xor eax, eax
mov dword [0x7369d8], eax
xor edx, edx
mov eax, 0x70e1c4
call fcn.00557c40
test eax, eax
je 0x70e18b
test esi, esi
je 0x70e181
mov edx, 0x70dce0
call fcn.0070e0a8
jmp 0x70e18b
mov edx, 0x70db94
call fcn.0070e0a8
push 0xa
call sub.kernel32.dll_Sleep_1
dec ebx
jne 0x70e15a
pop esi
pop ebx
pop ebp
ret

Function at 0x70e1dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407ae8
xor eax, eax
push ebp
push 0x70e275
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x70e290
mov eax, dword [ebp - 4]
call fcn.00414400
test al, al
je 0x70e230
push 0x20a
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
lea eax, [ebp - 0x20e]
call fcn.00416320
mov edx, 0x70e2a4
mov eax, dword [ebp - 4]
call fcn.00414400
test al, al
je 0x70e25f
push 0x20a
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x20e]
call fcn.00416320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70e27c
lea eax, [ebp - 4]
call fcn.00407af0
ret

Function at 0x70e2c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x70e334
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x70e340
push 0x70e344
lea edx, [ebp - 4]
mov eax, 0x70e360
call fcn.0070e1dc
lea eax, [ebp - 4]
mov edx, 0x70e374
call fcn.00407f14
mov eax, dword [ebp - 4]
call fcn.00407b8c
push eax
push 0x70e390
mov eax, dword [0x737638]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70e33b
lea eax, [ebp - 4]
call fcn.00407af0
ret

Function at 0x70e39c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x70e40c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x70e418
push 0x70e41c
lea edx, [ebp - 4]
mov eax, 0x70e438
call fcn.0070e1dc
lea eax, [ebp - 4]
mov edx, 0x70e44c
call fcn.00407f14
mov eax, dword [ebp - 4]
call fcn.00407b8c
push eax
push 0x70e468
mov eax, dword [0x737638]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70e413
lea eax, [ebp - 4]
call fcn.00407af0
ret
Function at 0x70e764
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dl, 1
mov eax, dword [0x42dae4]
call fcn.0040572c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x70e7ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push 0x70e688
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x70e7d9
inc ebx
xor esi, esi
lea eax, [ebp - 0x20]
push eax
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.004395d8
push eax
call sub.user32.dll_GetWindowRect
lea edx, [ebp - 8]
lea eax, [ebp - 0x20]
call fcn.0040bbac
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x70e7d9
inc esi
dec ebx
jne 0x70e7ad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70e7f6
mov eax, dword [ebp - 0x10]
call fcn.0040575c
ret

Function at 0x70ea04
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0
push 0x70ea5c
call sub.user32.dll_FindWindowW
test eax, eax
je 0x70ea50
push 0
push 0x70ea78
push 0
push eax
call sub.user32.dll_FindWindowExW
test eax, eax
je 0x70ea50
lea edx, [ebp - 0x18]
push edx
push eax
call sub.user32.dll_GetWindowRect
lea edx, [ebp - 8]
lea eax, [ebp - 0x18]
call fcn.0040bbac
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x714078
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7140f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfd
lea eax, [ebp - 4]
mov edx, 0xfe
call fcn.00407e7c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b8c
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x7140d2
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004082e0
jmp 0x7140db
mov eax, ebx
xor edx, edx
call fcn.00407b00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7140f8
lea eax, [ebp - 4]
call fcn.00407af0
ret
Function at 0x7144e4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x16c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x7145e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 1
mov dl, 1
mov eax, dword [0x459240]
call fcn.00463f78
mov dword [ebp - 4], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4d8bf0]
call fcn.004f6278
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x7145c2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
xor ecx, ecx
mov edx, 0x160
call fcn.00404ea4
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.004f6550
or ebx, 0x4000
push ebx
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0x20000
lea eax, [ebp - 0x16c]
mov edx, esi
mov ecx, 0
call fcn.00407d44
mov eax, dword [ebp - 0x16c]
call fcn.00407340
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004f65d4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 8]
call fcn.004f6980
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7145c9
mov eax, dword [ebp - 8]
call fcn.0040575c
ret
Function at 0x42b224
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x438e80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b1b9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004162c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42b273
cmp dword [ebp - 0x1c], 5
jb 0x42b28b
jmp 0x42b287
cmp dword [ebp - 0x10], 1
jne 0x42b28b
cmp dword [ebp - 0x1c], 4
ja 0x42b287
jne 0x42b28b
cmp dword [ebp - 0x18], 0
jbe 0x42b28b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4327a4
call fcn.0042b08d
test eax, eax
jge 0x42b2ac
mov byte [0x43a368], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416063
add ebp, 0x78
leave
ret

Function at 0x4019f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x4019ff
push esp
mov dword [ebp - 0x24], 0x40171b
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a9e
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a7f
pop ebp
ret 0x10
Function at 0x10010b1
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x1001080
call fcn.0100129c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10010ee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010ee
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001106
cmp eax, 0x20b
je 0x10010f3
mov dword [ebp - 0x1c], ebx
jmp 0x100111a
cmp dword [ecx + 0x84], 0xe
jbe 0x10010ee
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001114
cmp dword [ecx + 0x74], 0xe
jbe 0x10010ee
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002014], 0xffffffff
or dword [0x1002018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100201c], eax
call fcn.01001296
cmp dword [section..data], ebx
jne 0x1001175
push fcn.01001296
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001284
push 0x1001058
push 0x1001054
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001050
push 0x100104c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x100120b
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10011df
cmp al, 0x22
jne 0x10011d1
cmp byte [esi], 0x22
jne 0x10011e8
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10011f2
cmp al, 0x20
jbe 0x10011e4
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
jmp 0x1001548
cmp byte [esi], 0x20
jbe 0x10011e8
inc esi
mov dword [ebp - 0x34], esi
jmp 0x100120b
nop
cld
mov al, ch
jmp 0x100eaa6
add ecx, 0x10
inc eax
xchg al, al
sub eax, ebp
cld
or ch, cl
cmc
add ch, bh
dec ecx
xchg al, ch
not ch
mov cl, ah
aas
mov al, dh
dec ecx
inc ah
jmp 0x100151a
not ah
sub word [edx + 0x10033fe], 0xdb70
sub eax, 0x69dc78aa
jmp 0x10014a9
sub edx, 2
not al
jmp 0x100148a
lea ecx, [esi - 0x44]
mov edx, 0x4e66
jmp 0x10014fc
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
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 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], 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 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.00401902
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404415]
lea edx, [fcn.00401974]
sub eax, edx
push eax
push fcn.00401974
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401341
push esi
call fcn.004017e8
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00401832
mov eax, esi
add eax, 0x1cc00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, esi
inc ecx
cdq
idiv ecx
push eax
lea edi, [0x4060e4]
mov eax, esi
lea ebx, [0x4060e4]
or bl, 1
mul ebx
mov dword [ebp - 0x8c], eax
mov ebx, eax
sub edi, eax
push edi
call fcn.00401974
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401902
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
call sub.KERNEL32.dll_GetLastError
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
mov eax, edi
pop edi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x407fea
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4016b8
call fcn.004082b0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x40803d
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x40803d
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x408055
cmp ecx, 0x20b
je 0x408042
mov dword [ebp - 0x60], ebx
jmp 0x408069
cmp dword [eax + 0x84], 0xe
jbe 0x40803d
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x408063
cmp dword [eax + 0x74], 0xe
jbe 0x40803d
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x40aa94], edi
mov dword [0x40aa98], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40aa88]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x40aa84]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40aa90], eax
call fcn.004082ac
cmp dword [0x40a040], ebx
jne 0x4080c6
push fcn.004082ac
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040829a
push 0x40a018
push 0x40a014
call sub.msvcrt.dll__initterm
mov eax, dword [0x40aa80]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [0x40aa7c]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x74], eax
push 0x40a010
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp byte [eax], 0x22
jne 0x408151
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x408131
cmp cl, 0x22
jne 0x408122
cmp byte [eax], 0x22
jne 0x40813a
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x408145
cmp cl, 0x20
jbe 0x408136
test byte [ebp - 0x30], 1
je 0x40815c
movzx ecx, word [ebp - 0x2c]
jmp 0x40815f
cmp byte [eax], 0x20
jbe 0x40813a
inc eax
mov dword [ebp - 0x78], eax
jmp 0x408151
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00407a92
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x60], ebx
jne 0x40817d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4081b9
mov eax, esi
jmp 0x4081cd
call fcn.004082eb
ret

Function at 0x411958
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40b008], 0x8088405
inc edx
mov dword [ebx + 0x40b008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x407040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40708a
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x407059
jmp 0x40708a
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40707a
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x407c1c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x407c51
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x407c7b
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x407c7b
test edi, edi
je 0x407c48
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x407c48
test edi, edi
je 0x407c83
mov eax, edi
jmp 0x407c4a
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x407c4a
int3
Function at 0x40ad26
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestScopeExit.exe_gMozillaPoisonSize], eax
call fcn.00407c1c
pop ecx
mov ecx, dword [sym.TestScopeExit.exe_gMozillaPoisonSize]
mov dword [sym.TestScopeExit.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40ad5e
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestScopeExit.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x4013d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push 0x4c
push 8
mov dword [ebp - 0x1c], eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4014d4
mov esi, dword [ebp + 8]
xor eax, eax
cmp esi, 3
sete al
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [ebp - 0x14]
mov dword [edi + 0x18], eax
lea eax, [edi + 0x1c]
mov dword [edi + 0x14], esi
movups xmmword [edi], xmm0
test eax, eax
je 0x40143a
mov dword [eax + 4], ebx
mov dword [eax], ebx
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 0x10]
push 0
push 0xffff
push 0
push 0
mov dword [edi + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push edi
push 0x401180
push 0
push 0
mov dword [edi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x18]
lea esi, [edi + 0x10]
push esi
push ecx
push edi
mov dword [edi + 0x48], eax
call fcn.00422e00
test eax, eax
jne 0x4014c4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x401495
push eax
push edi
call fcn.00422ac0
mov ebx, dword [esi]
push 0x46db9c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, edi
mov ecx, 0x46dbb4
call fcn.0042fd00
push 0x46db9c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi]
call fcn.00422e70
test ebx, ebx
jne 0x4014d4
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043de43
mov esp, ebp
pop ebp
ret

Function at 0x4019a0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x248]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x401a56
push 0x104
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401a58
movups xmm0, xmmword [str.B597B8EF3F3F4BDE683FEFEF65479B0E]
mov al, byte [0x463f08]
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x20], al
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [0x463ef8]
movups xmmword [ebp - 0x30], xmm0
call fcn.004323d0
lea eax, [ebp - 0x40]
mov byte [ebp - 0x38], 0
push eax
lea eax, [ebp - 0x248]
push eax
push str._s_S.dat
push 0x104
push esi
call fcn.00401730
add esp, 0x14
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043de43
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043de43
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x402020
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x46d900]
push esi
test eax, eax
je 0x4020c4
cmp dword [0x46d928], 0
je 0x4020c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
call esi
push eax
push str._service.c:StopChildProcess:22__child_process__pid___i__is_going_to_be_stopped
call fcn.00431ef0
add esp, 8
push dword [0x46d928]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x4e20
push dword [0x46d900]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40209a
push dword [0x46d900]
call esi
push eax
push str._service.c:StopChildProcess:30__error__child_process__pid___i__stopping_timeout__terminate_it
call fcn.00431ef0
add esp, 8
push 0
push dword [0x46d900]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x46d928]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x46d900]
mov dword [0x46d928], 0
call esi
mov dword [0x46d900], 0
pop esi
ret