joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49aa10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x513008]
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 0x49aa92
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 0x49aa92
test ecx, ecx
je 0x49aa8e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x49aa50
xor eax, eax
jmp 0x49aa97
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x49aaa1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b6253
add esp, 0xc
ret 0xc
Function at 0x49f400
Capabilities:
Read file on windows

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

Function at 0x49f440
Capabilities:
Write file on windows

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

Function at 0x49f4c0
Capabilities:
Get file size

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

Function at 0x49f600
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x49f6ae
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.0049f540
test al, al
je 0x49f6ae
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.0049f540
test al, al
je 0x49f6ae
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x49f684
cmp dword [esp + 0x14], edi
jne 0x49f684
mov eax, dword [esi]
test eax, eax
jne 0x49f671
xor bl, bl
jmp 0x49f684
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x49f66d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.0049f540
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49ff40
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdc68
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x513008]
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
cmp esi, 0xffffffff
jne 0x49ff78
xor al, al
jmp 0x49ffe7
and esi, 0xffffb1af
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x49ff9c
mov al, 1
jmp 0x49ffe7
lea ecx, [ebp - 0x28]
call fcn.00412b80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004a05f0
test al, al
je 0x49ffd4
lea ecx, [ebp - 0x28]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
push esi
push eax
call ebx
test eax, eax
je 0x49ffd4
mov bl, 1
jmp 0x49ffd6
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412a40
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.004b6253
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdc68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x513008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a009c
lea ecx, [ebp - 0x28]
call fcn.00412b80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004a05f0
test al, al
je 0x4a008b
lea ecx, [ebp - 0x28]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412a40
mov eax, esi
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.004b6253
mov esp, ebp
pop ebp
ret
Function at 0x4a00c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d33a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x513008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x4a010d
mov al, 1
jmp 0x4a0225
mov ecx, esi
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
push eax
lea ecx, [ebp - 0x28]
call fcn.00412ab0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004a0010
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412a40
cmp ebx, 0xffffffff
jne 0x4a0153
xor al, al
jmp 0x4a0225
mov ecx, esi
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
push eax
lea ecx, [ebp - 0x28]
call fcn.00412ab0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.0049ff40
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412a40
test bl, bl
je 0x4a014c
mov ecx, esi
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
push eax
call edi
test eax, eax
jne 0x4a0106
lea ecx, [ebp - 0x28]
call fcn.00412b80
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004a05f0
test al, al
je 0x4a01e0
lea ecx, [ebp - 0x28]
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
push eax
call edi
test eax, eax
je 0x4a01e0
mov bl, 1
jmp 0x4a0214
mov ecx, esi
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
push eax
lea ecx, [ebp - 0x44]
call fcn.00412ab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.0049ff40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00412a40
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412a40
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.004b6253
mov esp, ebp
pop ebp
ret
Function at 0x4a0250
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x624]
sub esp, 0x624
push 0xffffffffffffffff
push 0x4d33d8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x513008]
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 4
lea ecx, [ebp - 0x10]
call fcn.004122c0
mov eax, dword [0x51fed0]
mov dword [ebp - 0x10], 0x51fed0
test eax, eax
je 0x4a02a8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, 0x51fee0
call fcn.004129c0
test al, al
jne 0x4a031b
cmp esi, 0x51fee0
je 0x4a02f2
mov ecx, 0x51fee0
call fcn.00412de0
mov ecx, esi
call fcn.00412de0
mov ecx, 0x51fee0
call fcn.00412de0
mov ecx, eax
push dword [eax + 0x10]
call fcn.00412da0
push eax
mov ecx, esi
call fcn.00412f10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a0314
mov eax, dword [eax]
test eax, eax
je 0x4a030d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov al, 1
jmp 0x4a0404
push 0x20c
lea eax, [ebp + 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x414]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4a03e0
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x61e], ax
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
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 0x4a03a4
test eax, eax
je 0x4a03a4
add eax, eax
cmp eax, 0x412
jae 0x4a0425
xor ecx, ecx
mov word [ebp + eax], cx
lea eax, [ebp]
jmp 0x4a03aa
lea eax, [ebp + 0x414]
push eax
mov ecx, esi
call fcn.004129f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a0314
mov eax, dword [eax]
test eax, eax
je 0x4a030d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov al, 1
jmp 0x4a0404
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a0402
mov eax, dword [eax]
test eax, eax
je 0x4a03fb
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
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.004b6253
lea esp, [ebp + 0x624]
pop ebp
ret
call fcn.004b69cd
int3
Function at 0x4a3280
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d20ef
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x513008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
push 0x94
call fcn.00411a40
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x10], edi
push esi
call fcn.00412c10
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.00412c10
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00412c10
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00412c10
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00412c10
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00412c10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a4fb0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x513008]
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 0x4a5015
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 0x4a4ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a5015
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.004b6253
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004b6253
add esp, 8
ret 4
Function at 0x4a5190
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x513008]
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 ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4a51d9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4a532b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4a52f6
test eax, eax
je 0x4a52f6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4a52f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4a527b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a526f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a527b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4a5289
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00412c10
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4a52f6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4a5234
jmp 0x4a52f9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4a5322
test edx, edx
je 0x4a531e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4a51f0
mov al, 1
jmp 0x4a532d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4a532b
mov dword [ecx], eax
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.004b6253
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a9b80
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x513008]
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.VCRUNTIME140.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 0x4a9c17
cmp dword [esp + 8], 6
jb 0x4a9c17
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004b6253
add esp, 0x118
ret

Function at 0x4a9c30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d47e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x513008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.00412ab0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00494cc0
mov ecx, eax
call fcn.00494d80
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412a40
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00412ab0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00494cc0
mov ecx, eax
call fcn.00494d80
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00412a40
test ebx, ebx
je 0x4a9d45
test esi, esi
je 0x4a9d45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b3da0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4b3dab
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004b3dc0
Function at 0x40b600
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47475b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046704f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b682
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00464a2d
mov eax, dword [eax]
push 0x4901d0
push eax
call fcn.004576e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004672da
test bl, bl
je 0x40b682
push 0x4901d0
lea ecx, [esp + 0xc]
call fcn.004676b6
push 0x493d44
lea ecx, [esp + 0xc]
call fcn.004676b6
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b6be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004672da
jmp 0x40b789
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b742
lea edx, [esp + 0x7c]
push 0x493d40
push edx
call fcn.004576e4
add esp, 8
test eax, eax
je 0x40b742
lea eax, [esp + 0x7c]
push 0x493d3c
push eax
call fcn.004576e4
add esp, 8
test eax, eax
je 0x40b742
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b6d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004672da
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40bfa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c002
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40c010
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4747db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49ac28]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40c148
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c076
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004672da
xor eax, eax
jmp 0x40c1bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00467463
push esi
lea ecx, [esp + 0xc]
call fcn.004676f2
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c19d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.0040bfa0
test eax, eax
jne 0x40c19d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.0040bfa0
test eax, eax
jne 0x40c19d
lea eax, [esp + 0x14]
push 0x493d58
push eax
call fcn.004587c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c17c
lea ecx, [esp + 0x14]
push 0x493d54
push ecx
call fcn.00458740
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c17c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c17f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00467413
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c08e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004672da
xor eax, eax
jmp 0x40c1bf
mov byte [esi], 0
push 0x493d50
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004672da
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4