joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51df20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580840
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x5b107c]
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
xor ebx, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
push ebx
mov dword [ebp - 4], ebx
push 2
mov dword [ebp - 0x170], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x51df8d
cmp dword [ebp - 0x18], 0x10
jb 0x51e073
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x51e06a
lea ecx, [ebp - 0x170]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, ebx
je 0x51e059
mov edx, dword [ebp - 0x168]
push edx
lea ebx, [ebp - 0x48]
call fcn.0051ed50
mov edi, eax
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x51e019
cmp dword [ebp - 0x18], 0x10
jb 0x51dfce
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [edi + 0x14], 0x10
jae 0x51dff8
mov eax, dword [edi + 0x10]
inc eax
push eax
lea edx, [ebp - 0x2c]
push edi
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x51dfff
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
mov dword [edi], ebx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x18], edx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
jmp 0x51e01b
xor ebx, ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], 0x10
jb 0x51e031
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x1c], ebx
jbe 0x51e043
lea ecx, [ebp - 0x2c]
mov edi, 0x6825a8
call fcn.004b6a60
lea ecx, [ebp - 0x170]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x51dfa3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0x10
jb 0x51e073
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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.005762ee
mov esp, ebp
pop ebp
ret
Function at 0x51e090
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580808
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5b107c]
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
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 1
mov ecx, dword [0x6825ac]
mov edi, dword [0x6825a8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x51e204
mov dword [ebp - 0x4c], edi
cmp edi, dword [0x6825ac]
je 0x51e1df
push 0x656b68
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x2c]
call fcn.00404e10
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x64], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
or eax, 0xffffffff
mov byte [ecx], bl
call fcn.00404e10
lea esi, [ebp - 0x48]
call fcn.0051e670
push eax
lea ebx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.005202e0
mov ebx, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], ebx
jb 0x51e171
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0x5c]
call fcn.005203a0
lea esi, [ebp - 0x2c]
call fcn.00523850
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x51e18c
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0x4c]
call fcn.00467d20
cmp dword [eax + 0x14], ebx
jb 0x51e19b
mov eax, dword [eax]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x51e1b6
push edi
lea esi, [ebp - 0x60]
call fcn.005203c0
mov edi, dword [eax]
jmp 0x51e1b9
add edi, 0x1c
mov dword [ebp - 0x4c], edi
cmp edi, dword [0x6825ac]
jne 0x51e112
cmp dword [ebp - 0x18], ebx
jb 0x51e1da
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [ebp - 0x5c]
xor ebx, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp esi, ebx
je 0x51e204
mov edi, dword [ebp - 0x58]
mov eax, esi
call fcn.004b7890
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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.005762ee
mov esp, ebp
pop ebp
ret
Function at 0x51e710
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5b107c]
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
xor edi, edi
mov dword [ebp - 4], edi
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x48]
call fcn.00520270
lea eax, [ebp - 0x4c]
lea ecx, [ebp + 8]
call fcn.00523730
lea ecx, [ebp - 0x50]
lea eax, [ebp + 8]
call fcn.005236f0
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00519220
test al, al
je 0x51e84c
lea eax, [ebp - 0x4c]
call fcn.005202a0
mov bl, byte [eax]
mov byte [ebp - 0x54], bl
mov eax, dword [ebp - 0x54]
push eax
lea esi, [ebp - 0x48]
call fcn.005236c0
cmp bl, 0x5c
je 0x51e7d1
lea ecx, [ebp - 0x58]
lea eax, [ebp + 8]
call fcn.005236f0
lea edi, [ebp - 0x5c]
call fcn.005202c0
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.005216f0
xor edi, edi
test al, al
je 0x51e828
lea eax, [ebp - 0x48]
lea esi, [ebp - 0x2c]
call fcn.00523840
mov eax, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x51e7eb
mov eax, esi
push edi
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
je 0x51e817
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x51e805
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
test eax, eax
jne 0x51e8bd
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], edi
cmp dword [ebp - 0x34], ebx
jae 0x51e825
lea eax, [ebp - 0x48]
mov byte [eax], 0
lea esi, [ebp - 0x4c]
call fcn.005202b0
lea ecx, [ebp - 0x50]
lea eax, [ebp + 8]
call fcn.005236f0
mov edx, eax
mov eax, esi
call fcn.00519220
test al, al
jne 0x51e790
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0x10
cmp dword [ebp - 0x34], esi
jb 0x51e865
mov ecx, dword [ebp - 0x48]
push ecx
call ebx
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], esi
jb 0x51e881
mov edx, dword [ebp - 0x2c]
push edx
call ebx
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x1c], esi
jb 0x51e89d
mov eax, dword [ebp + 8]
push eax
call ebx
add esp, 4
mov al, 1
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.005762ee
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x34], ebx
jb 0x51e8d1
mov ecx, dword [ebp - 0x48]
push ecx
call esi
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], ebx
jb 0x51e8ed
mov edx, dword [ebp - 0x2c]
push edx
call esi
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x1c], ebx
jb 0x51e909
mov eax, dword [ebp + 8]
push eax
call esi
add esp, 4
xor al, al
jmp 0x51e89f
Function at 0x51ed50
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5806eb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
xor eax, eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], eax
mov byte [ebp - 0x234], al
mov dword [ebp - 4], eax
xor edi, edi
mov eax, 0x5861b8
lea esi, [ebp - 0x234]
call fcn.004051c0
mov ecx, dword [ebp - 0x238]
push ecx
push edi
push 0x400
mov byte [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
jne 0x51ee15
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0xf
lea edi, [ebp - 0x234]
mov esi, ebx
mov byte [ebx], 0
call fcn.004b7fd0
cmp dword [ebp - 0x220], 0x10
jb 0x51eee1
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x51eee1
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
test eax, eax
jne 0x51ee6c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0xf
lea edi, [ebp - 0x234]
mov esi, ebx
mov byte [ebx], 0
call fcn.004b7fd0
cmp dword [ebp - 0x220], 0x10
jb 0x51eee1
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x51eee1
lea edx, [ebp - 0x114]
lea ecx, [ebp - 0x218]
call fcn.0051ef00
push esi
test eax, eax
jne 0x51ee8d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x10], edi
jmp 0x51eec3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51eea0
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x114]
lea esi, [ebp - 0x234]
call fcn.004051c0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
lea edi, [ebp - 0x234]
mov esi, ebx
mov byte [ebx], 0
call fcn.004b7fd0
mov esi, edi
call fcn.004b7fa0
mov eax, ebx
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.005762ee
mov esp, ebp
pop ebp
ret 4
Function at 0x51ef00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x264], esi
test ebx, ebx
je 0x51f029
test esi, esi
je 0x51f029
push edi
lea eax, [ebp - 0x25c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x51efda
cmp byte [ebp - 0x25c], 0
je 0x51efda
lea esi, [ebp - 0x25c]
lea ecx, [ecx]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x590ccc
push esi
call edi
test eax, eax
je 0x51efcc
push 0x590cd0
push esi
call edi
test eax, eax
je 0x51efcc
mov cl, byte [esi]
mov dl, byte [esi + 1]
push 0x64
lea eax, [ebp - 0x68]
mov byte [ebp - 0x260], cl
push eax
lea ecx, [ebp - 0x260]
push ecx
mov byte [ebp - 0x25f], dl
mov byte [ebp - 0x25e], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x51efe2
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
lea eax, [ebp - 0x68]
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x51eff5
add esi, 4
cmp byte [esi], 0
jne 0x51ef60
mov esi, dword [ebp - 0x264]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005762ee
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebx, edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005762ee
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005762ee
mov esp, ebp
pop ebp
ret

Function at 0x51f780
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x51fb60
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x5214f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e738
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5b107c]
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
cmp dword [esi + 0x44], 0
je 0x52162a
cmp byte [esi + 0x49], 0
je 0x52162a
call fcn.005234c0
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push edi
mov ecx, esi
call edx
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], edi
call fcn.005216f0
test al, al
jne 0x52161e
lea eax, [ebp - 0x2c]
call fcn.005231c0
mov dword [ebp - 4], 0
lea ebx, [esi + 0x4c]
lea ecx, [ecx]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.00523730
call fcn.005202a0
add eax, edi
push eax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.00523730
call fcn.005202a0
mov ecx, dword [esi + 0x44]
push eax
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x5215b7
dec eax
je 0x5215bb
sub eax, 2
lea esi, [ebp - 0x2c]
jne 0x521619
jmp 0x521625
mov byte [esi + 0x49], 0
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x2c]
call fcn.00523730
call fcn.005202a0
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x5215f7
mov ecx, dword [esi + 0x54]
push ecx
push edi
push 1
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
call fcn.00523730
call fcn.005202a0
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x521616
cmp byte [esi + 0x49], 0
je 0x521622
test edi, edi
jne 0x521570
push edi
lea eax, [edi + 8]
lea edi, [ebp - 0x2c]
call fcn.005230d0
jmp 0x521570
lea esi, [ebp - 0x2c]
call fcn.004b7fa0
xor al, al
jmp 0x52162c
lea esi, [ebp - 0x2c]
call fcn.004b7fa0
mov al, 1
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.005762ee
mov esp, ebp
pop ebp
ret
Function at 0x5238b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x65fabc]
push ebx
push esi
push 0xffffffffffffffff
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx edx, word [esi + 0x1c]
mov ecx, 2
push edx
mov word [ebp - 0x14], cx
call dword [sym.imp.WSOCK32.dll_htons]
cmp dword [esi + 0x14], 0x10
mov word [ebp - 0x12], ax
jb 0x5238f2
mov esi, dword [esi]
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 6
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [0x65f330], eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x523931
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005762ee
mov esp, ebp
pop ebp
ret
push 0x12c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov ebx, dword [sym.imp.MSVCR100.dll_strcpy_s]
lea edx, [edi + 0x10]
push edx
mov esi, eax
lea eax, [esi + 0x10]
push 0x104
push eax
call ebx
lea ecx, [edi + 0x114]
push ecx
lea edx, [esi + 0x114]
push 0x10
push edx
call ebx
mov eax, dword [edi + 0x124]
push 0
push 0
push esi
push 0x523b10
mov dword [esi + 0x124], eax
mov cl, byte [edi + 0x128]
push 0
push 0
mov byte [esi + 0x128], cl
call dword [sym.imp.MSVCR100.dll__beginthreadex]
mov ecx, dword [ebp - 4]
add esp, 0x34
pop esi
mov dword [0x65fabc], eax
xor ecx, ebp
mov al, 1
pop ebx
call fcn.005762ee
mov esp, ebp
pop ebp
ret
Function at 0x523fb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
xor eax, eax
cmp dword [ecx + 0x14], 0x10
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
jb 0x523fe4
mov ecx, dword [ecx]
push 0x587394
push ecx
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCR100.dll_fopen_s]
mov eax, dword [ebp - 0x40]
add esp, 0xc
test eax, eax
jne 0x524016
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll_fseek]
push edi
push 2
push 0
push eax
call esi
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCR100.dll_ftell]
push 0
mov edi, eax
mov eax, dword [ebp - 0x40]
push 0
push eax
call esi
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov ecx, dword [ebp - 0x40]
push ecx
push edi
mov ebx, eax
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x30
push ebx
call fcn.00524170
lea esi, [ebp - 0x14]
call fcn.00524220
test ebx, ebx
je 0x524072
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
xor eax, eax
add esp, 4
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov byte [ebp - 0x3c], al
mov word [ebp - 0x3b], ax
xor ebx, ebx
movzx edx, byte [ebp + ebx - 0x14]
push 0x10
lea ecx, [ebp - 0x3c]
push ecx
push edx
call dword [sym.imp.MSVCR100.dll__itoa]
add esp, 0xc
cmp byte [ebp - 0x3b], 0
jne 0x5240fa
lea edi, [ebp - 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5240c5
mov ax, word [0x5882e4]
mov word [edi], ax
lea eax, [ebp - 0x3c]
mov edx, eax
jmp 0x5240e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5240e0
lea edi, [ebp - 0x38]
sub eax, edx
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5240f0
jmp 0x524118
lea eax, [ebp - 0x3c]
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x524100
lea edi, [ebp - 0x38]
sub eax, edx
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x524110
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0x10
jl 0x5240a6
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.MSVCR100.dll__strupr]
lea eax, [ebp - 0x38]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x524145
mov esi, dword [ebp - 0x44]
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x38]
call fcn.004051c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4
Function at 0x5253e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x320
mov eax, dword [0x5b107c]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20]
push esi
push edi
push ebx
call ecx
test eax, eax
je 0x52543c
mov eax, dword [0x680de4]
test eax, eax
jne 0x525416
mov eax, 0x6815d0
push eax
push 0x17
mov ecx, 0x67ee90
call fcn.004cbe00
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.005762ee
mov esp, ebp
pop ebp
ret
mov eax, dword [0x65fadc]
mov dword [esp + 0xc], 0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x594238
push eax
mov eax, dword [ecx + 0x134]
call eax
test eax, eax
je 0x525426
mov ecx, ebx
call fcn.00524ef0
test eax, eax
jne 0x525499
mov esi, ebx
call fcn.00524d70
test eax, eax
jns 0x525487
mov eax, dword [0x680de8]
jmp 0x52540d
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
push ebx
call edx
mov ecx, ebx
call fcn.00524ef0
test eax, eax
je 0x525571
mov eax, dword [ebx]
mov ecx, dword [eax + 0x40]
push 0x3c
push 0x1e
push ebx
call ecx
mov edi, ebx
call fcn.00525610
mov eax, dword [0x6573a4]
mov esi, dword [sym.imp.MSVCR100.dll_sprintf]
lea edx, [esp + 0x220]
push edx
push eax
push 0x58638c
push 0x69cf68
mov byte [esp + 0x230], 0
call esi
push 0x69cf68
lea ecx, [esp + 0x12c]
push str._sScreenShot
push ecx
call esi
add esp, 0x1c
push 0
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x525525
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x525525
mov eax, dword [0x680df0]
jmp 0x52540d
lea esi, [esp + 0x10]
lea edi, [esp + 0x118]
call fcn.00524f50
mov eax, dword [0x680df4]
test eax, eax
jne 0x525543
mov eax, 0x6815d0
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x17
mov ecx, 0x67ee90
call fcn.004cbe00
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00525040
test eax, eax
js 0x525426
mov ecx, dword [esp + 0x324]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.005762ee
mov esp, ebp
pop ebp
ret