joyce8/EMBER2024-capa huggingface dataset:
Function at 0x543740
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x6a0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x264], eax
test ebx, ebx
je 0x543873
test eax, eax
je 0x543873
push esi
push edi
lea eax, [ebp - 0x25c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x543814
cmp byte [ebp - 0x25c], 0
je 0x543814
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea esi, [ebp - 0x25c]
push 0x5c56d0
push esi
call edi
test eax, eax
je 0x54380c
push 0x5c56d4
push esi
call edi
test eax, eax
je 0x54380c
movzx eax, byte [esi]
mov byte [ebp - 0x260], al
movzx eax, byte [esi + 1]
mov byte [ebp - 0x25f], al
lea eax, [ebp - 0x68]
push 0x64
push eax
lea eax, [ebp - 0x260]
mov byte [ebp - 0x25e], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x543822
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.00593131
add esp, 0xc
test eax, eax
je 0x543837
add esi, 4
cmp byte [esi], 0
jne 0x5437a1
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.0058de24
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x268]
add eax, ebx
push eax
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.0058de24
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0058de24
mov esp, ebp
pop ebp
ret 8
Function at 0x544450
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9d58
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x6a0290]
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 ebx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0
push 2
mov dword [ebp - 4], 0
mov dword [ebp - 0x168], pe_nt_image_headers32
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x544592
lea eax, [ebp - 0x168]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x54458b
lea esp, [esp]
push dword [ebp - 0x160]
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.005445c0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x544551
cmp dword [ebp - 0x14], 0x10
jb 0x5444fb
push dword [ebp - 0x28]
call fcn.0058d68d
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [esi + 0x14], 0x10
jae 0x544529
mov eax, dword [esi + 0x10]
inc eax
je 0x544534
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0058d7e0
add esp, 0xc
jmp 0x544534
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x544562
push dword [ebp - 0x40]
call fcn.0058d68d
add esp, 4
cmp dword [ebp - 0x18], 0
jbe 0x544576
lea eax, [ebp - 0x28]
mov ecx, 0x6d8330
push eax
call fcn.00418100
lea eax, [ebp - 0x168]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x5444d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0x10
jb 0x5445a3
push dword [ebp - 0x28]
call fcn.0058d68d
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.0058de24
mov esp, ebp
pop ebp
ret
Function at 0x5445c0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x6a0290]
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 ebx, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
push 0
push 0x5c1722
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00403f20
push esi
push 0
push 0x400
mov byte [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x544676
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.0040ff70
cmp dword [ebp - 0x21c], 0x10
jb 0x5446e0
push dword [ebp - 0x230]
call fcn.0058d68d
add esp, 4
jmp 0x5446e0
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x544695
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5446c7
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00543740
push esi
test eax, eax
je 0x54468d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x230]
call fcn.00410ff0
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.0040ff70
lea ecx, [ebp - 0x230]
call fcn.00545f30
mov eax, edi
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.0058de24
mov esp, ebp
pop ebp
ret 8
Function at 0x544ea0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6a0290]
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 dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov edi, 0xf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], 0
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 2
cmp eax, edi
je 0x544f29
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00403ce0
test al, al
je 0x544f26
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
mov edi, dword [ebp - 0x14]
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp esi, eax
je 0x544fff
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
mov bl, byte [esi]
cmp edi, 0x10
mov byte [ebp - 0x44], bl
cmovae ecx, dword [ebp - 0x28]
add eax, ecx
cmp edi, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
test eax, eax
je 0x544f70
sub eax, ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push 1
push eax
call fcn.00545b40
cmp bl, 0x5c
je 0x544f98
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
dec eax
add eax, ecx
cmp esi, eax
jne 0x544fef
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00457800
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.005938e2
add esp, 8
test eax, eax
je 0x544fda
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00593942
add esp, 4
test eax, eax
jne 0x544ff8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
mov edi, dword [ebp - 0x14]
inc esi
jmp 0x544f34
mov edi, dword [ebp - 0x14]
xor bl, bl
jmp 0x545001
mov bl, 1
cmp edi, 0x10
jb 0x545011
push dword [ebp - 0x28]
call fcn.0058d68d
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x545034
push dword [ebp - 0x40]
call fcn.0058d68d
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x545057
push dword [ebp + 8]
call fcn.0058d68d
add esp, 4
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.0058de24
mov esp, ebp
pop ebp
ret 0x18
Function at 0x5460e0
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, 0x14
mov eax, dword [0x6a0290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0xffffffffffffffff
push dword [0x6d836c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 2
mov word [ebp - 0x14], ax
movzx eax, word [esi + 0x18]
push eax
call sub.WSOCK32.dll_htons
cmp dword [esi + 0x14], 0x10
mov word [ebp - 0x12], ax
jb 0x546124
mov esi, dword [esi]
push esi
call sub.WSOCK32.dll_inet_addr
push 6
push 1
push 2
mov dword [ebp - 0x10], eax
call sub.WSOCK32.dll_socket
push 0x10
lea ecx, [ebp - 0x14]
mov dword [0x6d8368], eax
push ecx
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x546162
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058de24
mov esp, ebp
pop ebp
ret 4
push 0x12a
call fcn.0058d63c
mov esi, eax
lea ecx, [edi + 0x10]
push ecx
push 0x104
lea ecx, [esi + 0x10]
push ecx
call fcn.00592dd3
lea ecx, [edi + 0x114]
push ecx
lea eax, [esi + 0x114]
push 0x10
push eax
call fcn.00592dd3
mov eax, dword [edi + 0x124]
push 0
push 0
push esi
push 0x546220
mov dword [esi + 0x124], eax
mov al, byte [edi + 0x128]
push 0
push 0
mov byte [esi + 0x128], al
call fcn.005936b5
mov ecx, dword [ebp - 4]
add esp, 0x34
mov dword [0x6d836c], eax
xor ecx, ebp
mov al, 1
pop edi
pop esi
call fcn.0058de24
mov esp, ebp
pop ebp
ret 4

Function at 0x5465e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6a0290]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x5cf1a0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi], eax
test eax, eax
je 0x546632
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCreateFile
push eax
call esi
push str.IcmpSendEcho
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.IcmpCloseHandle
push dword [edi]
mov dword [edi + 8], eax
call esi
mov dword [edi + 0xc], eax
pop esi
lea eax, [ebp - 0x194]
push eax
push 0x201
call sub.WSOCK32.dll_WSAStartup
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0058de24
mov esp, ebp
pop ebp
ret
Function at 0x546680
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0xffffffff
call sub.WSOCK32.dll_inet_addr
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
jne 0x5466cb
push esi
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x5466c1
or eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp + 8], eax
push ebx
push 0x20
call fcn.0058cd8a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x546722
push 0x3c
call fcn.0058cd8a
mov esi, eax
add esp, 4
test esi, esi
jne 0x546701
push ebx
call fcn.0058ed28
add esp, 4
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call eax
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, 0xffffffff
jne 0x54672e
push ebx
call fcn.0058ed28
push esi
call fcn.0058ed28
add esp, 8
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
movzx eax, ax
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x546776
mov dword [ebp + 0xc], eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push 0x3c
push esi
push 0
mov eax, dword [eax + 8]
push 0x20
push ebx
push dword [ebp + 8]
push ecx
call eax
cmp dword [esi + 4], 0
jne 0x54676e
mov eax, dword [esi + 8]
add dword [edi], eax
jne 0x54676b
mov dword [edi], 1
inc dword [ebp - 8]
dec dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
jne 0x546741
mov eax, dword [edi]
xor edx, edx
div dword [ebp - 0x10]
mov ecx, 1
test eax, eax
push esi
cmove eax, ecx
mov dword [edi], eax
call fcn.0058ed28
push ebx
call fcn.0058ed28
mov eax, dword [ebp - 4]
add esp, 8
push dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
call ecx
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5588d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8d36
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.CReinforceManager.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
push 0x14
mov byte [ebp - 4], 1
call fcn.004da350
push 0x14
lea ecx, [edi + 0x28]
call fcn.004da350
mov dword [edi + 0x4c], 0
mov eax, edi
mov dword [edi + 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x573f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb775
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CTileManager.0
lea ecx, [edi + 0x34]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call fcn.00577510
mov dword [edi + 0x34], eax
mov dword [ebp - 4], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
lea esi, [edi + 0x54]
mov byte [ebp - 4], 1
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0058d63c
add esp, 4
test eax, eax
jne 0x57401f
call fcn.0058cca9
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea esi, [edi + 0x68]
mov byte [ebp - 4], 2
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0058d63c
add esp, 4
test eax, eax
jne 0x57406e
call fcn.0058cca9
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
lea esi, [edi + 0x88]
mov byte [ebp - 4], 4
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0058d63c
add esp, 4
test eax, eax
jne 0x5740db
call fcn.0058cca9
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea esi, [edi + 0x9c]
mov byte [ebp - 4], 5
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0058d63c
add esp, 4
test eax, eax
jne 0x57412d
call fcn.0058cca9
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov eax, edi
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5835e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6a0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5836b1
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x58364b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058de24
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x18], 0x6060801
jne 0x583632
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x583633
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1a], 0
je 0x5836b1
mov ecx, dword [0x6d7294]
test ecx, ecx
je 0x5836b1
push dword [ebp - 0xe]
call fcn.004a25e0
push dword [ebp - 0x10]
mov ecx, dword [0x6d7294]
call fcn.004a25c0
movss xmm0, dword [ebp - 0xa]
push 0
push ecx
movss dword [esp], xmm0
mov ecx, 0x6d4d48
push 0
call fcn.00502b20
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0058de24
mov esp, ebp
pop ebp
ret 4
Function at 0x583bf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6a0290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x583cf1
push esi
push 0
mov ecx, 0x5f96e8
call fcn.0045d040
push eax
lea eax, [ebp - 0x108]
push str._sdata
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
add esp, 0xc
push 0
push eax
call esi
push dword [edi + 0x16]
mov ecx, 0x5f96e8
push 0
call fcn.0045d040
push eax
lea eax, [ebp - 0x108]
push str._sdata_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push eax
call esi
test bl, 1
je 0x583cb4
mov eax, dword [edi + 0x16]
mov ecx, 0x5f96e8
push eax
push eax
push 0
call fcn.0045d040
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x108]
push str._sdata_d_d.uii
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.005836d0
jmp 0x583cba
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
test bl, 2
je 0x583cf0
mov eax, dword [edi + 0x16]
mov ecx, 0x5f96e8
push eax
push eax
push 0
call fcn.0045d040
push eax
lea eax, [ebp - 0x108]
push str._sdata_d_d.uis
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.00583d10
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0058de24
mov esp, ebp
pop ebp
ret 4

Function at 0x583d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6a0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x6d7294]
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x583da7
push edi
call fcn.004a0e30
movss xmm0, dword [0x6d4d88]
push 0
push 0x80
push 2
mov dword [ebp - 0xe], eax
mov eax, dword [0x6d7294]
push 0
push 0
push 0x40000000
mov ax, word [eax + 0x68a]
push esi
mov word [ebp - 0x10], ax
movss dword [ebp - 0xa], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x583da6
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x6060801
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x10]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0058de24
mov esp, ebp
pop ebp
ret 4
Function at 0x584140
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a0290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x20]
test eax, eax
je 0x584190
push 0x8db
mov ecx, 0x6c4828
call fcn.0044af50
push eax
push 0x17
push 0x6c4828
call fcn.0044a830
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058de24
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6d1ecc]
mov dword [ebp - 0x210], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
lea edx, [ebp - 0x210]
push edx
push 0x5d1a50
mov ecx, dword [eax]
push eax
call dword [ecx + 0x134]
test eax, eax
je 0x58417f
cmp dword [esi + 0xc], 0
jne 0x5841f5
push str.bdcap32.dll
mov ecx, esi
call fcn.00584320
test eax, eax
jns 0x5841db
push 0x8dc
jmp 0x584165
mov eax, dword [esi]
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
push esi
call dword [eax + 0xc]
cmp dword [esi + 0xc], 0
je 0x5842ba
mov eax, dword [esi]
push 0x3c
push 0x1e
push esi
call dword [eax + 0x40]
mov ecx, esi
call fcn.00584780
push 0
mov ecx, 0x5f96e8
call fcn.0045d040
push eax
lea eax, [ebp - 0x108]
push str._sScreenShot
push eax
call fcn.0058f38c
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x584251
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x584251
push 0x8de
jmp 0x584165
push 0x104
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
push 0x5d1b7c
push str.Capture
lea eax, [ebp - 0x108]
push eax
call fcn.005846b0
lea eax, [ebp - 0x20c]
mov ecx, 0x6c4828
push eax
push 0x8df
call fcn.0044af50
push eax
push 0x17
push 0x6c4828
call fcn.0044a830
add esp, 0x10
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
push 4
push 0
push eax
push esi
call fcn.005848b0
test eax, eax
js 0x58417f
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0058de24
mov esp, ebp
pop ebp
ret