joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017e6d
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x1006500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x830], ecx
mov eax, dword [ebp - 0x830]
movzx eax, byte [eax + 4]
test eax, eax
je 0x10017e99
jmp 0x10018040
mov eax, dword [ebp - 0x830]
mov byte [eax + 4], 1
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.10038450
add esp, 0xc
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10017f32
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x82c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10017f03
cmp dword [ebp - 0x82c], 0
je 0x10017f01
push dword [ebp - 0x82c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10017f32
push 2
pop eax
imul eax, eax, 0
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0x410
jae 0x10017f1d
jmp 0x10017f22
call fcn.1003673c
xor eax, eax
mov ecx, dword [ebp - 0x834]
mov word [ebp + ecx - 0x414], ax
push str.SMDB
lea eax, [ebp - 0x414]
push eax
call fcn.1003e3cd
pop ecx
pop ecx
push 0x100584a8
lea eax, [ebp - 0x414]
push eax
call fcn.1003e3cd
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10017f99
push 2
pop eax
imul eax, eax, 0
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0x410
jae 0x10017f84
jmp 0x10017f89
call fcn.1003673c
xor eax, eax
mov ecx, dword [ebp - 0x838]
mov word [ebp + ecx - 0x414], ax
push 0x412
push 0
lea eax, [ebp - 0x828]
push eax
call fcn.10038450
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call fcn.1003dd45
pop ecx
test eax, eax
jbe 0x10018012
push 0x207
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.1003bc1c
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
call fcn.1003dd45
pop ecx
test eax, eax
jbe 0x10018012
push str.SMDB
lea eax, [ebp - 0x828]
push eax
call fcn.1003e3cd
pop ecx
pop ecx
push str.HaoZip.hzv
lea eax, [ebp - 0x828]
push eax
call fcn.1003e3cd
pop ecx
pop ecx
call fcn.10022d70
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x828]
push eax
call fcn.1003dd45
pop ecx
test eax, eax
jbe 0x10018040
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ebp - 0x83c]
call fcn.10022e70
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036316
leave
ret
Function at 0x1001bf90
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], 0
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x1001bfb3
cmp dword [eax + 0x14], 8
jb 0x1001bfb5
mov eax, dword [eax]
jmp 0x1001bfb5
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1001bfdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x1001bfdf
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x1001c040
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004dca8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1006500c]
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 [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x1001c083
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.100252d0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1001c0ac
lea eax, [esi + 8]
jmp 0x1001c0ae
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x1001c0be
cmp dword [ebx + 0x14], 8
jb 0x1001c0c0
mov ebx, dword [ebx]
jmp 0x1001c0c0
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x1001c0e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001c0e1
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1001c10a
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 0x1001c11f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.10036357
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.10036316
mov esp, ebp
pop ebp
ret 4
Function at 0x1001dc70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x1006500c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x1001dcf2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x1001dcf2
test ecx, ecx
je 0x1001dcee
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x1001dcb0
xor eax, eax
jmp 0x1001dcf7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1001dd01
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10036316
add esp, 0xc
ret 0xc
Function at 0x1001e510
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e168
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x1006500c]
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
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1001e54a
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001e626
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.10024e20
test al, al
je 0x1001e5c5
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x1001e606
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e5fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e6c4
push edx
push ecx
call fcn.10036357
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp esi, 0xffffffff
jne 0x1001e626
xor al, al
jmp 0x1001e6a8
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 0x40
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x14], 0
push eax
push esi
xor bl, bl
call edi
cmp dword [ebp - 0x14], 0x40
jne 0x1001e69f
mov eax, 0x5a4d
cmp word [ebp - 0x6c], ax
jne 0x1001e69f
push 0
push 0
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1001e69f
push 0
lea eax, [ebp - 0x14]
push eax
push 0xf8
lea eax, [ebp - 0x164]
push eax
push esi
call edi
cmp dword [ebp - 0x14], 0xf8
jne 0x1001e69f
mov eax, dword [ebp - 0x164]
cmp eax, 0x4550
je 0x1001e69d
mov ecx, 0x454e
cmp ax, cx
jne 0x1001e69f
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.10036316
mov esp, ebp
pop ebp
ret
call fcn.1003df6b
int3

Function at 0x1001e6d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x1006500c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.10036327
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.10038450
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 0x1001e72c
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.10036316
add esp, 0x120
ret
Function at 0x10024440
Capabilities:
Read file on windows

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

Function at 0x100244b0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x1006500c]
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 0x10024513
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10024513
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100244ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10024513
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.10036316
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.10036316
add esp, 8
ret 4

Function at 0x100245a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1006500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100245d6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10024680
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10024e20
test al, al
je 0x1002462f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1002466c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10024662
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002469d
push edx
push ecx
call fcn.10036357
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036316
mov esp, ebp
pop ebp
ret
call fcn.1003df6b
int3
Function at 0x100255c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10061450
push 0x10038620
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1006500c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x10025629
xor eax, eax
jmp 0x1002579f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002576a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1002576a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002576a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x1002576a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002576a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1002576a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002576a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1002576a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002576a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1002576a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1002576a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10025753
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10025740
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x10025750
jmp 0x1002576a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.100257c6
test ebx, ebx
jne 0x1002579d
test esi, esi
je 0x1002578f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1002579d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10036316
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100265c0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x1006500c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10026625
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10026600
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10026625
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.10036316
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.10036316
add esp, 8
ret 4
Function at 0x10029980
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ed98
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1006500c]
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 - 0x38]
mov edi, dword [ebp + 0xc]
push esi
push eax
call fcn.1002a480
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.1001c040
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x1c], 0
test eax, eax
jne 0x10029a04
xor bl, bl
jmp 0x10029a22
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10029a1c
cmp eax, 0x80
je 0x10029a1c
xor bl, bl
jmp 0x10029a22
mov byte [ebp - 0x14], 1
mov bl, 1
mov byte [ebp - 0x1c], bl
mov byte [ebp - 4], 2
lea eax, [ebp - 0x39]
push eax
push edi
push esi
mov byte [ebp - 0x39], 0
call fcn.10029b10
test al, al
jne 0x10029a50
cmp byte [ebp - 0x39], al
je 0x10029a50
cmp dword [esi + 0x14], 8
jb 0x10029a49
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
test bl, bl
je 0x10029a6a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10029a66
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10029a8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x10029acd
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10029ac3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029aff
push edx
push ecx
call fcn.10036357
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
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.10036316
mov esp, ebp
pop ebp
ret 8
call fcn.1003df6b
int3
Function at 0x1002c130
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x1006500c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.10038450
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1002c1c7
cmp dword [esp + 8], 6
jb 0x1002c1c7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.10036316
add esp, 0x118
ret
Function at 0x10030380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x10067448], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x10067148], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x10067348], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x10067248], al
inc esi
cmp esi, 0x100
jl 0x10030490
pop esi
add esp, 0x80
ret

Function at 0x100344d6
Capabilities:
Check os version

Disassembly:
push 0x130
mov eax, 0x1004fadf
call fcn.100494ce
push 0x110
lea eax, [ebp - 0x138]
mov dword [ebp - 0x13c], 0x114
push 0
push eax
call fcn.10038450
xor eax, eax
add esp, 0xc
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1003457c
cmp dword [ebp - 0x138], 5
jne 0x1003457c
cmp dword [ebp - 0x134], 1
jne 0x1003457c
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x28]
call fcn.100022ea
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1001a650
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x1003455c
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1003456a
mov edx, str.Service_Pack_1
call fcn.1001a460
test al, al
jne 0x10034584
cmp dword [ebp - 0x18], 0
je 0x10034584
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100021f5
xor al, al
call fcn.10049478
ret
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100021f5
mov al, 1
jmp 0x1003457e
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x408d1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x408d2d
pop dword [ebp - 0xc]
mov eax, 0x3909131d
add eax, 0xc7377a10
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3bfd4
push 0
mov eax, 0xa56a18c9
add eax, 0x5ad6c857
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x5298
mov ebx, eax
mov edi, 0xa6ddb430
add edi, 0x5963c3d0
add edi, dword [ebp - 0xc]
mov edx, 0xc7121d7b
add edx, 0x33b16534
xor dword [ebp - 4], 0x71460247
mov esi, dword [edi]
xor dword [ebp - 4], ecx
add esi, edx
mov dword [ebx], esi
mov dword [ebp - 8], 0x22d0e752
add ebx, 0xc5558a78
add ebx, 0x3aaa758c
add edi, 4
loop 0x408d86
add eax, 0xdc7689e2
sub eax, 0xdc754caf
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x78f1a4ca
sub ecx, 0x78b1a4ca
add ecx, dword [ebp - 0xc]
call ebx
leave
ret