joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411e90
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x5b8250]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x412049
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x412049
push 0x24c
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push 0
push eax
call fcn.005392b0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x47c], ax
lea eax, [esp + 0x47e]
push eax
call fcn.005392b0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x480]
add esp, 0x18
push 0x5915b4
push esi
push eax
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412049
mov ecx, 0x5915bc
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411f66
test dx, dx
je 0x411f62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411f66
add eax, 4
add ecx, 4
test dx, dx
jne 0x411f40
xor eax, eax
jmp 0x411f6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x412006
mov eax, 0x5915c0
lea ecx, [esp + 0x3c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x411fa6
test dx, dx
je 0x411fa2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x411fa6
add ecx, 4
add eax, 4
test dx, dx
jne 0x411f80
xor eax, eax
jmp 0x411fab
sbb eax, eax
or eax, 1
test eax, eax
je 0x412006
xor eax, eax
push 0x206
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.005392b0
add esp, 0xc
lea eax, [esp + 0x3c]
test byte [esp + 0x10], 0x10
push eax
push esi
lea eax, [esp + 0x268]
push eax
je 0x411ff4
call edi
lea ecx, [esp + 0x260]
call fcn.00411e90
jmp 0x412006
call edi
lea eax, [esp + 0x260]
push eax
call fcn.00412670
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411f33
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x674]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x412060
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x418], eax
test eax, eax
je 0x412207
test esi, esi
je 0x412207
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp + 0x10], edi
je 0x4120b9
push esi
call ebx
test eax, eax
je 0x4120b9
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.005392b0
push esi
push 0x591530
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.00541843
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x414]
call fcn.00411da0
test eax, eax
je 0x4121f4
cmp dword [ebp + 0x10], edi
je 0x412141
push esi
call ebx
test eax, eax
jne 0x4121f4
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ebx
mov edi, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
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.005392b0
push esi
push str._s.kr.bak
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00541843
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x412192
lea eax, [ebp - 0x20c]
push eax
call fcn.00412670
add esp, 4
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
mov dword [ebp - 0x41c], eax
call ebx
test eax, eax
jne 0x4121bd
push eax
push esi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
cmp dword [ebp - 0x41c], 0
je 0x4121f4
lea eax, [ebp - 0x20c]
test edi, edi
jne 0x4121eb
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
push eax
call fcn.00412670
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
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 0x5915dc
push ecx
mov dword [ebp - 0xc], edx
xor ebx, ebx
call fcn.005419e2
mov esi, eax
add esp, 8
test esi, esi
je 0x4122d3
push edi
push 2
push ebx
push esi
call fcn.0053fcd3
push esi
call fcn.005400e6
push ebx
mov edi, eax
push ebx
push esi
mov dword [ebp - 4], edi
call fcn.0053fcd3
lea eax, [edi + 1]
push eax
mov dword [ebp - 8], eax
call fcn.0051d4c8
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4122c9
push dword [ebp - 8]
push ebx
push edi
call fcn.005392b0
push esi
push dword [ebp - 4]
push 1
push edi
call fcn.0053fb98
push 0x5915e4
push dword [ebp - 0xc]
call fcn.005419e2
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.005402ab
push dword [ebp - 0xc]
call fcn.0053f443
add esp, 0x14
mov ebx, 1
push edi
call fcn.00538881
add esp, 4
push esi
call fcn.0053f443
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 [0x5b8250]
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.005392b0
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x5915b4
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.005392b0
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 0x5915bc
push eax
call fcn.00539e62
add esp, 8
test eax, eax
je 0x412630
lea eax, [ebp - 0x840]
push 0x5915c0
push eax
call fcn.00539e62
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.005392b0
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.005392b0
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.0053aa3c
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.0053aa3c
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 [0x5b8250]
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.0053aa3c
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.0053aa3c
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.005392b0
push esi
push str._s.kr.del
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00541843
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.0053aa3c
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 0x56e18b
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x5b8250]
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.005392b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x5915b4
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.005392b0
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 0x5915bc
push eax
call fcn.00539e62
add esp, 8
test eax, eax
je 0x412916
lea eax, [ebp - 0x65c]
push 0x5915c0
push eax
call fcn.00539e62
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.005392b0
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.00420660
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0041bbe0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x424], 8
jb 0x4128f9
push dword [ebp - 0x438]
call fcn.005385cc
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.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x412950
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e1d6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5b8250]
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 0x584730
push 1
push esi
push 0x5866c0
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.005392b0
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.00541b06
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 0x586bb0
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.0053aa3c
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.0053af40
mov eax, dword [0x5b8250]
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.0053aa3c
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.005392b0
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.00541843
add esp, 0x14
jmp 0x412dba
push esi
push 0x591610
lea eax, [ebp - 0x22a0]
push 0x1047
push eax
call fcn.00541843
add esp, 0x10
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.005392b0
push esi
push 0x591530
lea eax, [ebp - 0x210]
push 0x103
push eax
call fcn.00541843
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.005392b0
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.0053aa3c
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 0x591530
push 0x104
push ebx
call fcn.00541843
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 [0x5b8250]
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.0053aa3c
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.005392b0
push esi
push 0x591530
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00541843
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 0x591620
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.0053aa3c
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 0x56e308
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5b8250]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x5b8250]
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.00420660
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], edi
call fcn.00420660
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.00430c80
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.005385cc
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.005385cc
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.005385cc
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.0053aa3c
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 [0x5b8250]
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.005392b0
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 0x591530
push 0x3f
push esi
call fcn.00541843
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.0053aa3c
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.0053aa3c
mov esp, ebp
pop ebp
ret