joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100049b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x4c]
and eax, 0x200
neg eax
sbb eax, eax
and eax, 0xffffff9c
mov edx, ecx
sub edx, dword [ebx + 0x58]
add eax, 0xdc
cmp dword [ebx + 0x6c], 0
mov dword [esp + 4], 0
mov word [ebx + 0x76], ax
mov dword [ebx + 0x78], edx
je 0x10004a0a
movzx eax, byte [ebx + 0x8d8]
mov dl, byte [ebx + 0x8da]
mov byte [ebx + 0x88], al
movzx eax, byte [ebx + 0x8dc]
mov byte [ebx + 0x89], dl
mov byte [ebx + 0x8a], al
mov eax, dword [ebx + 2]
cmp eax, 0xffffffff
push ebp
push esi
jne 0x10004abc
cmp dword [ebx + 0xa], ecx
jae 0x10004a2f
mov dword [esp + 0xc], 0x3302
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 8
ret
mov ebp, dword [ebx + 6]
push edi
mov edi, ebp
lea esi, [ebx + 0x74]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebx + 0x54]
add ebp, 0x1a
test eax, eax
pop edi
je 0x10004a5c
mov ecx, dword [ebx + 0x50]
push ecx
push eax
push ebp
call fcn.1000ed10
add esp, 0xc
jmp 0x10004a82
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0xb0]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004aaa
mov edx, dword [esp + 8]
cmp edx, dword [ebx + 0x50]
jne 0x10004aaa
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x10004b31
mov ecx, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x5c]
push eax
add ecx, ebp
push ecx
call fcn.1000ed10
mov eax, dword [esp + 0x18]
add esp, 0xc
pop esi
pop ebp
add esp, 8
ret
mov dword [esp + 0xc], 0x3312
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 8
ret
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0xc]
push edx
push 0x1a
lea ecx, [ebx + 0x74]
push ecx
push eax
call esi
test eax, eax
je 0x10004b29
cmp dword [esp + 8], 0x1a
jne 0x10004b29
mov eax, dword [ebx + 0x54]
test eax, eax
mov ecx, dword [ebx + 0x50]
je 0x10004b3b
push 0
lea edx, [esp + 0xc]
push edx
mov edx, dword [ebx + 2]
push ecx
push eax
push edx
call esi
test eax, eax
je 0x10004b29
mov eax, dword [esp + 8]
cmp eax, dword [ebx + 0x50]
jne 0x10004b29
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x10004b31
mov ecx, dword [ebx + 2]
push 0
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ebx + 0x5c]
push eax
push ecx
call esi
test eax, eax
je 0x10004b29
mov edx, dword [esp + 8]
cmp edx, dword [ebx + 0x58]
je 0x10004b31
mov dword [esp + 0xc], 0x3307
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 8
ret
mov edx, dword [ebx + 0xb0]
push ecx
mov ecx, dword [ebx + 2]
call fcn.1000b9f0
test eax, eax
je 0x10004b03
mov dword [esp + 0xc], 0x3313
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 8
ret
Function at 0x10004b60
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [edi + 0xac]
push ebp
xor ebp, ebp
test eax, eax
je 0x10004bcf
push esi
push ebp
push 0x80
push 2
push ebp
push 1
push 0xc0000000
push eax
call fcn.1000e020
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
jne 0x10004b98
pop esi
mov eax, 0x3316
pop ebp
pop ecx
ret
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x54]
push ebx
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
pop ebx
je 0x10004bc6
mov eax, dword [esp + 8]
cmp eax, dword [edi + 0x50]
je 0x10004bd4
pop esi
mov eax, 0x3317
pop ebp
pop ecx
ret
mov eax, ebp
pop ebp
pop ecx
ret
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x10007090
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x104
push esi
push edi
push 0x100
xor esi, esi
lea eax, [esp + 0x10]
push esi
push eax
call fcn.1000f080
mov ecx, dword [esp + 0x11c]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ecx
call fcn.1000e020
mov edi, eax
add esp, 0x28
cmp edi, 0xffffffff
je 0x10007298
push esi
lea edx, [esp + 0xc]
push edx
push 0x100
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007291
cmp dword [esp + 8], esi
je 0x10007291
mov eax, dword [esp + 0xc]
cmp al, 0x42
jne 0x10007125
cmp ah, 0x4d
jne 0x10007125
mov esi, dword [0x1001b114]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
cmp eax, 0x2a4949
je 0x1000728b
cmp eax, 0x2a004d4d
je 0x1000728b
cmp eax, 0x9ac6cdd7
jne 0x1000715c
mov esi, dword [0x1001b120]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
cmp al, 0x47
jne 0x10007186
cmp ah, 0x49
jne 0x100071af
cmp byte [esp + 0xe], 0x46
jne 0x100071af
mov esi, dword [0x1001b128]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
cmp al, 0xff
jne 0x100071af
cmp ah, 0xd8
jne 0x100071af
cmp byte [esp + 0xe], al
jne 0x100071af
mov esi, dword [0x1001b118]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
cmp eax, 0x474e5089
jne 0x100071de
cmp dword [esp + 0x10], 0xa1a0a0d
jne 0x10007291
mov esi, dword [0x1001b11c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
cmp eax, 1
jne 0x1000720b
cmp dword [esp + 0x34], 0x464d4520
jne 0x10007291
mov esi, dword [0x1001b12c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
cmp al, 0xa
jne 0x10007229
mov esi, dword [0x1001b150]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
cmp ax, 0xffff
jne 0x10007249
mov esi, dword [0x1001b144]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
cmp eax, 0x435057ff
jne 0x1000726a
mov esi, dword [0x1001b158]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
cmp eax, 0xc6d3d0c5
jne 0x10007291
mov esi, dword [0x1001b140]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
mov esi, dword [0x1001b124]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret 4
Function at 0x10007550
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x144]
xor al, al
cmp dword [edi + 0x168], 7
mov byte [esp + 7], al
mov dword [esp + 8], ecx
jne 0x10007726
push esi
xor esi, esi
cmp ecx, esi
jne 0x10007587
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x140]
push ebp
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call fcn.1000e020
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x100076e0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x1001bf40]
mov edi, eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100076de
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100076ca
cmp dword [esp + 0x18], edi
jne 0x100076ca
push esi
push edi
call dword [sym.imp.GDI32.dll_SetEnhMetaFileBits]
mov ebp, eax
test ebp, ebp
je 0x100076c6
cmp dword [esi], 1
jne 0x10007653
cmp dword [esi + 0x28], 0x464d4520
jne 0x10007653
mov eax, dword [esi + 0x1c]
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0x18]
mov dword [ebx + 4], ecx
mov edx, dword [esi + 0x24]
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 0x20]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], 0x9ec
mov dword [ebx + 0x18], 8
mov ecx, dword [esi + 0x20]
sub ecx, dword [esi + 0x18]
mov dword [ebx + 0x1c], ecx
mov edx, dword [esi + 0x24]
sub edx, dword [esi + 0x1c]
mov dword [ebx + 0x20], edx
mov eax, dword [0x1001bf40]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x10]
push ecx
push 8
xor esi, esi
push esi
push esi
push ebp
call dword [sym.imp.GDI32.dll_GetWinMetaFileBits]
mov edi, eax
test edi, edi
je 0x100076bf
mov edx, dword [0x1001bf40]
push edi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100076bf
mov eax, dword [esp + 0x10]
push eax
push 8
push esi
push edi
push ebp
call dword [sym.imp.GDI32.dll_GetWinMetaFileBits]
cmp eax, edi
jne 0x100076bf
push ebp
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
push esi
push edi
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
test eax, eax
mov dword [ebx], eax
je 0x100076c6
mov byte [esp + 0xf], 1
jmp 0x100076c6
push ebp
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov ebp, dword [esp + 0x14]
test esi, esi
je 0x100076de
mov ecx, dword [0x1001bf40]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
cmp eax, dword [edx + 0x144]
je 0x100076f8
push eax
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp ebp, 0xffffffff
je 0x10007704
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
test al, al
pop ebp
jne 0x10007725
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
pop esi
pop edi
add esp, 0x10
ret 4
Function at 0x100081e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
push edi
add eax, 0xffffffd3
mov ebx, ecx
mov esi, dword [ebx + 0x48]
xor edi, edi
cmp eax, 0x2b
ja case.0x100081fe.47
movzx eax, byte [eax + 0x10008388]
jmp dword [eax*4 + 0x10008370]
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebp
test ax, ax
jns 0x1000821b
mov edi, 0x301
jmp case.0x100081fe.47
push 0x10
call ebp
jmp 0x10008271
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov di, ax
and di, 0x8000
neg di
sbb edi, edi
and edi, 0xfffffffd
add edi, 0x303
jmp case.0x100081fe.47
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x100081fe.47
mov edi, 0x300
jmp case.0x100081fe.47
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x100081fe.47
mov edi, 0x301
jmp case.0x100081fe.47
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x100081fe.47
mov edi, 0x302
test byte [ebx + 0x7c], 1
je 0x10008299
push 0
push 0
push edi
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [0x1001bfb0]
pop edi
pop esi
pop ebp
pop ebx
ret
lea eax, [edi - 0x300]
cmp eax, 3
ja case.default.0x100082a8
jmp dword [eax*4 + 0x100083b4]
push 0
push 0
push edi
push esi
call dword [0x1001bfb0]
pop edi
pop esi
pop ebp
pop ebx
ret
and dword [ebx + 0x50], 0xffffffef
push 0
push 0
push edi
push esi
call dword [0x1001bfb0]
test byte [ebx + 0x50], 0x10
je case.default.0x100082a8
push esi
push 0xfffffffffffffff4
push esi
call dword [0x1001bfb8]
movzx ecx, ax
or ecx, 0x7040000
push ecx
push 0x111
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [0x1001bfb4]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 0xfffffffffffffff4
push esi
call dword [0x1001bfb8]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
movzx edx, ax
or edx, 0x7050000
push edx
push 0x111
push esi
call ebx
push eax
call dword [0x1001bfb0]
push 0
push esi
call dword [0x1001bfb8]
test eax, eax
je case.default.0x100082a8
push 0
push 0
push edi
push esi
call dword [0x1001bfb0]
push esi
push 0xfffffffffffffff4
push esi
call dword [0x1001bfb8]
movzx eax, ax
or eax, 0x7030000
push eax
push 0x111
push esi
call ebx
push eax
call dword [0x1001bfb4]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1000a570
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ecx
mov ebp, edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call fcn.1000e020
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
jne 0x1000a5b0
mov dword [esp + 0x10], 0x31c0
jmp 0x1000a659
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a629
cmp edi, ebp
jb 0x1000a629
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000a629
sub edi, ebp
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1000a5f6
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], 0x31c3
jmp 0x1000a633
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x1000a60d
mov dword [esp + 0x10], 0x31c3
jmp 0x1000a633
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000a62b
cmp dword [esp + 0x18], edi
je 0x1000a633
jmp 0x1000a62b
mov ebp, ebx
mov dword [esp + 0x10], 0x31c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x1000a645
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esp + 0x10], 0
je 0x1000a65b
test ebx, ebx
je 0x1000a659
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
xor edi, edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000a67b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword [ecx], edx
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret 8
Function at 0x1000a6a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
movzx eax, word [esi + 4]
mov cx, word [esi + 8]
mov word [esp + 0x16], ax
movzx eax, word [esi + 0x10]
push edi
mov edi, edx
mov dx, word [esi + 0xc]
xor ebp, ebp
test byte [esi + 0x50], 2
mov word [esp + 0x20], ax
mov ax, word [esi + 0x14]
mov dword [esp + 0x14], 0x9ac6cdd7
mov word [esp + 0x18], bp
mov word [esp + 0x1c], cx
mov word [esp + 0x1e], dx
mov word [esp + 0x22], ax
je 0x1000a707
mov ecx, dword [esi + 0x4c]
cmp ecx, 0x64
je 0x1000a707
push 0x64
push ecx
movzx ecx, ax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov word [esp + 0x22], ax
mov cx, word [esp + 0x14]
xor cx, word [esp + 0x16]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor cx, word [esp + 0x18]
push ebp
xor cx, word [esp + 0x1e]
lea edx, [esp + 0x14]
xor cx, word [esp + 0x20]
push edx
xor cx, word [esp + 0x26]
push 0x16
xor cx, word [esp + 0x2c]
mov dword [esp + 0x30], ebp
xor cx, ax
lea eax, [esp + 0x20]
push eax
push edi
mov word [esp + 0x3c], cx
call ebx
test eax, eax
je 0x1000a798
cmp dword [esp + 0x10], 0x16
jne 0x1000a798
mov ecx, dword [esi]
push ebp
push ebp
push ecx
call dword [sym.imp.GDI32.dll_GetMetaFileBitsEx]
mov ecx, dword [esi]
mov ebp, eax
call fcn.1000b310
mov esi, eax
test esi, esi
je 0x1000a798
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push esi
push edi
call ebx
push esi
mov edi, eax
mov eax, dword [0x1001bf40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x1000a798
cmp dword [esp + 0x10], ebp
je 0x1000a7a5
pop edi
pop esi
pop ebp
mov eax, 0x31c1
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x1000aa60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
mov esi, ecx
xor ebp, ebp
test esi, esi
mov edi, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], ebp
je 0x1000aa95
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
test eax, 0x4000
jne 0x1000aa95
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1000aaa5
mov eax, 0x31c1
mov dword [edi], eax
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x1c
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x1000ab25
lea ecx, [esp + 0x24]
call fcn.1000a880
mov edi, eax
test edi, edi
jne 0x1000ab2a
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
mov ebx, dword [esp + 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x1000ab00
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x20], edx
jne 0x1000ab00
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov ebp, eax
jmp 0x1000ab2a
mov edi, dword [esp + 0x28]
push edi
call fcn.1000e0f0
mov ecx, dword [0x1001bf40]
add esp, 4
push edi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov edi, 0x31c1
test ebx, ebx
pop ebx
je 0x1000ab45
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x18]
mov dword [edx], edi
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x1c
ret
mov eax, dword [esp + 0x18]
mov dword [eax], edi
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x1c
ret
Function at 0x1000ab60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
push 1
push 0
mov edi, edx
push 0
push edi
mov esi, ecx
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000ad16
cmp dword [esp + 0x40], 0x16
jbe 0x1000ac27
push 0
lea eax, [esp + 0x14]
push eax
push 0x16
lea ecx, [esp + 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000ad16
cmp dword [esp + 0x10], 0x16
jne 0x1000ad16
cmp dword [esp + 0x24], 0x9ac6cdd7
jne 0x1000ac71
movsx edx, word [esp + 0x2c]
movsx eax, word [esp + 0x2e]
movsx ecx, word [esp + 0x2a]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi + 8], edx
movsx edx, word [esp + 0x30]
mov dword [esi + 0x10], edx
movzx edx, word [esp + 0x32]
mov dword [esi + 0xc], eax
push edx
sub eax, ecx
push eax
push 0x9ec
mov dword [esi + 4], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], 8
call ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x14]
push eax
push ecx
push 0x9ec
call ebx
or dword [esi + 0x50], 0x40
mov dword [esi + 0x20], eax
sub dword [esp + 0x40], 0x16
lea ecx, [esp + 0x1c]
call fcn.1000a880
mov ebx, eax
test ebx, ebx
jne 0x1000ad64
mov eax, dword [esp + 0x40]
mov edx, edi
mov edi, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.1000b9f0
sub eax, 1
je 0x1000ad24
sub eax, 1
je 0x1000ad1d
sub eax, 1
jne 0x1000ad29
mov ebx, 0x31c1
jmp 0x1000ad29
push 0
push 0
push ebx
push edi
call ebp
cmp eax, 0xffffffff
je 0x1000ad16
push 0
lea edx, [esp + 0x14]
push edx
push 0xe
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000ad16
cmp dword [esp + 0x10], 0xe
jne 0x1000ad16
mov eax, dword [esp + 0x24]
cmp ax, 0xc350
je 0x1000acb2
cmp ax, 0x4350
jne 0x1000ad05
cmp word [esp + 0x26], 1
jne 0x1000ad05
cmp word [esp + 0x28], 3
jne 0x1000ad05
push 0
lea ecx, [esp + 0x14]
push ecx
mov ebx, 8
push ebx
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000ad16
cmp dword [esp + 0x10], ebx
jne 0x1000ad16
movsx eax, word [esp + 0x14]
movsx ecx, word [esp + 0x16]
movsx edx, word [esp + 0x18]
or dword [esi + 0x50], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
jmp 0x1000ac22
push 0
push 0
push ebx
push edi
call ebp
cmp eax, 0xffffffff
jne 0x1000ac27
mov ebx, 0x31c2
jmp 0x1000ad64
mov ebx, 0x31c2
jmp 0x1000ad29
mov ebx, 0x31c3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1000ad47
mov ecx, dword [esp + 0x20]
pop edi
mov dword [esi + 0x70], ecx
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x2c
ret 4
mov edi, dword [esp + 0x20]
push edi
call fcn.1000e0f0
mov edx, dword [0x1001bf40]
add esp, 4
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi + 0x50], 0xffffffb7
pop edi
mov dword [esi + 0x70], 0
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x2c
ret 4
Function at 0x1000ad80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0
push edi
je 0x1000adf4
lea ecx, [esp + 0x10]
call fcn.1000a880
mov edi, eax
test edi, edi
jne 0x1000adf9
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x68]
mov ebx, dword [esp + 0x10]
push ebp
push eax
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
je 0x1000add7
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 0x6c]
jne 0x1000add7
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x70], ecx
jmp 0x1000adf9
mov edi, dword [esp + 0x14]
push edi
call fcn.1000e0f0
mov edx, dword [0x1001bf40]
add esp, 4
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, 0x31c1
mov eax, dword [esi + 0x50]
xor ebx, ebx
test eax, 0x20000
je 0x1000ae1f
and eax, 0xfffdffff
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [0x1001bf40]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov eax, edi
je 0x1000ae32
and dword [esi + 0x50], 0xffffffb7
mov dword [esi + 0x70], ebx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1000b9f0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
xor ebx, ebx
test eax, eax
mov esi, edx
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov ebp, eax
mov dword [esp + 0x24], ebx
jne 0x1000ba51
push 1
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1000ba42
cmp edi, 0xffffffff
je 0x1000ba42
sub eax, edi
mov ebp, eax
jne 0x1000ba51
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret 4
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10
ret 4
mov eax, dword [0x1001bf40]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebp
push 0
push eax
mov ebx, ebp
call edi
mov esi, eax
test esi, esi
jne 0x1000ba90
lea ebx, [ebx]
cmp ebx, 1
je 0x1000bae0
mov ecx, dword [0x1001bf40]
shr ebx, 1
push ebx
push 0
push ecx
call edi
mov esi, eax
test esi, esi
je 0x1000ba70
lea esp, [esp]
cmp ebx, ebp
mov edi, ebx
jb 0x1000ba98
mov edi, ebp
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000baf9
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x1000baf9
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000baef
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x10]
jne 0x1000baef
sub ebp, edi
jne 0x1000ba90
jmp 0x1000bb01
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
mov dword [esp + 0x24], 3
jmp 0x1000bb01
mov dword [esp + 0x24], 2
mov ecx, dword [0x1001bf40]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4