joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e8f0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push 1
push str.MBSetup
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
jne 0x45e9e4
lea ecx, [ebp - 0x30]
call fcn.0045e700
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x45e94d
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94e0
call fcn.004104f0
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_setuputilities.cpp
mov ecx, eax
call fcn.0040f6d0
mov edx, 0x4c8124
mov ecx, eax
call fcn.0040f6d0
push 0x231
mov ecx, eax
call fcn.0040dcd0
mov edx, str.:_Error_on_WinHttpOpen:
mov ecx, eax
call fcn.0040f6d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004194b0
push eax
call fcn.0040fa40
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x45e9e0
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e9d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ea66
push edx
push ecx
call fcn.0046e3a3
add esp, 8
xor eax, eax
jmp 0x45ea4b
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 0x14]
push 4
push eax
push 0x54
push edi
mov dword [ebp - 0x18], 0x2a0
mov dword [ebp - 0x14], 0xaa0
call esi
test eax, eax
jne 0x45ea49
push 4
lea eax, [ebp - 0x18]
push eax
push 0x54
push edi
call esi
test eax, eax
jne 0x45ea49
mov edx, str.Error_on_WinHttpSetOption_SECURE_PROTOCOLS_:
mov ecx, 0x4e94e0
call fcn.0040f6d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004194b0
push eax
call fcn.0040fa40
add esp, 4
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x45ea4b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046de82
mov esp, ebp
pop ebp
ret
call fcn.004892fc
int3
Function at 0x471006
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x49fbdb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049f882

Function at 0x49fbe6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049fa0c
Function at 0x40ca60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40ca82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ca89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ca78
mov eax, 1
add ebx, ebx
jne 0x40ca9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ca90
jne 0x40caac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ca90
xor ecx, ecx
sub eax, 3
jb 0x40cac0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40cb32
mov ebp, eax
add ebx, ebx
jne 0x40cacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40cad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40cafc
inc ecx
add ebx, ebx
jne 0x40cae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40cadd
jne 0x40caf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cadd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40cb1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40cb0d
jmp 0x40ca7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40cb1c
add edi, ecx
jmp 0x40ca7e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40cb7b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe99c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe9f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40cb39
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe9fc]
or eax, eax
je 0x40cb75
mov dword [ebx], eax
add ebx, 4
jmp 0x40cb56
call dword [esi + 0xe9f8]
mov ebp, dword [esi + 0xea00]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40cbaf
sub esp, 0xffffff80
jmp 0x401978

Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, reloc.glu32.dll_gluQuadricTexture
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x10001340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005877
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x10009040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x414], edi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x41c]
mov dword [ebp - 4], 0
push ecx
push 0xf003f
push 0
push eax
push 0x80000001
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001420
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.10003fd0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
ret
Function at 0x10001ce0
Capabilities:
Delete registry value
Encode data using xor
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4268
call fcn.10005810
mov eax, dword [0x10009040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
test eax, eax
je 0x10001e88
movaps xmm0, xmmword [0x100063c0]
xor ecx, ecx
mov dword [ebp - 0x4248], 0
movups xmmword [ebp - 0x4264], xmm0
mov dword [ebp - 0x4254], 0x413313d
mov dword [ebp - 0x4250], 0x5000e0d
mov byte [ebp - 0x424c], 0
mov al, byte [ebp - 0x4264]
xor byte [ebp + ecx - 0x4263], al
inc ecx
cmp ecx, 0x17
jb 0x10001d41
lea eax, [ebp - 0x4248]
mov byte [ebp - 0x424c], 0
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x4263]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001e88
push 0x103
push eax
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x113]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4220], 0x104
lea eax, [ebp - 0x4244]
mov dword [ebp - 0x421c], 0
push eax
lea eax, [ebp - 0x422c]
push eax
lea eax, [ebp - 0x4230]
push eax
lea eax, [ebp - 0x4234]
push eax
lea eax, [ebp - 0x4218]
push eax
lea eax, [ebp - 0x4238]
push eax
lea eax, [ebp - 0x423c]
push eax
lea eax, [ebp - 0x421c]
push eax
push 0
lea eax, [ebp - 0x4220]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x4248]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x4218]
test eax, eax
je 0x10001e88
xor esi, esi
test eax, eax
je 0x10001e88
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
lea eax, [ebp - 0x4224]
mov dword [ebp - 0x4228], 0x3fff
push eax
lea eax, [ebp - 0x214]
mov byte [ebp - 0x4214], 0
push eax
push 0
push 0
lea eax, [ebp - 0x4228]
mov dword [ebp - 0x4224], 0xff
push eax
lea eax, [ebp - 0x4214]
push eax
push esi
push dword [ebp - 0x4248]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x10001e7f
push 0x10
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
add esp, 0xc
cmp eax, edi
je 0x10001e9d
inc esi
cmp esi, dword [ebp - 0x4218]
jb 0x10001e20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x4214]
push eax
push dword [ebp - 0x4248]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004994
mov esp, ebp
pop ebp
ret 4
Function at 0x10001ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, edx
mov byte [ebp - 0x10], 0x31
mov al, 0x44
xor al, byte [ebp - 0x10]
mov cl, 0x42
xor cl, byte [ebp - 0x10]
mov ah, 0x43
mov byte [ebp - 0xf], al
mov ch, 2
mov byte [ebp - 0xe], cl
mov bl, 0x54
mov cl, byte [ebp - 0x10]
mov bh, 3
mov byte [ebp - 1], 0x5d
xor ah, cl
mov al, byte [ebp - 1]
xor bl, cl
xor al, cl
mov byte [ebp - 2], 0x5d
mov byte [ebp - 7], al
xor ch, cl
mov al, byte [ebp - 2]
xor bh, cl
mov byte [ebp - 0xc], ah
xor al, cl
mov byte [ebp - 5], 0
mov dl, 0x1f
mov byte [ebp - 6], al
mov dh, 0x55
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0xf]
mov byte [ebp - 0xb], ch
xor dl, cl
mov byte [ebp - 0xa], bh
xor dh, cl
mov byte [ebp - 9], dl
push eax
mov byte [ebp - 8], dh
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x10001ffd
movaps xmm0, xmmword [0x100063d0]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x1124253f
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x13
jb 0x10001f68
lea eax, [ebp - 0x27]
mov byte [ebp - 0x14], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword fs:[0x2c]
mov esi, eax
mov edx, dword [0x1038e464]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1038e4a0]
cmp ecx, dword [edx + 4]
jle 0x10001fcd
push 0x1038e4a0
call fcn.100049f3
add esp, 4
cmp dword [0x1038e4a0], 0xffffffff
jne 0x10001fcd
push 0x1038e4a0
mov dword [0x1038e4a4], esi
call fcn.100049a2
add esp, 4
call fcn.10001290
push 0
push 0xc8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [0x1038e4a4]
test eax, eax
je 0x10001ffd
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002010
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10009040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov cl, 0x6f
mov dword [ebp - 0x40], eax
mov ch, 0x2c
push ebx
mov byte [ebp - 0x38], 2
mov al, 0x6b
xor al, byte [ebp - 0x38]
mov bl, cl
mov dword [ebp - 0x44], edx
mov bh, 0x6e
mov byte [ebp - 0x37], al
mov dl, 0x31
mov al, byte [ebp - 0x38]
mov ah, 0x30
xor cl, al
mov byte [ebp - 0x29], bh
xor bl, al
mov byte [ebp - 0x2e], 0
xor dl, al
mov byte [ebp - 0x36], cl
xor ah, al
mov byte [ebp - 0x35], bl
xor ch, al
mov byte [ebp - 0x33], ah
xor bh, al
mov byte [ebp - 0x34], dl
mov dh, 0x66
mov byte [ebp - 0x32], ch
xor dh, al
mov byte [ebp - 0x30], bh
mov al, byte [ebp - 0x29]
xor al, byte [ebp - 0x38]
push esi
mov byte [ebp - 0x2f], al
lea eax, [ebp - 0x37]
push edi
push eax
mov byte [ebp - 0x31], dh
mov byte [ebp - 0x2e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x1000217c
movaps xmm0, xmmword [str.3zz__GR__zvd]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x100020a1
lea eax, [ebp - 0x53]
mov byte [ebp - 0x45], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword fs:[0x2c]
mov ebx, eax
mov edx, dword [0x1038e464]
mov dword [ebp - 0x3c], ebx
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1038e4b4]
cmp ecx, dword [edx + 4]
jle 0x10002109
push 0x1038e4b4
call fcn.100049f3
add esp, 4
cmp dword [0x1038e4b4], 0xffffffff
jne 0x10002109
push 0x1038e4b4
mov dword [0x1038e4b0], ebx
call fcn.100049a2
add esp, 4
call fcn.10001290
test al, al
je 0x1000215d
mov esi, dword [0x1038e4b0]
lea eax, [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x24], 0x8b55ff8b
call ebx
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
mov dword [esi], edi
push 4
push esi
call ebx
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
push eax
push 0x40
push 4
push esi
call ebx
lea eax, [ebp - 0x28]
mov dword [esi], edi
push eax
push dword [ebp - 0x28]
push 4
push esi
call ebx
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call dword [0x1038e4b0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004994
mov esp, ebp
pop ebp
ret 4
Function at 0x10002aa0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005a0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x10009040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.10004b79
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
add esp, 4
mov dword [eax], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.100017d0
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10002b42
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10002b78
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002b6e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002b6e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10004ba9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10003550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000357c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
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 + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x100035a4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100035aa
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10003612
jg 0x100035c1
test esi, esi
je 0x10003612
test ecx, ecx
jl 0x1000360d
jg 0x100035cb
test eax, eax
je 0x1000360d
cmp edi, ecx
jg 0x100035df
jl 0x100035d5
cmp esi, eax
jae 0x100035df
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10003615
mov ecx, dword [ebp + 8]
jmp 0x1000361f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10003639
jg 0x1000361f
test esi, esi
je 0x10003639
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10003639
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1000367c
jl 0x10003670
test ecx, ecx
jne 0x1000367c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10003695
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x100036e3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x100036e9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x100036e9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10003756
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10003712
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10003744
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10003756
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10003720
test edi, edi
je 0x10003756
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10009040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10003b00
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10003b3c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10003b3c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10003c13
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10003b64
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 0x10003b70
movsx eax, bl
jmp 0x10003ba8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
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 [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10003bd2
sub eax, 1
je 0x10003bd2
sub eax, 2
jne 0x10003c13
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003bf0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10003c13
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004994
mov esp, ebp
pop ebp
ret 4