joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53ad60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x6d48e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x104]
mov ebx, ecx
mov eax, esi
mov dword [ebp - 0x118], ebx
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x53ad90
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR120.dll_isalpha]
add esp, 4
test eax, eax
je 0x53ae2a
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x53add2
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00598fe4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0xc]
push edi
xor edi, edi
cmp dword [ecx], edi
je 0x53ae29
mov ebx, dword [sym.imp.MSVCR120.dll_sprintf]
movsx eax, word [esi + 0xa]
push eax
push dword [ecx]
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
push dword [ebp - 0x110]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push 0x5ab8c4
push eax
call ebx
mov eax, dword [esi + 0xc]
lea edi, [edi + 1]
lea ecx, [eax + edi*4]
add esp, 0xc
cmp dword [ecx], 0
jne 0x53ade2
mov ebx, dword [ebp - 0x118]
pop edi
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x104]
push dword [ebp + 0xc]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
xor ecx, ecx
mov dword [ebx + 0x14], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00598fe4
mov esp, ebp
pop ebp
ret 8
Function at 0x53caf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x6d48e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x303]
push edi
mov edi, dword [ebp + 8]
push 0x1ff
push 0
push eax
mov byte [ebp - 0x304], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x304]
test esi, esi
je 0x53cb4a
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVCR120.dll_sprintf]
push edi
push 0x5bda78
push eax
call esi
add esp, 0x14
jmp 0x53cb5f
push dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVCR120.dll_sprintf]
push edi
push str._s_line:_d_
push eax
call esi
add esp, 0x10
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x30e]
push eax
movzx eax, word [ebp - 0x312]
push eax
movzx eax, word [ebp - 0x314]
push eax
lea eax, [ebp - 0x104]
push str.._Log_Debug__4d_02d_02d.txt
push eax
call esi
add esp, 0x14
cmp dword [0x707220], 0
jne 0x53cc63
push 0
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x53cc31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x104]
push 0x5bdaa0
push eax
call dword [sym.imp.MSVCR120.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x53cc63
call fcn.0053c1a0
push eax
lea eax, [ebp - 0x304]
push eax
push str._stime:_s_n
push esi
call dword [sym.imp.MSVCR120.dll_fprintf]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00598fe4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x3a0]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xf4240
jbe 0x53cbe3
mov dword [0x707220], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00598fe4
mov esp, ebp
pop ebp
ret
Function at 0x547340
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a351d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6d48e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
push 0xa
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 1
call fcn.00597440
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0054ad10
lea edi, [esi + 0x94]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea ebx, [esi + 0xb8]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
lea eax, [esi + 0xdc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x100]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x124]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x150], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x158], 0
mov dword [esi + 0x15c], 0
push 0x80
push 0x5be774
push 0x6d3f50
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCR120.dll_strncpy]
add esp, 0xc
mov dword [0x6d3f4c], 0x32
cmp dword [0x6d3f44], 0
jne 0x54754e
push 0x64
push 0x6d3f44
call fcn.005477c0
mov eax, dword [0x6d3f44]
add esp, 8
mov dword [0x6d3f48], eax
push 0x1e
mov ecx, edi
mov dword [esi + 0x64], 0
call fcn.0053e9b0
push 0x1e
mov ecx, ebx
call fcn.0053e9b0
push 0x1e
lea ecx, [esi + 0xdc]
call fcn.0053e9b0
push 0x1e
lea ecx, [esi + 0x100]
call fcn.0053e9b0
push 3
lea ecx, [esi + 0x124]
call fcn.0053e9b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54d490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a37eb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6d48e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CSkillObjectTargetList.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
push 1
mov dword [ebp - 4], 0
call fcn.0053e9b0
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0xb7]
mov word [esi + 0x30], ax
movzx eax, word [ecx + 0xad]
mov word [esi + 0x32], ax
mov dword [esi + 0x2c], 0
movzx eax, word [ecx + 0x27]
mov word [esi + 0x34], ax
movzx eax, word [ecx + 0x29]
mov word [esi + 0x36], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x556950
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x6d48e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x408], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x418], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x41c], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
push 0x400
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x404]
push edi
push eax
mov dword [ebp - 0x414], ebx
call sub.MSVCR120.dll_memset
mov edx, dword [ebp - 0x408]
add esp, 0xc
mov dword [ebp - 0x40c], esi
lea ecx, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x5569c0
sub edx, ecx
mov dword [ebp - 0x410], esi
xor ecx, ecx
cmp edx, 2
jl 0x556a06
lea ebx, [edx - 1]
lea esp, [esp]
mov eax, dword [ebp - 0x408]
movsx eax, byte [eax + ecx]
add esi, eax
mov eax, dword [ebp - 0x408]
movsx eax, byte [eax + ecx + 1]
add ecx, 2
add edi, eax
cmp ecx, ebx
jl 0x5569e0
mov ebx, dword [ebp - 0x414]
cmp ecx, edx
jge 0x556a1a
mov eax, dword [ebp - 0x408]
movsx eax, byte [eax + ecx]
mov dword [ebp - 0x410], eax
lea eax, [edi + esi]
xor edx, edx
add eax, dword [ebp - 0x410]
div dword [ebx + 0x48]
mov esi, edx
xor edx, edx
mov eax, esi
div dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x556a57
jmp 0x556a40
cmp dword [eax], esi
je 0x556a4d
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x556a40
jmp 0x556a57
cmp dword [eax + 4], 0
jne 0x556afc
cmp dword [ebx + 0x20], 0xcd
jb 0x556a8b
push 0x33
mov ecx, ebx
call fcn.00556b40
lea eax, [ebp - 0x404]
push 0x5bf854
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 8
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebx]
mov edi, dword [ebp - 0x408]
push 0
push 0
mov ecx, dword [eax]
push 0
push edi
push eax
call dword [ecx + 0x18c]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x556b02
mov ecx, dword [ebx]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x114]
mov eax, dword [ebx]
push dword [ebp - 0x40c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10c]
mov ecx, ebx
call fcn.00556910
test eax, eax
je 0x556ae1
mov ecx, dword [ebp - 0x40c]
mov dword [eax + 8], ecx
mov dword [eax + 4], esi
push eax
lea ecx, [ebx + 4]
call fcn.00597500
push esi
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebx + 0x20]
call fcn.004589a0
jmp 0x556b02
mov edi, dword [ebp - 0x408]
push dword [ebp - 0x420]
mov eax, dword [ebx]
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x18c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00598fe4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x556c90
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x4c]
mov ebx, eax
add edx, 0x493e0
cmp ebx, edx
jbe 0x556cf7
cmp dword [esi + 0x10], 0
jle 0x556ce9
push edi
lea ecx, [esi + 4]
call fcn.00597870
mov edi, eax
test edi, edi
je 0x556ce8
push dword [edi + 8]
call fcn.00552320
add esp, 4
lea ecx, [esi + 0x20]
push dword [edi + 4]
call fcn.005262d0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
pop edi
push str._n____Cache_delete_one_item.__n_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x4c], ebx
pop esi
pop ebx
ret

Function at 0x5597e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x10
je 0x55995c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 0x94
push 0
mov eax, dword [ebx]
mov dword [ebp + 8], eax
lea esi, [eax + 0x37c]
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, ebx
call fcn.005580a0
push 0
mov ecx, ebx
call fcn.00557ef0
test eax, eax
je 0x559944
push edi
lea esp, [esp]
mov edi, dword [eax]
mov ecx, eax
call fcn.00557bd0
mov bl, al
mov ecx, 0x724218
mov eax, dword [ebp + 8]
add bl, byte [eax + 0x56c]
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00558e70
test eax, eax
je case.0x559873.10
movzx ecx, word [edi + 0x2c]
add ecx, 0xfffffffd
cmp ecx, 0x75
ja case.0x559873.10
movzx ecx, byte [ecx + 0x5599a8]
jmp dword [ecx*4 + 0x559964]
movzx ecx, word [edi + 0x30]
mov eax, dword [eax]
mov dword [esi + ecx*4 - 4], eax
jmp case.0x559873.10
movzx ecx, word [edi + 0x30]
movss xmm0, dword [eax + 8]
test cx, cx
je case.0x559873.10
mov eax, dword [eax + 4]
mov dword [esi + ecx*4 + 0x24], eax
movss dword [esi + ecx*4 + 0x3c], xmm0
jmp case.0x559873.10
mov eax, dword [eax + 0xc]
mov dword [esi + 0x5c], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x10]
mov dword [esi + 0x58], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x68], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x70], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x74], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x24]
mov dword [esi + 0x7c], eax
movzx eax, bl
mov word [esi + 0x80], ax
jmp case.0x559873.10
mov eax, dword [eax + 0x28]
mov dword [esi + 0x84], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x88], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8c], eax
jmp case.0x559873.10
mov eax, dword [eax + 0x34]
mov dword [esi + 0x90], eax
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00557ef0
test eax, eax
jne 0x559830
pop edi
mov ecx, dword [0x6e8c5c]
call fcn.0046efe0
mov ecx, dword [0x6e8c5c]
call fcn.0046ed00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x55d450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x1f4], 0
je 0x55d575
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x55d575
push edi
mov ecx, 1
mov edi, 0x7242fc
xor eax, eax
lock cmpxchg dword [edi], ecx
cmp eax, 1
je 0x55d55b
cmp dword [edx + 0x24], 1
je 0x55d55b
mov eax, dword [ebp + 8]
movq xmm0, qword [eax]
movq qword [0x7242dc], xmm0
mov eax, dword [eax + 8]
mov dword [0x7242e4], eax
mov eax, dword [ebp + 0xc]
movq xmm0, qword [eax]
movq qword [0x7242e8], xmm0
mov eax, dword [eax + 8]
mov dword [0x7242f0], eax
mov eax, dword [esi + 0x1f4]
mov dword [0x7242f4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x6d4168], eax
mov dword [0x7242f8], edx
mov dword [esi + 0x3ac], 0
mov eax, dword [0x6fe4dc]
mov dword [eax + 0xa00], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x6cab80
mov dword [0x7242d0], eax
call fcn.004e99a0
mov dword [0x7242d4], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0x55d580
push 0
push 0
mov dword [0x7242c8], 1
mov dword [0x7242cc], 1
mov dword [0x724304], 0
mov dword [0x7242c4], 0
mov dword [0x7242d8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x55d563
xchg dword [edi], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x10
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x55eda0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4748
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6d48e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.CTileManager.0
lea ecx, [edi + 0x38]
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
call fcn.005950b0
mov dword [edi + 0x38], eax
mov dword [ebp - 4], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x58]
push eax
call fcn.0055ec60
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x6c]
push eax
call fcn.0055ec60
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 4
lea ecx, [edi + 0x8c]
push eax
call fcn.0055ec60
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0xa0]
call fcn.0055ec60
mov dword [edi + 0xc], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x576e20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a51ce
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6d48e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
push 0x40
mov byte [ebp - 4], 2
call fcn.0053e9b0
push 0x40
lea ecx, [ebx + 0x24]
call fcn.0053e9b0
push 0x40
lea ecx, [ebx + 0x48]
call fcn.0053e9b0
mov ecx, ebx
call fcn.00576ad0
mov ecx, ebx
call fcn.00576970
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x583810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2290]
test ecx, ecx
je 0x583885
mov ecx, dword [esi + ecx*4 + 0x984]
push edi
push 1
call fcn.00457b40
movzx edi, word [esi + 0xa09]
mov eax, 0x66666667
mov ecx, dword [esi + 0x2290]
imul edi
inc ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ecx + ecx*4]
shl ecx, 2
lea edx, [eax + eax*4]
shl edx, 2
lea eax, [ecx - 0x14]
mov dword [esi + 0x2288], eax
sub edi, edx
jne 0x583873
mov dword [esi + 0x228c], ecx
mov ecx, esi
pop edi
pop esi
jmp fcn.005839c0
lea eax, [edx + edi]
mov ecx, esi
pop edi
mov dword [esi + 0x228c], eax
pop esi
jmp fcn.005839c0
mov ecx, dword [esi + 0x984]
push 1
call fcn.00457b40
pop esi
ret
Function at 0x584340
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6d48e0]
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 0x584390
push 0x7c9
mov ecx, 0x7014c8
call fcn.004f82a0
push eax
push 0x17
push 0x7014c8
call fcn.004f78e0
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00598fe4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x722518]
mov dword [ebp - 0x210], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
lea edx, [ebp - 0x210]
push edx
push 0x5c1adc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x134]
test eax, eax
je 0x58437f
cmp dword [esi + 0xc], 0
jne 0x5843f5
push str.bdcap32.dll
mov ecx, esi
call fcn.00584520
test eax, eax
jns 0x5843db
push 0x7ca
jmp 0x584365
mov eax, dword [esi]
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
push esi
call dword [eax + 0xc]
cmp dword [esi + 0xc], 0
je 0x5844b8
mov eax, dword [esi]
push 0x140
push 0xf
push esi
call dword [eax + 0x40]
mov ecx, esi
call fcn.00584900
push 0
mov ecx, 0x6d4400
call fcn.00570840
push eax
lea eax, [ebp - 0x108]
push str._sScreenShot
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x58444f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x58437f
push 0x104
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
push 0x5c1bbc
push str.Capture
lea eax, [ebp - 0x108]
push eax
call fcn.00584830
lea eax, [ebp - 0x20c]
mov ecx, 0x7014c8
push eax
push 0x971
call fcn.004f82a0
push eax
push 0x17
push 0x7014c8
call fcn.004f78e0
add esp, 0x10
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
push 4
push 0
push eax
push esi
call fcn.00584a60
test eax, eax
js 0x58437f
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00598fe4
mov esp, ebp
pop ebp
ret

Function at 0x589080
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6d48e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x104]
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call dword [sym.imp.MSVCR120.dll_strrchr]
add esp, 8
mov esi, ebx
mov byte [eax + 1], 0
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5890e0
lea edi, [ebp - 0x104]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5890f0
mov ecx, ebx
lea eax, [ebp - 0x104]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0xff
push dword [ebp - 0x110]
mov ecx, ebx
push 0
push dword [ebp - 0x108]
and ecx, 3
push dword [ebp - 0x10c]
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00598fe4
mov esp, ebp
pop ebp
ret
Function at 0x590bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6d48e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6d325c]
push ebx
push esi
push eax
push eax
mov ebx, ecx
mov ecx, 0x6d4400
push 0
call fcn.00570840
push eax
lea eax, [ebp - 0x108]
push str._sData_d_d.UIE
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x590c64
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push 4
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x590c76
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00598fe4
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 0x61208
jne 0x590c5d
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x16c
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x590c5d
cmp dword [ebp - 0x10c], 0x16c
push esi
ja 0x590c5e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00598fe4
mov esp, ebp
pop ebp
ret
Function at 0x593030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6d48e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6d325c]
push ebx
push edi
push eax
push eax
mov ebx, ecx
mov ecx, 0x6d4400
push 0
call fcn.00570840
push eax
lea eax, [ebp - 0x108]
push str._sData_d_d.UIE
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x5930d9
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 0x61208
push eax
push 4
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x16c
lea eax, [ebx + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00598fe4
mov esp, ebp
pop ebp
ret