joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d044
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44d1ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44d1d0
mov dl, 1
mov eax, dword [0x411a7c]
call fcn.00403104
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f0c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44d1bf
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043b078
test al, al
je 0x44d1b2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44d200
lea eax, [ebp - 0x254]
call fcn.004089d0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d1b2
xor eax, eax
push ebp
push 0x44d1ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44d238
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d194
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040417c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44d194
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040417c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d1b2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44d0b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415558
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d1f6
lea eax, [ebp - 0x260]
call fcn.00403f0c
ret

Function at 0x44db24
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x469bb4]
cmp byte [eax + 0xa5], 0
jne 0x44db95
cmp dword [0x469bcc], 0
jne 0x44db56
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44dae0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x469bcc], eax
cmp dword [0x469bc8], 0
jne 0x44db71
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x469bc8], eax
cmp dword [0x469bd0], 0
jne 0x44db95
push esp
push 0
push 0
push 0x44da84
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x469bd0], eax
pop edx
ret
Function at 0x44dc8c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44dca3
add esp, 0xfffffff0
call fcn.00403458
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419368
mov eax, dword [0x468890]
cmp word [eax + 2], 0
jne 0x44dccb
mov eax, dword [0x468890]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f1e0
mov eax, dword [0x46893c]
cmp word [eax + 2], 0
jne 0x44dce5
mov eax, dword [0x46893c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f3d8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411660]
call fcn.00403104
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411660]
call fcn.00403104
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b7cc]
call fcn.00422c1c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44de6c
mov eax, dword [0x4687bc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422fec
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44f978
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4687bc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c098
test eax, eax
je 0x44ddda
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004083b0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c0c0
test eax, eax
je 0x44ddee
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040417c
mov eax, dword [0x4686ac]
cmp byte [eax], 0
jne 0x44de22
mov eax, ebx
call fcn.0044df94
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044fb54
mov eax, ebx
call fcn.00450518
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44de62
call fcn.004034b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e214
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x469bb4]
cmp dword [eax + 0x30], 0
je 0x44e2be
cmp dword [ebx + 0x94], 0
jne 0x44e2b8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e1a4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e2b8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44e27e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e2b8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004139c8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e28d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ee20
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44ee55
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ffc
jmp 0x44ee62
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f60
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44fd30
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44fd71
mov eax, esi
call fcn.004366a4
test al, al
je 0x44fd71
mov eax, dword [ebx + 0x84]
call fcn.004363cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44fd71
push 0
mov eax, dword [ebx + 0x84]
call fcn.004363cc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45508c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4550ba
mov eax, ebx
call fcn.00455b40
cmp dword [ebx + 0x40], 0
je 0x4550b3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45512b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45511d
cmp dword [ebx + 8], 0
je 0x4550dc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4550ee
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45511d
cmp dword [ebx + 8], 0
je 0x4550cf
cmp eax, 3
je 0x455101
dec eax
jne 0x4550cf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4550cf
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4550cf
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x455149
cmp dword [ebx + 0x14], 0xcc
je 0x455149
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00455154
pop ebx
ret
Function at 0x4011b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4011d6
call fcn.00401060
test eax, eax
js 0x4011e3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x403170
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x411024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x4031a3
push 0
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi], 0
push 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40323a
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.Agent_d
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00402fd0
add esp, 0x10
lea eax, [ebp - 0x84]
test byte [ebp - 0x88], 4
push 0x10000000
push 0
push 0
jne 0x40320c
push 4
jmp 0x40320e
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
je 0x40323a
push 0x403c40
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
jne 0x40324b
push dword [esi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004097bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004097bf
mov esp, ebp
pop ebp
ret
Function at 0x403d76
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov esi, dword [ebx]
mov eax, esi
xor eax, dword [ebp + 8]
mov edx, dword [ebx + 8]
movzx eax, al
shr esi, 8
mov eax, dword [edi + eax*4]
xor eax, esi
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx ecx, al
mov eax, dword [ebp + 8]
xor edx, dword [edi + ecx*4]
pop edi
pop esi
mov dword [ebx + 8], edx
pop ebx
pop ebp
ret

Function at 0x404328
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x4090], 0
je 0x404395
cmp dword [edi + 0x6c], 0
jbe 0x404395
mov eax, 0xffffff78
lea ecx, [edi + 0x4094]
push ebx
sub eax, edi
lea ebx, [edi + 0x88]
push esi
mov dword [ebp - 4], eax
mov esi, dword [edi + 0x409c]
movzx eax, byte [ebx]
and esi, 0xfffd
mov edx, dword [edi + 0x40a0]
or esi, 2
push eax
call fcn.00403d76
mov eax, esi
xor eax, 1
imul eax, esi
pop ecx
lea ecx, [edi + 0x4094]
shr eax, 8
xor byte [ebx], al
inc ebx
mov eax, dword [ebp - 4]
add eax, ebx
cmp eax, dword [edi + 0x6c]
jb 0x404356
pop esi
pop ebx
push dword [edi + 0x6c]
lea eax, [edi + 0x88]
push eax
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
xor ecx, ecx
or edx, 0xffffffff
cmp eax, dword [edi + 0x6c]
cmovne ecx, edx
and dword [edi + 0x6c], 0
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4044b4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 8], 0
push edi
mov edi, ecx
test edi, edi
jne 0x4044d3
push 0xffffffffffffff9a
pop eax
jmp 0x40468a
cmp dword [edi + 0x2c], eax
je 0x4044cb
and dword [edi + 0x34], eax
cmp dword [edi + 0x80], 8
push ebx
push esi
jne 0x404525
cmp dword [edi + 0x84], eax
jne 0x404525
cmp dword [edi + 0x40], 0
jne 0x40450b
mov ecx, edi
call fcn.00404328
lea eax, [edi + 0x88]
mov dword [edi + 0x40], 0x4000
mov dword [edi + 0x3c], eax
mov esi, dword [edi + 0x44]
lea ecx, [edi + 0x30]
push 4
pop edx
call fcn.00404ddf
mov ecx, dword [edi + 0x44]
sub ecx, esi
add dword [edi + 0x6c], ecx
test eax, eax
je 0x4044ee
xor ecx, ecx
cmp eax, 1
cmovne ecx, eax
or ebx, 0xffffffff
cmp dword [edi + 0x6c], 0
mov esi, ecx
jbe 0x404548
test ecx, ecx
jne 0x404548
mov ecx, edi
call fcn.00404328
cmp eax, ebx
cmove esi, ebx
cmp dword [edi + 0x80], 8
jne 0x404568
cmp dword [edi + 0x84], 0
jne 0x404580
lea ecx, [edi + 0x30]
call fcn.00405511
and dword [edi + 0x68], 0
mov esi, eax
cmp dword [edi + 0x84], 0
jne 0x404580
mov eax, dword [edi + 0x408c]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov ecx, dword [edi + 0x74]
mov ebx, dword [edi + 0x40a4]
add ecx, 0x10
mov edx, dword [ebp - 4]
add ebx, dword [edi + 0x44]
push 4
call fcn.00403ed7
mov ecx, dword [edi + 0x74]
mov edx, ebx
push 4
add ecx, 0x14
call fcn.00403ed7
cmp dword [edi + 0x5c], 1
pop ecx
pop ecx
jne 0x4045c1
mov ecx, dword [edi + 0x74]
xor edx, edx
push 2
add ecx, 0x24
inc edx
call fcn.00403ed7
pop ecx
mov ecx, dword [edi + 0x74]
mov edx, dword [ebp - 8]
add ecx, 0x18
push 4
call fcn.00403ed7
pop ecx
test esi, esi
jne 0x4045e7
push dword [edi + 0x78]
mov edx, dword [edi + 0x74]
lea ecx, [edi + 0x24]
call fcn.00403ddf
pop ecx
mov esi, eax
push dword [edi + 0x74]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x40467c
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 0xc]
mov ecx, dword [edi + 0x70]
push esi
add ecx, 0xe
mov dword [ebp - 0xc], eax
push ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 0x10]
add esp, 0x18
test eax, eax
je 0x404624
or ebx, 0xffffffff
mov esi, ebx
jmp 0x404666
mov edx, dword [edi + 0x20]
mov ecx, edi
push 4
push dword [ebp - 4]
call fcn.00403e7b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x404663
mov edx, dword [edi + 0x20]
mov ecx, edi
push 4
push ebx
call fcn.00403e7b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x404663
mov edx, dword [edi + 0x20]
mov ecx, edi
push 4
push dword [ebp - 8]
call fcn.00403e7b
pop ecx
pop ecx
mov esi, eax
or ebx, 0xffffffff
push 0
push dword [ebp - 0xc]
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 0x10]
add esp, 0x10
test eax, eax
cmovne esi, ebx
inc dword [edi + 0x40b0]
mov eax, esi
and dword [edi + 0x2c], 0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40582d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, ebx
sub edx, dword [edi + 0x6c]
mov dword [ebp - 0xc], edx
cmp dword [edi + 0x6c], eax
jb 0x4058cc
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov edi, ecx
mov dword [ebp - 8], ecx
lea esi, [eax + ecx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x405881
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x40]
mov edi, ebx
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x4058a8
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
add edx, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x405987
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4058f9
xor eax, eax
jmp 0x40594a
sub eax, ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x405916
mov edx, dword [esi]
push ecx
mov ecx, dword [esi + 0x30]
call fcn.004062b5
jmp 0x40592e
cmp eax, 2
jne 0x405932
mov edx, dword [esi]
test edx, edx
jne 0x405925
xor eax, eax
jmp 0x40592f
push ecx
mov ecx, dword [esi + 0x30]
call fcn.004048ee
pop ecx
mov dword [esi + 0x30], eax
push dword [ebp - 8]
push dword [esi]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [esi], eax
add dword [esi + 8], eax
add dword [edi + 0x74], eax
cmp dword [edi + 0x74], 3
jb 0x405972
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp dword [edi + 0x74], 0x106
jae 0x405987
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x40583e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000db20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d6e6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1008ab18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
cmp dword [eax + 0x16], 0
je 0x1000dc4f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.1005bb9b
mov edi, dword [esi + 4]
mov dword [ebp - 4], 0
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::getBinary_void_
cmp dword [edi + 0x12], eax
mov eax, edi
setne cl
cmp byte [ebp + 0xc], 0
je 0x1000db90
test cl, cl
je 0x1000db90
push dword [edi + 0x26]
lea ecx, [ebp - 0x10]
call fcn.1005bb9b
mov eax, dword [esi + 4]
push dword [eax + 0x12]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.1005bb9b
mov edi, eax
test edi, edi
jne 0x1000dbd0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000dbd0
mov eax, dword [esi + 4]
push dword [eax + 0x16]
push 1
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, 0x34
cmp eax, 1
cmovne edi, ecx
mov eax, dword [esi + 4]
push dword [eax + 0x16]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
mov eax, dword [esi + 4]
push dword [eax + 0x16]
je 0x1000dc14
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 4
lea ecx, [ebp - 0x10]
mov edi, 0x34
call fcn.1005bb9b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov ecx, dword [esi + 4]
add esp, 4
cmp edx, dword [ecx + 0x1e]
jl 0x1000dc32
jg 0x1000dc2c
cmp eax, dword [ecx + 0x1a]
jbe 0x1000dc32
mov dword [ecx + 0x1a], eax
mov dword [ecx + 0x1e], edx
lea ecx, [ebp - 0x10]
call fcn.1005bb9b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x32
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1000dda0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d70c
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x1008ab18]
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 ebx, ecx
mov dword [ebp - 0x820], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x814], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10063304]
mov ecx, ebx
call esi
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x82c]
push eax
mov eax, dword [ebx + 4]
add eax, 4
push eax
call fcn.1005bb9b
add esp, 0xc
test eax, eax
jne 0x1000dfa4
push 0x100675e0
push dword [ebx + 4]
call fcn.1005bb9b
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000dfa9
mov eax, dword [ebx + 4]
push 2
push 0
push 0
mov edi, dword [eax + 0x16]
push edi
mov dword [ebp - 0x824], edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
test eax, eax
jne 0x1000de74
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
push 0
push 0
push 0
push edi
mov esi, eax
mov ebx, edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x14
test eax, eax
je 0x1000de8f
mov ebx, dword [ebp - 0x820]
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10063304]
mov ecx, ebx
call esi
mov eax, 0x34
jmp 0x1000dfab
push dword [ebp - 0x814]
lea ecx, [ebp - 0x81c]
call fcn.1005bb9b
push 0x100675f0
push dword [ebp - 0x818]
mov dword [ebp - 4], 0
call fcn.1005bb9b
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000df79
mov eax, dword [ebp - 0x818]
mov eax, dword [eax + 0x16]
mov dword [ebp - 0x814], eax
mov eax, esi
or eax, ebx
je 0x1000df39
mov eax, 0x800
nop
push dword [ebp - 0x824]
cmp esi, 0x800
mov edi, esi
push 1
cmova edi, eax
lea eax, [ebp - 0x810]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000df9d
push dword [ebp - 0x814]
lea eax, [ebp - 0x810]
push 1
push edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000df9d
sub esi, edi
mov eax, esi
sbb ebx, 0
or eax, ebx
mov eax, 0x800
jne 0x1000dee0
lea ecx, [ebp - 0x81c]
call sym.ScCore.dll_public_virtual:_int___thiscall_ScCore::File::close_void_
mov edi, eax
test edi, edi
jne 0x1000df79
mov eax, dword [ebp - 0x818]
add eax, 4
push eax
call fcn.1005bb9b
push dword [ebp - 0x828]
mov eax, dword [ebp - 0x818]
push dword [ebp - 0x82c]
add eax, 4
push eax
call fcn.10033b10
add esp, 0x10
mov edi, eax
mov ebx, dword [ebp - 0x820]
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10063304]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x81c]
call sym.ScCore.dll_public_virtual:_void___thiscall_ScCore::File::destructor_void_
jmp 0x1000dfa9
mov edi, 0x34
jmp 0x1000df79
mov edi, 0x30
mov eax, edi
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.1005a9e0
mov esp, ebp
pop ebp
ret 4
Function at 0x10010020
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0
call fcn.1005bb9b
cwde
test eax, eax
je 0x10010052
mov ecx, dword [esi]
and al, 3
pop esi
cmp al, 2
jne 0x10010049
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033360
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033590
mov eax, 0x30
pop esi
pop ebp
ret