joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10059cc0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101353dc
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.10104ad0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.100062e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.100062e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c4]
push eax
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x294]
call fcn.10067bc0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.10004a60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c4]
call fcn.10004a60
lea ecx, [ebp - 0x294]
call fcn.10066f90
test al, al
jne 0x10059e1e
xor bl, bl
jmp 0x10059e80
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x27c]
call fcn.10063e40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.10004f40
test al, al
je 0x10059e46
xor bl, bl
jmp 0x10059e71
lea ecx, [ebp - 0x27c]
call fcn.10004b50
cmp esi, eax
je 0x10059e6f
call fcn.10004b50
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x10059e64
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.10004bc0
mov bl, 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.10004a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.10004a60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10102ce9
mov esp, ebp
pop ebp
ret 4
Function at 0x10059ec0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013544e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.10104ad0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.100062e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.100062e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x27c]
call fcn.10067bc0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.10004a60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.10004a60
lea ecx, [ebp - 0x27c]
call fcn.10066f90
test al, al
je 0x1005a0c2
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x280], 0
call fcn.10102d0d
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x27c]
push 0x80
push 4
push 1
push SysReAllocString
push eax
lea ecx, [ebp - 0x280]
call fcn.10068770
test al, al
jne 0x1005a0c6
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x1005a0c2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1005a0ad
test eax, eax
je 0x1005a0ad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.101031a0
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x1005a10f
push esi
lea ecx, [ebp - 0x280]
call fcn.10068920
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x1005a10f
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1005a0fa
test eax, eax
je 0x1005a0fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.101031a0
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.10004a60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10102ce9
mov esp, ebp
pop ebp
ret 4
Function at 0x10060800
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135d7c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10193008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.10004a60
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.10004a60
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.10004a60
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10004a60
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10004a60
push 0x88
push ebx
call fcn.101031a0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100611d0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x10193008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.10104ad0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10061312
cmp dword [esi + 4], 6
push edi
ja 0x10061226
jne 0x100612ae
cmp dword [esi + 8], 2
jb 0x100612ae
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x100612ae
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100612ae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100612ae
movups xmm0, xmmword [str.VS_VERSION_INFO]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x1015eafc]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100612ae
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100612ae
cmp word [edi + 2], ax
jbe 0x100612ae
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100612f9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10104ad0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x100612f9
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.10102ce9
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.10102ce9
add esp, 0x140
ret
Function at 0x10064760
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x10193008]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.1000ddd0
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.10104ad0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x100647bc
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.10102ce9
add esp, 0x418
ret
cmp eax, 0x208
jae 0x100647a4
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.10005290
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.10004bc0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.10102ce9
add esp, 0x418
ret

Function at 0x100652a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x10193008]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.10104ad0
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1006531e
cmp dword [esp + 0x14], 6
jb 0x1006531e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.10065110
add esp, 0xc
test al, al
je 0x1006531e
cmp word [esi], 0
jne 0x10065376
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocString
call fcn.10065110
add esp, 0xc
test al, al
je 0x1006534a
cmp word [esi], 0
jne 0x10065376
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.10065110
add esp, 0xc
test al, al
je 0x1006538b
cmp word [esi], 0
je 0x1006538b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.10102ce9
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.10102ce9
mov esp, ebp
pop ebp
ret
Function at 0x10065920
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013666b
mov eax, dword fs:[0]
push eax
mov eax, 0x285c
call fcn.10123500
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp - 0x2218]
push ebx
push eax
call fcn.10104ad0
add esp, 0xc
mov eax, 0x22
mov word [ebp - 0x2218], ax
test esi, esi
je 0x10065b34
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x10065b34
push esi
call edi
cmp eax, 0xffa
jge 0x10065b34
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2218]
push eax
call esi
push 0x1015c078
lea eax, [ebp - 0x2218]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2868]
call fcn.100062e0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2868]
push eax
call fcn.1006d790
mov ecx, eax
call fcn.1006d850
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2868]
call fcn.10004a60
test esi, esi
je 0x10065b34
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x284c], eax
test eax, eax
je 0x10065b34
lea ecx, [ebp - 0x2848]
call fcn.100653a0
xor edi, edi
lea esi, [ebp - 0x2848]
nop dword [eax]
cmp word [esi], 0
je 0x10065a54
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x284c]
cmp eax, 0x20
ja 0x10065a62
inc edi
add esi, 0x210
cmp edi, 3
jl 0x10065a30
jmp 0x10065a84
imul ebx, edi, 0x210
cmp dword [ebp + ebx - 0x2640], 0
mov ebx, dword [ebp + ebx - 0x263c]
jne 0x10065a7c
add ebx, 0x10
test ebx, ebx
jne 0x10065b30
mov edi, dword [ebp - 0x284c]
lea eax, [ebp - 0x2218]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x10065b2b
mov dword [ebp - 0x2850], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x284c], str._programfiles_Internet_Exploreriexplore.exe
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10104ad0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push dword [ebp + esi*4 - 0x2850]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10065b21
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x10065b2b
inc esi
cmp esi, 2
jb 0x10065ac0
mov eax, ebx
jmp 0x10065b36
mov ebx, 0x10
mov eax, ebx
jmp 0x10065b36
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10102ce9
mov esp, ebp
pop ebp
ret
Function at 0x100675d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136980
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.10004f40
test al, al
je 0x1006760d
xor al, al
jmp 0x100677b9
mov ecx, edi
call fcn.100670a0
test al, al
je 0x1006761f
mov al, 1
jmp 0x100677b9
push 0
mov ecx, edi
call fcn.100062d0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x1006766e
lea ecx, [ebp - 0x28]
call fcn.10005050
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.1007b730
test al, al
je 0x1006765f
push 0
lea ecx, [ebp - 0x28]
call fcn.100062d0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004a60
mov ecx, edi
call fcn.100670a0
test al, al
jne 0x10067618
mov ecx, edi
call fcn.10004a20
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1006775e
mov ecx, edi
call fcn.10004b50
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x100676a2
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x100676c5
mov eax, ebx
cmp ecx, 8
jb 0x100676bb
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1006774e
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10009a10
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10004f40
test al, al
jne 0x1006773f
lea ecx, [ebp - 0x28]
call fcn.10066e90
test al, al
jne 0x1006773f
push 0
lea ecx, [ebp - 0x28]
call fcn.100062d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1006773f
lea ecx, [ebp - 0x40]
call fcn.10005050
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1007b730
test al, al
je 0x10067733
push 0
lea ecx, [ebp - 0x40]
call fcn.100062d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10004a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004a60
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x10067696
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.10066e90
test al, al
jne 0x100677b2
push 0
mov ecx, edi
call fcn.100062d0
push eax
call ebx
test eax, eax
jne 0x100677b2
lea ecx, [ebp - 0x40]
call fcn.10005050
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.1007b730
test al, al
je 0x100677a3
push 0
lea ecx, [ebp - 0x40]
call fcn.100062d0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004a60
mov ecx, edi
call fcn.100670a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10102ce9
mov esp, ebp
pop ebp
ret
Function at 0x10068160
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012fe38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10193008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x100681a3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0x20
mov dword [ebp - 0x10], 0
push eax
lea ecx, [ebp - 0x10]
call fcn.10009250
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x10068217
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x10067d40
push 0
push 0
call fcn.10112ba5
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1006823c
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x1006820f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10067ed0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10009280
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10068254
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x100681fe
mov bl, 1
jmp 0x10068219
Function at 0x10068350
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136b98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.1006f030
mov edx, dword [ebp - 0x1c]
add esp, 4
mov esi, dword [ebp - 0x18]
cmp edx, esi
setne bh
sub esi, edx
sar esi, 2
xor edi, edi
mov dword [ebp - 0x20], esi
test esi, esi
je 0x10068437
mov eax, esi
nop dword [eax]
mov esi, dword [edx + edi*4]
test esi, esi
jne 0x100683db
xor bl, bl
jmp 0x10068430
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor bl, bl
cmp eax, esi
je 0x1006842a
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1006842a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, esi
je 0x10068423
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test eax, eax
je 0x10068423
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
inc edi
and bh, bl
cmp edi, eax
jb 0x100683d0
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x10068483
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10068464
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100684a1
push ecx
push edx
call fcn.101031a0
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10102ce9
mov esp, ebp
pop ebp
ret
call fcn.10107654
int3

Function at 0x10068860
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10068898
mov edx, dword [esp + 4]
test edx, edx
je 0x10068898
cmp dword [eax], 0xffffffff
je 0x10068898
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10068898
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x100688a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x100688da
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100688da
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100688da
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100688da
cmp edi, dword [esi]
jne 0x100688da
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x10068920
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10193008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x10068983
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10068983
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006895e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10068983
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10102ce9
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.10102ce9
add esp, 8
ret 4