joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4082fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415290]
jne 0x408304
repz ret
jmp fcn.00409fc7

Function at 0x40caf7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x415c60]
je 0x40cb12
inc edi
cmp edi, 0x17
jb 0x40cb03
cmp edi, 0x17
jae 0x40cc92
push ebp
push 3
call fcn.004101f5
cmp eax, 1
pop ecx
je 0x40cc5e
push 3
call fcn.004101f5
test eax, eax
pop ecx
jne 0x40cb46
cmp dword [0x4153a0], 1
je 0x40cc5e
cmp ebx, 0xfc
je 0x40cc91
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x418130
push ebp
call fcn.0040ec99
add esp, 0xc
test eax, eax
je 0x40cb7c
push esi
push esi
push esi
push esi
push esi
call fcn.0040b054
add esp, 0x14
push 0x104
mov esi, 0x418149
push esi
push 0
mov byte [0x41824d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cbc0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040ec99
add esp, 0xc
test eax, eax
je 0x40cbc0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b054
add esp, 0x14
push esi
call fcn.00408410
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40cc05
push esi
call fcn.00408410
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x418444
push 0x4129e4
sub ecx, eax
push ecx
push eax
call fcn.0040ebe6
add esp, 0x14
test eax, eax
je 0x40cc05
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b054
add esp, 0x14
jmp 0x40cc07
xor esi, esi
push 0x4129e0
push ebx
push ebp
call fcn.0040eb2b
add esp, 0xc
test eax, eax
je 0x40cc27
push esi
push esi
push esi
push esi
push esi
call fcn.0040b054
add esp, 0x14
push dword [edi*8 + 0x415c64]
push ebx
push ebp
call fcn.0040eb2b
add esp, 0xc
test eax, eax
je 0x40cc49
push esi
push esi
push esi
push esi
push esi
call fcn.0040b054
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00410038
add esp, 0xc
jmp 0x40cc91
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40cc91
cmp ebp, 0xffffffff
je 0x40cc91
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x415c64]
push dword [esi]
call fcn.00408410
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x410038
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040ab68
xor ebx, ebx
cmp dword [0x418590], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41010e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4101ee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4133e4
push edi
call esi
cmp eax, ebx
je 0x4101ee
push eax
call fcn.0040aafa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418590], eax
call esi
push eax
call fcn.0040aafa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418594], eax
call esi
push eax
call fcn.0040aafa
mov dword [0x418598], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040c884
test eax, eax
pop ecx
pop ecx
je 0x4100dc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b054
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41010e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040aafa
cmp eax, ebx
pop ecx
mov dword [0x4185a0], eax
je 0x41010e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040aafa
pop ecx
mov dword [0x41859c], eax
mov eax, dword [0x41859c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x410193
cmp dword [0x4185a0], ecx
je 0x410193
push eax
call fcn.0040ab71
push dword [0x4185a0]
mov esi, eax
call fcn.0040ab71
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x410193
cmp edi, ebx
je 0x410193
call esi
cmp eax, ebx
je 0x410160
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410160
test byte [ebp - 0x18], 1
jne 0x410193
lea eax, [ebp - 0x10]
push eax
call fcn.0040c8bb
test eax, eax
pop ecx
je 0x41017b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b054
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41018a
or dword [ebp + 0x10], 0x200000
jmp 0x4101ce
or dword [ebp + 0x10], 0x40000
jmp 0x4101ce
mov eax, dword [0x418594]
cmp eax, dword [ebp - 8]
je 0x4101ce
push eax
call fcn.0040ab71
cmp eax, ebx
pop ecx
je 0x4101ce
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4101ce
mov eax, dword [0x418598]
cmp eax, dword [ebp - 8]
je 0x4101ce
push eax
call fcn.0040ab71
cmp eax, ebx
pop ecx
je 0x4101ce
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418590]
call fcn.0040ab71
cmp eax, ebx
pop ecx
je 0x4101ee
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4101f0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
test ecx, ecx
jne 0x40101a
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x401022
sub esi, ecx
sar esi, 1
lea esi, [esi*2 + 4]
push esi
call dword [sym.imp.v_P]
push esi
mov ebx, eax
push 0
push ebx
mov edi, ebx
call sub.P_2
mov esi, dword [ebp - 4]
add esp, 0x10
mov ecx, dword [0x4040b0]
mov dword [ebp - 4], ecx
movzx eax, word [esi]
test ax, ax
je 0x4010aa
mov ecx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub esi, ebx
mov dword [ebp - 0xc], ecx
nop
cmp ax, 0x5c
je 0x401081
cmp ax, 0x2f
je 0x401081
movzx eax, ax
jmp 0x401098
push ebx
call ecx
test eax, eax
jne 0x401090
push eax
push ebx
call dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov eax, 0x5c
mov word [edi], ax
add edi, 2
movzx eax, word [esi + edi]
test ax, ax
jne 0x401070
mov ecx, dword [ebp - 4]
push 0
push ebx
call ecx
push ebx
call dword [sym.imp.v_0_1]
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401280
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
lea eax, [esp + 0x18]
push eax
push 0x20
call dword [0x40409c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, eax
cmp ebx, 1
je 0x401304
mov edi, dword [0x4040a4]
push 0xfffffffffffffff5
call edi
mov esi, dword [0x4040a8]
push 0xc
push eax
call esi
call dword [0x40408c]
push eax
push 0x404484
push 2
call dword [0x404180]
add esp, 4
push eax
call fcn.00401170
add esp, 0xc
push 0xfffffffffffffff5
call edi
push 7
push eax
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00402829
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 0x4044a4
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, dword [0x4040a4]
mov ebx, dword [0x4040a8]
test eax, eax
jne 0x40135f
push 0xfffffffffffffff5
call edi
push 0xc
push eax
call ebx
mov esi, dword [0x40408c]
call esi
push eax
push str.LookupPrivilegeValue_error:__d_n
call fcn.004011a0
add esp, 8
push 0xfffffffffffffff5
call edi
push 7
push eax
call ebx
mov dword [esp + 0x10], 0
jmp 0x401407
mov eax, dword [esp + 0x10]
push 0
push 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
push 0x10
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push 0
push esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4013c5
push 0xfffffffffffffff5
call edi
push 0xc
push eax
call ebx
mov esi, dword [0x40408c]
call esi
push eax
mov eax, dword [0x404180]
push str._ERROR__AdjustTokenPrivileges_error:__d_n
push 2
call eax
add esp, 4
push eax
call fcn.00401170
add esp, 0xc
jmp 0x401349
mov esi, dword [0x40408c]
call esi
cmp eax, 0x514
jne 0x4013f9
push 0xfffffffffffffff5
call edi
push 0xc
push eax
call ebx
mov eax, dword [0x404180]
push str._ERROR__The_token_does_not_have_the_specified_privilege._n
push 2
call eax
add esp, 4
push eax
call fcn.00401170
jmp 0x401346
mov dword [esp + 0x10], 1
call esi
test eax, eax
je 0x401435
push 0xfffffffffffffff5
call edi
push 0xc
push eax
call ebx
call esi
push eax
push str._ERROR_
push 2
call dword [0x404180]
add esp, 4
push eax
call fcn.00401170
add esp, 0xc
push 0xfffffffffffffff5
call edi
push 7
push eax
call ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402829
mov esp, ebp
pop ebp
ret
Function at 0x401b10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
mov eax, ecx
push esi
mov esi, eax
mov dword [ebp - 4], eax
push edi
mov edi, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x401b25
sub esi, ecx
sar esi, 1
test edi, edi
je 0x401b51
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b40
sub ecx, edx
sar ecx, 1
add esi, ecx
lea eax, [esi*2 + 0x40]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x401c27
push 0x40
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], 0x44
push 0
push eax
call sub.P_2
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
test edi, edi
je 0x401ba9
push edi
push dword [ebp - 4]
push str.__s___s
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x401bbb
push dword [ebp - 4]
push str.__s_
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401bef
push dword [ebp - 0x10]
call dword [0x404084]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x4040a4]
push 0xfffffffffffffff5
call edi
mov esi, dword [0x4040a8]
push 0xc
push eax
call esi
push ebx
push str._ERROR__Copy_Run_Command___s__n
push 2
call dword [0x404180]
add esp, 4
push eax
call fcn.00401170
add esp, 0xc
push 0xfffffffffffffff5
call edi
push 7
push eax
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0x208
mov edi, ecx
mov dword [esp + 0x18], edx
push 8
mov dword [esp + 0x18], edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x401d91
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [esp + 0x14], 0
je 0x401c90
push str.loaddll_x86.exe
jmp 0x401c95
push str.loaddll_x64.exe
push 0x104
push ebx
call dword [0x40418c]
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d3c
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401cc0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 0x10]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x401d2d
push dword [esp + 0x10]
push str.__s_
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.00401b10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
push 1
call edi
push eax
call dword [0x4040a0]
push ebx
push 1
call edi
push eax
call dword [0x4040a0]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.00401b10
mov esi, eax
jmp 0x401d76
mov edi, dword [0x4040a4]
push 0xfffffffffffffff5
call edi
mov esi, dword [0x4040a8]
push 0xc
push eax
call esi
push ebx
push str._ERROR__Can_find__s_n
push 2
call dword [0x404180]
add esp, 4
push eax
call fcn.00401ae0
add esp, 0xc
push 0xfffffffffffffff5
call edi
push 7
push eax
call esi
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 1
call edi
push eax
call dword [0x4040a0]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402530
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
push 0
lea eax, [esp + 0x44]
mov dword [esp + 0x34], ecx
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x48], 1
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call dword [sym.imp.8_I]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
mov dword [esp + 0x20], eax
call esi
push 0
mov edi, eax
call esi
push dword [esp + 0x1c]
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
push esi
push dword [esp + 0x24]
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push dword [esp + 0x28]
mov dword [esp + 0x48], eax
push edi
push esi
push 0
push 0
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
push dword [esp + 0x34]
call dword [sym.imp.8_Gd]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.8_GdipGetImageEncodersSize]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4026b2
push eax
call dword [sym.imp.v_P]
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
test edi, edi
je 0x4026b2
push edi
push dword [esp + 0x24]
push dword [esp + 0x1c]
call dword [sym.imp.8_V]
xor esi, esi
cmp dword [esp + 0x14], esi
jbe 0x4026a8
add edi, 0x30
nop
mov ecx, dword [edi]
mov eax, str.image_jpeg
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40268d
test dx, dx
je 0x402689
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40268d
add ecx, 4
add eax, 4
test dx, dx
jne 0x402667
xor eax, eax
jmp 0x402692
sbb eax, eax
or eax, 1
test eax, eax
je 0x402721
inc esi
add edi, 0x4c
cmp esi, dword [esp + 0x14]
jb 0x402660
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.v_0_1]
add esp, 4
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x50]
push 0
push eax
push dword [esp + 0x38]
push edi
call dword [sym.imp.8_GdipSaveImageToFile]
push dword [esp + 0x38]
test eax, eax
push dword [esp + 0x1c]
sete byte [esp + 0x1b]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
push dword [esp + 0x1c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.8_GdipDisposeImage]
push dword [esp + 0x3c]
call dword [sym.imp.8_0]
mov ecx, dword [esp + 0x6c]
mov al, byte [esp + 0x13]
pop edi
pop esi
xor ecx, esp
call fcn.00402829
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x28]
imul eax, esi, 0x4c
push ecx
movups xmm0, xmmword [eax + ecx]
movups xmmword [esp + 0x54], xmm0
jmp 0x4026a9
Function at 0x10006470
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov edx, dword [edi]
sub eax, edx
mov edx, dword [esp + 0x14]
mov esi, edx
dec edx
test esi, esi
je 0x100064af
push ebx
lea esi, [edx + 1]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10061218]
xor eax, edx
inc ecx
dec esi
jne 0x10006490
pop ebx
or ecx, 0xffffffff
sub ecx, eax
mov dword [edi], ecx
pop edi
pop esi
ret

Function at 0x10008e40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov edx, dword [0x100597cc]
mov eax, dword [str._cvyxtrWZihol_]
mov ecx, dword [0x100597c8]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [0x100597d0]
mov dword [esp + 4], ecx
mov cl, byte [0x100597d4]
push ebx
push edx
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], cl
call fcn.10008b70
mov ecx, eax
add esp, 4
shl ecx, 5
add ecx, eax
lea edx, [eax + eax*2]
push ecx
lea ecx, [eax*8]
shl edx, 3
sub ecx, eax
push edx
push eax
lea eax, [ecx + ecx*2]
lea ecx, [esp + 0x24]
shl eax, 1
push eax
push str._04ld_04ld_04ld_04ld
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
xor eax, eax
mov dl, byte [esp + eax + 0x18]
mov bl, byte [esp + eax + 4]
xor dl, bl
and dl, 0xf
mov byte [esp + eax + 4], dl
inc eax
cmp eax, 0x10
jl 0x10008eb5
mov ebx, dword [esp + 0x40]
xor eax, eax
test ebx, ebx
jle 0x10008f6f
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x4c]
mov dl, byte [eax + esi]
test edi, edi
je 0x10008f25
cmp dl, 0xa
je 0x10008f1f
cmp dl, 0xd
je 0x10008f19
cmp dl, 0x3d
je 0x10008f13
mov ecx, eax
and ecx, 0xf
mov cl, byte [esp + ecx + 0xc]
xor cl, dl
cmp cl, 0x3d
mov byte [eax + esi], cl
jne 0x10008f64
mov byte [eax + esi], 0x13
jmp 0x10008f64
mov byte [eax + esi], 0x12
jmp 0x10008f64
mov byte [eax + esi], 0x10
jmp 0x10008f64
mov byte [eax + esi], 0x11
jmp 0x10008f64
mov ecx, edx
and ecx, 0xff
sub ecx, 0x10
je 0x10008f60
dec ecx
je 0x10008f5a
dec ecx
je 0x10008f54
cmp dl, 0x13
jne 0x10008f41
mov byte [eax + esi], 0x3d
mov edx, eax
and edx, 0xf
mov cl, byte [esp + edx + 0xc]
mov dl, byte [eax + esi]
xor dl, cl
mov byte [eax + esi], dl
jmp 0x10008f64
mov byte [eax + esi], 0x3d
jmp 0x10008f64
mov byte [eax + esi], 0xa
jmp 0x10008f64
mov byte [eax + esi], 0xd
inc eax
cmp eax, ebx
jl 0x10008ee4
pop edi
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x10009660
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
lea eax, [ebp - 1]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
push edx
push esi
push 0
mov byte [ebx + ebp - 1], 0
call fcn.10009ad0
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x10009728
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
lea edi, [edi + eax + 2]
push ecx
push esi
push edi
call fcn.10009b40
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x10009728
mov edx, dword [esp + 0x18]
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 3]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x24]
push 0
lea edx, [ebp - 1]
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10009728
mov eax, dword [esp + 0x24]
mov byte [ebx + ebp - 1], 0
mov ecx, ebx
mov dl, 0xd
mov byte [eax + ebx], 0
mov al, byte [ecx]
test al, al
je 0x10009725
cmp al, 0xa
je 0x1000971d
cmp al, dl
jne 0x10009722
cmp byte [ecx + 1], 0xa
je 0x10009725
inc ecx
jmp 0x10009706
cmp byte [ecx + 1], dl
je 0x10009725
inc ecx
jmp 0x10009706
mov byte [ecx], 0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10009920
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
push 0
mov dword [esp + 0x1c], 1
call fcn.10009ad0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jge 0x10009963
push edi
push esi
call fcn.10009bb0
mov ebp, eax
add esp, 8
test ebp, ebp
jge 0x10009963
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x20]
push edi
push esi
push ebp
call fcn.10009b40
mov ebx, eax
add esp, 0xc
test ebx, ebx
jge 0x1000999f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10009a4f
push edi
push esi
push ebp
call fcn.10009c90
mov ebx, eax
add esp, 0xc
test ebx, ebx
jge 0x1000999f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x10009a4f
push 0x2000
call fcn.10039ff8
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x10009995
push esi
push 0x2000
push eax
mov eax, dword [esp + 0x28]
push 0x1006161c
push edi
push eax
call fcn.10009660
add esp, 0x18
mov dword [esp + 0x1c], eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, edi
lea ebx, [eax + ebx + 3]
push ecx
push esi
push ebx
call fcn.10009d90
xor edi, edi
add esp, 0xc
cmp eax, edi
jl 0x10009a32
push edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edi
push edx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10009a32
cmp dword [esp + 0x14], ebp
je 0x10009a36
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10039f0f
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test ebx, ebx
jl 0x10009abc
push 0x2000
call fcn.10039ff8
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x10009995
mov edx, dword [esp + 0x1c]
push esi
push 0x2000
push eax
push 0x1006161c
push edi
push edx
call fcn.10009660
add esp, 0x18
mov ebp, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0xfffffffd
sub ecx, ebp
sub ecx, eax
push ecx
push esi
push ebx
call fcn.10009d90
add esp, 0xc
test eax, eax
jge 0x10009aaf
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x28]
push edx
call fcn.10039f0f
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret