joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x417e0f83
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1c78636b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10001804
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x100e0458]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
mov esi, edx
push 0x44
mov dword [ebp - 0x6c], esi
mov ebx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
pop edi
push edi
push 0
push eax
call fcn.10068040
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x28], 1
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], edi
push eax
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000188b
push 0xffffffffffffffff
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x68]
call esi
xor eax, eax
jmp 0x100018d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
mov esi, eax
lea eax, [ebp - 0x58]
push eax
push 0x400
push esi
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 0x58]
mov ecx, str._null_
test ebx, ebx
mov eax, ecx
cmovne eax, ebx
push esi
push eax
mov eax, dword [ebp - 0x6c]
test eax, eax
cmovne ecx, eax
push ecx
push str.cimg::system___:_Command__s__module_name__s__failed_with_error__lu:__s
call fcn.100017b4
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100651a4
leave
ret
Function at 0x10003099
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
mov esi, 0x1009e388
push edi
cmovne esi, eax
mov edi, ecx
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100030b4
sub ecx, edx
lea ebx, [ecx + 1]
test ebx, ebx
je 0x100030dd
push ebx
call fcn.10065712
push ebx
push esi
push eax
mov dword [ebp - 4], eax
call fcn.10067ac0
mov ebx, dword [ebp - 4]
add esp, 0x10
jmp 0x100030df
xor ebx, ebx
cmp dword [edi + 0x18], 0
lea esi, [edi + 0x1c]
je 0x100030f4
cmp dword [esi], 0
je 0x100030f4
mov ecx, edi
call fcn.100031b8
call fcn.10002814
mov ecx, dword [ebp + 8]
cmp eax, ecx
cmovb ecx, eax
mov dword [edi + 0x18], ecx
call fcn.10002851
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
push 3
cmovb ecx, eax
mov word [edi + 0xbc], 0x100
cmp dword [ebp + 0x14], 4
pop eax
cmovb eax, dword [ebp + 0x14]
mov dword [edi + 0x20], eax
mov al, byte [ebp + 0x18]
mov byte [edi + 0x30], al
mov eax, 0x80000000
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], eax
mov al, byte [ebp + 0x1c]
mov dword [esi], ecx
mov ecx, edi
mov byte [edi + 0x60], al
mov dword [edi + 0x34], ebx
call fcn.100027bd
cmp byte [edi + 0x30], 0
je 0x10003158
mov ecx, edi
call fcn.10003005
push 8
call fcn.10065712
pop ecx
mov esi, eax
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [esi], edi
mov eax, dword [edi + 0x34]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 0xc8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x10002c4d
push ebx
push ebx
mov dword [edi + 0xc4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [edi + 0xc4]
mov dword [edi + 0xc0], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x100031b8
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x10003270
cmp dword [esi + 0x1c], ebx
je 0x10003270
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push dword [esi + 0xc0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xdc]
call fcn.100651b2
push dword [esi + 0x34]
call fcn.100651b2
pop ecx
pop ecx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0x34], ebx
cmp byte [esi + 0x30], bl
je 0x1000323a
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x1000321d
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0xd0], ebx
cmp word [esi + 0x124], bx
je 0x1000323a
push ebx
lea eax, [esi + 0xe0]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
and dword [esi + 0x2c], ebx
mov eax, 0x80000000
and dword [esi + 0x28], ebx
mov ecx, esi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
mov byte [esi + 0x30], bl
mov byte [esi + 0x60], 1
mov dword [esi + 0x34], ebx
call fcn.100027bd
mov eax, esi
pop esi
pop ebx
ret
pop esi
pop ebx
jmp fcn.100027bd

Function at 0x100036c6
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100e11e4]
push ebx
push esi
xor ebx, ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100e1f70]
push edi
cmp eax, dword [ecx + 4]
jle 0x10003732
mov esi, 0x100e1f70
push esi
call fcn.10065241
cmp dword [0x100e1f70], 0xffffffff
pop ecx
jne 0x10003732
push 0x10094950
mov dword [0x100e1f10], ebx
mov dword [0x100e1f14], ebx
mov dword [0x100e1f18], ebx
mov dword [0x100e1f1c], ebx
mov byte [0x100e1f20], bl
mov dword [0x100e1f24], ebx
call fcn.100656ef
pop ecx
push esi
call fcn.100651f0
pop ecx
call fcn.100016b0
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x100e1f24], ebx
jne 0x100037ad
push 1
push 1
push 1
push 0x104
mov ecx, 0x100e1f10
call fcn.10006559
mov eax, dword [0x100e1f24]
push ebx
push 0x26
mov byte [eax], bl
push dword [0x100e1f24]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x100037ad
push str.PROGRAMFILES
call fcn.100728eb
pop ecx
test eax, eax
je 0x1000379f
push 0x103
push eax
push dword [0x100e1f24]
call fcn.1006d2b0
add esp, 0xc
jmp 0x100037ad
mov edi, dword [0x100e1f24]
mov esi, str.C:PROGRA1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100016b0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x100e1f24]
pop edi
pop esi
pop ebx
ret

Function at 0x10005395
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100053b9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x100058aa
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x10073ab0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10073aef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10073aef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10073aef
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10073aef
cmp dword [ecx + 0x74], 0xe
jbe 0x10073aef
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10076957
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10099808
push 0x10099800
push str.FlsAlloc
push 0x1f
call fcn.10076816
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007698b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100951e8]
call esi
jmp 0x10076991
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100769d5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10099818
push 0x10099810
push str.FlsGetValue
push 0x21
call fcn.10076816
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10076a0c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100951e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10076a14
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10099820
push 0x10099818
push str.FlsSetValue
push 0x22
call fcn.10076816
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10076a4e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100951e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100778dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10065ba0
mov eax, dword [0x100e0458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1006d482
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007791e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10077a7a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10065c90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100e1718]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100774f4
mov ecx, dword [esi*4 + 0x100e1718]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10077a73
cmp eax, dword [ecx + edi + 0x24]
jne 0x10077a73
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10077a73
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100774f4
add esp, 0x14
test edx, edx
jl 0x10077a73
jg 0x100779e9
test eax, eax
jb 0x10077a73
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10077a73
jl 0x10077a03
cmp dword [ebp - 0x1008], eax
ja 0x10077a73
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10077a21
test ebx, ebx
je 0x10077a5a
cmp ecx, edi
jae 0x10077a5a
mov al, byte [ecx]
cmp al, 0xd
jne 0x10077a3b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10077a47
cmp byte [ecx + 1], 0xa
jne 0x10077a47
inc ecx
jmp 0x10077a47
movzx eax, al
movsx eax, byte [eax + 0x100e0660]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10077a21
cmp edx, ebx
jne 0x10077a21
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10077a78
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100651a4
leave
ret
Function at 0x10079c9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100e1718]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10079cdc
cmp byte [ebx], 0xa
jne 0x10079cdc
or byte [edi + eax + 0x28], 4
jmp 0x10079ce1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10079de0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10079dc3
inc eax
cmp dl, 0xd
je 0x10079d0d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10079d33
cmp eax, ecx
jae 0x10079d41
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10079cf5
jmp 0x10079de0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10079dbe
cmp dword [ebp - 0x10], 0
je 0x10079dbe
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100e1718]
test byte [eax + edi + 0x28], 0x48
je 0x10079d98
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10079d83
mov byte [esi], dl
jmp 0x10079d94
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100e1718]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10079de0
cmp byte [ebp - 1], 0xa
jne 0x10079da7
cmp esi, ebx
jne 0x10079da7
mov byte [esi], 0xa
jmp 0x10079ddf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10077512
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10079de0
mov byte [esi], 0xd
jmp 0x10079ddf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100e1718]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10079ddd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10079de0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10079de9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100e1718]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10079e2f
cmp word [ebx], dx
jne 0x10079e2f
or byte [eax + edi + 0x28], 4
jmp 0x10079e34
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10079f97
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10079f77
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10079e75
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10079eab
cmp eax, edx
jae 0x10079eb9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10079e50
jmp 0x10079f97
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10079f72
cmp dword [ebp - 0x18], 0
je 0x10079f72
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100e1718]
test byte [eax + edi + 0x28], 0x48
je 0x10079f48
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10079f0c
mov word [esi], cx
jmp 0x10079f43
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100e1718]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100e1718]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100e1718]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10079f97
pop eax
cmp word [ebp - 4], ax
jne 0x10079f58
cmp esi, ebx
jne 0x10079f58
mov word [esi], ax
jmp 0x10079f94
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10077512
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10079f97
push 0xd
pop eax
jmp 0x10079f53
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100e1718]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10079f91
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10079f97
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1007c2d6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1007c373
push ebx
push esi
call fcn.1007c29f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1007c233
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007c320
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007c372
push edi
push eax
call fcn.10077118
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007c340
call fcn.100766a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007c371
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007c233
add esp, 0x20
test eax, eax
jne 0x1007c35f
push edi
call fcn.100766a9
jmp 0x1007c367
push ebx
call fcn.100766a9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100819c5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10081941
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10081b34
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10081b34
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10081ae9
jg 0x10081a21
test eax, eax
je 0x10081adf
push 1
push 0x1000
call fcn.1007664c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10081a44
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10081ad6
push 0x8000
push ebx
call fcn.1006d1dc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10081a6d
jg 0x10081a68
cmp ecx, 0x1000
jb 0x10081a6d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10079a80
add esp, 0x10
cmp eax, 0xffffffff
je 0x10081ab2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10081a68
jl 0x10081a99
test ecx, ecx
jne 0x10081a5a
push dword [ebp - 0xc]
push ebx
call fcn.1006d1dc
push esi
call fcn.100766a9
add esp, 0xc
xor ebx, ebx
jmp 0x10081b42
cmp byte [edi + 0x24], 0
je 0x10081ac9
cmp dword [edi + 0x20], 5
jne 0x10081ac9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10081ad4
mov ebx, dword [edi + 0x18]
jmp 0x10081ad6
xor ebx, ebx
push esi
call fcn.100766a9
pop ecx
jmp 0x10081b42
test ecx, ecx
jg 0x10081aab
jl 0x10081ae9
test eax, eax
jae 0x10081aab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10077512
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10081b09
cmp byte [edi + 0x1c], 0
je 0x10081aab
jmp 0x10081b3a
push ebx
call fcn.100790e9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10081aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10081b42
cmp byte [edi + 0x1c], 0
je 0x10081b3f
mov ebx, dword [edi + 0x18]
jmp 0x10081b42
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10077512
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10086840
Capabilities:
Access peb ldr_data

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
push 0xffffffffffffffff
push 0x100945bb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x208
mov eax, dword [0x100e0458]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1bc], ecx
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x1b1]
mov edi, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
push str.convexSweepTest
mov dword [ebp - 0x1b8], eax
call fcn.1005c8b0
movups xmm0, xmmword [edi]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 4], 0
push eax
movups xmmword [ebp - 0x60], xmm0
lea eax, [ebp - 0x1d0]
movups xmm0, xmmword [edi + 0x10]
push eax
lea eax, [ebp - 0xa0]
movups xmmword [ebp - 0x50], xmm0
push eax
movups xmm0, xmmword [edi + 0x20]
lea eax, [ebp - 0x60]
push eax
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa0], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x90], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ebp - 0x80], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ebp - 0x70], xmm0
call fcn.1005a6d0
movss xmm1, dword [ebp - 0x1c0]
lea ecx, [ebp - 0xe0]
movss xmm0, dword [ebp - 0x1d0]
add esp, 0x10
mulss xmm0, xmm1
mov dword [ebp - 0x1d4], 0
movss dword [ebp - 0x1e0], xmm0
movss xmm0, dword [ebp - 0x1cc]
mulss xmm0, xmm1
movss dword [ebp - 0x1dc], xmm0
movss xmm0, dword [ebp - 0x1c8]
mulss xmm0, xmm1
movss dword [ebp - 0x1d8], xmm0
xorps xmm0, xmm0
movaps xmmword [ebp - 0x1f0], xmm0
call fcn.1002ab30
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x60]
call fcn.1004f910
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0xe0]
call fcn.10028a20
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
mov ecx, dword [ebp - 0x1b8]
lea eax, [ebp - 0x1e0]
mov dword [esp], 0x3f800000
push eax
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.1003b350
movss xmm0, dword [ebx + 0x18]
push ecx
movss dword [esp], xmm0
lea ecx, [ebp - 0x1b0]
push dword [ebx + 0x14]
push dword [ebp - 0x1bc]
push esi
push edi
push dword [ebp - 0x1b8]
call fcn.10085920
mov eax, dword [ebp - 0x1bc]
lea edx, [ebp - 0x200]
push edx
lea edx, [ebp - 0x210]
mov byte [ebp - 4], 1
push edx
mov ecx, dword [eax + 0x48]
lea edx, [ebp - 0x1b0]
push edx
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
call dword [eax + 0x14]
lea ecx, [ebp - 0x1b1]
mov dword [ebp - 0x1b0], 0x100952d0
call fcn.1005c8d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100651a4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
Function at 0x10090f90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10090fbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10090fbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret