joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12daccd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x12dacd67
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
test eax, eax
jne 0x12dacd51
mov eax, dword [esp + 0x18]
cmp eax, 1
jb 0x12dacd51
inc eax
push eax
mov dword [esp + 0x1c], eax
call fcn.12f5c05b
mov esi, eax
add esp, 4
test esi, esi
je 0x12dacd51
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push esi
push eax
push 0
push edi
push ecx
call ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x12dacd70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x12dacdd4
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret 8

Function at 0x12daff80
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x131999ac]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
jne 0x12db0068
push str.cfgmgr32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x12daffeb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CM_Request_Device_Eject_ExW
push esi
call edi
push str.CM_Get_DevNode_Registry_Property_ExW
push esi
mov dword [0x13199998], eax
call edi
push str.CM_Get_Child_Ex
push esi
mov dword [0x1319999c], eax
call edi
push str.CM_Get_Sibling_Ex
push esi
mov dword [0x131999a0], eax
call edi
push str.CM_Get_Parent_Ex
push esi
mov dword [0x131999a4], eax
call edi
mov dword [0x131999a8], eax
pop edi
cmp dword [0x13199998], ebx
je 0x12db0049
cmp dword [0x1319999c], ebx
je 0x12db0049
cmp dword [0x131999a4], ebx
je 0x12db0049
cmp dword [0x131999a0], ebx
je 0x12db0049
cmp dword [0x131999a8], ebx
je 0x12db0049
mov eax, dword [0x130761e8]
push eax
call fcn.12f29510
add esp, 4
test eax, eax
jne 0x12db0068
push 0x12db0540
push 0x13199998
call fcn.12f29670
add esp, 8
call fcn.12f29530
pop esi
mov dword [0x131999ac], 1
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1319999c], ebx
mov dword [0x131999a8], ebx
mov dword [0x131999a4], ebx
mov dword [0x131999a0], ebx
pop esi
pop ebx
ret
Function at 0x12db1620
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x12db164e
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
sub eax, edx
cmp eax, ecx
ja 0x12db1646
call edi
cmp eax, dword [esi + 8]
jae 0x12db164e
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x12db1d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov eax, 3
lea edi, [esp + 0x1c]
mov ebp, ecx
mov dword [esp + 0x18], str.lync.exe_excel.exe_winword.exe_powerpnt.exe
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], str.cocreateinstance
mov dword [esp + 0x24], str.cocreateinstanceex
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x130c69e4
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], str.ssl_
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], str.SDXHelper.exe
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], str.ntopenfile
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], str.appvlp.exe
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], str.ntclose
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 4
mov eax, dword [edi - 4]
add edi, 4
push eax
mov ecx, ebp
call fcn.12db1c30
test eax, eax
je 0x12db1ea7
mov esi, dword [edi]
test esi, esi
je 0x12db1e4d
push esi
mov ecx, ebp
call fcn.12db1660
mov eax, dword [0x13199068]
test eax, eax
je 0x12db1e44
push esi
push str.InitStaticConfig_1___s_
push str.DelayInstall
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
inc ebx
add edi, 4
cmp ebx, 5
jb 0x12db1e18
mov eax, dword [ebp + 8]
test eax, eax
jne 0x12db1ea5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
test eax, eax
jne 0x12db1e84
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
test eax, eax
jne 0x12db1e75
mov eax, 0x1388
jmp 0x12db1e81
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp + 4], eax
mov eax, dword [0x13199068]
test eax, eax
je 0x12db1ea5
mov edx, dword [ebp + 4]
push edx
push str.InitStaticConfig_2___lu_
push str.DelayInstall
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
xor ebx, ebx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edi, 0x1c
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jne 0x12db1e02
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
Function at 0x12dd9fc0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13059e5b
push eax
mov eax, dword [0x13199068]
mov dword fs:[0], esp
sub esp, 0x2dc
push ebx
mov ebx, dword [esp + 0x2f4]
push ebp
mov ebp, dword [esp + 0x2f4]
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x12dda01b
mov eax, dword [ebp + 0x90c]
mov ecx, dword [ebp + 0x914]
push ebx
push eax
push ecx
push str.AddPrintText__________d__d___p_
push str.PrintRule
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
mov eax, dword [ebp + 0x914]
cmp eax, esi
jbe 0x12dda030
mov edx, dword [ebp + 0x90c]
inc edx
cmp eax, edx
jb 0x12dda08b
cmp ebx, esi
je 0x12dda08b
push 0x20
push ebx
call fcn.12e339f0
add esp, 8
test eax, eax
jne 0x12dda08b
mov ecx, 0x31
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], si
push 0x64
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
lea ecx, [ebp + 0x918]
push eax
push ecx
call fcn.12dd9bb0
add esp, 0xc
test eax, eax
jne 0x12dda0a6
cmp dword [0x13199068], esi
je 0x12dda08b
push str.AddPrintText_____ret1_
push str.PrintRule
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2e8
ret
mov edx, dword [ebp + 0x90c]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe6]
mov word [esp + 0xe4], si
inc edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push edx
push eax
push 0x131a8644
push str._s_s__lu.ptxt
lea ecx, [esp + 0xf4]
push 0x103
push ecx
call fcn.12f5d990
add esp, 0x18
lea ecx, [esp + 0x14]
push 2
call fcn.12f29950
mov dword [esp + 0x2f4], esi
mov dword [esp + 0x10], esi
push ebx
xor edi, edi
or esi, 0xffffffff
call fcn.12f5c51d
add esp, 4
test eax, eax
je 0x12dda15c
push edi
push 0x80
push 2
push edi
push 1
lea edx, [esp + 0xf8]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x12dda15c
lea eax, [esp + 0x10]
push edi
push eax
push ebx
call fcn.12f5c51d
add esp, 4
shl eax, 1
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x13199068]
test eax, eax
je 0x12dda194
lea ecx, [esp + 0xe4]
push ecx
push ebx
call fcn.12f5c51d
mov edx, dword [esp + 0x18]
add esp, 4
shl eax, 1
push eax
push edx
push edi
push esi
push str.AddPrintText_____hFile:_p__bWrite:_d__dwWriten:_d__TextLen:_d__FilePath:_s_
push str.PrintRule
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x20
test edi, edi
je 0x12dda19e
inc dword [ebp + 0x90c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.12f29980
mov eax, edi
jmp 0x12dda08d
Function at 0x12dda1c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13059e7b
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 0x131a8644
dec eax
push str._s_s.ptxt
push eax
push esi
call fcn.12f5d990
push ebp
push 0x131a8644
call fcn.12f821d0
add esp, 0x1c
test eax, eax
jne 0x12dda28a
push ebp
push 0x131a8644
call fcn.12f83000
add esp, 8
mov edi, dword [esp + 0x104]
push edi
call fcn.12f5c51d
add esp, 4
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x12dda3a3
cmp dword [0x13199068], 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.12f29950
mov dword [esp + 0xf8], ebp
push edi
mov byte [esp + 0x16], 0xff
mov byte [esp + 0x17], 0xfe
mov dword [esp + 0x1c], ebp
call fcn.12f5c51d
add esp, 4
test eax, eax
je 0x12dda383
push ebp
push esi
call fcn.12f80030
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.12f29980
jmp 0x12dda3ab
mov dword [esp + 0x14], 1
jmp 0x12dda3ab
mov dword [esp + 0x14], 2
cmp dword [0x13199068], 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 [0x131a8428]
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 [0x131a8428], eax
je 0x12ddba00
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetPrinterW
push eax
call esi
mov dword [0x131a842c], eax
mov eax, dword [0x131a8428]
push str.GetJobW
push eax
call esi
mov ecx, dword [0x131a8428]
push str.OpenPrinterW
push ecx
mov dword [0x131a8430], eax
call esi
mov edx, dword [0x131a8428]
push str.ClosePrinter
push edx
mov dword [0x131a8434], eax
call esi
mov dword [0x131a8438], eax
mov eax, dword [0x131a8428]
cmp eax, edi
je 0x12ddba00
cmp dword [0x131a8430], edi
jne 0x12ddba00
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x131a8428], edi
mov dword [0x131a842c], edi
mov dword [0x131a8430], edi
mov dword [0x131a8434], edi
mov dword [0x131a8438], 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 0x131a843c
call fcn.12f5d990
add esp, 0x14
lea edx, [esp + 8]
push str.OCular_temp
push edx
push 0x130c4e18
push 0x103
push 0x131a8644
call fcn.12f5d990
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0x14
push 0x131a83f8
call esi
push 0x131a8410
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.12f5c05b
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 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.12f5c05b
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.12f5c050
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 [0x13196dcc]
sub esp, 0x208
push esi
xor esi, esi
test eax, eax
je 0x12e05ab4
push str.net.exe
push eax
call fcn.12f5e2a4
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.12f5c57b
lea ecx, [esp + 0x14]
push ecx
call fcn.12f615c4
mov eax, dword [0x13199068]
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.12f5c53a
add esp, 8
test eax, eax
je 0x12e05ab4
mov esi, 1
mov eax, dword [0x13199068]
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.12f615c4
lea edx, [esp + 0x1c]
push 0x130e1f7c
push edx
call fcn.12f5c53a
add esp, 0xc
test eax, eax
pop edi
je 0x12e07263
mov esi, 2
mov eax, esi
pop esi
add esp, 0x218
ret 4