joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4036fb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4037c5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432950]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432950]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432950]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432950]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432950]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432950]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432950]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432950]
dec edi
jne 0x403710
pop edi
test esi, esi
je 0x4037ea
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x432950]
dec esi
jne 0x4037d0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x403800
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x432950]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x432950]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x403850
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x432950]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [eax*4 + 0x432950]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret
Function at 0x403f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x403f76
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403f71
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x403f9e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x403f87
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a8a3
mov esp, ebp
pop ebp
ret

Function at 0x403fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x404005
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404000
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x404032
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x404016
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call sub.MSVCR120.dll_memcpy
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x404050
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a8a3
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40403d
cmp byte [esi + 8], 0
je 0x40403d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a8a3
mov esp, ebp
pop ebp
ret
Function at 0x404170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x4041b9
cmp byte [edi + 1], 0
je 0x4041a7
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4041bf
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a8a3
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x4041e4
cmp byte [edi + 1], 0
je 0x4041dd
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x4041e7
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x4041f6
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, eax
jae 0x4041f9
mov dword [ebp - 0x10], ebx
push esi
push 0x404
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x404222
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a8a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x404328
lea esp, [esp]
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x20], edx
sub ebx, ecx
mov dword [ebp - 0x1c], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x40428a
cmp byte [edi + 1], 0
je 0x404328
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40428d
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x18], ebx
je 0x4042b5
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4042b0
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x4042de
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x4042c8
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x404328
lea eax, [ebx - 3]
test eax, eax
js 0x404310
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x40430c
cmp byte [eax + esi + 1], 0x4b
jne 0x40430c
cmp byte [eax + esi + 2], 5
jne 0x40430c
cmp byte [eax + esi + 3], 6
je 0x404346
test eax, eax
jns 0x4042f0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x404328
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x404240
push esi
call dword [sym.imp.MSVCR120.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.0042a8a3
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x404313
Function at 0x405060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x405108
cmp dword [edi + 4], 0xffffffff
jne 0x405108
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x405090
sub esi, ecx
sar esi, 1
movzx eax, word [edi + esi*2 + 0x242]
cmp eax, 0x5c
je 0x4050bc
cmp eax, 0x2f
je 0x4050bc
mov dword [edi + esi*2 + 0x244], 0x2f
push 0x20
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00404350
xor ecx, ecx
mov dword [edi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
pop ecx
pop ebp
ret 0xc
Function at 0x405890
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x405931
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy]
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4058d0
sub ecx, edx
sar ecx, 1
je 0x405910
movzx eax, word [ebp + ecx*2 - 0x20e]
cmp eax, 0x2f
je 0x4058f3
cmp eax, 0x5c
jne 0x405910
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x405a32
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405931
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x405a22
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x40594e
cmp ax, 0x5c
jne 0x405950
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x405942
cmp esi, edi
je 0x405999
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
cmp esi, 0x208
jae 0x405a32
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, ebx
mov word [ebp + esi - 0x20c], ax
call fcn.00405890
mov esi, dword [sym.imp.MSVCR120.dll_wcsncpy]
xor eax, eax
mov word [ebp - 0x414], ax
test ebx, ebx
je 0x4059be
push 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call esi
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x414]
mov word [ebp - 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4059d0
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
lea eax, [ebp - 0x414]
lea eax, [eax + ecx*2]
push edi
push eax
call esi
xor eax, eax
add esp, 0xc
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x405a22
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042a8a3
mov esp, ebp
pop ebp
ret
call fcn.0042a9f0
int3
Function at 0x409a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c298
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push 0xfffffffffffffff5
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x409ad0
test esi, esi
je 0x409ad0
mov ecx, esi
call fcn.00409990
mov edi, eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], 0
je 0x409ab1
cmp edi, 0x114c
jne 0x409ab1
push str.errinfo
lea ecx, [ebp - 0x34]
call fcn.004065c0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00409880
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00406620
push 0
lea eax, [ebp - 0x18]
mov dword [ebx], edi
push eax
push edi
push ebx
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042a8a3
mov esp, ebp
pop ebp
ret 4
Function at 0x40af60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c586
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [0x43ce5c]
mov dword [ebp - 0x428], 0x1a
test al, 1
jne 0x40afd3
or eax, 1
mov dword [0x43ce5c], eax
mov ecx, 0x43ce58
mov dword [ebp - 4], 0
call fcn.00414cc0
push 0x430250
call fcn.0042abb1
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x43ce5c]
test al, 2
jne 0x40b01c
or eax, 2
mov dword [0x43ce5c], eax
mov dword [ebp - 4], 1
mov dword [0x43ce60], 0
mov dword [0x43ce64], 0
call fcn.0040bbc0
mov dword [0x43ce60], eax
push 0x4301f0
mov byte [ebp - 4], 1
call fcn.0042abb1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x43ce58]
mov dword [ebp - 0x424], 0x43ce58
test eax, eax
je 0x40b036
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.0040b480
mov eax, dword [eax]
cmp eax, dword [0x43ce60]
je 0x40b07a
lea eax, [ebp - 0x428]
push eax
call fcn.0040b3d0
cmp esi, eax
je 0x40b164
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
jmp 0x40b15f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x43ce58]
test eax, eax
je 0x40b091
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov dword [ebp - 0x424], 0
push 0x40e
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x42c], 0
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x428]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40b104
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40b108
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x40b104
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x40b187
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.0040ad40
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x40b127
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x43ce58]
mov dword [ebp - 0x424], 0x43ce58
test eax, eax
je 0x40b141
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 7
push eax
call fcn.0040b3d0
cmp eax, esi
je 0x40b164
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00406c90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x43ce58]
test eax, eax
je 0x40b17b
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov dword [ebp - 0x424], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a8a3
mov esp, ebp
pop ebp
ret
Function at 0x40e0a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov eax, edx
mov dword [ebp - 0x10], eax
movsx eax, al
push esi
push edi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movdqa xmmword [ebp - 0x20], xmm0
test ecx, ecx
je 0x40e1d9
mov edi, dword [ebx + 8]
test edi, edi
je 0x40e1d9
mov esi, dword [ebx + 0xc]
test esi, esi
jle 0x40e1d9
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x40e1d9
cmp dword [ebx + 0x14], 0
je 0x40e1d9
cmp dword [eax], 0
jne 0x40e1d9
mov eax, dword [ecx + 8]
push esi
call eax
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x40e1d9
xor edx, edx
cmp esi, 0x20
jb 0x40e19b
lea eax, [edi - 1]
add eax, esi
cmp ecx, eax
ja 0x40e144
lea eax, [esi - 1]
add eax, ecx
cmp eax, edi
jae 0x40e19b
mov eax, esi
and eax, 0x8000001f
jns 0x40e152
dec eax
or eax, 0xffffffe0
inc eax
movdqa xmm1, xmmword [ebp - 0x20]
mov dword [ebp - 4], esi
mov esi, ecx
sub dword [ebp - 4], eax
sub esi, edi
mov dword [ebp - 0xc], esi
mov eax, edi
mov esi, dword [ebx + 0xc]
mov edi, dword [ebp - 0xc]
lea esp, [esp]
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movdqu xmmword [edi + eax - 0x20], xmm0
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm1
movdqu xmmword [ecx + edx + 0x10], xmm0
add edx, 0x20
cmp edx, dword [ebp - 4]
jl 0x40e170
mov edi, dword [ebx + 8]
cmp edx, esi
jge 0x40e1c4
sub edi, dword [ebp - 8]
add ecx, edx
sub esi, edx
mov edx, dword [ebp - 0x10]
lea esp, [esp]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, dl
mov byte [ecx - 1], al
dec esi
jne 0x40e1b0
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x10]
mov dword [eax], ecx
mov eax, dword [ebx + 0x14]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x414d30
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x42d708
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x414d7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [esp + 0x14]
mov word [edi + 4], 0
mov dword [esp + 0x14], 0
call fcn.0041d050
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
cmp dword [esi], 0
je 0x414da7
lea eax, [esi + 8]
jmp 0x414da9
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x414db9
cmp dword [ebx + 0x14], 8
jb 0x414dbb
mov ebx, dword [ebx]
jmp 0x414dbb
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x414ddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x414ddc
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x414e06
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 ecx, dword [esi + 4]
test ecx, ecx
je 0x414e1b
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0042a8a3
add esp, 0x18
ret 4

Function at 0x417960
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [section..data]
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 sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4179f7
cmp dword [esp + 8], 6
jb 0x4179f7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.0042a8a3
add esp, 0x118
ret
Function at 0x417a10
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x42de8c
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x1c]
push 0x43397c
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00406a10
mov dword [esp + 0x50], 0
mov eax, dword [0x43ce94]
test al, 1
jne 0x417aaf
or eax, 1
mov dword [0x43ce94], eax
mov byte [esp + 0x50], 1
mov dword [0x43ce90], 0
call fcn.00417060
push 0x430440
call fcn.0042abb1
add esp, 4
mov byte [esp + 0x50], 0
lea eax, [esp + 0x18]
mov ecx, 0x43ce90
push eax
call fcn.00417230
mov edi, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x2c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x417ade
push dword [esp + 0x18]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
push 0xb
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], eax
push str.crypt32.dll
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
call fcn.00406a10
mov dword [esp + 0x50], 2
mov eax, dword [0x43ce94]
test al, 1
jne 0x417b5d
or eax, 1
mov dword [0x43ce94], eax
mov byte [esp + 0x50], 3
mov dword [0x43ce90], 0
call fcn.00417060
push 0x430440
call fcn.0042abb1
add esp, 4
mov byte [esp + 0x50], 2
lea eax, [esp + 0x30]
mov ecx, 0x43ce90
push eax
call fcn.00417230
mov ebp, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x417b86
push dword [esp + 0x30]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
test edi, edi
je 0x417c19
test ebp, ebp
je 0x417c19
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [ebx + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push edi
mov dword [ebx + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebx + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [ebx + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebx + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebx + 0x1c], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [ebx + 0x20], eax
call esi
push str.CertNameToStrW
push ebp
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x419190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42dffe
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00406c90
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00406c90
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00406c90
mov byte [esp + 0x18], 2
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov al, byte [esi + 0x64]
mov byte [edi + 0x64], al
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4