joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100172ab
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xc], edi
jne 0x100172ef
push edi
push 4
push esi
push 0x10017266
push edi
push edi
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp dword [esp + 0x10], edi
je 0x100172da
mov ecx, esi
call fcn.10017209
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x100172ef
mov ecx, dword [esp + 0xc]
push eax
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
ret 8

Function at 0x10017daa
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x1008ecec], ebx
jne 0x10017db9
xor eax, eax
pop ebx
ret
cmp dword [0x1008ece8], ebx
je 0x10017e31
push esi
push edi
xor edi, edi
lea esi, [edi + 0x10097048]
mov eax, dword [esi]
cmp eax, ebx
je 0x10017de0
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov byte [edi + 0x10097044], bl
mov dword [esi], ebx
add edi, 8
cmp edi, 0x10
jb 0x10017dc5
push ebx
push 0x10017831
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.10017c74
mov eax, dword [0x1008ecf4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1009700c], ebx
cmp eax, ebx
je 0x10017e17
push eax
call esi
mov dword [0x1008ecf4], ebx
mov eax, dword [0x1008ecf8]
cmp eax, ebx
je 0x10017e29
push eax
call esi
mov dword [0x1008ecf8], ebx
pop edi
mov dword [0x1008ece8], ebx
pop esi
xor eax, eax
inc eax
pop ebx
ret
Function at 0x10018065
Capabilities:
Encode data using xor

Disassembly:
push 0x23c
mov eax, 0x10064d71
call fcn.10045ca8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x5c], ebx
test ebx, ebx
jne 0x10018086
or eax, 0xffffffff
jmp 0x100181f5
lea ecx, [ebp - 0x248]
call fcn.10040e15
and dword [ebp - 4], 0
mov esi, 0x100
mov edi, esi
call fcn.1004664d
dec edi
jne 0x1001809c
call fcn.1004664d
mov byte [ebp + edi - 0x50], al
inc edi
cmp edi, 0x20
jl 0x100180a4
mov edi, esi
call fcn.1004664d
dec edi
jne 0x100180b5
call fcn.1004664d
mov byte [ebp + edi - 0x30], al
inc edi
cmp edi, 0x10
jl 0x100180bd
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x248]
call fcn.10041ee9
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x248]
call fcn.10041f20
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
cmp edi, 0x10
jae 0x10018107
push edi
push eax
push ebx
call fcn.10045d50
add esp, 0xc
jmp 0x10018116
push 0x10
push eax
push ebx
call fcn.10045d50
add esp, 0xc
push 0x10
pop edi
lea eax, [edi + 0x10]
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], edi
jge 0x1001818b
mov dword [ebp - 0x54], 0x10
sub dword [ebp - 0x54], ebx
lea esi, [ebx + edi]
mov ebx, 0x100
call fcn.1004664d
dec ebx
jne 0x10018133
call fcn.1004664d
xor al, byte [esi + ebx - 0x10]
inc ebx
cmp ebx, 0x10
mov byte [ebp + ebx - 0x31], al
jl 0x1001813b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x248]
call fcn.10041f20
push 0x10
pop ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10045d50
mov eax, dword [ebp - 0x54]
add dword [ebp - 0x58], ebx
add esi, ebx
add eax, esi
add esp, 0xc
add edi, ebx
cmp eax, dword [ebp + 0xc]
jl 0x1001812e
mov ebx, dword [ebp - 0x5c]
mov esi, 0x100
cmp edi, dword [ebp + 0xc]
jge 0x100181e4
call fcn.1004664d
dec esi
jne 0x10018190
mov eax, dword [ebp - 0x58]
and dword [ebp - 0x54], esi
lea esi, [ebx + eax - 0x10]
call fcn.1004664d
xor al, byte [esi]
mov ecx, dword [ebp - 0x54]
inc dword [ebp - 0x54]
cmp dword [ebp - 0x54], 0x10
mov byte [ebp + ecx - 0x30], al
jl 0x100181a2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x248]
call fcn.10041f20
mov eax, dword [ebp + 0xc]
sub eax, edi
push eax
lea eax, [ebp - 0x20]
push eax
add ebx, edi
push ebx
call fcn.10045d50
mov edi, dword [ebp + 0xc]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.10040e2d
mov eax, edi
call fcn.10045d2b
ret
Function at 0x100193b7
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x108
lea ebp, [esp - 4]
mov eax, dword [0x1008bc20]
xor eax, ebp
mov dword [ebp + 0x108], eax
push 0x218
mov eax, 0x100650ad
call fcn.10045c3f
mov esi, dword [ebp + 0x114]
mov edi, 0x104
push edi
lea eax, [ebp + 1]
push 0
push eax
mov byte [ebp], 0
call fcn.100457d0
add esp, 0xc
push edi
lea eax, [ebp]
push eax
push dword [0x1008ec84]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp]
push 0x100686fc
push eax
mov byte [ebp + 0x104], 0
call fcn.10047157
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x10019431
xor eax, eax
jmp 0x1001955a
mov dword [ebp - 0x10], 0xfffffff0
push 2
push dword [ebp - 0x10]
push ebx
call fcn.1004700e
add esp, 0xc
push ebx
test eax, eax
jne 0x100194e6
call fcn.10046f16
push ebx
push 1
mov edi, eax
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.10046d5c
add esp, 0x14
cmp eax, 1
jne 0x100194f1
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x20]
mov eax, edx
and eax, 0xffffff00
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
cmp eax, 0xbf451600
jne 0x100194f1
cmp ecx, edi
ja 0x100194f1
mov eax, edi
sub eax, ecx
push 0xfffffffffffffff0
pop edi
sub edi, eax
add dword [ebp - 0x10], edi
mov dword [esi], eax
cmp dl, 0x34
jne 0x10019438
push 0
push ecx
push ebx
call fcn.1004700e
add esp, 0xc
test eax, eax
jne 0x100194f1
push dword [esi]
call fcn.10045263
mov edi, eax
pop ecx
push ebx
test edi, edi
je 0x100194e6
push dword [esi]
push 1
push edi
call fcn.10046d5c
add esp, 0x10
cmp eax, dword [esi]
je 0x100194f4
push edi
call fcn.1004523d
push ebx
call fcn.10046a40
pop ecx
jmp 0x100194eb
call fcn.10046a40
pop ecx
jmp 0x1001942a
push ebx
jmp 0x100194e6
push ebx
call fcn.10046a40
pop ecx
lea ecx, [ebp - 0x224]
call fcn.10040e15
and dword [ebp - 4], 0
push 0x80
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x224]
call fcn.10041ee9
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x38]
call fcn.100420d0
push dword [esi]
lea ecx, [ebp - 0x38]
push edi
push edi
mov byte [ebp - 4], 1
call fcn.1004200f
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.10041f61
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.10040e2d
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 + 0x108]
xor ecx, ebp
call fcn.10045c30
add ebp, 0x10c
leave
ret

Function at 0x1001957d
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10083598
call fcn.10047170
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x100195e5
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x100195e5
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x100195e5
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x100195e5
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100195ee
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.100471b5
ret
Function at 0x100196e6
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x10019709
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x1001970c
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x1001971f
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x10019726
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x1008ed10]
mov ecx, dword [0x1008ed0c]
test eax, eax
jne 0x10019740
test ecx, ecx
je 0x10019755
mov eax, ecx
mov dword [0x1008ed10], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x10019755
cmp edx, dword [ebp - 4]
jb 0x10019755
cmp edx, dword [ebp - 8]
jbe 0x10019826
mov eax, ecx
test ecx, ecx
jmp 0x10019779
test eax, eax
je 0x10019774
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10019774
cmp ecx, dword [ebp - 4]
jb 0x10019774
cmp ecx, dword [ebp - 8]
jbe 0x10019826
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x1008ed10], eax
jne 0x1001975b
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x100198bb
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x100197a6
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100198bb
cmp dword [ebp - 0x30], ebx
jne 0x100197c5
cmp dword [ebp - 0x34], ebx
jae 0x100197d8
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x10019794
jmp 0x100198bb
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1008ed10], eax
test eax, eax
je 0x100198bb
mov ecx, dword [0x1008ed0c]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x1008ed0c], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x10019818
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x100198c0
cmp esi, dword [ebp - 8]
ja 0x100198c0
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.100457d0
add esp, 0xc
mov eax, esi
jmp 0x100198c2
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x10019867
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100198c0
cmp dword [ebp - 0x14], ebx
jne 0x100198b2
cmp dword [ebp - 0x18], ebx
jb 0x100198b2
movzx ecx, si
test ecx, ecx
je 0x10019896
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1008ed10], eax
test eax, eax
jne 0x100197f4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x10019855
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100198e8
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x100835b8
call fcn.10047170
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10019943
and dword [ebp - 4], 0
mov ecx, 0x5a4d
mov eax, dword [ebp - 0x30]
cmp word [eax], cx
jne 0x1001993c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001993c
cmp word [ecx + 0x14], 0
je 0x1001993c
mov dword [ebp - 4], 0xfffffffe
jmp 0x10019945
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.100471b5
ret

Function at 0x1001995d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x1008ed18], edi
je 0x10019970
mov eax, 0x10dd
jmp 0x100199cb
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x1008ed18
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x10019969
push esi
mov esi, dword [0x1008ed0c]
mov dword [0x1008ed14], edi
mov dword [0x1008ed28], edi
mov dword [0x1008ed24], edi
mov dword [0x1008ed1c], edi
mov dword [0x1008ed20], edi
jmp 0x100199c4
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x100199ae
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x100199ce
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1008ed18], eax
je 0x100199e4
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x1008ed28]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x10019a2f
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x10019a20
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x10019a20
call fcn.100198c7
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.1004523d
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x100199f3
mov dword [0x1008ed28], ebx
call fcn.100196bf
mov esi, dword [0x1008ed24]
cmp esi, ebx
je 0x10019a5c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.1004523d
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x10019a44
pop edi
pop esi
mov dword [0x1008ed24], ebx
mov dword [0x1008ed18], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10019cb3
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1008ed1c]
test eax, eax
jne 0x10019d23
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x10019ccf
xor eax, eax
jmp 0x10019d22
push esi
push 8
call fcn.10045263
mov esi, eax
pop ecx
test esi, esi
jne 0x10019ce3
push 8
pop edi
jmp 0x10019cfe
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10019d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1004523d
pop ecx
and dword [0x1008ed20], 0
mov dword [0x1008ed1c], edi
mov eax, edi
jmp 0x10019d21
mov eax, dword [0x1008ed24]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x1008ed24], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x10019f74
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1008ed18], eax
je 0x10019f90
mov eax, 0x10dd
jmp 0x1001a071
mov eax, dword [0x1008ed1c]
test eax, eax
jne 0x1001a071
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10019fad
push 6
pop eax
jmp 0x1001a070
cmp dword [edi], 0
jne 0x10019fc5
push 6
pop eax
mov dword [0x1008ed1c], eax
mov dword [0x1008ed20], edi
jmp 0x1001a070
push ebx
push esi
push 0x18
call fcn.10045263
mov esi, eax
pop ecx
test esi, esi
jne 0x10019fda
push 8
pop edi
jmp 0x1001a053
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.1001994b
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x1001a048
cmp ecx, 0x17
ja 0x1001a048
cmp dword [edi + 0x1c], eax
jne 0x1001a048
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001a01e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001a053
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x1008ed28]
mov dword [esi], eax
mov dword [0x1008ed28], esi
xor eax, eax
jmp 0x1001a06e
push 9
pop edi
cmp dword [0x1008ed14], edx
jne 0x1001a059
mov dword [0x1008ed1c], edi
test esi, esi
je 0x1001a064
push esi
call fcn.1004523d
pop ecx
mov eax, dword [ebp + 8]
mov dword [0x1008ed20], eax
mov eax, edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x1001b35c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
call fcn.1001b32d
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x1001b37c
call dword [sym.imp.USER32.dll_GetDC]
jmp 0x1001b382
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
jne 0x1001b38f
xor eax, eax
jmp 0x1001b483
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 4], eax
test eax, eax
jne 0x1001b3b0
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, esi
call fcn.1001b32d
jmp 0x1001b388
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1001b3cd
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push ebx
call edi
push 0xa
push ebx
mov dword [esi + 8], eax
call edi
jmp 0x1001b400
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x14]
push eax
push edi
je 0x1001b3e9
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
jne 0x1001b3f1
push ebx
push edi
jmp 0x1001b473
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x1001b3de
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov edx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, 0xffff
cmp edx, eax
jg 0x1001b46f
mov ecx, dword [esi + 0xc]
cmp ecx, eax
jg 0x1001b46f
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi], eax
test eax, eax
je 0x1001b46f
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [esi + 4]
call edi
push 0xcc0020
mov dword [ebp + 0xc], eax
xor eax, eax
push eax
push eax
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [esi + 4]
call edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 4], 0
je 0x1001b479
xor eax, eax
inc eax
jmp 0x1001b482
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, esi
call fcn.1001b32d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1001dccc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1008ec80]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test eax, eax
je 0x1001dd45
mov edi, dword [eax + 0x14]
test edi, edi
je 0x1001dd45
mov ecx, edi
mov ecx, dword [ecx + 0x70]
test ecx, ecx
je 0x1001dd0b
mov ebx, dword [esi + 0x1c]
xor edx, edx
cmp ebx, edx
jl 0x1001dd0b
jg 0x1001dd04
mov edx, dword [esi + 0x18]
cmp edx, ecx
jbe 0x1001dd0b
xor eax, eax
jmp 0x1001dda9
test edi, edi
je 0x1001dd45
mov ecx, edi
mov edx, dword [ecx + 0x78]
or edx, dword [ecx + 0x7c]
je 0x1001dd45
mov eax, ecx
mov ebx, dword [eax + 0x78]
mov edi, dword [eax + 0x7c]
call fcn.10021a6b
add eax, dword [esi + 0x18]
adc edx, dword [esi + 0x1c]
cmp edx, edi
jb 0x1001dd45
ja 0x1001dd36
cmp eax, ebx
jbe 0x1001dd45
mov eax, dword [0x1008ec80]
mov ecx, dword [eax + 0x14]
call fcn.10021a6b
jmp 0x1001dd04
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
sub ecx, 0
je 0x1001dda6
dec ecx
je 0x1001dd59
dec ecx
je 0x1001dd04
dec ecx
jne 0x1001dd04
mov ecx, dword [eax + 0x18]
cmp ecx, dword [esi + 0x18]
jne 0x1001dd69
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [esi + 0x1c]
je 0x1001dd78
mov ecx, dword [eax]
cmp ecx, dword [esi + 0x28]
jne 0x1001dd78
mov ecx, dword [eax + 4]
cmp ecx, dword [esi + 0x2c]
je 0x1001dda6
movzx ecx, word [eax + 0x34]
mov edx, dword [ebp - 4]
cmp ecx, dword [edx + 0x38]
ja 0x1001dda6
mov ecx, dword [esi + 0x28]
sub ecx, dword [eax]
mov esi, dword [esi + 0x2c]
sbb esi, dword [eax + 4]
mov eax, dword [edx + 0x3c]
xor edx, edx
cmp esi, edx
jl 0x1001dd04
jg 0x1001dda6
cmp ecx, eax
jbe 0x1001dd04
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10021f96
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x1006571f
call fcn.10045c3f
mov edi, ecx
lea eax, [edi + 0x8c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10017222
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x80], esi
jne 0x10021fd6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10017236
mov eax, esi
call fcn.10045d17
ret 4
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
call fcn.10013588
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x10], esi
jne 0x10021ff5
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], 1
jne 0x10021ffe
mov dword [ebp - 0x14], esi
cmp dword [edi + 0x84], esi
jbe 0x10022065
xor ebx, ebx
mov eax, dword [edi + 0x80]
mov ecx, dword [ebp - 0x14]
add eax, ebx
cmp dword [eax + 0x38], ecx
jne 0x10022057
push 2
add eax, 0x20
push eax
mov ecx, edi
call fcn.10021e41
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10022084
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10022057
mov eax, dword [edi + 0x80]
mov dword [eax + ebx + 0x38], 3
mov eax, dword [edi + 0x80]
push 1
add eax, ebx
push eax
mov ecx, edi
call fcn.10021ac4
inc esi
add ebx, 0x40
cmp esi, dword [edi + 0x84]
jb 0x10022008
xor esi, esi
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x10021fe9
push dword [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.1004523d
pop ecx
jmp 0x10021fc0
shl esi, 6
add esi, dword [edi + 0x80]
push 0x40
push esi
push dword [ebp + 8]
call fcn.10045d50
push dword [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.1004523d
mov esi, dword [ebp - 0x1c]
add esp, 0x10
jmp 0x10021fc0

Function at 0x10023e03
Capabilities:
Get file size

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x698]
cmp eax, 0xffffffff
jne 0x10023e15
xor eax, eax
jmp 0x10023e64
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0xc]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x10023e3a
mov ecx, dword [edi + 0x69c]
lea edx, [ecx + 0x200]
cmp eax, edx
jae 0x10023e3e
xor eax, eax
jmp 0x10023e63
sub eax, ecx
sub eax, 0x200
mov ecx, edi
mov dword [esi], eax
call fcn.10022582
mov edx, dword [esp + 0x10]
mov dword [edx], eax
mov ecx, dword [esi]
cmp eax, ecx
jbe 0x10023e5c
mov dword [edx], ecx
mov eax, dword [edx]
sub dword [esi], eax
xor eax, eax
inc eax
pop esi
pop edi
ret 8
Function at 0x100243b3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0xc]
xor edi, edi
mov ecx, 0x10094b4c
mov dword [ebp - 4], edi
call fcn.10016374
xor ebx, ebx
inc ebx
test eax, eax
je 0x100243f4
mov ecx, dword [0x10094b4c]
cmp dword [ecx + 4], edi
je 0x100243f4
push edi
lea eax, [ebp - 4]
push eax
push ebx
push str.D:_D_OICI_FA___AN__A_OICI_FA___BG__A_OICI_FA___SY__A_OICI_FA___LS__A_OICI_FA___AU__A_OICI_FA___BA_
call fcn.10016047
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], edi
cmp eax, edi
je 0x10024449
cmp eax, ebx
je 0x10024430
cmp eax, 2
je 0x10024429
add eax, 0xfffffffd
cmp eax, ebx
ja 0x10024484
push edi
push edi
push 3
push edi
push 7
push 0x80000000
jmp 0x10024471
push edi
push edi
push 3
push edi
jmp 0x1002446b
mov eax, dword [esi + 0x690]
push ebx
push eax
call fcn.10014d59
pop ecx
pop ecx
test eax, eax
je 0x1002445c
push edi
push edi
push 4
jmp 0x10024467
mov eax, dword [esi + 0x690]
push ebx
push eax
call fcn.10014d59
pop ecx
pop ecx
test eax, eax
jne 0x10024463
xor eax, eax
jmp 0x1002455d
push edi
push edi
push 2
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0xc0000000
mov eax, dword [esi + 0x690]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x698], eax
cmp dword [ebp - 4], edi
je 0x10024492
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esi + 0x698]
cmp ecx, 0xffffffff
je 0x1002445c
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp eax, edi
je 0x10024547
jle 0x10024554
cmp eax, 2
jle 0x1002451b
cmp eax, 3
je 0x100244d5
cmp eax, 4
jne 0x10024554
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
jmp 0x10024550
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x418], eax
mov edx, dword [esi + 0x418]
lea eax, [esi + 0x69c]
mov ecx, dword [eax]
add ecx, 0x200
cmp edx, ecx
jb 0x10024511
mov ecx, 0xfffffe00
sub ecx, dword [eax]
add dword [esi + 0x418], ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
jmp 0x1002454e
mov dword [esi + 0x418], edi
xor ebx, ebx
jmp 0x10024550
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x418], eax
mov edx, dword [esi + 0x418]
lea eax, [esi + 0x69c]
mov ecx, dword [eax]
add ecx, 0x200
cmp edx, ecx
jae 0x100244fb
mov dword [esi + 0x418], edi
mov ecx, esi
call fcn.100224e4
mov ebx, eax
cmp ebx, edi
jne 0x1002455b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret