joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007f8a0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c220e
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x1010aef8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 1
xor ebx, ebx
mov dword [esi], vtable.CTPFontInstance.0
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
fld1
sub esp, 0x20
fst qword [esp + 0x18]
fldz
lea ecx, [esi + 0x10]
fst qword [esp + 0x10]
fstp qword [esp + 8]
fstp qword [esp]
call fcn.100733c0
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.10072a60
mov eax, dword [0x100fef8c]
cmp eax, ebx
jne 0x1007f942
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1007f93b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x1007f93d
xor eax, eax
mov dword [0x100fef8c], eax
mov ecx, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call ebx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push ecx
push edx
mov ecx, eax
call fcn.1007f4b0
mov word [esi + 8], ax
mov eax, dword [0x100fef8c]
test eax, eax
jne 0x1007f990
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
test edi, edi
je 0x1007f989
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x1007f98b
xor eax, eax
mov dword [0x100fef8c], eax
mov eax, dword [eax]
push eax
call ebx
movzx ecx, word [esi + 8]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.10078120
mov ecx, eax
call fcn.100794d0
mov ecx, dword [eax]
test ecx, ecx
jne 0x1007f9ba
xor edx, edx
jmp 0x1007f9bc
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
mov edi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp edi, eax
ja 0x1007f9d0
sub eax, edi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov edi, dword [eax + ecx*4]
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x1007fa08
mov ecx, dword [0x1010e0c4]
mov edx, dword [0x1010d9a0]
cmp ecx, dword [edx]
je 0x1007f9f5
call fcn.100a0e00
push ebx
call dword [0x1010db9c]
add esp, 4
test eax, eax
setne al
test al, al
jne 0x1007fa0a
xor ebx, ebx
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], ebx
test eax, eax
je 0x1007fa1e
push eax
call dword [0x1010dba0]
add esp, 4
lea eax, [edi + 0x10]
push eax
lea ecx, [esi + 0x10]
call fcn.10073420
mov eax, dword [edi + 0x3c]
xor ecx, ecx
mov dword [esi + 0x3c], eax
test eax, eax
je 0x1007fa4e
mov edx, edi
lea eax, [esi + 0x28]
sub edx, esi
lea ecx, [ecx]
fld dword [edx + eax]
inc ecx
fstp dword [eax]
add eax, 4
cmp ecx, dword [esi + 0x3c]
jb 0x1007fa40
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x40], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
mov ax, word [edi + 0x48]
or ecx, 0xffffffff
mov word [esi + 0x48], ax
mov word [esi + 0xa], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100846a0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c29d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1010aef8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100fef8c]
test eax, eax
jne 0x100846f0
push 4
call fcn.100328c0
mov esi, eax
add esp, 4
test esi, esi
je 0x100846e9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov eax, esi
jmp 0x100846eb
xor eax, eax
mov dword [0x100fef8c], eax
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.100845d0
mov dword [ebp - 0x10], 0
mov eax, dword [0x1010c6bc]
mov dword [ebp - 4], 0
mov dword [0x1010c6bc], 0
test eax, eax
je 0x1008472b
push eax
call dword [0x1010dba0]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10096f50
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call fcn.1009f040
add esp, 4
test eax, eax
je 0x10096f7f
call fcn.10096ef0
test al, al
je 0x10096f7f
call fcn.1008d380
test al, al
je 0x10096f7f
mov ebx, 1
jmp 0x10096f81
xor ebx, ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1009702d
mov ecx, dword [eax]
mov dword [0x1010ef28], ecx
mov edx, dword [eax + 4]
mov dword [0x1010e118], edx
mov ecx, dword [eax + 8]
mov dword [0x1010e108], ecx
mov edx, dword [eax + 0xc]
mov dword [0x1010e138], edx
mov ecx, dword [eax + 0x10]
mov dword [0x1010e120], ecx
mov edx, dword [eax + 0x14]
mov dword [0x1010e158], edx
mov ecx, dword [eax + 0x18]
mov dword [0x1010e130], ecx
mov edx, dword [eax + 0x1c]
mov dword [0x1010e128], edx
mov ecx, dword [eax + 0x20]
mov dword [0x1010c6e0], ecx
mov edx, dword [eax + 0x28]
mov dword [0x1010e110], edx
mov ecx, dword [eax + 0x2c]
mov dword [0x1010e11c], ecx
mov edx, dword [eax + 0x30]
mov dword [0x1010e10c], edx
mov ecx, dword [eax + 0x34]
mov dword [0x1010e13c], ecx
mov edx, dword [eax + 0x38]
mov dword [0x1010e124], edx
mov ecx, dword [eax + 0x3c]
mov dword [0x1010e15c], ecx
mov edx, dword [eax + 0x40]
mov dword [0x1010e134], edx
mov ecx, dword [eax + 0x44]
mov dword [0x1010e12c], ecx
mov edx, dword [eax + 0x48]
mov dword [0x1010c6e4], edx
cmp dword [0x100fef8c], 0
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
jne 0x1009705a
push 4
call fcn.100328c0
mov esi, eax
add esp, 4
test esi, esi
je 0x10097052
call edi
mov dword [esi], eax
jmp 0x10097054
xor esi, esi
mov dword [0x100fef8c], esi
cmp dword [0x100fefa0], 0
jne 0x10097091
push 4
call fcn.100328c0
mov esi, eax
add esp, 4
test esi, esi
je 0x10097089
call edi
mov dword [esi], eax
mov dword [0x100fefa0], esi
call fcn.100155b0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
xor esi, esi
mov dword [0x100fefa0], esi
call fcn.100155b0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x100a2cc1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1010aef8]
jne 0x100a2ccb
repz ret
jmp fcn.100a5a38
Function at 0x100ad52c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1010aef8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100a6816
and dword [ebp - 0x14], 0
cmp dword [0x1010ef08], 0
mov dword [ebp - 0x18], eax
jne 0x100ad5df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100ad687
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100ad687
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1010ef08], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1010ef0c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1010ef10], eax
call edi
push eax
call esi
mov dword [0x1010ef18], eax
test eax, eax
je 0x100ad5df
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1010ef14], eax
mov eax, dword [0x1010ef14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100ad638
cmp dword [0x1010ef18], ecx
je 0x100ad638
push eax
call esi
push dword [0x1010ef18]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100ad638
test ebx, ebx
je 0x100ad638
call edi
test eax, eax
je 0x100ad62f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100ad62f
test byte [ebp - 8], 1
jne 0x100ad638
or dword [ebp + 0x10], 0x200000
jmp 0x100ad66b
mov eax, dword [0x1010ef0c]
cmp eax, dword [ebp - 0x18]
je 0x100ad66b
push eax
call esi
test eax, eax
je 0x100ad66b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100ad66b
mov eax, dword [0x1010ef10]
cmp eax, dword [ebp - 0x18]
je 0x100ad66b
push eax
call esi
test eax, eax
je 0x100ad66b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1010ef08]
call esi
test eax, eax
je 0x100ad687
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100ad689
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a2cc1
leave
ret
Function at 0x401c57
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xa480c0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x401ca0
push str.SetDefaultDllDirectories
push 0xa15570
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401ca0
push 0xc00
call eax
test eax, eax
jne 0x401d3c
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401d3c
cmp eax, 0x104
ja 0x401d3c
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x401cd7
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x401d3b
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x401cf8
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x401cf5
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0099b2f9
leave
ret
Function at 0x4053f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
lea ebx, [esi + 0xc8]
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x4054a8
mov edi, ebx
mov dword [ebp - 4], ecx
mov eax, ecx
cmp dword [edi + 8], edx
je 0x405484
push edi
call fcn.004053c5
mov eax, dword [ebp - 4]
xor edx, edx
add edi, 0x28
sub eax, 1
mov dword [ebp - 4], eax
jne 0x405474
cmp dword [esi + 0x5c], 0
je 0x4054a3
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], 0
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.0040639a
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul edx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add edx, esi
push edx
mov dword [ebp - 4], edx
call fcn.0040539f
mov edi, eax
test edi, edi
jne 0x405529
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
call fcn.0040652c
mov edi, eax
test edi, edi
jne 0x405529
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
call fcn.0040652c
mov edi, eax
test edi, edi
jne 0x405529
push dword [ebp - 4]
call fcn.00406311
mov edi, eax
test edi, edi
je 0x405529
and dword [esi + 0x44], 0
push 0x20
pop esi
push ebx
call fcn.00405321
add ebx, 0x28
sub esi, 1
jne 0x405518
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x40553d
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x405551
cmp dword [esi + 0x40], edx
jne 0x405551
cmp dword [esi + 0x3c], edx
jne 0x405551
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
leave
ret 4

Function at 0x406639
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.009f3a5b
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x406665
call fcn.0040654b
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x408108
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0xa123db
call fcn.0099b5aa
cmp byte [0xa49f54], 0
mov edi, dword [ebp + 8]
jne 0x408155
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.004076e2
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0099b574
pop ecx
test esi, esi
jne 0x408163
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408167
xor al, al
jmp 0x40819c
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408144
mov al, 1
jmp 0x40819c
lea ecx, [ebp - 0x50]
call fcn.0040898f
lea ecx, [ebp - 0x28]
call fcn.00406b2f
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00408b57
test al, al
je 0x408191
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0099b574
pop ecx
mov al, bl
call fcn.0099b587
ret 4

Function at 0x4081a4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa49f54], 0
jne 0x4081e2
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0099b574
pop ecx
test esi, esi
pop esi
jne 0x4081de
xor al, al
jmp 0x4081f2
mov al, 1
jmp 0x4081f2
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x408368
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00409168
cmp eax, 0xffffffff
je 0x408395
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x408395
and eax, 0xfffffffe
push eax
push esi
call fcn.004088fe
test al, al
je 0x4083bf
cmp byte [0xa49f54], 0
push esi
jne 0x4083c7
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0099b574
pop ecx
test esi, esi
jne 0x4083c3
xor al, al
jmp 0x4083d2
mov al, 1
jmp 0x4083d2
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
leave
ret 4

Function at 0x408646
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa49f54], 0
jne 0x408682
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0099b574
pop ecx
test esi, esi
pop esi
jne 0x40867e
xor al, al
jmp 0x408690
mov al, 1
jmp 0x408690
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret 4
Function at 0x408858
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa49f54], 0
jne 0x40888c
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0099b574
pop ecx
test esi, esi
pop esi
jmp 0x408897
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x4088fe
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa49f54], 0
jne 0x40893d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0099b574
pop ecx
test esi, esi
pop esi
jne 0x408939
xor al, al
jmp 0x40894e
mov al, 1
jmp 0x40894e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
leave
ret 8

Function at 0x409168
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa49f54], 0
jne 0x40919c
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0099b574
pop ecx
mov eax, esi
pop esi
jmp 0x4091af
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4

Function at 0x4093a5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4093cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4093cf
xor al, al
jmp 0x4093e3
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x41652b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa1321a
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0xa480c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.004165dd
lea ecx, [esi + 0x78]
call fcn.004165dd
push dword [esi + 0x30]
call fcn.0099b574
push dword [esi + 0x24]
call fcn.0099b574
push dword [esi + 0x18]
call fcn.0099b574
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41658f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x4165a3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x4165b7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4165ca
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x419716
Capabilities:
Hide graphical window

Disassembly:
push 0x10
mov eax, 0xa12243
call fcn.0099b5aa
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.0041928c
push 0xce4
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a06a
push dword [ebp - 0x1c]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040a381
push dword [ebp - 0x1c]
call fcn.0099b574
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.0099b587
ret 8
Function at 0x41cb8e
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0xa13ab4
call fcn.0099b5aa
mov edi, ecx
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0041cbfb
xor ecx, ecx
add esp, 0xc
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], ecx
je 0x41cbcd
push 8
push dword [ebp + 0xc]
call fcn.0099b55d
pop ecx
pop ecx
xor ecx, ecx
lea esi, [edi + 4]
push esi
push ecx
push ebx
push 0x41cb39
push ecx
push ecx
call fcn.009f3a5b
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x41cbf0
call fcn.0099b587
ret 8
and dword [esi], 0
push 6
call fcn.0099cca3
int3
Function at 0x43e4c2
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0xa13ab4
call fcn.0099b5aa
mov edi, ecx
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0041cbfb
xor ecx, ecx
add esp, 0xc
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], ecx
je 0x43e501
push 8
push dword [ebp + 0xc]
call fcn.0099b55d
pop ecx
pop ecx
xor ecx, ecx
lea esi, [edi + 4]
push esi
push ecx
push ebx
push 0x43e46c
push ecx
push ecx
call fcn.009f3a5b
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x43e524
call fcn.0099b587
ret 8
and dword [esi], 0
push 6
call fcn.0099cca3
int3
Function at 0x48df98
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xa480c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
or esi, 0xffffffff
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 3
push ecx
push eax
call dword [ebx + 0x18]
mov edi, eax
cmp edi, esi
je 0x48dfec
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push 0x2d1080
push edi
call dword [ebx + 8]
test eax, eax
push edi
cmovne esi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0099b2f9
leave
ret 4
Function at 0x956c28
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x97adba
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
push eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], eax
add ecx, 0x14
push 0xa177aa
call fcn.0043e2b4
ret
Function at 0x9982bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, ecx
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [eax]
push edi
mov dword [ebp - 4], edx
xor edi, edi
test eax, eax
jle 0x9982f5
mov ebx, dword [ebp + 0xc]
add ebx, edx
mov edx, dword [ebp - 8]
mov ecx, dword [esi]
mov al, byte [ebx]
lea ebx, [ebx + 4]
xor byte [ecx + edi], al
inc edi
mov eax, dword [edx]
cmp edi, eax
jl 0x9982e1
mov edx, dword [ebp - 4]
inc edx
add esi, 4
mov dword [ebp - 4], edx
cmp edx, 4
jl 0x9982d3
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x9987ca
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov bl, 1
dec esi
test esi, esi
jle 0x9987f3
mov dl, bl
add dl, dl
mov al, dl
xor al, 0x1b
test bl, bl
movzx ecx, al
movzx eax, dl
cmovns ecx, eax
mov bl, cl
sub esi, 1
jne 0x9987d9
mov eax, dword [ebp + 8]
xor ecx, ecx
pop esi
mov byte [eax], bl
mov word [eax + 2], cx
mov byte [eax + 1], cl
pop ebx
pop ebp
ret 8

Function at 0x99b088
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x99b0b1
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
sub esi, ecx
sub edi, ecx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edi + ecx], al
inc ecx
sub edx, 1
jne 0x99b0a1
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x99b0b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
sub edx, ecx
push edi
push 4
sub esi, ecx
pop edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
sub edi, 1
jne 0x99b0ca
pop edi
pop esi
pop ebp
ret 0xc