joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43dcac
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f63b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x6bb300]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x43dd05
push 0x5c18e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43dd22
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x6bb300], eax
jmp 0x43dd0e
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x43dd22
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x43de5f
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0056ea3b
lea eax, [ebp - 0x14]
push eax
call fcn.0055040b
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0054d9fb
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.0056ea3b
lea eax, [ebp - 0x14]
push eax
call fcn.0055040b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0054d9fb
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0056ea3b
lea eax, [ebp - 0x14]
push eax
call fcn.0055040b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0054d9fb
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.0056ea3b
lea eax, [ebp - 0x14]
push eax
call fcn.0055040b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0054d9fb
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.0056ea3b
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0055040b
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0054d9fb
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054cf7e
leave
ret
Function at 0x44d991
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.0042cfa7
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x44d9cd
call fcn.0044dbac
mov dword [esi + 0xc], 1
jmp 0x44d9d2
call fcn.0044dbac
cmp dword [esi], 0
je 0x44da1b
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x44d9f5
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00428810
jmp 0x44da06
push 0xff
mov ecx, esi
call fcn.00404750
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00428833
jmp 0x44da3f
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x44da3f
push dword [esi]
push dword [ebp - 4]
call fcn.0043e1f4
pop esi
leave
ret 0xc

Function at 0x44db03
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0044dbac
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x44db4b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00428810
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00428833
jmp 0x44db56
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0043e1f4
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4745f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x474610
call fcn.0043902c
mov esi, dword [eax + 0xc]
push 0x5985d4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x474666
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x474665
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x474646
xor esi, esi
jmp 0x47465c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0047466c
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x532453
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x53246d
mov edi, dword [esi + 0xc]
jmp 0x5324ad
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x532486
call fcn.004413a8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x53249b
call fcn.004413a8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5324ad
call fcn.004413a8
call fcn.0043902c
cmp dword [eax + 0x3c], 0
je 0x5324c2
push edi
mov ecx, ebx
call fcn.00531cef
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00532685
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x5324e5
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x5324ee
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5659ee
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f63b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00559f6b
mov dword [ebp - 0x14], eax
cmp dword [0x6bfd08], edi
jne 0x565adf
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x565a6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x565bbf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x565bbf
push 0x5bb7b8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x565bbf
push eax
call ebx
push 0x5bb7c4
push esi
mov dword [0x6bfd08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5bb7d4
push esi
mov dword [0x6bfd0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x6bfd10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6bfd18], eax
test eax, eax
je 0x565adc
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6bfd14], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x565b04
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x565af7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x565b19
push 4
pop eax
jmp 0x565bc1
cmp dword [ebp - 0x14], edi
je 0x565b19
push dword [0x6bfd08]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x565afe
mov eax, dword [0x6bfd14]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x565b77
cmp dword [0x6bfd18], esi
je 0x565b77
push eax
call ebx
push dword [0x6bfd18]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x565b77
test eax, eax
je 0x565b77
call ecx
test eax, eax
je 0x565b6c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x565b6c
test byte [ebp - 8], 1
jne 0x565b77
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x565ba7
mov eax, dword [0x6bfd0c]
cmp eax, esi
je 0x565ba4
push eax
call ebx
test eax, eax
je 0x565ba4
call eax
mov edi, eax
test edi, edi
je 0x565ba4
mov eax, dword [0x6bfd10]
cmp eax, esi
je 0x565ba4
push eax
call ebx
test eax, eax
je 0x565ba4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x6bfd08]
call ebx
test eax, eax
je 0x565bbf
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x565bc1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054cf7e
leave
ret
Function at 0x56f467
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x56f4d9
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x56f4d8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x56f4d1
movzx eax, word [ecx]
add ecx, 2
and esi, 0xf
je 0x56f4bf
movzx eax, ax
lea ecx, [ecx + eax*2]
movzx eax, word [ecx]
add ecx, 2
dec esi
jne 0x56f4b0
test ax, ax
je 0x56f4d1
movzx eax, ax
push eax
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00410cb2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
ret
Function at 0x4095b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x408015
lea edi, [esi - 0x7015]
push edi
or ebp, 0xffffffff
jmp 0x4095d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4095d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4095c8
mov eax, 1
add ebx, ebx
jne 0x4095eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4095e0
jne 0x4095fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4095e0
xor ecx, ecx
sub eax, 3
jb 0x409610
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409682
mov ebp, eax
add ebx, ebx
jne 0x40961b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40964c
inc ecx
add ebx, ebx
jne 0x409638
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40962d
jne 0x409649
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40962d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40966c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40965d
jmp 0x4095ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40966c
add edi, ecx
jmp 0x4095ce
pop esi
mov edi, esi
mov ecx, 0xa3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40968a
cmp byte [edi], 1
jne 0x40968a
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 eax, ebx
loop 0x40968f
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x4096fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x903c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4096bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9040]
or eax, eax
je 0x4096f8
mov dword [ebx], eax
add ebx, 4
jmp 0x4096d9
call dword [esi + 0x9044]
popal
jmp 0x401270
Function at 0x411850
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d0
push ebx
push esi
push edi
lea edi, [ebp - 0x250]
mov ecx, 0x94
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x41d0ad
call fcn.0041137a
push 0
push 2
call fcn.00411163
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4118a1
push str.______Could_not_create_snapshot._n
call fcn.004110e1
add esp, 4
mov dword [ebp - 0x24c], 0x22c
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00411325
test eax, eax
jne 0x4118f6
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00411285
push eax
push str.Coundt_load_process_info__d_n
call fcn.004110e1
add esp, 8
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411285
xor eax, eax
jmp 0x41199b
mov esi, esp
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.ucrtbased.dll_wcscmp]
add esp, 8
cmp esi, esp
call fcn.00411285
test eax, eax
jne 0x411970
lea eax, [ebp - 0x228]
push eax
push str.___The_process__s_was_found_in_memory._n
call fcn.0041129e
add esp, 8
mov esi, esp
mov eax, dword [ebp - 0x244]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.00411285
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x411958
mov eax, dword [ebp - 0x18]
jmp 0x41199b
lea eax, [ebp - 0x228]
push eax
push str.______Failed_to_open_process__s._n
call fcn.004110e1
add esp, 8
xor eax, eax
jmp 0x41199b
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00411195
test eax, eax
jne 0x4118f6
mov eax, dword [ebp + 8]
push eax
push str._______s_has_not_been_loaded_into_memory__aborting._n
call fcn.004110e1
add esp, 8
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4119cc]
call fcn.0041121c
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411177
add esp, 0x3d0
cmp ebp, esp
call fcn.00411285
mov esp, ebp
pop ebp
ret

Function at 0x484cff
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x484a08
mov edx, 0x30e895bf
and edx, edx
add edx, esi
call fcn.00484d45
or esi, esi
xor dword [ebx], eax
add esi, 0x1a98af9c
mov edx, 0x97d13033
add esi, 0xa49fd411
add ebx, 2
and esi, edx
mov edx, 0x962e51cc
mov esi, esi
cmp ebx, ecx
jl fcn.00484cff
add edx, 0x48d600f5
add edx, edx
ret
Function at 0x401080
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.00415180
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x438020]
cmp eax, 0xffffffff
jne 0x4010b9
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x4010a4
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [0x438020]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1418], ecx
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
test ebx, ebx
je 0x401106
push ebx
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
call fcn.00415260
mov esi, eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
lea eax, [ebp - 0x1410]
push 0xc00
push 0x438490
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, 0x100
mov al, 1
lea edx, [ebp - 0x1408]
test al, 1
je 0x401192
mov dword [ebp - 0x1414], ecx
xor eax, eax
mov esi, edx
xor ebx, ebx
mov edi, dword [ebp + ebx*8 - 0x810]
test edi, edi
jne 0x40116a
inc ebx
add esi, 0xc
cmp ebx, 0x100
jne 0x401151
jmp 0x401184
cmp dword [esi - 8], 0
je 0x40115c
mov ecx, dword [ebp + ebx*8 - 0x80c]
cmp ecx, dword [esi]
jne 0x40115c
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x40115c
jmp 0x4011a5
mov esi, dword [ebp - 0x1414]
lea ecx, [esi - 1]
cmp esi, 2
jae 0x401141
push 2
push dword [ebp - 0x1418]
call dword [sym.imp.kernel32.dll_TlsSetValue]
jmp 0x4010a4
mov dword [ebp + ebx*8 - 0x810], 0
call dword [section..00cfg]
push edi
call ecx
lea edx, [ebp - 0x1408]
add esp, 4
mov al, 1
jmp 0x40115c
Function at 0x4016a0
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 0x401706
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 0x401710
lea eax, [edi + 1]
cmp eax, 2
jb 0x4016fd
mov dword [esi], edi
call fcn.00401780
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x14], eax
call fcn.00401790
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.00401780
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.00401790
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 eax, dword [esi]
mov dword [ebp - 0x10], eax
call fcn.00401790
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
mov edi, dword [ebp + 8]
push dword [ebp - 0x10]
call ebx
mov dword [esi], 0
jmp 0x4016c3
Function at 0x408d40
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
je 0x408e69
mov dword [ebp - 0x60], ecx
lea edx, [ecx + 0x30]
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
mov ecx, edi
push eax
push 2
call fcn.00409060
add esp, 8
mov edx, dword [edi]
test edx, edx
je 0x408e70
cmp dword [edx], 0
je 0x408e48
mov eax, dword [ebp - 0x60]
add eax, 0x18
mov dword [ebp - 0x68], eax
xor esi, esi
mov dword [ebp - 0x64], edx
test dword [edx + esi*8 + 8], 0xc0000020
jne 0x408e2b
cmp dword [ebp + 8], 0
je 0x408de8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp dword [ecx + 4], eax
je 0x408de8
xor edi, edi
xor ebx, ebx
add eax, edi
push dword [edx + esi*8 + 4]
push eax
call dword [sym.imp.advapi32.dll_EqualSid]
mov edx, dword [ebp - 0x64]
test eax, eax
jne 0x408e2b
inc ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 2
imul ecx, ecx, 0xf0f0f0f1
add edi, 0x44
cmp ebx, ecx
jb 0x408db9
mov eax, dword [edx + esi*8 + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x14], 0
push eax
lea ebx, [ebp - 0x54]
push ebx
push 0x44
call dword [sym.imp.advapi32.dll_CopySid]
mov edi, dword [ebp - 0x60]
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x20]
jne 0x408e36
mov ecx, dword [ebp - 0x68]
push ebx
push eax
call fcn.00408e80
mov edx, dword [ebp - 0x64]
inc esi
cmp esi, dword [edx]
jb 0x408d97
jmp 0x408e48
push 0x44
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [edi + 0x1c], 0x44
jmp 0x408e28
push edx
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 0x3f0
jmp 0x408e53
mov esi, dword [ebp - 0x58]
jmp 0x408e53
Function at 0x40b940
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, 0x34
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x438014]
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 [ecx + 4], eax
mov eax, dword [0x4380f8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x4393b8]
cmp ecx, dword [eax + 4]
jg 0x40ba07
mov ebx, dword [0x4393b4]
mov eax, dword [ebp + 0xc]
add eax, edi
dec eax
xor edx, edx
div ebx
mov ecx, eax
mov eax, edi
xor edx, edx
div ebx
mov edi, eax
inc ecx
sub ecx, eax
je 0x40b9f3
mov eax, ebx
lea edx, [esi + 4]
mov dword [ebp - 0x3c], edx
imul edi, ebx
xor ebx, ebx
inc ebx
cmp ecx, 2
cmovae ebx, ecx
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x34]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x40ba45
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
je 0x40ba55
mov ecx, dword [esi + 4]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
inc dword [esi + 8]
mov eax, dword [ebp - 0x40]
add edi, eax
dec ebx
jne 0x40b9c1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4393b8
call fcn.00414188
add esp, 4
cmp dword [0x4393b8], 0xffffffff
jne 0x40b98b
lea ebx, [ebp - 0x34]
push ebx
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebx + 4]
mov dword [0x4393b4], eax
push 0x4393b8
call fcn.00414188
add esp, 4
jmp 0x40b98b
mov dword [ebp - 0x34], 0
mov ecx, esi
call fcn.0042fbf0
jmp 0x40b9f3
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x3c]
call fcn.0042fcb0
test al, al
je 0x40ba4c
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x38]
jmp 0x40b9de