joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44db98
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 0x44dd43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44dd24
mov dl, 1
mov eax, dword [0x414e34]
call fcn.004030fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e64
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44dd13
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.0043bb84
test al, al
je 0x44dd06
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, 0x44dd54
lea eax, [ebp - 0x254]
call fcn.00408a8c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44dd06
xor eax, eax
push ebp
push 0x44dcff
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 0x44dd8c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44dce8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040d4
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 0x44dce8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44dd06
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44dc09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418944
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 0x44dd4a
lea eax, [ebp - 0x260]
call fcn.00403e64
ret

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

Disassembly:
push ecx
mov eax, dword [0x458bb4]
cmp byte [eax + 0xa5], 0
jne 0x44e731
cmp dword [0x458bcc], 0
jne 0x44e6f2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e67c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458bcc], eax
cmp dword [0x458bc8], 0
jne 0x44e70d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458bc8], eax
cmp dword [0x458bd0], 0
jne 0x44e731
push esp
push 0
push 0
push 0x44e620
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458bd0], eax
pop edx
ret
Function at 0x44e828
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44e83f
add esp, 0xfffffff0
call fcn.00403438
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c754
mov eax, dword [0x456fc4]
cmp word [eax + 2], 0
jne 0x44e867
mov eax, dword [0x456fc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ff00
mov eax, dword [0x457078]
cmp word [eax + 2], 0
jne 0x44e881
mov eax, dword [0x457078]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004500f8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414a18]
call fcn.004030fc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414a18]
call fcn.004030fc
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 [0x41e928]
call fcn.00424570
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ea08
mov eax, dword [0x456ed4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424940
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x450698
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x456ed4]
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.0040c144
test eax, eax
je 0x44e976
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408480
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c16c
test eax, eax
je 0x44e98a
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.004040d4
mov eax, dword [0x456dc0]
cmp byte [eax], 0
jne 0x44e9be
mov eax, ebx
call fcn.0044eb30
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.00450874
mov eax, ebx
call fcn.00451238
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e9fe
call fcn.00403490
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44edb0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458bb4]
cmp dword [eax + 0x30], 0
je 0x44ee5a
cmp dword [ebx + 0x94], 0
jne 0x44ee54
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44ed40
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44ee54
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 0x44ee1a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44ee54
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.00416db4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44ee29
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44f9bc
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 0x44f9f1
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.00403f54
jmp 0x44f9fe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403eb8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450a50
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450a91
mov eax, esi
call fcn.0043738c
test al, al
je 0x450a91
mov eax, dword [ebx + 0x84]
call fcn.00437088
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450a91
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437088
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov word [0x10003036], ax
xor edi, edi
movzx ecx, word [eax + 0x10002034]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x10001161
push 1
push edi
push edi
mov ebx, 0x10003030
push ebx
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x10001191
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push edi
cmp eax, 0xffffffff
jne 0x100011e4
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x4134f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4218
call fcn.004fa330
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x4000
lea eax, [ebp - 0x420c]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.004bcaf0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41352d
mov eax, dword [esi]
lea ecx, [ebp - 0x4210]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x413612
cmp eax, 0x3fff
ja 0x413612
cmp dword [esi + 0x14], 8
jb 0x413556
mov esi, dword [esi]
lea ecx, [ebp - 0x420c]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x413612
lea eax, [ebp - 0x4214]
push eax
lea eax, [ebp - 0x4218]
push eax
push 0x51c798
lea eax, [ebp - 0x420c]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x413612
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004bcaf0
mov ecx, dword [ebp - 0x4218]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.0041a950
lea edx, [ebp - 0x20c]
add esp, 0x28
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4135e2
sub edx, esi
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.0041a5b0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
Function at 0x419a40
Capabilities:
Check if file exists

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 0x4fbc19
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
sub esp, 0x18
mov dword [ebp - 4], eax
mov ecx, esp
mov dword [ebp - 0x90], esp
push eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push 0x51c79c
mov word [ecx], ax
call fcn.0041a5b0
mov byte [ebp - 4], 1
mov edx, 0x53cbdc
cmp dword [0x53cbf0], 8
cmovae edx, dword [0x53cbdc]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419af0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041a5b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0
push eax
push 0x80000002
call fcn.00415f10
test al, al
je 0x419c2f
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419c2f
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
cmp dword [0x53cc08], 8
mov eax, 0x53cbf4
push dword [0x53cc04]
cmovae eax, dword [0x53cbf4]
push eax
call fcn.0041a5b0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], 0xe
call fcn.0041a5b0
push 1
push 0x53cc24
push 0x53cc0c
call fcn.004176e0
mov esi, dword [0x53cd90]
mov byte [ebp - 0x54], al
lea eax, [ebp - 0x88]
push eax
cmp dword [0x53cd94], esi
je 0x419c19
mov ecx, esi
mov dword [ebp - 0x8c], esi
call fcn.0041a300
mov byte [ebp - 4], 3
lea ecx, [esi + 0x1c]
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0041a300
movups xmm0, xmmword [ebp - 0x50]
mov al, byte [ebp - 0x54]
mov byte [esi + 0x34], al
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [esi + 0x48], xmm0
add dword [0x53cd90], 0x58
jmp 0x419c24
push esi
mov ecx, 0x53cd8c
call fcn.0041ae90
lea ecx, [ebp - 0x88]
call fcn.004136b0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x419c65
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419c5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419c85
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004c5929
int3
Function at 0x419c90
Capabilities:
Check if file exists

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 0x4fbc19
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
sub esp, 0x18
mov dword [ebp - 4], eax
mov ecx, esp
mov dword [ebp - 0x90], esp
push eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push 0x51c79c
mov word [ecx], ax
call fcn.0041a5b0
mov byte [ebp - 4], 1
mov edx, 0x53cc3c
cmp dword [0x53cc50], 8
cmovae edx, dword [0x53cc3c]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419d40
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041a5b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0
push eax
push 0x80000002
call fcn.00415f10
test al, al
je 0x419e7f
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419e7f
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
cmp dword [0x53cc68], 8
mov eax, 0x53cc54
push dword [0x53cc64]
cmovae eax, dword [0x53cc54]
push eax
call fcn.0041a5b0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], 0x12
call fcn.0041a5b0
push 1
push 0x53cc84
push 0x53cc6c
call fcn.004176e0
mov esi, dword [0x53cd90]
mov byte [ebp - 0x54], al
lea eax, [ebp - 0x88]
push eax
cmp dword [0x53cd94], esi
je 0x419e69
mov ecx, esi
mov dword [ebp - 0x8c], esi
call fcn.0041a300
mov byte [ebp - 4], 3
lea ecx, [esi + 0x1c]
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0041a300
movups xmm0, xmmword [ebp - 0x50]
mov al, byte [ebp - 0x54]
mov byte [esi + 0x34], al
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [esi + 0x48], xmm0
add dword [0x53cd90], 0x58
jmp 0x419e74
push esi
mov ecx, 0x53cd8c
call fcn.0041ae90
lea ecx, [ebp - 0x88]
call fcn.004136b0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x419eb5
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419eab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419ed5
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004c5929
int3
Function at 0x41f2a0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc3cf
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x53000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0
mov dword [ebx], 0x51cc48
mov dword [ebx + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0x18], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov esi, dword [eax + 4]
add esi, ebx
mov ecx, esi
call fcn.0041c8c0
mov eax, dword [esi + 0x30]
lea edi, [ebx + 0x10]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 2
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 3
push eax
call fcn.00420a90
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x11], al
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x41f385
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x41f385
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp - 0x11]
mov byte [ebp - 4], 1
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x41f3a5
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.0041c840
mov dword [ebp - 4], 5
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], edi
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0048e9bb
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 6
call fcn.0048fef4
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 4
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push 0
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.004207f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41f740
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 0x41f76b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041ff90
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 0x41f78d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41f78f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x41f813
jg 0x41f7a4
test esi, esi
je 0x41f813
test ecx, ecx
jl 0x41f7ed
jg 0x41f7ae
test eax, eax
je 0x41f7ed
cmp edi, ecx
jg 0x41f7c2
jl 0x41f7b8
cmp esi, eax
jae 0x41f7c2
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.004bcd60
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 0x41f7f0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41f813
jg 0x41f7fa
test esi, esi
je 0x41f813
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41f813
push eax
push esi
push 1
push edx
call fcn.004cce6b
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 0x41f830
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 0x41f85b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420070
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 0x41f87d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41f87f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x41f91e
jg 0x41f89c
test esi, esi
je 0x41f91e
test ecx, ecx
jl 0x41f8e9
jg 0x41f8a6
test eax, eax
je 0x41f8e9
cmp ebx, ecx
jg 0x41f8ba
jl 0x41f8b0
cmp esi, eax
jae 0x41f8ba
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.004bcd60
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 0x41f8f0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x41f91e
jg 0x41f8fa
test esi, esi
je 0x41f91e
cmp dword [edi + 0x4c], 0
je 0x41f91e
mov ecx, edi
call fcn.00420700
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004cd08f
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