joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b0ce
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 1
call fcn.0040b635
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x43dfe0
call fcn.0040c31c
mov esi, 0x7002
push esi
push ebx
push 0x429498
call fcn.0040d7f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
cmp edi, ebx
je 0x40b17d
push edi
call fcn.00408a32
cmp byte [0x4304f9], bl
je 0x40b177
push str.winrarsfxmappingfile.tmp
push ebx
mov edi, 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40b16c
push esi
push ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x40b165
push esi
push edi
push 0x429498
call fcn.0040e0d0
add esp, 0xc
push 0x42949a
mov byte [edi], 1
call fcn.004089de
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b17d
push edi
call fcn.004089de
push 0x800
mov esi, 0x428498
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x4304a8], edi
mov dword [0x4304ac], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x4304ac]
mov dword [0x428494], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x428490], eax
call fcn.0040d67c
push esi
mov ecx, 0x43260c
call fcn.004081b5
lea ecx, [ebp - 0x60]
call fcn.0040c753
lea ecx, [ebp - 0x34]
call fcn.0040c753
push 0x64
call fcn.0040d3ec
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040d3ec
push ebx
push 0x40a809
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x60]
mov dword [0x42748c], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x427488], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x427488], ebx
mov dword [0x42748c], ebx
call fcn.0040c778
lea ecx, [ebp - 0x60]
call fcn.0040c778
lea ecx, [ebp - 8]
call fcn.0040d6d6
cmp byte [0x4304f0], bl
je 0x40b25c
call fcn.00408c7d
mov ecx, 0x43bac0
call fcn.00408445
cmp dword [0x4304d8], ebx
jbe 0x40b27a
push dword [0x4304cc]
call fcn.0040d90b
pop ecx
push dword [0x428494]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x428490]
cmp eax, ebx
je 0x40b294
push eax
call esi
cmp dword [0x4325fc], ebx
jne 0x40b2b3
cmp byte [0x4304bc], bl
je 0x40b2b3
push 0xff
mov ecx, 0x4325fc
call fcn.004015a5
mov eax, dword [0x4304e8]
mov byte [0x4304bc], 1
cmp eax, ebx
je 0x40b2d5
push eax
call fcn.00408c3e
push dword [0x4304e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4304e4]
cmp eax, ebx
je 0x40b2e5
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x4304e0]
pop edi
pop esi
cmp eax, ebx
pop ebx
ja 0x40b2fc
mov eax, dword [0x4325fc]
leave
ret 0x10
Function at 0x40b877
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x44f264]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x43dbd8]
mov ecx, dword [0x44f26c]
mov dword [0x44f264], eax
movzx eax, al
add eax, dword [0x44f268]
imul eax, eax, 0x8088405
inc eax
mov dword [0x44f268], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x43dbd8]
mov eax, dword [esp + 4]
mov dword [0x44f26c], ecx
ret 4

Function at 0x40b914
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040b8d1
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040e0d0
add esp, 0xc
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040b857
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040b877
inc esi
cmp esi, 0xc
jl 0x40b936
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x43e12c]
test byte [eax + 0x40], 2
movzx eax, byte [0x44e197]
jne 0x40b971
movzx eax, byte [0x44e19f]
movzx ecx, cx
cmp ecx, eax
je 0x40b97d
or eax, 0xffffffff
jmp 0x40b9c2
mov ecx, dword [0x44e140]
mov eax, ecx
cdq
cmp edx, dword [0x43e10c]
push edi
jl 0x40b99f
mov edx, dword [0x43e108]
jg 0x40b99b
cmp eax, edx
jbe 0x40b99f
mov edi, edx
jmp 0x40b9a1
mov edi, ecx
mov esi, dword [0x44e13c]
jmp 0x40b9bb
dec edi
call fcn.0040b857
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040b877
inc esi
test edi, edi
jne 0x40b9a9
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40cc57
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x40cc8b
cmp dword [ebp - 4], esi
jne 0x40cccc
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x7d0
ja 0x40cccc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40cc75
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40cc75
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x48]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40cd37
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x40cd2d
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41de68
push eax
call dword [ecx]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40cd24
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40cd1b
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 8], esi
jl 0x40cd37
cmp dword [ebp - 4], esi
jne 0x40cd86
cmp dword [edi + 8], esi
je 0x40cd86
cmp dword [edi + 0x18], esi
jne 0x40cd86
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x40cd86
push eax
mov ecx, edi
call fcn.0040ca99
mov ebx, eax
cmp ebx, esi
je 0x40cd86
push 0x204
push esi
push esi
push esi
push esi
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.0040d90b
pop ecx
xor eax, eax
cmp dword [ebp + 8], esi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x40d0b9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
push edi
mov dword [esi + 8], edi
mov byte [esi + 0x25], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040d052
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push edi
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x40d120
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0x10], edi
jne 0x40d1a2
cmp dword [ebp + 0xc], edi
je 0x40d1c5
cmp dword [esi + 0x18], edi
jne 0x40d1c5
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x40d1c5
push eax
mov ecx, esi
call fcn.0040ca99
mov esi, eax
cmp esi, edi
je 0x40d1c5
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040d90b
pop ecx
jmp 0x40d1c5
cmp eax, edi
je 0x40d1b8
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x20], 0x64
jbe 0x40d1c5
mov ecx, esi
call fcn.0040c8ec
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40d1cc
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x41de58
push 1
xor ebx, ebx
push ebx
push 0x41df08
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d29d
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41def8
push eax
call dword [ecx]
test eax, eax
jl 0x40d294
cmp byte [ebp + 8], bl
je 0x40d21f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40d23c
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40d24e
push 0x41d43c
jmp 0x40d251
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d266
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40d277
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40d28b
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x40d2b7
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x412cd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4223ec]
jne 0x412cdf
repz ret
jmp fcn.00417625
Function at 0x418c47
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00412d56
and dword [ebp - 4], 0
cmp dword [0x44fcd4], 0
mov ebx, eax
jne 0x418cf8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418da9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418da9
push eax
call fcn.00412ce4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44fcd4], eax
call esi
push eax
call fcn.00412ce4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44fcd8], eax
call esi
push eax
call fcn.00412ce4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44fcdc], eax
call esi
push eax
call fcn.00412ce4
pop ecx
mov dword [0x44fce4], eax
test eax, eax
je 0x418cf8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412ce4
pop ecx
mov dword [0x44fce0], eax
mov eax, dword [0x44fce0]
cmp eax, ebx
je 0x418d50
cmp dword [0x44fce4], ebx
je 0x418d50
push eax
call fcn.00412d5f
push dword [0x44fce4]
mov esi, eax
call fcn.00412d5f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418d50
test edi, edi
je 0x418d50
call esi
test eax, eax
je 0x418d47
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418d47
test byte [ebp - 0xc], 1
jne 0x418d50
or dword [ebp + 0x10], 0x200000
jmp 0x418d89
mov eax, dword [0x44fcd8]
cmp eax, ebx
je 0x418d89
push eax
call fcn.00412d5f
pop ecx
test eax, eax
je 0x418d89
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418d89
mov eax, dword [0x44fcdc]
cmp eax, ebx
je 0x418d89
push eax
call fcn.00412d5f
pop ecx
test eax, eax
je 0x418d89
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44fcd4]
call fcn.00412d5f
pop ecx
test eax, eax
je 0x418da9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418dab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009b50
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x10009c43
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x10009bdd
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10009bdd
test esi, esi
je 0x10009bdd
mov ebx, dword [0x10073cc8]
lea ecx, [esp + 0x10]
mov esi, dword [0x10073ccc]
add ebx, 0x2a05f200
adc esi, 1
call fcn.10008900
cmp esi, dword [eax + 4]
jg 0x10009bdd
jl 0x10009bad
cmp ebx, dword [eax]
jae 0x10009bdd
xor edx, edx
push 0x10064b87
push 0x10064b87
lea ecx, [edx + 0xb]
call fcn.10012920
add esp, 8
lea ecx, [esp + 0x10]
call fcn.10008900
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x10073cc8], ecx
mov dword [0x10073ccc], eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10009c43
mov edi, dword [0x10073cc8]
lea ecx, [esp + 0x10]
mov esi, dword [0x10073ccc]
add edi, 0x2a05f200
adc esi, 1
call fcn.10008900
cmp esi, dword [eax + 4]
jg 0x10009c43
jl 0x10009c13
cmp edi, dword [eax]
jae 0x10009c43
xor edx, edx
push 0x10064b87
push 0x10064b87
lea ecx, [edx + 0xb]
call fcn.10012920
add esp, 8
lea ecx, [esp + 0x10]
call fcn.10008900
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x10073cc8], ecx
mov dword [0x10073ccc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x1000f796
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x1000f785
jg 0x1000f6f0
test edx, edx
je 0x1000f785
nop dword [eax]
call fcn.1000dae0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000f744
jg 0x1000f707
test esi, esi
je 0x1000f744
cmp ebx, eax
jg 0x1000f717
jl 0x1000f711
cmp edi, esi
jae 0x1000f717
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.10033b90
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1000f769
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x1000f77f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x1000f6f0
jl 0x1000f77f
test edi, edi
jne 0x1000f6f0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 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 + 0x10], eax
test eax, eax
je 0x1000f7b8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x1000f7ba
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x1000f838
jg 0x1000f7cd
test esi, esi
je 0x1000f838
test eax, eax
jl 0x1000f81c
jg 0x1000f7d7
test ebx, ebx
je 0x1000f81c
cmp edi, eax
jg 0x1000f7e7
jl 0x1000f7e1
cmp esi, ebx
jae 0x1000f7e7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.10033b90
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x1000f838
jg 0x1000f81f
test esi, esi
je 0x1000f838
jmp 0x1000f81f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1000f838
push eax
push esi
push 1
push edx
call fcn.10039274
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 0x1000fd90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1007105c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000fdc0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003213a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000fdfc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000fdfc
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 [ebp - 4]
xor ecx, ebp
call fcn.1003213a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1000fee4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000fe24
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 0x1000fe57
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10038832
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003213a
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x1000feb7
sub eax, 1
je 0x1000feb7
sub eax, 2
jne 0x1000fee4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.10038832
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003213a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000fed4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10039274
add esp, 0x10
cmp edi, eax
jne 0x1000fee4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x1000fde7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003213a
mov esp, ebp
pop ebp
ret 4
Function at 0x100107a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007105c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1001085a
cmp byte [esi + 0x3d], 0
je 0x1001085a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10010848
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10010810
sub eax, 1
je 0x10010814
sub eax, 2
jne 0x10010848
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003213a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10010831
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10039274
add esp, 0x10
cmp edi, eax
jne 0x10010848
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003213a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003213a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1003213a
mov esp, ebp
pop ebp
ret

Function at 0x10010d00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056aa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1007105c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10032212
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1001e615
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret