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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x59641c
push ecx
mov dword [ebp - 0xc], edx
xor ebx, ebx
call fcn.005465d2
mov esi, eax
add esp, 8
test esi, esi
je 0x4122d3
push edi
push 2
push ebx
push esi
call fcn.005448c8
push esi
call fcn.00544cdb
push ebx
mov edi, eax
push ebx
push esi
mov dword [ebp - 4], edi
call fcn.005448c8
lea eax, [edi + 1]
push eax
mov dword [ebp - 8], eax
call fcn.00521d36
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4122c9
push dword [ebp - 8]
push ebx
push edi
call fcn.0053e230
push esi
push dword [ebp - 4]
push 1
push edi
call fcn.0054478d
push 0x596424
push dword [ebp - 0xc]
call fcn.005465d2
add esp, 0x24
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4122c0
push eax
push dword [ebp - 4]
push 1
push edi
call fcn.00544ea0
push dword [ebp - 0xc]
call fcn.00544038
add esp, 0x14
mov ebx, 1
push edi
call fcn.0053d801
add esp, 4
push esi
call fcn.00544038
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4124a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
push ebx
mov dword [ebp - 0x870], edi
xor esi, esi
mov dword [ebp - 0x874], ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41265c
test edi, edi
je 0x41265c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x5963f4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x24c
lea eax, [ebp - 0x868]
mov dword [ebp - 0x86c], esi
push esi
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41265c
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x840]
push 0x5963fc
push eax
call fcn.0053ede2
add esp, 8
test eax, eax
je 0x412630
lea eax, [ebp - 0x840]
push 0x596400
push eax
call fcn.0053ede2
add esp, 8
test eax, eax
je 0x412630
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0053e230
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x840]
add esp, 0xc
push eax
push dword [ebp - 0x874]
lea eax, [ebp - 0x414]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x840]
push eax
push dword [ebp - 0x870]
lea eax, [ebp - 0x20c]
push eax
call esi
test byte [ebp - 0x86c], 0x10
je 0x412612
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
call fcn.004124a0
jmp 0x41262a
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00412060
add esp, 0xc
mov esi, eax
test esi, esi
je 0x412642
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
test eax, eax
jne 0x412550
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x412670
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4126a8
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4126d6
mov edi, 1
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053e230
push esi
push str._s.kr.del
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00546433
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41273b
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea eax, [ebp - 0x20c]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
je 0x412763
push 4
push 0
lea eax, [ebp - 0x20c]
mov edi, 1
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x412780
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x5bd250]
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 ebx, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x412933
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x5963f4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x24c
lea eax, [ebp - 0x684]
mov dword [ebp - 0x688], 0
push 0
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x412933
lea eax, [ebp - 0x65c]
push 0x5963fc
push eax
call fcn.0053ede2
add esp, 8
test eax, eax
je 0x412916
lea eax, [ebp - 0x65c]
push 0x596400
push eax
call fcn.0053ede2
add esp, 8
test eax, eax
je 0x412916
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x65c]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x688], 0x10
je 0x4128b4
mov edx, esi
lea ecx, [ebp - 0x218]
call fcn.00412780
jmp 0x412916
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00420610
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0041bb20
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x424], 8
jb 0x4128f9
push dword [ebp - 0x438]
call fcn.0053ce3a
add esp, 4
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x688]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412831
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
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.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x412950
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572a56
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5bd250]
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 eax, dword [ebp + 0xc]
xor esi, esi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
push 0x589570
push 1
push esi
push 0x58b500
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x412ab0
mov eax, dword [ebp - 0x21c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp + 0x14]
cmp edx, 0xffffffff
je 0x4129e6
push edx
push edi
jmp 0x4129ed
test ebx, ebx
je 0x4129f9
push 0
push ebx
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0053e230
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push edi
push eax
call fcn.005466f6
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [ebp - 0x224]
test edx, edx
je 0x412a77
mov eax, dword [ebp - 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x220]
push edx
push 0x58b9f0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x412ab0
mov eax, dword [ebp - 0x220]
push 2
push dword [ebp - 0x228]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
mov ecx, 1
cmovns esi, ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x412ac4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x412adb
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
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.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x412d20
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22fc
call fcn.0053fec0
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412d5c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x208e
push eax
mov word [ebp - 0x22a0], ax
lea eax, [ebp - 0x229e]
push eax
call fcn.0053e230
add esp, 0xc
test ebx, ebx
je 0x412da0
cmp word [ebx], di
je 0x412da0
push ebx
push esi
push str.__s___s
lea eax, [ebp - 0x22a0]
push 0x1047
push eax
call fcn.00546433
add esp, 0x14
jmp 0x412dba
push esi
push str.__s_
lea eax, [ebp - 0x22a0]
push 0x1047
push eax
call fcn.00546433
add esp, 0x10
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0053e230
push esi
push 0x596370
lea eax, [ebp - 0x210]
push 0x103
push eax
call fcn.00546433
add esp, 0x1c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x40
lea eax, [ebp - 0x22f4]
push 0
push eax
call fcn.0053e230
add esp, 0xc
mov dword [ebp - 0x22f8], 0x44
lea eax, [ebp - 0x22b0]
mov dword [ebp - 0x22cc], 0x80
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x22b0], xmm0
push eax
lea eax, [ebp - 0x22f8]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x22a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x412e92
mov eax, dword [ebp + 8]
test eax, eax
je 0x412e77
push eax
push dword [ebp - 0x22b0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x412e7c
mov edi, 1
push dword [ebp - 0x22ac]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x22b0]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret

Function at 0x4137f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
mov ebx, edx
test ecx, ecx
je 0x41384b
cmp word [ecx], di
je 0x41384b
test ebx, ebx
je 0x41384b
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x413842
cmp dword [ebp - 4], edi
je 0x41383b
push dword [esi]
push 0x596370
push 0x104
push ebx
call fcn.00546433
add esp, 0x10
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413860
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
xor esi, esi
test ebx, ebx
je 0x413916
test edx, edx
je 0x413916
mov eax, dword [ebp + 8]
test eax, eax
je 0x413916
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x41390e
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41390d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x413906
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x413906
push dword [ebp - 8]
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4138fd
cmp esi, dword [ebp - 4]
jne 0x4138fd
mov esi, 1
jmp 0x4138ff
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413cb0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413cea
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053e230
push esi
push 0x596370
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00546433
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 5
lea eax, [ebp - 0x20c]
push eax
push ebx
push esi
push 0x596460
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov ecx, 1
cmovg edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x413df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x572b88
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5bd250]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x5bd250]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413f09
test esi, esi
je 0x413f09
cmp word [esi], di
je 0x413f09
push ebx
lea ecx, [esp + 0x44]
call fcn.00420610
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], edi
call fcn.00420610
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
mov byte [esp + 0x68], 2
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x44]
call fcn.00430c40
add esp, 4
mov ecx, 1
test eax, eax
cmove edi, ecx
cmp dword [esp + 0x24], 8
jb 0x413eb1
push dword [esp + 0x10]
call fcn.0053ce3a
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
jb 0x413edb
push dword [esp + 0x28]
call fcn.0053ce3a
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
cmp dword [esp + 0x54], 8
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
jb 0x413f05
push dword [esp + 0x40]
call fcn.0053ce3a
add esp, 4
mov eax, edi
jmp 0x413f0b
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret

Function at 0x413f30
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
mov esi, ecx
mov ebx, edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [esi]
test eax, eax
jne 0x413f68
push 0xf0000048
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [esi]
test eax, eax
je 0x413f8f
push ebx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x413f85
pop esi
mov eax, 1
pop ebx
ret
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4140d0
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x218], edx
test ebx, ebx
je 0x4141bc
test esi, esi
je 0x4141bc
lea edx, [ebp - 0x210]
mov dword [ebp - 0x214], edi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x210], edi
call fcn.00413f30
test eax, eax
je 0x4141bc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053e230
mov edx, dword [ebp - 0x210]
add esp, 0xc
test edx, edx
je 0x41419e
push edi
push dword [ebp - 0x218]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x414198
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.00413fc0
add esp, 4
test eax, eax
je 0x414198
lea eax, [ebp - 0x20c]
push eax
push 0x596370
push 0x3f
push esi
call fcn.00546433
add esp, 0x10
mov edi, 1
mov edx, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
call fcn.004140a0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x4141d0
Capabilities:
Check if file exists
Hash data via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
mov dword [ebp - 0x618], ebx
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414243
test ebx, ebx
je 0x414243
push 0x59641c
push esi
call fcn.005465d2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x414358
lea edx, [ebp - 0x610]
mov dword [ebp - 0x614], edi
lea ecx, [ebp - 0x614]
mov dword [ebp - 0x610], edi
call fcn.00413f30
test eax, eax
jne 0x414256
push ebx
call fcn.00544038
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
push 0x3ff
lea eax, [ebp - 0x60b]
mov byte [ebp - 0x60c], 0
push 0
push eax
mov edi, 1
call fcn.0053e230
push ebx
push 0x400
lea eax, [ebp - 0x60c]
push edi
push eax
call fcn.0054478d
add esp, 0x1c
test eax, eax
je 0x4142d0
nop
mov esi, dword [ebp - 0x610]
test esi, esi
je 0x414336
push 0
push eax
lea eax, [ebp - 0x60c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, eax
test edi, edi
je 0x4142d0
push ebx
push 0x400
lea eax, [ebp - 0x60c]
push 1
push eax
call fcn.0054478d
add esp, 0x10
test eax, eax
jne 0x414290
mov esi, dword [ebp - 0x610]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053e230
add esp, 0xc
test edi, edi
je 0x414340
push ecx
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.00413fc0
add esp, 4
test eax, eax
je 0x41433a
lea eax, [ebp - 0x20c]
push eax
push 0x596370
push 0x3f
push dword [ebp - 0x618]
call fcn.00546433
mov esi, dword [ebp - 0x610]
add esp, 0x10
mov edi, 1
jmp 0x414342
xor edi, edi
jmp 0x4142d6
mov esi, dword [ebp - 0x610]
xor edi, edi
mov ecx, dword [ebp - 0x614]
mov edx, esi
call fcn.004140a0
push ebx
call fcn.00544038
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x415530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
push edi
test ebx, ebx
je 0x415652
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x415652
xorps xmm0, xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
movdqu xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, edi
test eax, eax
je 0x4155e4
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4155e4
lea eax, [ebp - 8]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [ebp - 0xc]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x415652
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4155ea
mov dword [ebx], eax
inc edi
add ebx, 0x34
cmp edi, 2
jl 0x415594
jmp 0x4155ea
cmp dword [ebp - 4], 0
jne 0x415652
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x415646
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 2
push eax
push 0x415120
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret