joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4719b4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a3590]
push ebx
push esi
push edi
cmp byte [eax + 0x202], 0
mov edi, ecx
jne 0x4c3a6a
cmp byte [eax + 0x203], 0
jne 0x4719f1
push edi
push 0x402eb8
call fcn.004323a3
pop ecx
pop ecx
xor ebx, ebx
xor edx, edx
push ebx
push ebx
inc edx
mov dword [0x5a3528], ebx
mov ecx, edi
mov dword [0x5a3044], ebx
call fcn.0044d8b6
mov esi, eax
mov ecx, esi
mov dword [0x5a358c], esi
call fcn.00434c0b
mov ecx, esi
mov dword [0x5a3db4], eax
call fcn.00458b8d
test al, al
jne 0x4c3a87
mov ecx, dword [0x5a358c]
xor edx, edx
push ebx
call fcn.00437acc
mov ecx, dword [0x5a358c]
lea edx, [ebp - 0x4c]
push 2
call fcn.0044b880
mov ecx, dword [0x5a358c]
xor edx, edx
push ebx
call fcn.00437acc
mov eax, 0x4944
cmp word [ebp - 0x4c], ax
je 0x4c3a93
mov eax, 0x5a4d
cmp word [ebp - 0x4c], ax
jne 0x4c3ab9
cmp dword [0x5a3db4], 0x40
jb 0x4c3ab9
mov ecx, dword [0x5a358c]
lea edx, [ebp - 0x48]
push 0x40
call fcn.0044b880
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x4c3a9f
lea eax, [edx + 4]
cmp eax, dword [0x5a3db4]
ja 0x4c3a9f
mov eax, dword [0x5a3590]
mov ecx, dword [0x5a358c]
push ebx
mov dword [eax + 0x8b0], edx
call fcn.00437acc
mov ecx, dword [0x5a358c]
lea edx, [ebp - 0x4c]
push 4
pop esi
push esi
call fcn.0044b880
cmp dword [ebp - 0x4c], 0x4550
jne 0x4c3a9f
mov ecx, edi
mov dword [0x5a3588], esi
call fcn.00471b1f
mov ecx, dword [0x5a358c]
mov dl, 1
call fcn.0044a8b3
mov ecx, dword [0x5a3590]
lea ecx, [ecx + 0x888]
call fcn.00433e06
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a40f
leave
ret
push edi
push 0x402eb8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
call fcn.004fd8fd
add esp, 0xc
jmp 0x4719f1
mov ecx, edi
call fcn.004f05d7
jmp 0x471af2
mov ecx, edi
call fcn.004f1cc6
jmp 0x471af2
push edi
push 0xffe
push ebx
mov dword [0x5a3588], ebx
call fcn.004fd88b
add esp, 0xc
jmp 0x471af2
mov edx, edi
xor cl, cl
call fcn.004f5ffd
jmp 0x471af2
Function at 0x473fb1
Capabilities:
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a2ffc]
push ebx
push esi
push edi
test eax, eax
jne 0x474066
cmp byte [0x5a4f22], al
jne 0x4c4a34
mov edi, 0x403058
mov esi, 0x403048
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__get_wpgmptr]
pop ecx
test eax, eax
jne 0x474075
xor ebx, ebx
lea eax, [ebp - 0x418]
push ebx
push ebx
push ebx
push ebx
push 0x100
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x418]
push 0x40303c
push edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
lea eax, [ebp - 0x218]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 0x20
test eax, eax
jne 0x47407c
lea ecx, [ebp - 0x218]
call fcn.0045c3b6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a40f
leave
ret
xor ecx, ecx
call fcn.0047dc27
mov eax, esi
jmp 0x474066
mov ecx, 0x4280ac
mov edi, 0x42807c
mov esi, 0x428090
call fcn.00473f61
mov ecx, 0x427efc
call fcn.00473f61
jmp 0x473fea
Function at 0x474b4d
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x48d596
call fcn.0047ebf1
mov ebx, ecx
push 0x10
pop ecx
call fcn.0043d6d0
mov esi, eax
test esi, esi
je 0x474bb4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
add eax, 8
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
push eax
call fcn.0046b642
mov dword [ebp + 8], esi
and dword [ebp - 4], 0
lea edi, [ebx + 4]
push edi
push 0
push esi
push 0x477883
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x4c5545
call fcn.0047ebbf
ret 4
xor esi, esi
jmp 0x474b82
and dword [edi], 0
push 6
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x4ce4a7
Capabilities:
Terminate process

Disassembly:
test dword [ecx + 0x148], 0x40000000
push esi
je 0x4ce4cc
mov eax, 0x4149c4
push eax
push 0x4149b8
push eax
push 0x4de
push 0
call fcn.0047dc0b
mov eax, dword [ecx + 0x238]
xor esi, esi
and eax, 4
or eax, esi
je 0x4ce4f8
test byte [ecx + 0x9a], 0x40
jne 0x4ce4f8
mov eax, 0x4149d0
push eax
push 0x4149b8
push eax
push 0x4de
push esi
jmp 0x4ce4c7
cmp byte [0x5a2ee5], 0
je 0x4ce548
cmp byte [0x5a4e21], 0
je 0x4ce548
cmp byte [0x5a4e20], 0
je 0x4ce52b
push 0x4149f0
push 0x414a04
push 0xfeb
push esi
call fcn.004fd88b
add esp, 0x10
xor dl, dl
mov cl, 1
call fcn.00457243
push esi
push esi
push esi
push esi
xor edx, edx
xor cl, cl
call fcn.004708d7
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ecx + 0xaf0]
mov esi, 0x3a64
mov byte [edx], 1
or eax, 0x200
movzx edx, word [ecx + 0x40]
mov dword [ecx + 0xaf0], eax
mov dword [0x5a2ee0], 0x4ccc9b
mov dword [0x5a2edc], 0x4ceb7a
mov dword [0x5a2ed8], 0x4ce605
mov dword [0x5a2ed4], 0x4d0b6f
mov dword [0x5a2ed0], 0x4d2bfb
cmp dx, si
jne 0x4ce5d1
and eax, 0xfffffdff
mov dword [0x5a5004], 0x447a40
mov dword [ecx + 0xaf0], eax
mov dword [0x5a4e1c], 0x437499
mov dword [0x5a5000], 0x43e332
mov dword [0x5a4ffc], 0x503a8e
pop esi
ret
mov eax, 0xa64e
cmp dx, ax
jne 0x4ce603
mov dword [0x5a5004], 0x53f755
mov dword [0x5a4e1c], 0x54034a
mov dword [0x5a5000], 0x540ec5
mov dword [0x5a4ffc], 0x540f2c
pop esi
ret

Function at 0x4d363a
Capabilities:
Check if file exists
Delete file
Terminate process

Disassembly:
mov ecx, dword [0x5a3d84]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ebx
test ecx, ecx
je 0x4d36eb
mov eax, dword [0x5a2ec0]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x4d36e2
cmp dword [esi + 0xc], ebx
je 0x4d36e2
mov al, byte [esi + 0x18]
test al, 2
je 0x4d36e2
test al, 0x20
je 0x4d3681
push ebx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
je 0x4d3727
test byte [esi + 0x18], 4
je 0x4d3698
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x4d3727
push ebx
push ebx
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x4d3727
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4d3727
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
test eax, eax
je 0x4d3729
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4d36d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4d3734
mov ecx, dword [0x5a3d84]
mov dword [esi + 0xc], ebx
inc edi
cmp edi, ecx
jb 0x4d364f
xor dl, dl
mov cl, 1
call fcn.00457243
cmp byte [0x5a2ee5], bl
je 0x4d371f
call fcn.004621e5
push ebx
push dword [0x5a3024]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
pop ecx
pop ecx
test eax, eax
jne 0x4d371f
mov ecx, dword [0x5a3024]
call fcn.004d3e07
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [esi]
push 0x451
push ebx
call fcn.0047dc0b
push dword [esi]
push 0x455
jmp 0x4d372e
Function at 0x4d3851
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.004d377f
test byte [esi + 0x18], 2
jne 0x4d387c
call fcn.004fd494
test al, al
jne 0x4d387c
mov edx, dword [esi]
mov ecx, 0x2360
call fcn.004fd70b
mov al, byte [esi + 0x18]
and dword [esi + 0x1c], 0
and al, 0xa
cmp al, 0xa
jne 0x4d3890
mov ecx, 0x400000
jmp 0x4d38c7
lea eax, [ebp - 8]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4d38ae
push dword [esi]
push 0x450
push eax
call fcn.0047dc0b
mov ecx, dword [ebp - 8]
mov eax, ecx
or eax, dword [ebp - 4]
jne 0x4d38c4
push 0x470
push dword [esi]
call fcn.0047dc0b
mov dword [esi + 0x1c], ecx
lea edi, [ecx + 0x10000]
mov dword [esi + 0x24], ecx
shr edi, 0x10
mov eax, edi
mov edx, edi
push 8
shl eax, 0x10
shl edx, 2
pop ecx
mov dword [esi + 0x28], eax
call fcn.0044ee3b
mov ebx, eax
test ebx, ebx
jne 0x4d38f3
call fcn.004fd4dc
test byte [esi + 0x18], 8
lea eax, [esi + 0x30]
mov dword [esi + 0x20], ebx
mov dword [eax], eax
mov dword [eax + 4], eax
jne 0x4d3919
xor ecx, ecx
test edi, edi
je 0x4d3919
mov eax, dword [esi + 0x20]
mov dword [eax + ecx*4], 1
inc ecx
cmp ecx, edi
jl 0x4d390a
push 0
xor edx, edx
mov ecx, esi
call fcn.004d39cc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d3e07
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.00462403
push 3
pop ebx
jmp 0x4d3e3a
mov eax, ebx
dec ebx
test eax, eax
jle 0x4d3e49
lea eax, [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__get_errno]
cmp dword [ebp - 4], 0xd
pop ecx
jne 0x4d3e49
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x4d3e1a
pop edi
test esi, esi
pop esi
sete al
pop ebx
leave
ret
Function at 0x4d3e76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5a2ec0]
push ebx
push esi
push edi
mov edi, ecx
test byte [edi + 0x14], 2
mov edx, dword [edi]
mov esi, dword [eax + edx*4]
je 0x4d3f22
mov ebx, dword [edi + 0x10]
xor eax, eax
sub ebx, dword [edi + 4]
push eax
push eax
push eax
push dword [edi + 4]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4d3ebd
push dword [edi + 4]
push 0x452
push dword [esi]
call fcn.0047dc0b
push 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [edi + 0x18]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d3efb
cmp dword [ebp - 4], ebx
jne 0x4d3efb
movzx ecx, word [edi + 6]
mov eax, dword [esi + 0x20]
mov dword [eax + ecx*4], 1
test byte [esi + 0x18], 2
je 0x4d3f3e
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x1c]
jbe 0x4d3f3e
mov dword [esi + 0x1c], eax
jmp 0x4d3f3e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___doserrno]
cmp dword [eax], 0x70
jne 0x4d3f12
push 0x49c
push dword [esi]
call fcn.0047dc0b
mov ecx, dword [esi + 0xc]
call fcn.004d3f43
push eax
push 0x454
jmp 0x4d3eb6
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x20]
shr eax, 0x10
test byte [edi + 0x14], 4
je 0x4d3f3a
mov dword [ecx + eax*4], 1
jmp 0x4d3f3e
and dword [ecx + eax*4], 0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d4103
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
mov eax, dword [esi + 0x2c]
push ebx
mov dword [esp + 0x20], ebx
push dword [eax + 4]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4d4145
push dword [esp + 0x10]
push 0x452
push dword [esi]
call fcn.0047dc0b
mov eax, dword [esi + 0x2c]
mov ecx, 0x10000
mov edi, dword [esi + 0x1c]
sub edi, dword [eax + 4]
cmp edi, ecx
jbe 0x4d4159
mov edi, ecx
push ebx
lea ecx, [esp + 0x10]
add eax, 0x18
push ecx
push edi
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d4185
cmp dword [esp + 0xc], edi
jne 0x4d4185
mov eax, dword [esi + 0x2c]
pop edi
pop esi
pop ebx
and dword [eax + 0x14], 0xfffffff7
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xc]
call fcn.004d3f43
push eax
push 0x453
jmp 0x4d413e
Function at 0x4fbfbe
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push esi
mov esi, ecx
mov byte [esp + 0xb], dl
push edi
mov ecx, dword [esi + 4]
call fcn.00462403
mov eax, dword [esi + 8]
test eax, eax
je 0x4fc039
mov ecx, dword [esi + 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4fc006
test dx, dx
je 0x4fc002
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4fc006
add eax, 4
add ecx, 4
test dx, dx
jne 0x4fbfe0
xor eax, eax
jmp 0x4fc00b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4fc039
mov ecx, dword [esi + 4]
call fcn.00462403
push 0
push dword [esi + 4]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4fc039
push dword [esi + 8]
push 0x47c
push dword [esi + 4]
call fcn.004fabf6
cmp byte [esp + 0xf], 0
je 0x4fc0a7
mov eax, dword [esi + 4]
mov dword [0x5a9804], eax
push 0x208
call dword [sym.imp.tbbmalloc.dll_scalable_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x4fc068
call fcn.004575aa
test al, al
jne 0x4fc048
call fcn.004fd4dc
mov edx, 0x104
mov dword [0x5a9808], edi
mov ecx, edi
call fcn.00470bdc
push 0
push dword [0x5a9808]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4fc09c
push 0x53e
push dword [esi + 4]
call fcn.004fd4c3
mov ecx, dword [0x5a9808]
call fcn.00538d3a
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4fd1b7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
push ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
lea esi, [ebp - 0x20c]
push 2
mov eax, esi
push 0x423e50
push eax
call ebx
mov edi, dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 0x18
test eax, eax
jne 0x4fd21a
lea eax, [ebp - 0x208]
push 0x4012f8
push eax
call edi
pop ecx
pop ecx
lea esi, [eax + 2]
jmp 0x4fd237
push 2
lea eax, [ebp - 0x20a]
push 0x423e58
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x4fd237
lea esi, [ebp - 0x206]
mov ebx, 0x4012f8
push ebx
push esi
jmp 0x4fd26f
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4fd264
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4fd28a
push 0x5c
pop eax
mov word [esi], ax
lea eax, [esi + 2]
push ebx
push eax
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fd240
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a40f
leave
ret
lea eax, [ebp - 0x20c]
push eax
push 0x2368
push 0
call fcn.004fd507
add esp, 0xc
xor al, al
jmp 0x4fd27b
Function at 0x4fd2d2
Capabilities:
Terminate process

Disassembly:
push 4
mov eax, 0x48e8fa
call fcn.0047ebf1
mov esi, edx
mov edi, ecx
mov bh, byte [ebp + 0xc]
xor eax, eax
mov bl, al
cmp byte [0x5a3594], al
jne 0x4fd3c9
mov eax, 0x5a3b30
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
cmp byte [0x5a3594], 0
jne 0x4fd32b
push dword [ebp + 0x14]
mov bl, 1
mov edx, esi
push dword [ebp + 0x10]
mov ecx, edi
mov byte [0x5a3594], bl
push dword [ebp + 8]
call fcn.00431601
or dword [ebp - 4], 0xffffffff
push 0x5a3b30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x4fd3c9
xor dl, dl
mov cl, 1
call fcn.00457243
test bh, bh
je 0x4fd3b4
cmp byte [0x5a2ee5], 0
je 0x4fd371
mov ecx, dword [0x5a3054]
test ecx, ecx
je 0x4fd36c
call fcn.0045c3b6
mov dword [0x5a3054], eax
call fcn.004621e5
mov ecx, dword [0x5a3054]
xor edx, edx
test ecx, ecx
je 0x4fd389
cmp word [ecx], dx
je 0x4fd389
call fcn.004d3e07
xor edx, edx
cmp byte [0x5a2ee5], 0
je 0x4fd3b4
mov eax, dword [0x5a3024]
test eax, eax
je 0x4fd3b4
push edx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
pop ecx
pop ecx
test eax, eax
jne 0x4fd3b4
mov ecx, dword [0x5a3024]
call fcn.004d3e07
cmp dword [ebp + 8], 2
jne 0x4fd3c9
xor eax, eax
push 0x4c2
push eax
call fcn.004fd45c
pop ecx
pop ecx
test byte [0x5a4e00], 0x80
je 0x4fd3de
push ecx
push ecx
mov ecx, 0x4091f0
call fcn.004d9cf3
push dword [ebp + 0x10]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x4fd51f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x2365
xor ebx, ebx
push ebx
call fcn.004fd507
pop ecx
pop ecx
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4fd6ef
push 0x30
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x4fd6ef
mov ecx, dword [0x5a4f48]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4fd57d
sub ecx, edx
lea edx, [ebp - 0x68]
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x4fd592
mov eax, dword [0x5a3054]
lea edi, [ecx + 0x1d]
sub edx, esi
sar edx, 1
add edi, edx
test eax, eax
je 0x4fd5e6
push ebx
push ebx
push 0x100
lea ecx, [ebp - 0x268]
push ecx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
mov ecx, dword [0x5a3054]
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4fd5d4
sub ecx, edx
inc edi
sar ecx, 1
add edi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4fd6e8
lea ecx, [edi + edi]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4fd6e8
push dword [0x5a4f48]
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push 0x4012f8
push edi
push esi
call ebx
add esp, 0x18
cmp dword [0x5a3054], 0
je 0x4fd64a
lea eax, [ebp - 0x268]
push eax
push edi
push esi
call ebx
push 0x4012f8
push edi
push esi
call ebx
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
push edi
push esi
call ebx
push 0x4012f8
push edi
push esi
call ebx
add esp, 0x18
mov ecx, esi
call fcn.004fd1b7
test al, al
je 0x4fd6fc
push 0x423e60
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push 0x401cfc
push edi
push esi
call ebx
push 0x423e80
push edi
push esi
call ebx
push dword [0x5a4f48]
push edi
push esi
call ebx
push 0x4012f8
push edi
push esi
call ebx
add esp, 0x3c
cmp dword [0x5a3054], 0
je 0x4fd6c2
lea eax, [ebp - 0x268]
push eax
push edi
push esi
call ebx
push 0x4012f8
push edi
push esi
call ebx
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
push edi
push esi
call ebx
mov cl, byte [0x5a2ee5]
add esp, 0xc
xor eax, eax
mov edx, esi
push eax
push eax
push eax
push 1
call fcn.004708d7
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x2367
jmp 0x4fd6f4
push 0x2366
push ebx
call fcn.004fd507
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a40f
leave
ret
Function at 0x4fd70b
Capabilities:
Resolve path using msvcrt
Terminate process

Disassembly:
push 0x214
mov eax, 0x48e927
call fcn.0047ec24
mov edi, edx
mov esi, ecx
mov eax, 0x5a3b30
push eax
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
test edi, edi
jne 0x4fd74d
push dword [eax]
push esi
push ebx
call fcn.004fd507
add esp, 0xc
jmp 0x4fd75a
push edi
push dword [eax]
push esi
push ebx
call fcn.004fd507
add esp, 0x10
mov esi, 0x104
lea ecx, [ebp - 0x21c]
mov edx, esi
call fcn.00521e85
test al, al
jne 0x4fd79f
mov edx, esi
lea ecx, [ebp - 0x21c]
call fcn.005220a5
test al, al
jne 0x4fd79f
push 0x2362
push ebx
call fcn.004fd507
pop ecx
pop ecx
push 0x5a3b30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0047ebd3
ret
mov dl, 1
mov cl, dl
call fcn.00457243
lea eax, [ebp - 0x21c]
push eax
push 0x2361
push ebx
call fcn.004fd507
mov cl, byte [0x5a2ee5]
lea eax, [ebp - 0x21c]
add esp, 0xc
xor edx, edx
push eax
push 1
push ebx
push 1
call fcn.004708d7
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4fd8e6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
pop ebp
ret

Function at 0x4fd92c
Capabilities:
Write file on windows

Disassembly:
push esi
push dword [0x5a352c]
push 1
push 2
push 0x425d10
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov esi, eax
cmp byte [0x5a3dbc], 0
je 0x4fd959
test esi, esi
jne 0x4fd959
call fcn.004fd13b
mov eax, esi
pop esi
ret

Function at 0x50ef73
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
or edx, 0xffffffff
push ebx
push esi
push edi
push 4
mov edi, ecx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
pop ebx
movzx eax, byte [esi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4120f0]
inc esi
sub ebx, 1
jne 0x50ef8b
mov eax, edx
xor edx, edx
div dword [edi + 0x20]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50efb3
mov dword [eax], edx
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x50eff4
mov ebx, dword [eax + 4]
xor esi, esi
test ebx, ebx
je 0x50eff4
mov ecx, dword [eax]
mov edi, dword [edi + 4]
mov dword [ebp + 0x14], ecx
mov eax, dword [ecx + esi*8]
mov edx, dword [ecx + esi*8 + 4]
mov cl, 0x20
call fcn.0047f0a0
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + esi*8]
mov eax, dword [ebp + 8]
cmp dword [edi + ecx*4], eax
je 0x50effd
mov ecx, dword [ebp + 0x14]
inc esi
cmp esi, ebx
jb 0x50efce
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x50f006
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x50f00f
mov dword [eax], edx
xor eax, eax
inc eax
jmp 0x50eff6
Function at 0x52218d
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x5a1014]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5222a1
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push ebx
push eax
push 2
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
je 0x5222a1
cmp dword [esp + 0x10], 2
jne 0x5222a1
mov eax, 0x5a4d
cmp word [esp + 0x14], ax
jne 0x5222a1
push ebx
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebx
cmp eax, 0xffffffff
je 0x5222a1
push 0
lea eax, [esp + 0x14]
push eax
push 0x40
lea eax, [esp + 0x3c]
push eax
push esi
call edi
test eax, eax
je 0x5222a1
cmp dword [esp + 0x10], 0x40
jne 0x5222a1
cmp dword [esp + 0x6c], 0
je 0x5222a1
push 0
push 0
push dword [esp + 0x74]
push esi
call ebx
cmp eax, 0xffffffff
je 0x5222a1
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
je 0x5222a1
cmp dword [esp + 0x10], 4
jne 0x5222a1
cmp dword [esp + 0x18], 0x4550
jne 0x5222a1
push 0
lea eax, [esp + 0x14]
push eax
push 0x14
lea eax, [esp + 0x28]
push eax
push esi
call edi
test eax, eax
je 0x5222a1
cmp dword [esp + 0x10], 0x14
jne 0x5222a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8664
cmp word [esp + 0x1c], ax
sete al
jmp 0x5222a3
xor al, al
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a40f
mov esp, ebp
pop ebp
ret