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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13059dab
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0xe0
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
je 0x12dda3e9
mov esi, dword [esp + 0x100]
cmp esi, ebp
je 0x12dda3e9
push 0x20
push eax
call fcn.12e339f0
add esp, 8
test eax, eax
jne 0x12dda3e9
push ebx
push edi
mov ecx, 0x31
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bp
push 0x64
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x104]
xor ebx, ebx
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
add ecx, 0x918
push eax
push ecx
mov dword [esp + 0x20], ebp
call fcn.12dd9bb0
add esp, 0xc
test eax, eax
je 0x12dda399
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x28]
push edx
push 0x131a8544
dec eax
push str._s_s.ptxt
push eax
push esi
call fcn.12f5d8c0
push ebp
push 0x131a8544
call fcn.12f82100
add esp, 0x1c
test eax, eax
jne 0x12dda28a
push ebp
push 0x131a8544
call fcn.12f82f30
add esp, 8
mov edi, dword [esp + 0x104]
push edi
call fcn.12f5c44d
add esp, 4
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x12dda3a3
cmp dword [0x13198f68], ebp
je 0x12dda2c3
push edi
push str.AddPrintTextToOneFile_lpszText:_r_n_s_r_n
push str.PrintRule
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
push 2
lea ecx, [esp + 0x24]
call fcn.12f29880
mov dword [esp + 0xf8], ebp
push edi
mov byte [esp + 0x16], 0xff
mov byte [esp + 0x17], 0xfe
mov dword [esp + 0x1c], ebp
call fcn.12f5c44d
add esp, 4
test eax, eax
je 0x12dda383
push ebp
push esi
call fcn.12f7ff60
add esp, 8
mov edi, eax
push ebp
push 0x80
push 4
push ebp
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x12dda37c
cmp edi, ebp
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x12dda33c
lea ecx, [esp + 0x18]
push ebp
push ecx
lea edx, [esp + 0x1a]
push 2
push edx
push esi
call edi
mov ebx, eax
jmp 0x12dda341
mov ebx, 1
push 2
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, ebp
je 0x12dda36d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push ebp
push eax
mov eax, dword [esp + 0x10c]
lea edx, [ecx + ecx]
push edx
push eax
push esi
call edi
mov ebx, eax
jmp 0x12dda375
mov dword [esp + 0x14], 3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x108]
lea ecx, [esp + 0x20]
mov dword [esp + 0xf8], 0xffffffff
call fcn.12f298b0
jmp 0x12dda3ab
mov dword [esp + 0x14], 1
jmp 0x12dda3ab
mov dword [esp + 0x14], 2
cmp dword [0x13198f68], ebp
je 0x12dda3ce
mov ecx, dword [esp + 0x14]
push esi
push ebx
push ecx
push str.AddPrintTextToOneFile_____dwErrno:_lu__bWrite:_d__FilePath:_s_
push str.PrintRule
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
add esp, 0xec
ret
mov ecx, dword [esp + 0xe8]
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0xec
ret
Function at 0x12ddb950
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x131a8328]
sub esp, 0x208
push edi
xor edi, edi
cmp eax, edi
jne 0x12ddba7b
push esi
push str.winspool.drv
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x131a8328], eax
je 0x12ddba00
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetPrinterW
push eax
call esi
mov dword [0x131a832c], eax
mov eax, dword [0x131a8328]
push str.GetJobW
push eax
call esi
mov ecx, dword [0x131a8328]
push str.OpenPrinterW
push ecx
mov dword [0x131a8330], eax
call esi
mov edx, dword [0x131a8328]
push str.ClosePrinter
push edx
mov dword [0x131a8334], eax
call esi
mov dword [0x131a8338], eax
mov eax, dword [0x131a8328]
cmp eax, edi
je 0x12ddba00
cmp dword [0x131a8330], edi
jne 0x12ddba00
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x131a8328], edi
mov dword [0x131a832c], edi
mov dword [0x131a8330], edi
mov dword [0x131a8334], edi
mov dword [0x131a8338], edi
mov word [esp + 8], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 8]
push str.OCularPrintData
push ecx
push 0x130c4e18
push 0x103
push 0x131a833c
call fcn.12f5d8c0
add esp, 0x14
lea edx, [esp + 8]
push str.OCular_temp
push edx
push 0x130c4e18
push 0x103
push 0x131a8544
call fcn.12f5d8c0
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0x14
push 0x131a82f8
call esi
push 0x131a8310
call esi
pop esi
pop edi
add esp, 0x208
ret
Function at 0x12dfea30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebp, ebp
push edi
xor eax, eax
lea ecx, [esp + 0x14]
push ebp
mov dword [esp + 0x1e], eax
push ecx
lea edx, [esp + 0x20]
push 0xe
mov dword [esp + 0x2a], eax
push edx
push ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov word [esp + 0x2c], bp
mov dword [esp + 0x36], eax
call esi
test eax, eax
je 0x12dfebb2
cmp dword [esp + 0x14], 0xe
jne 0x12dfebb2
cmp word [esp + 0x18], 0x4d42
jne 0x12dfebb2
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push ebp
mov edi, 0x28
push eax
lea ecx, [esp + 0x30]
push edi
push ecx
push ebx
mov dword [esp + 0x28], ebp
call esi
test eax, eax
je 0x12dfebb2
cmp dword [esp + 0x14], edi
jne 0x12dfebb2
cmp dword [esp + 0x28], edi
jne 0x12dfebb2
sub esp, 0x28
mov ecx, 0xa
lea esi, [esp + 0x50]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.12dff160
mov esi, eax
push esi
call fcn.12f5bf8b
mov edi, eax
add esp, 0x2c
cmp edi, ebp
mov dword [esp + 0x10], edi
je 0x12dfebb2
mov ecx, esi
xor eax, eax
mov edx, ecx
lea esi, [esp + 0x28]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
push ecx
call fcn.12dfefe0
add esp, 4
test eax, eax
jbe 0x12dfeb6f
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ebp
push edx
push eax
call fcn.12dfefe0
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push ecx
call fcn.12dff1e0
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12dfebb2
mov eax, dword [esp + 0x22]
cmp eax, ebp
je 0x12dfebb2
push ebp
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ebp
push edx
push eax
mov dword [esp + 0x20], ebp
call fcn.12dff0b0
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push ecx
call fcn.12dff210
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x12dfebbf
lea edx, [esp + 0x10]
push edx
call fcn.12dfe8b0
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x12e01130
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
xor ebx, ebx
xor edi, edi
cmp esi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
je 0x12e01222
push esi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x12e01222
push ebx
push ebx
push ebx
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
cmp edi, ebx
je 0x12e01222
mov eax, dword [esi + 4]
mov ebp, dword [esi]
mov ebx, dword [esi + 8]
mov esi, dword [esi + 0xc]
push 8
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ebp, ebp
jge 0x12e011a1
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jge 0x12e011b1
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x2c]
cmp ebx, ecx
jle 0x12e011bb
mov ebx, ecx
cmp esi, eax
jle 0x12e011c1
mov esi, eax
mov edx, dword [esp + 0x1c]
sub ebx, ebp
push edi
mov dword [esp + 0x30], ebx
sub esi, edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x12e01222
mov ecx, dword [esp + 0x2c]
push esi
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x10], eax
je 0x12e01222
mov edx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [esp + 0x14], eax
je 0x12e01222
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push 0xcc0020
push eax
push ebp
push edi
push esi
push ecx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x12e0122d
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x12e01241
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
test ebx, ebx
je 0x12e0124e
push ebx
call esi
test edi, edi
je 0x12e01255
push edi
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x12e01560
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push esi
xor esi, esi
test ebx, ebx
push edi
mov dword [esp + 0xc], esi
je 0x12e0163a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x12e0163a
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x12e0163a
push ebp
push ebx
call fcn.12dff1a0
mov esi, eax
xor eax, eax
mov dword [esp + 0x1a], eax
push ebx
mov dword [esp + 0x22], eax
lea ecx, [esi + 0xe]
mov dword [esp + 0x26], eax
mov word [esp + 0x1c], 0x4d42
mov dword [esp + 0x1e], ecx
call fcn.12dfefe0
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
add eax, 0x36
lea edx, [esp + 0x28]
mov dword [esp + 0x1e], eax
push 0
push edx
lea eax, [esp + 0x1c]
push 0xe
push eax
push edi
mov dword [esp + 0x3c], 0
call ebp
test eax, eax
je 0x12e01625
cmp dword [esp + 0x28], 0xe
jne 0x12e01625
lea ecx, [esp + 0x28]
push 0
push ecx
push esi
push ebx
push edi
mov dword [esp + 0x3c], 0
call ebp
test eax, eax
je 0x12e01625
mov eax, dword [esp + 0x28]
cmp eax, esi
mov esi, 1
je 0x12e01629
mov esi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x12e01690
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x12e017ba
cmp dword [esp + 0x28], ebp
je 0x12e017ba
call fcn.12d93b30
test eax, eax
je 0x12e017ba
push ebx
lea eax, [esp + 0x18]
push esi
push edi
mov dword [esp + 0x20], 0x7d000
mov dword [esp + 0x24], 0x4e2000
mov dword [esp + 0x28], 0x9c4000
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], 0
mov esi, dword [ecx]
push esi
call fcn.12f5bf8b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x12e01793
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ecx
call fcn.12d93b90
add esp, 0x10
test eax, eax
je 0x12e01786
mov esi, dword [esp + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x12e01781
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x12e01781
test esi, esi
je 0x12e01781
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push ebx
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, 1
push ebx
call fcn.12f5bf80
add esp, 4
test ebp, ebp
jne 0x12e017b0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, 3
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jb 0x12e016e0
pop edi
pop esi
mov eax, ebp
pop ebx
pop ebp
add esp, 0x1c
ret
xor eax, eax
pop ebp
add esp, 0x1c
ret
Function at 0x12e05a10
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x13196ccc]
sub esp, 0x208
push esi
xor esi, esi
test eax, eax
je 0x12e05ab4
push str.net.exe
push eax
call fcn.12f5e1d4
add esp, 8
test eax, eax
jne 0x12e05ab4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
je 0x12e05ab4
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push edx
push eax
call fcn.12f5c4ab
lea ecx, [esp + 0x14]
push ecx
call fcn.12f614f4
mov eax, dword [0x13198f68]
add esp, 0x10
test eax, eax
pop edi
je 0x12e05a99
lea edx, [esp + 4]
push edx
push str.CDocLog::IsFilterOpenFile__CmdLine_:__s_
push str.cmdline
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
lea eax, [esp + 4]
push 0x130e1a64
push eax
call fcn.12f5c46a
add esp, 8
test eax, eax
je 0x12e05ab4
mov esi, 1
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e05ad2
push esi
push str.CDocLog::IsFilterOpenFile__bFilterOpenFile_:__d_
push str.cmdline
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov eax, esi
pop esi
add esp, 0x208
ret

Function at 0x12e07190
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x218
test eax, eax
jne 0x12e071a7
add esp, 0x218
ret 4
mov ecx, dword [0x130d5510]
mov edx, dword [0x130d5514]
mov ax, word [eax]
mov dword [esp + 8], ecx
lea ecx, [esp + 8]
push esi
push ecx
mov dword [esp + 0x14], edx
mov word [esp + 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push eax
call fcn.12e07270
mov dx, word [esp + 0x10]
add esp, 4
cmp dx, 0x41
mov esi, eax
je 0x12e071f7
cmp dx, 0x42
je 0x12e071f7
cmp dx, 0x61
je 0x12e071f7
cmp dx, 0x62
jne 0x12e07263
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
push 0x104
rep stosd dword es:[edi], eax
mov cx, word [0x130e0f14]
stosw word es:[edi], ax
mov eax, dword [0x130e0f10]
mov word [esp + 0x10], cx
mov dword [esp + 0xc], eax
mov word [esp + 0xc], dx
lea edx, [esp + 0x1c]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [esp + 0x18]
push ecx
call fcn.12f614f4
lea edx, [esp + 0x1c]
push 0x130e1f7c
push edx
call fcn.12f5c46a
add esp, 0xc
test eax, eax
pop edi
je 0x12e07263
mov esi, 2
mov eax, esi
pop esi
add esp, 0x218
ret 4
Function at 0x12e072b0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x220
push ebx
mov eax, dword [esp + 0x228]
push ebp
xor ebp, ebp
push esi
push ebp
push 0x80
push 3
push ebp
push 3
xor esi, esi
push SysReAllocStringLen
push eax
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x12e074d1
lea ecx, [esp + 0x14]
push edi
push ecx
push ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp ecx, ebp
ja 0x12e07316
cmp eax, 0x200
jbe 0x12e074bb
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push ebp
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x38]
push 0x20
push eax
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12e074bb
cmp dword [esp + 0x10], 0x20
jne 0x12e074bb
mov ecx, dword [0x130e1fac]
mov edi, str.OCULAR3454E43525950
lea esi, [esp + 0x30]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x12e074bb
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
test edi, edi
mov dword [esp + 0x24], eax
ja 0x12e073f4
jb 0x12e0738b
cmp dword [esp + 0x14], 0x10020
ja 0x12e073f4
mov esi, dword [esp + 0x14]
sub esi, 0x20
sbb edi, 0
jne 0x12e0739f
test esi, esi
jbe 0x12e074a1
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x38]
push 0x200
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12e074a1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x12e074a1
sub esi, eax
push eax
lea eax, [esp + 0x34]
push eax
push ebp
sbb edi, 0
call fcn.12ffed90
add esp, 0xc
mov ebp, eax
test edi, edi
ja 0x12e0739f
jb 0x12e074a1
test esi, esi
ja 0x12e0739f
jmp 0x12e074a1
mov dword [esp + 0x1c], 0
mov esi, 0x8000
xor edi, edi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x38]
push 0x200
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12e07447
mov eax, dword [esp + 0x10]
test eax, eax
je 0x12e07447
sub esi, eax
push eax
lea eax, [esp + 0x34]
push eax
push ebp
sbb edi, 0
call fcn.12ffed90
add esp, 0xc
mov ebp, eax
test edi, edi
ja 0x12e07403
jb 0x12e07447
test esi, esi
ja 0x12e07403
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x12e0748f
lea ecx, [esp + 0x2c]
push 2
push ecx
push 0xffff8000
push ebx
mov dword [esp + 0x38], 0xffff8000
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, 0x8000
sbb edx, 0
cmp eax, ecx
jne 0x12e074a1
mov eax, dword [esp + 0x2c]
cmp eax, edx
jne 0x12e074a1
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 2
mov dword [esp + 0x1c], eax
jl 0x12e073fc
or esi, edi
jne 0x12e074bb
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
xor ebp, ecx
cmp eax, ebp
jne 0x12e074bb
mov dword [esp + 0x20], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
Function at 0x12e09830
Capabilities:
Check if file exists
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.12f5d840
push edi
mov edi, dword [esp + 0x1014]
test edi, edi
je 0x12e099e6
mov eax, dword [esp + 0x1018]
test eax, eax
je 0x12e099e6
push eax
push edi
call fcn.12f5e1d4
add esp, 8
test eax, eax
je 0x12e099e6
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edi
mov ebx, 5
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x12e099a1
mov eax, dword [esp + 0x1024]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x12e099c0
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x20]
push 0x1000
push edx
push ebp
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x12e09928
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x12e09928
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x20]
push eax
push edx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x12e09928
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x12e098de
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
cmp esi, 0xffffffff
je 0x12e09940
push esi
call edi
test ebx, ebx
jne 0x12e09966
mov ecx, dword [esp + 0x1020]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x12e09966
mov edx, dword [esp + 0x1024]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [esp + 0x1020]
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e09994
mov eax, dword [esp + 0x1024]
push eax
push edi
push ebx
push str.TReadWriteFile__err_:__d___src_:__s___desk_:__s_
push str.DoEncrypt
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
pop esi
mov eax, ebx
pop ebp
pop ebx
pop edi
add esp, 0x100c
ret
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e09994
push str.TReadWriteFile_OpenSrc_Failed
push str.DoEncrypt
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
jmp 0x12e0996d
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e0992f
push str.TReadWriteFile_OpenDest_Failed
push str.DoEncrypt
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
jmp 0x12e0992f
mov eax, 6
pop edi
add esp, 0x100c
ret
Function at 0x12e0dcc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
xor ebp, ebp
cmp esi, ebp
je 0x12e0de79
mov ebx, dword [esp + 0x228]
cmp ebx, ebp
je 0x12e0de79
cmp dword [esp + 0x22c], ebp
je 0x12e0de79
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bp
mov dword [esp + 0x18], ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebp
je 0x12e0de6a
cmp eax, 0x104
jae 0x12e0de6a
push esi
call fcn.12f5c44d
add esp, 4
mov edi, esi
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
jbe 0x12e0de1e
mov ebx, esi
lea edx, [esi + 4]
lea edi, [esi + 2]
add esi, 6
cmp word [ebx], 0x2e
jne 0x12e0dde4
mov ebp, eax
sub ebp, ecx
dec ebp
cmp ebp, 2
jb 0x12e0ddc5
mov bp, word [edi]
cmp bp, 0x2e
jne 0x12e0dd9b
cmp word [edx], 0x5c
jne 0x12e0dd9b
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], esi
inc ebp
add ecx, 2
add ebx, 4
add esi, 4
add edi, 4
mov dword [esp + 0x14], ebp
add edx, 4
jmp 0x12e0ddb2
cmp bp, 0x5c
jne 0x12e0dde4
mov dword [esp + 0x10], edx
inc ecx
add ebx, 2
add esi, 2
add edi, 2
add edx, 2
inc ecx
add ebx, 2
add esi, 2
add edi, 2
add edx, 2
cmp ecx, eax
jb 0x12e0dd5a
jmp 0x12e0dde4
sub eax, ecx
dec eax
cmp eax, 1
jb 0x12e0dde4
mov eax, dword [esp + 0x228]
cmp word [eax + ecx*2 + 2], 0x5c
jne 0x12e0dde4
lea ecx, [eax + ecx*2 + 4]
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x14]
test edi, edi
je 0x12e0de13
xor esi, esi
test edi, edi
jbe 0x12e0de6a
lea edx, [esp + 0x1c]
push 0x5c
push edx
call fcn.12f5c8b4
add esp, 8
test eax, eax
je 0x12e0de6a
inc esi
mov word [eax], 0
cmp esi, edi
jb 0x12e0ddf2
test eax, eax
je 0x12e0de6a
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x22c]
push edi
call fcn.12f5c44d
mov esi, eax
lea eax, [esp + 0x20]
push eax
call fcn.12f5c44d
lea ecx, [esi + eax + 1]
mov eax, dword [esp + 0x238]
add esp, 8
cmp ecx, eax
jae 0x12e0de6a
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.12f5c865
push 0x130c4ed0
push ebx
call fcn.12f5c865
push edi
push ebx
call fcn.12f5c865
add esp, 0x18
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret

Function at 0x12e0e890
Capabilities:
Get hostname

Disassembly:
push ecx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x131a9530]
test ecx, ecx
je 0x12e0e8b2
cmp eax, ecx
jb 0x12e0e8b2
add ecx, 0x36ee80
cmp ecx, eax
jae 0x12e0e8f0
mov dword [0x131a9530], eax
lea eax, [esp + 4]
lea ecx, [esi + 0x18]
push eax
push ecx
mov dword [esp + 0xc], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
lea eax, [esi + 0x14]
je 0x12e0e8f3
push eax
mov word [eax], 0x5c
mov word [esi + 0x16], 0x5c
call fcn.12f5c44d
add esp, 4
mov word [esi + eax*2 + 0x14], 0x5c
lea eax, [esi + 0x14]
pop esi
pop ecx
ret