joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c280
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e47f8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10123068]
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, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.10002b10
push eax
mov ecx, edi
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1002c3a2
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.100093e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.1003d6f0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.100093e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.1003d6f0
test al, al
jne 0x1002c315
test bl, bl
je 0x1002c333
push 0xb
lea ecx, [ebp - 0x40]
call fcn.10002b10
push eax
lea ecx, [ebp - 0x58]
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1002c387
mov ecx, esi
call fcn.1003d090
cmp eax, 0xffffffff
je 0x1002c3b9
push esi
lea ecx, [ebp - 0x28]
call fcn.1000a930
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.1003d4b0
test al, al
je 0x1002c3ad
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1003d130
test al, al
je 0x1002c3ad
mov edx, esi
mov ecx, edi
call fcn.1003d130
lea ecx, [ebp - 0x28]
test al, al
je 0x1002c3a6
call fcn.1003d240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10002b50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10002b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10002b50
mov al, 1
jmp 0x1002c3d6
mov edx, esi
call fcn.1003d130
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10002b50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10002b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10002b50
xor al, al
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.100ba074
mov esp, ebp
pop ebp
ret
Function at 0x1002c400
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4840
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10123068]
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.10002af0
test al, al
je 0x1002c43d
xor al, al
jmp 0x1002c5e9
mov ecx, edi
call fcn.1002bd80
test al, al
je 0x1002c44f
mov al, 1
jmp 0x1002c5e9
push 0
mov ecx, edi
call fcn.10002b10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x1002c49e
lea ecx, [ebp - 0x28]
call fcn.100093e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.1003d6f0
test al, al
je 0x1002c48f
push 0
lea ecx, [ebp - 0x28]
call fcn.10002b10
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b50
mov ecx, edi
call fcn.1002bd80
test al, al
jne 0x1002c448
mov ecx, edi
call fcn.10002b00
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1002c58e
mov ecx, edi
call fcn.10002b60
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x1002c4d2
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x1002c4f5
mov eax, ebx
cmp ecx, 8
jb 0x1002c4eb
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1002c57e
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10009280
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10002af0
test al, al
jne 0x1002c56f
lea ecx, [ebp - 0x28]
call fcn.1002bb70
test al, al
jne 0x1002c56f
push 0
lea ecx, [ebp - 0x28]
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1002c56f
lea ecx, [ebp - 0x40]
call fcn.100093e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1003d6f0
test al, al
je 0x1002c563
push 0
lea ecx, [ebp - 0x40]
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10002b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b50
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x1002c4c6
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.1002bb70
test al, al
jne 0x1002c5e2
push 0
mov ecx, edi
call fcn.10002b10
push eax
call ebx
test eax, eax
jne 0x1002c5e2
lea ecx, [ebp - 0x40]
call fcn.100093e0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.1003d6f0
test al, al
je 0x1002c5d3
push 0
lea ecx, [ebp - 0x40]
call fcn.10002b10
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10002b50
mov ecx, edi
call fcn.1002bd80
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.100ba074
mov esp, ebp
pop ebp
ret
Function at 0x1002c9a0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x10123068]
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.100bc780
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1002cae2
cmp dword [esi + 4], 6
push edi
ja 0x1002c9f6
jne 0x1002ca7e
cmp dword [esi + 8], 2
jb 0x1002ca7e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1002ca7e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002ca7e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002ca7e
movups xmm0, xmmword [0x101080c8]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x101080d8]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1002ca7e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1002ca7e
cmp word [edi + 2], ax
jbe 0x1002ca7e
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 0x1002cac9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.100bc780
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1002cac9
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.100ba074
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100ba074
add esp, 0x140
ret
Function at 0x1002e370
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x20
mov eax, dword [0x10123068]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
mov eax, dword [esi]
mov byte [esp + 0x13], 0
mov eax, dword [eax + 4]
test eax, eax
je 0x1002e539
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegQueryValueExW
push eax
call ebp
mov dword [esp + 0x28], eax
test eax, eax
je 0x1002e539
mov ecx, dword [esi]
mov dword [esp + 0x1c], 0
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x1002e539
push str.RegOpenKeyExW
push ecx
call ebp
mov dword [esp + 0x20], eax
test eax, eax
je 0x1002e539
test edi, edi
je 0x1002e539
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov ecx, dword [ecx]
or ecx, 0x20019
push ecx
mov ecx, dword [esp + 0x1c]
push 0
call fcn.10002b10
push eax
push edi
call dword [esp + 0x34]
test eax, eax
jne 0x1002e539
mov dword [esp + 0x20], eax
mov ecx, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.10002b10
push eax
push dword [esp + 0x30]
call dword [esp + 0x40]
movzx ebx, byte [esp + 0x13]
test eax, eax
mov ecx, 1
lea eax, [esp + 0x1c]
cmove ebx, ecx
mov ecx, esi
push eax
call fcn.1002e330
test bl, bl
je 0x1002e539
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.1002e110
test al, al
je 0x1002e539
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1002e504
mov eax, dword [esi]
mov eax, dword [eax + 4]
test eax, eax
je 0x1002e504
push str.RegQueryValueExW
push eax
call ebp
mov ecx, dword [esi]
push str.RegDeleteValueW
mov dword [esp + 0x24], eax
push dword [ecx + 4]
call ebp
cmp dword [esp + 0x20], 0
mov ebx, eax
je 0x1002e504
test ebx, ebx
je 0x1002e504
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0
push eax
push 0
mov dword [esp + 0x34], 0
call fcn.10002b10
push eax
push edi
call dword [esp + 0x38]
cmp eax, 2
je 0x1002e504
mov ecx, dword [esp + 0x18]
call fcn.10002b10
push eax
push edi
call ebx
test eax, eax
sete bl
jmp 0x1002e506
xor bl, bl
mov eax, dword [esi]
mov eax, dword [eax + 4]
test eax, eax
je 0x1002e522
push str.RegCloseKey
push eax
call ebp
test eax, eax
je 0x1002e522
test edi, edi
je 0x1002e522
push edi
call eax
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100ba074
add esp, 0x20
ret 0xc
mov ecx, dword [esp + 0x2c]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ba074
add esp, 0x20
ret 0xc
Function at 0x1002fd10
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x624]
sub esp, 0x624
push 0xffffffffffffffff
push 0x100e4ce8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10123068]
xor eax, ebp
mov dword [ebp + 0x620], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x10125df8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
call fcn.1000ccb0
mov dword [ebp - 4], 0
mov ecx, 0x10125de0
call fcn.10002af0
test al, al
jne 0x1002fdae
mov ecx, 0x10125de0
call fcn.10002b60
cmp esi, eax
je 0x1002fd98
call fcn.10002b60
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x1002fd8d
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
mov ecx, esi
call fcn.10002bd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000cce0
mov al, 1
jmp 0x1002fe6d
push 0x20c
lea eax, [ebp + 0x414]
push 0
push eax
call fcn.100bc780
add esp, 0xc
lea eax, [ebp + 0x414]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1002fe5c
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x61e], ax
lea eax, [ebp]
push eax
call fcn.100bc780
add esp, 0xc
lea eax, [ebp]
push 0x208
push eax
lea eax, [ebp + 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1002fe40
test eax, eax
je 0x1002fe40
add eax, eax
cmp eax, 0x412
jae 0x1002fe8e
xor ecx, ecx
mov word [ebp + eax], cx
lea eax, [ebp]
push eax
call fcn.10002dd0
add esp, 4
push eax
lea eax, [ebp]
push eax
jmp 0x1002fd91
lea eax, [ebp + 0x414]
push eax
call fcn.10002dd0
add esp, 4
push eax
lea eax, [ebp + 0x414]
push eax
jmp 0x1002fd91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000cce0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x620]
xor ecx, ebp
call fcn.100ba074
lea esp, [ebp + 0x624]
pop ebp
ret
call fcn.100ba547
int3

Function at 0x10030320
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x10123068]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.10013d50
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.100bc780
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1003037c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.100ba074
add esp, 0x418
ret
cmp eax, 0x208
jae 0x10030364
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.10002dd0
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.10002bd0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.100ba074
add esp, 0x418
ret
Function at 0x10031d00
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
mov eax, dword [0x10123068]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esp + 0x20]
test esi, esi
je 0x10031dd8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, esi
je 0x10031dd8
test ebx, ebx
je 0x10031d73
push ebx
test edi, edi
jne 0x10031d41
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10031d58
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
push 2
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x10031d73
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.100ba074
add esp, 0xc
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test eax, eax
je 0x10031dc4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10031dc4
push eax
test edi, edi
jne 0x10031dad
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.100ba074
add esp, 0xc
ret
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
push 2
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.100ba074
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ba074
add esp, 0xc
ret
Function at 0x10034750
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10034788
mov edx, dword [esp + 4]
test edx, edx
je 0x10034788
cmp dword [eax], 0xffffffff
je 0x10034788
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 0x10034788
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x10034790
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x100347ca
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100347ca
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100347ca
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 0x100347ca
cmp edi, dword [esi]
jne 0x100347ca
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x10034810
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10123068]
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 0x10034873
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10034873
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003484e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10034873
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.100ba074
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100ba074
add esp, 8
ret 4
Function at 0x100360e0
Capabilities:
Suspend thread
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x10123068]
xor eax, esp
mov dword [esp + 4], eax
push esi
push ecx
push 0
push 0x43
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x10036112
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100ba074
add esp, 8
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1003616d
cmp dword [esp + 4], 0x103
jne 0x1003616d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlFreeUserThreadStack
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10036163
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov al, 1
pop esi
xor ecx, esp
call fcn.100ba074
add esp, 8
ret

Function at 0x100365d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e5c28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10123068]
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 0x10036613
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.1000ccb0
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x10036687
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 0x100361b0
push 0
push 0
call fcn.100cae75
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x100366ac
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x1003667f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10036340
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000cce0
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 0x100366c4
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 0x1003666e
mov bl, 1
jmp 0x10036689
Function at 0x100368e0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x100e5cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10123068]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp + 4]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x100369a7
lea edi, [ebp + 4]
mov dword [ebp], 0
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x100369cc
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100ba724
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, edi
mov dword [ebp], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10036993
cmp eax, ebx
ja 0x10036993
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x10], ebx
jmp 0x100369f0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100369a7
push edi
call fcn.100ba71f
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.100ba074
lea esp, [ebp + 0x808]
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x10036a63
xor ecx, ecx
mov word [ebp + eax + 4], cx
add eax, 2
cmp eax, 0x800
jae 0x10036a63
mov word [ebp + eax + 4], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x10036a48
mov esi, dword [ebp - 0x14]
mov ebx, 2
mov eax, dword [ebp - 0x10]
cmp word [esi + ebx - 2], 0
jne 0x10036a3d
cmp ecx, edi
je 0x10036a3d
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x30]
call fcn.10009390
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.10011e30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10002b50
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x10036a03
mov esi, dword [ebp]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10036a5c
push esi
call fcn.100ba71f
add esp, 4
mov al, 1
jmp 0x100369a9
call fcn.100ba547
int3

Function at 0x100384a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x10123068]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.100ba085
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.100bc780
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x100384fc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.100ba074
add esp, 0x120
ret
Function at 0x1003ae00
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.10002af0
test al, al
jne 0x1003ae27
mov ecx, dword [esp + 8]
call fcn.10002b10
jmp 0x1003ae29
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1003ae51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x1003ae53
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x1003ae80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6608
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10123068]
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x1003aec6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100427e0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1003aeef
lea ebx, [esi + 8]
jmp 0x1003aef1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.10002af0
test al, al
jne 0x1003af07
mov ecx, dword [ebp - 0x18]
call fcn.10002b10
jmp 0x1003af09
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x1003af2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1003af2a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1003af53
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1003af68
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100ba418
add esp, 8
mov dword [ebp - 0x14], 0
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.100ba074
mov esp, ebp
pop ebp
ret 4