joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cad0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov ebx, edx
mov edi, ecx
push 0
push 0xe
mov eax, dword [ebx]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0xc], eax
inc eax
push 2
push eax
mov dword [ebp - 4], eax
call fcn.004bf417
mov esi, eax
add esp, 8
test esi, esi
je 0x41cb1f
push esi
push dword [ebp - 4]
push 0xd
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [ebx]
mov ecx, edi
push esi
call fcn.00417770
push esi
call fcn.004bf8aa
mov ecx, dword [ebx]
add esp, 8
push 0x60
call fcn.0041f360
mov eax, dword [eax + 4]
push eax
push 0x10
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebx]
mov esi, eax
push 0x60
call fcn.0041f360
mov ecx, dword [eax + 8]
push ecx
push 0x10
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [edi], esi
mov ecx, dword [ebx]
push 0x60
mov dword [ebp - 0xc], eax
call fcn.0041f360
mov ecx, dword [eax + 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [edi], eax
mov ecx, dword [ebx]
mov esi, dword [ebx + 0x24]
push 0x60
call fcn.0041f360
mov eax, dword [eax + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, eax
add dword [edi], eax
mov eax, dword [ebp - 0xc]
cmp dword [edi + 4], eax
jge 0x41cba0
mov dword [edi + 4], eax
mov ecx, dword [ebx]
mov esi, dword [ebx + 0x28]
push 0x60
call fcn.0041f360
mov eax, dword [eax + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, eax
add dword [edi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d140
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x56800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4f0820]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4f0824]
mov dword [ebp - 8], eax
movzx eax, word [ecx]
push eax
call fcn.004cb93f
movzx eax, ax
add esp, 4
mov word [ebp - 0xc], ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x41d1b8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x41d1a5
cmp eax, 5
je 0x41d1a5
cmp eax, 1
je 0x41d1a5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
Function at 0x41d320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f8
mov eax, dword [0x56800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x1f0]
mov esi, ecx
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41d3ae
cmp eax, 0xf6
jae 0x41d3ae
test esi, esi
jne 0x41d375
lea eax, [ebp - 0x1f0]
push eax
call fcn.004c91a0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3f8]
push eax
push 0
push esi
lea eax, [ebp - 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41d3ae
lea eax, [ebp - 0x3f8]
push eax
call fcn.004c91a0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004bcb15
mov esp, ebp
pop ebp
ret

Function at 0x41d4b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
test ecx, ecx
jne 0x41d4cc
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d516
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41d516
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or edi, 0xffffffff
push esi
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d6d9
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d707
cmp dword [ebp - 4], edi
jne 0x41d707
pop edi
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d759
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d787
cmp edi, dword [ebp - 4]
jne 0x41d787
pop edi
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d850
Capabilities:
Check if file exists
Delete file

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41d869
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41d869
xor al, al
ret
mov al, 1
ret

Function at 0x41d9d0
Capabilities:
Create directory

Disassembly:
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41d9e0
mov al, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete al
ret

Function at 0x41f250
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push esi
mov esi, edx
xor esi, 0x1505
push edi
mov edi, ecx
cmp edx, 4
jb 0x41f297
push ebx
mov ebx, edx
shr ebx, 2
jmp 0x41f270
imul ecx, dword [edi], 0x5bd1e995
sub edx, 4
imul esi, esi, 0x5bd1e995
add edi, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor esi, ecx
sub ebx, 1
jne 0x41f270
pop ebx
sub edx, 1
je 0x41f2b8
sub edx, 1
je 0x41f2af
sub edx, 1
jne 0x41f2c3
movzx eax, byte [edi + 2]
shl eax, 0x10
xor esi, eax
movzx eax, byte [edi + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [edi]
xor eax, esi
imul esi, eax, 0x5bd1e995
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e995
pop edi
pop esi
mov eax, ecx
shr eax, 0xf
xor eax, ecx
ret

Function at 0x41f9d0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x56b62c], 0
jne 0x41fa25
push 0x56ca34
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x56b620
push 0
push 0
push 0x41f930
push 0
push 0
mov dword [0x56b624], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x56b620]
mov edx, str.FileWatcherThread
mov dword [0x56b62c], eax
call fcn.00420cd0
pop ecx
ret
Function at 0x4207e0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x56800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x420917
push esi
push str._r_nThread:__x_r_n
push edi
call fcn.0040bee0
add esp, 0xc
push esi
push 0
push 0x4a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x42089d
push ebx
mov ebx, dword [edi]
mov ecx, edi
lea eax, [ebx + 0x18]
push eax
call fcn.0040c580
test al, al
jne 0x42083d
xor eax, eax
mov byte [eax], al
mov esi, dword [edi + 0xc]
mov eax, dword [edi]
add esi, ebx
cmp eax, ebx
jbe 0x420858
sub eax, ebx
push eax
lea eax, [esi + 0x18]
push esi
push eax
call fcn.004bdaf0
add esp, 0xc
lea eax, [ebx + 0x18]
mov dword [edi], eax
mov eax, dword [str.Failed_to_OpenThread___r_n]
mov dword [esi], eax
mov eax, dword [0x4f11e8]
mov dword [esi + 4], eax
mov eax, dword [0x4f11ec]
mov dword [esi + 8], eax
mov eax, dword [0x4f11f0]
mov dword [esi + 0xc], eax
mov eax, dword [0x4f11f4]
mov dword [esi + 0x10], eax
mov eax, dword [0x4f11f8]
pop ebx
pop edi
mov dword [esi + 0x14], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4208b8
push eax
push str.Failed_to_SuspendThread___r_n
mov ecx, edi
call fcn.0040bf00
jmp 0x420910
push 0x2c8
lea eax, [ebp - 0x2cc]
push 0
push eax
call fcn.004bef30
add esp, 0xc
mov dword [ebp - 0x2d0], 0x10007
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ecx, edi
test eax, eax
je 0x4208fd
push esi
lea edx, [ebp - 0x2d0]
call fcn.004205c0
add esp, 4
jmp 0x420909
push 0xffffffffffffffff
push str.Failed_to_GetThreadContext___r_n
call fcn.0040bf00
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bcb15
mov esp, ebp
pop ebp
ret

Function at 0x4209c0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x56800c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4209e5
jmp 0x420a3c
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_Thread32First]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x420a32
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x2c]
jne 0x420a1f
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
call fcn.004207e0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov dword [ebp - 0x28], eax
jmp 0x420a06
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
Function at 0x429160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x56800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
lea eax, [ebp - 0x204]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.004bef30
add esp, 0xc
mov edx, 0x200
push esi
push ecx
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x204]
call fcn.00419430
add esp, 0x10
mov byte [ebp - 5], 0
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
pop edi
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4291b6
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, 0x200
jae 0x4291f5
mov ecx, 0x1ff
sub ecx, eax
cmp ecx, 1
jbe 0x4291db
mov ecx, 1
push ecx
push 0x4f123c
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.004c8dac
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
Function at 0x42eee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x56800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
lea eax, [ebp - 0x408]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.004bef30
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42ef32
push eax
jmp 0x42ef4f
push 0
lea eax, [ebp - 0x41c]
push eax
push 0x3ff
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xb
lea eax, [ebp - 0x408]
push str.__PS_Adobe_
push eax
call fcn.004c9740
add esp, 0xc
test eax, eax
sete cl
test cl, cl
je 0x42f004
fldz
lea eax, [ebp - 0x407]
fst dword [ebp - 0x418]
fst dword [ebp - 0x414]
fst dword [ebp - 0x410]
push 0xa
push eax
fstp dword [ebp - 0x40c]
call fcn.004be3a0
add esp, 8
test eax, eax
je 0x42f004
cmp byte [eax + 1], 0x25
lea esi, [eax + 1]
jne 0x42f004
cmp esi, str.__BoundingBox:
je 0x42efd5
test esi, esi
je 0x42eff5
push 0xe
push str.__BoundingBox:
push esi
call fcn.004c9740
add esp, 0xc
test eax, eax
sete al
test al, al
je 0x42eff5
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x410]
push eax
push str.____BoundingBox:_0_0__f__f_
push esi
call fcn.0041afa0
add esp, 0x10
test eax, eax
jne 0x42f031
push 0xa
push esi
call fcn.004be3a0
add esp, 8
test eax, eax
jne 0x42efa7
mov dword [edi + 0xc], 0
mov eax, edi
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0x418]
call fcn.0042fa20
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
Function at 0x42f2a0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x300c
call fcn.004dff80
mov eax, dword [0x56800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x4f1d18
call fcn.0041d320
mov esi, eax
test esi, esi
je 0x42f39e
push esi
call fcn.004c91a0
add esp, 4
mov ebx, eax
push 0x4f1e90
push edi
call dword [sym.imp.libmupdf.dll_gzopen_w]
mov edi, eax
add esp, 8
test edi, edi
je 0x42f3a0
push 0x4f1e94
lea eax, [ebp - 0x300c]
mov dword [ebp - 0x300c], 0
push esi
push eax
call fcn.004cbb69
add esp, 0xc
test eax, eax
jne 0x42f392
cmp dword [ebp - 0x300c], eax
je 0x42f392
push 0x3000
lea eax, [ebp - 0x3008]
push eax
push edi
call dword [sym.imp.libmupdf.dll_gzread]
add esp, 0xc
test eax, eax
jle 0x42f36f
lea esp, [esp]
push dword [ebp - 0x300c]
push eax
lea eax, [ebp - 0x3008]
push 1
push eax
call fcn.004cbede
push 0x3000
lea eax, [ebp - 0x3008]
push eax
push edi
call dword [sym.imp.libmupdf.dll_gzread]
add esp, 0x1c
test eax, eax
jg 0x42f340
push dword [ebp - 0x300c]
call fcn.004cbc26
add esp, 4
push edi
call dword [sym.imp.libmupdf.dll_gzclose]
add esp, 4
mov ecx, esi
call fcn.0042f050
mov edi, eax
jmp 0x42f3a2
push edi
call dword [sym.imp.libmupdf.dll_gzclose]
add esp, 4
jmp 0x42f3a0
xor ebx, ebx
xor edi, edi
test ebx, ebx
je 0x42f3b7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42f3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call fcn.004bf8aa
add esp, 4
push esi
call fcn.004bf8aa
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
Function at 0x438000
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x56800c]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x24], edi
test edi, edi
je 0x438039
push edi
call fcn.004c91a0
add esp, 4
jmp 0x43803b
xor eax, eax
mov edx, 0x4ef160
mov dword [ebx + 4], eax
mov ecx, edi
call fcn.0041cdf0
mov esi, eax
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, 0xffffffff
je 0x4381e7
mov esi, dword [esp + 0xc]
nop
test byte [esp + 0x28], 0x10
jne 0x438100
xor dl, dl
lea ecx, [esp + 0x54]
call fcn.00437d80
test al, al
je 0x438100
lea edx, [esp + 0x54]
mov ecx, edi
call fcn.0041cdf0
mov ebx, dword [esi + 0x290]
lea ecx, [esi + 0x290]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
lea eax, [ebx + 1]
push eax
mov dword [esp + 0x1c], eax
call fcn.0040c470
test al, al
jne 0x4380be
xor eax, eax
mov byte [eax], al
mov eax, dword [esi + 0x29c]
mov ecx, dword [esp + 0x14]
lea ebx, [eax + ebx*4]
mov eax, dword [esi + 0x290]
cmp eax, ecx
jbe 0x4380e8
sub eax, ecx
shl eax, 2
push eax
lea eax, [ebx + 4]
push ebx
push eax
call fcn.004bdaf0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x290], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx], eax
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x438070
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x290], 0
mov esi, dword [esp + 0x10]
je 0x4381e7
mov ebx, dword [esp + 0xc]
push 0x401490
push 4
push dword [ebx + 0x290]
push dword [ebx + 0x29c]
call fcn.004bf510
add esp, 0x10
lea ecx, [ebx + 0x78]
push dword [ebx + 0x290]
call fcn.00439fa0
push 0
push 1
mov ecx, ebx
call fcn.00436ff0
mov edi, eax
test edi, edi
je 0x4381e3
mov eax, dword [edi + 4]
lea ecx, [esp + 0xc]
push ecx
fldz
fstp dword [esp + 0x10]
push dword [eax + 4]
mov dword [esp + 0x18], eax
call dword [sym.imp.gdiplus.dll_GdipGetImageHorizontalResolution]
mov ecx, eax
test ecx, ecx
je 0x438192
mov eax, dword [esp + 0x10]
mov dword [eax + 8], ecx
fld dword [esp + 0xc]
lea eax, [ebx + 0xc]
push eax
fstp dword [ebx + 0x2e4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [edi + 0xc], 0xffffffff
jne 0x4381b5
push edi
lea ecx, [ebx + 0x24]
call fcn.0040bd80
cmp dword [edi + 0xc], 0
jne 0x4381d9
cmp byte [edi + 8], 0
je 0x4381ce
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4381ce
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x10
push edi
call fcn.004bcfc5
add esp, 8
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov bl, 1
jmp 0x4381e9
xor bl, bl
push esi
call fcn.004bf8aa
mov ecx, dword [esp + 0x280]
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret 4
Function at 0x44e1e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
push 1
lea eax, [esi + edx]
mov dword [ebp - 8], eax
lea eax, [edx + edx*2]
shr eax, 2
push eax
call fcn.004bf417
mov ecx, eax
add esp, 8
xor bl, bl
mov dword [ebp - 4], ecx
xor edi, edi
mov edx, ecx
cmp esi, dword [ebp - 8]
jae 0x44e254
mov cl, byte [esi]
cmp cl, 0x3d
je 0x44e251
lea eax, [ecx - 0x41]
cmp al, 0x19
jbe 0x44e236
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x44e22c
lea eax, [ecx - 0x47]
jmp 0x44e236
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x44e268
lea eax, [ecx + 4]
cmp al, 0xff
jne 0x44e278
cmp cl, 0x20
je case.default.0x44e28d
sub cl, 9
cmp cl, 4
ja 0x44e2cf
inc esi
cmp esi, dword [ebp - 8]
jb 0x44e212
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
test eax, eax
je 0x44e25f
sub edx, ecx
mov dword [eax], edx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 0x2b
jne 0x44e271
mov al, 0x3e
jmp 0x44e278
cmp cl, 0x2f
jne 0x44e23a
mov al, 0x3f
mov ecx, edi
and ecx, 0x80000003
jns 0x44e287
dec ecx
or ecx, 0xfffffffc
inc ecx
inc edi
cmp ecx, 3
ja case.default.0x44e28d
jmp dword [ecx*4 + 0x44e2e4]
mov bl, al
jmp case.default.0x44e28d
mov cl, al
shl bl, 2
sar cl, 4
or cl, bl
mov bl, al
mov byte [edx], cl
inc edx
and bl, 0xf
jmp case.default.0x44e28d
mov cl, al
shl bl, 4
sar cl, 2
or cl, bl
mov bl, al
mov byte [edx], cl
inc edx
and bl, 3
jmp case.default.0x44e28d
mov cl, bl
shl cl, 6
or cl, al
mov byte [edx], cl
inc edx
jmp case.default.0x44e28d
push dword [ebp - 4]
call fcn.004bf8aa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 5
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x459899
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x459895
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call fcn.004c8cd1
mov esi, eax
add esp, 4
test esi, esi
je 0x4598d6
push edi
push ebx
push esi
call fcn.004e0070
add esp, 0xc
cmp dword [esi], 0xffff0001
pop edi
pop ebx
jne 0x4598eb
or dword [esi + 8], 0x400000
mov eax, esi
pop esi
ret
or dword [esi + 4], 0x400000
mov eax, esi
pop esi
ret

Function at 0x45a970
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
fld dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
push 0
push 0
push 0x147
mov esi, ecx
push 0x401
push esi
fstp dword [ebp + 0xc]
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call edi
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x45aa6e
push 0x401
push esi
call ebx
push 0
push 0
mov ebx, eax
push 0xe
push ebx
call edi
mov dword [ebp - 8], eax
inc eax
push 2
push eax
mov dword [ebp - 4], eax
call fcn.004bf417
mov esi, eax
add esp, 8
test esi, esi
je 0x45a9e9
push esi
push dword [ebp - 4]
push 0xd
push ebx
call edi
mov eax, dword [ebp - 8]
xor ecx, ecx
mov word [esi + eax*2], cx
push esi
call fcn.004cbfa1
fstp dword [ebp - 8]
fldz
add esp, 4
fld dword [ebp - 8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x45aa59
fld dword [0x55dcec]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x45aa2c
fstp st(1)
push esi
fstp dword [ebp + 0xc]
call fcn.004bf8aa
fld dword [ebp + 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
fcom qword [0x55dca8]
fnstsw ax
test ah, 0x41
jne 0x45aa16
fstp st(0)
fld dword [0x55ddb0]
push esi
fstp dword [ebp + 0xc]
call fcn.004bf8aa
fld dword [ebp + 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
fstp st(0)
call fcn.004bf8aa
fld dword [ebp + 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x45aa77
add ecx, 7
fld dword [ecx*4 + 0x4ecf80]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x45aa93
fld dword [ecx*4 + 0x4ecf80]
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret