joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57f537
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
movzx eax, word [eax + 0xc]
cmp eax, 0x41
jne 0x57f561
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x57f57b
push 0
push 0x90c2
jmp 0x57f56d
cmp eax, 0x2e
jne 0x57f57b
push 0
push 0x90c1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x57f745
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x6f8]
push dword [esi]
push dword [edi + 0x3f4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x57f82b
push esi
lea ecx, [ebp - 4]
call fcn.0040d36e
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x57f7c1
push ebx
push 0x5c
mov ecx, esi
call fcn.00434a69
test eax, eax
js 0x57f830
inc eax
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040d197
push eax
lea ecx, [ebp - 4]
call fcn.0040d242
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x57f7c1
call fcn.00407965
mov esi, dword [ebp - 4]
cmp dword [esi - 8], ebx
je 0x57f81b
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], eax
push ecx
lea ebx, [edi + 0x6d8]
push ebx
lea eax, [edi + 0x6e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x57f80b
xor ecx, ecx
lea eax, [edi + 0x6e0]
xorps xmm0, xmm0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
movlpd qword [ebp - 0x10], xmm0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, edi
call fcn.0057d394
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x57f82b
call fcn.00407965
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 4]
jmp 0x57f81b

Function at 0x57f866
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
xor esi, esi
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.004e0bc0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x408]
push esi
call fcn.00407a7f
push dword [eax]
lea eax, [ebp - 0x404]
push str._stest.txt
push eax
call fcn.00445d79
mov ecx, dword [ebp - 0x408]
mov edi, 0x668010
add ecx, 0xfffffff4
add esp, 0x1c
cmp ecx, edi
je 0x57f8cb
call fcn.00407965
lea eax, [ebp - 0x404]
push 0x6396b8
push eax
call fcn.00506f56
pop ecx
pop ecx
test eax, eax
je 0x57f8f9
push eax
call fcn.00506850
pop ecx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
cmp ecx, edi
je 0x57f908
call fcn.00407965
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004da623
leave
ret 4
Function at 0x5800e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x40
mov ebx, eax
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004e0bc0
add esp, 0xc
xor esi, esi
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
test ebx, eax
je 0x58014d
lea eax, [esi + 0x41]
push eax
lea eax, [ebp - 0x44]
push str._c:_
push eax
call fcn.00445d3c
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x58014d
lea eax, [esi + 0x41]
push eax
lea ecx, [edi + 0x6ac]
call fcn.0044bf51
inc esi
cmp esi, 0x20
jb 0x58010f
cmp dword [edi + 0x6b0], 0
jbe 0x58018d
lea esi, [edi + 0x6f8]
mov eax, dword [esi]
cmp dword [eax - 8], 0
jne 0x58018d
push ecx
lea ecx, [edi + 0x6ac]
call fcn.0044bf3b
push str.TTPlayer
movzx eax, word [eax]
push eax
push str._c:_s_
push esi
call fcn.0040cefd
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret

Function at 0x580b86
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 8], ecx
lea eax, [esi + edi]
mov dword [ebp - 0x14], eax
cmp esi, eax
jge 0x580c11
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add edx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
cmp ecx, edx
jge 0x580c06
cmp ebx, edi
mov ecx, edi
mov edi, dword [ebp + 0x10]
cmovl ecx, ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x24], edi
mov eax, edi
push 0xcc0020
push dword [ebp + 0x1c]
cmovl eax, dword [ebp + 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push ecx
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
add ebx, dword [ebp + 0x24]
sub edi, dword [ebp + 0x24]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp ebx, edx
jl 0x580bc6
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add esi, ebx
sub edi, ebx
mov dword [ebp + 0xc], edi
cmp esi, eax
jl 0x580baf
pop edi
pop esi
pop ebx
leave
ret
Function at 0x580ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x6714c8]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetACP]
and dword [ebp - 8], 0
mov esi, eax
lea eax, [ebp - 8]
mov ebx, 0x1a3
push eax
push 0x580e81
push ebx
push 0xf0
push edi
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov eax, 0x804
cmp word [ebp - 8], ax
jne 0x580d35
mov esi, 0x3a8
jmp 0x580d44
mov ecx, 0x404
cmp word [ebp - 8], cx
lea eax, [ecx - 0x4e]
cmove esi, eax
push 0xf0
push ebx
push edi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x580e6d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x580e6d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x580e61
mov edi, 0x180
lea edx, [edi - 0x3d]
movzx eax, word [ebx]
test ax, ax
je 0x580e5e
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], eax
movzx eax, word [ebx + 2]
add ebx, 8
mov dword [ebp - 0x18], ecx
cmp ax, di
je 0x580e0e
mov ecx, 0x401
cmp ax, cx
je 0x580e0e
cmp ax, dx
je 0x580dc6
add ecx, 2
cmp ax, cx
jne 0x580e55
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
call fcn.0053eb10
mov edi, esp
push esi
mov esi, dword [ebp - 0xc]
push edi
push 0xffffffffffffffff
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
push edi
push 0
push 0x143
movzx eax, ax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edi, 0x180
jmp 0x580e50
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
call fcn.0053eb10
mov edi, esp
push esi
mov esi, dword [ebp - 0xc]
push edi
push 0xffffffffffffffff
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
push edi
push 0
mov edi, 0x180
movzx eax, ax
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edx, 0x143
add ebx, dword [ebp - 0x18]
jne 0x580d8a
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
jmp 0x580e6f
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da623
leave
ret
Function at 0x582eaf
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push 0x34
mov eax, 0x60aab2
call fcn.004db48b
mov edi, ecx
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push dword [edi + 0x62b8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x582fb2
mov ecx, dword [0x668294]
mov dword [ebp - 0x10], ecx
push esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
and dword [ebp - 0x18], 0
mov esi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push esi
lea ecx, [esi + 1]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040ceb7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 0x10]
call fcn.0040ce81
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0
je 0x582fa2
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x28]
call fcn.004112ec
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x3c]
push eax
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.0040d36e
call fcn.00589311
test eax, eax
je 0x582f8e
cmp dword [ebp - 0x14], 1
je 0x582f7a
cmp dword [ebp - 0x14], 2
je 0x582f7a
cmp dword [ebp - 0x14], 3
jne 0x582f8e
lea eax, [ebp - 0x3c]
push eax
push 0xa
jmp 0x582f80
lea eax, [ebp - 0x3c]
push eax
push 3
push 0x784
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0x62b8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.004113dc
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x582fb2
call fcn.00407965
xor eax, eax
call fcn.004db459
ret 0x10
Function at 0x586a85
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
mov edi, ecx
jne 0x586af0
cmp dword [0x673794], 0
jne 0x586aa4
mov ecx, dword [0x673644]
test ecx, ecx
je 0x586ab5
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x673644]
cmp dword [0x673764], 0
je 0x586b22
mov eax, dword [0x673650]
test ecx, ecx
cmovne eax, dword [0x6736e4]
test eax, eax
jne 0x586ad9
cmp dword [0x673a70], 1
jne 0x586b22
push 0xfffffffffffffffe
push 0x7d64
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x586b22
cmp dword [ebp + 0xc], 0
jne 0x586b22
push esi
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [edi + 0x3f84]
call esi
push 1
push 0
push dword [edi + 0x3fc0]
call esi
push 1
push 0
push dword [edi + 0x57f8]
call esi
pop esi
mov eax, dword [ebp + 0x14]
pop edi
and dword [eax], 0
xor eax, eax
pop ebp
ret 0x10
Function at 0x589f1a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x128], ecx
push edi
inc esi
push dword [ebp + 8]
lea ecx, [esi + 0x7dc8]
xor edx, edx
call fcn.00443388
inc esi
pop ecx
cmp esi, 9
jle 0x589f39
xor ebx, ebx
push 0xa
inc ebx
pop edi
mov eax, dword [0x668294]
push edi
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x124]
push 0x81c7
push eax
call fcn.0041c926
mov esi, dword [ebp - 0x124]
add esp, 0xc
cmp edi, dword [0x673720]
mov eax, 0x608
mov ecx, 0x400
cmove ecx, eax
lea eax, [ebx + 0x7dc8]
push esi
push eax
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InsertMenuW]
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x589fb2
call fcn.00407965
add edi, 0xa
inc ebx
cmp edi, 0x5a
jle 0x589f56
cmp dword [0x673720], 0
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
jne 0x589fd9
push 0x208
push 0x7dc8
push dword [ebp + 8]
call esi
cmp dword [0x67371c], 0
je 0x589fee
push 8
push 0x7dd2
push dword [ebp + 8]
call esi
push 0x110
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004e0bc0
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 2
jne 0x58a057
cmp dword [ebp - 0x11c], 5
ja 0x58a038
jne 0x58a057
cmp dword [ebp - 0x118], 1
jb 0x58a057
mov ecx, dword [ebp - 0x128]
call fcn.0045a9fe
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x7dde
push dword [ebp + 8]
call esi
jmp 0x58a067
push 3
push 0x7dde
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 4
Function at 0x58f95d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0040a9ed
test eax, eax
je 0x58f999
push dword [esi + 0x63f0]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push esi
push 0x45876d
push ecx
push ecx
mov dword [ebp - 4], ecx
call fcn.00504891
add esp, 0x18
mov dword [esi + 0x63ec], eax
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x59076d
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x59079c
xor eax, eax
jmp 0x590899
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x59088f
cmp eax, 0x40
jbe 0x59088f
push edi
push eax
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x59088f
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x5907f7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
jmp 0x590896
mov eax, 0x5a4d
mov dword [ebp - 0x10], edi
cmp word [edi], ax
je 0x59080d
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x5907e6
and dword [ebp - 4], 0
lea eax, [edi + 0x3c]
add edi, dword [eax]
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push edi
push eax
call fcn.004dd610
add esp, 0xc
cmp dword [ebp - 4], 0x4550
jne 0x590804
movzx eax, word [edi + 6]
mov edx, dword [ebp - 8]
sub edx, dword [edi + 0x9c]
imul eax, eax, 0x28
sub edx, eax
lea esi, [eax + 0xf8]
mov eax, dword [ebp - 0xc]
add esi, edi
mov ecx, esi
sub edx, dword [eax]
sub edx, 0xf8
call fcn.0059089d
mov edi, eax
mov eax, dword [ebp - 0x10]
push esi
movzx ecx, word [eax + 0x22]
movzx eax, word [eax + 0x20]
shl ecx, 0x10
or ecx, eax
sub edi, ecx
neg edi
sbb edi, edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
lea eax, [edi + 1]
jmp 0x590898
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret

Function at 0x590ced
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 8], ecx
lea eax, [esi + edi]
mov dword [ebp - 0x14], eax
cmp esi, eax
jge 0x590d78
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add edx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
cmp ecx, edx
jge 0x590d6d
cmp ebx, edi
mov ecx, edi
mov edi, dword [ebp + 0x10]
cmovl ecx, ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x24], edi
mov eax, edi
push 0xcc0020
push dword [ebp + 0x1c]
cmovl eax, dword [ebp + 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push ecx
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
add ebx, dword [ebp + 0x24]
sub edi, dword [ebp + 0x24]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp ebx, edx
jl 0x590d2d
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add esi, ebx
sub edi, ebx
mov dword [ebp + 0xc], edi
cmp esi, eax
jl 0x590d16
pop edi
pop esi
pop ebx
leave
ret
Function at 0x590dc5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x6714c8]
push esi
push edi
mov esi, edx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetACP]
and dword [ebp - 0xc], 0
mov edi, eax
lea eax, [ebp - 0xc]
movzx esi, si
push eax
push 0x590f67
push esi
push 0xf0
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov eax, 0x804
cmp word [ebp - 0xc], ax
jne 0x590e1a
mov edi, 0x3a8
jmp 0x590e29
mov ecx, 0x404
cmp word [ebp - 0xc], cx
lea eax, [ecx - 0x4e]
cmove edi, eax
push 0xf0
push esi
push ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x590f53
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x590f53
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x590f47
mov esi, 0x180
lea edx, [esi - 0x3d]
movzx eax, word [ebx]
test ax, ax
je 0x590f44
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], eax
movzx eax, word [ebx + 2]
add ebx, 8
mov dword [ebp - 0x18], ecx
cmp ax, si
je 0x590ef2
mov ecx, 0x401
cmp ax, cx
je 0x590ef2
cmp ax, dx
je 0x590eab
add ecx, 2
cmp ax, cx
jne 0x590f38
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
call fcn.0053eb10
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
push edi
push 0
push 0x143
movzx eax, ax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov esi, 0x180
jmp 0x590f33
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
call fcn.0053eb10
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov esi, 0x180
push edi
push 0
push esi
movzx eax, ax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edx, 0x143
mov edi, dword [ebp - 8]
add ebx, dword [ebp - 0x18]
jne 0x590e6f
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
jmp 0x590f55
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da623
leave
ret
Function at 0x590f81
Capabilities:
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x59102b
xor eax, eax
cmp word [esi], ax
je 0x59102b
push ebx
push edi
push 0x5c
pop ebx
push ebx
push esi
call fcn.004e115a
pop ecx
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x590fec
movzx eax, word [esi + 2]
cmp eax, 0x3a
jne 0x590fc2
cmp word [esi + 4], bx
je 0x590fde
cmp word [esi], bx
jne 0x590fec
cmp ax, bx
jne 0x590fec
lea eax, [edi + 4]
push ebx
push eax
call fcn.004e115a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x590ff5
lea eax, [edi + 2]
push ebx
push eax
call fcn.004e115a
pop ecx
pop ecx
mov edi, eax
test edi, edi
je 0x590ff5
xor eax, eax
mov word [edi], ax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x591012
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
test edi, edi
je 0x59101d
mov word [edi], bx
test eax, eax
jne 0x590fde
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop ebx
and eax, 0x10
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x59102f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test ecx, ecx
je 0x59104c
cmp word [ecx], 0
je 0x59104c
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x59104c
shr eax, 4
and eax, 1
ret
xor eax, eax
ret
Function at 0x593b90
Capabilities:
Set current directory

Disassembly:
push 0x254
mov eax, 0x60bc50
call fcn.004db4be
mov ebx, ecx
mov dword [ebp - 0x224], ebx
mov edi, dword [ebp + 8]
test edi, edi
je 0x593cea
xor esi, esi
cmp word [edi], si
je 0x593cea
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], esi
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x21c]
add ebx, 0x10
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x593bf4
mov ecx, esi
jmp 0x593c03
push eax
call fcn.00505bb3
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x220]
push eax
push ecx
mov ecx, ebx
call fcn.0040f513
push 0x2e
push dword [ebx]
call fcn.004e0fe2
pop ecx
pop ecx
test eax, eax
je 0x593c51
sub eax, dword [ebx]
sar eax, 1
cmp eax, 0xffffffff
je 0x593c51
push eax
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.0040d197
push eax
mov ecx, ebx
call fcn.0040d242
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x593c51
call fcn.00407965
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004e0fe2
mov dword [ebp - 0x21c], eax
pop ecx
pop ecx
test eax, eax
je 0x593c7e
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x260]
call fcn.00430ecf
sub esp, 0x10
mov dword [ebp - 4], esi
push edi
call fcn.00430f09
test eax, eax
je 0x593cd0
mov edi, dword [ebp - 0x234]
test edi, edi
je 0x593cab
mov eax, dword [ebp - 0x238]
jmp 0x593cb6
lea ecx, [ebp - 0x260]
call fcn.00430d54
test edi, edi
je 0x593cd0
test eax, eax
je 0x593cd0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x224]
push eax
push edi
call fcn.00592b40
mov esi, eax
lea ecx, [ebp - 0x260]
call fcn.00430f8c
lea ecx, [ebp - 0x260]
call fcn.00430d21
mov eax, esi
jmp 0x593cec
xor eax, eax
call fcn.004db46d
ret 8
Function at 0x596970
Capabilities:
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x596a1a
xor eax, eax
cmp word [esi], ax
je 0x596a1a
push ebx
push edi
push 0x5c
pop ebx
push ebx
push esi
call fcn.004e115a
pop ecx
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x5969db
movzx eax, word [esi + 2]
cmp eax, 0x3a
jne 0x5969b1
cmp word [esi + 4], bx
je 0x5969cd
cmp word [esi], bx
jne 0x5969db
cmp ax, bx
jne 0x5969db
lea eax, [edi + 4]
push ebx
push eax
call fcn.004e115a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5969e4
lea eax, [edi + 2]
push ebx
push eax
call fcn.004e115a
pop ecx
pop ecx
mov edi, eax
test edi, edi
je 0x5969e4
xor eax, eax
mov word [edi], ax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x596a01
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
test edi, edi
je 0x596a0c
mov word [edi], bx
test eax, eax
jne 0x5969cd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop ebx
and eax, 0x10
pop esi
ret
xor eax, eax
pop esi
ret