joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460a50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x460aa3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00441f5c
test al, al
je 0x460aa3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00441a8c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460aa3
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00441a8c
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x46e6dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048e8
xor eax, eax
push ebp
push 0x46e736
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x46e720
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004048f8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x21
setae bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e73d
lea eax, [ebp - 4]
call fcn.00404438
ret
Function at 0x4079ad
Capabilities:
Identify system language via api

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0042f100
push dword [esp + 0xc]
call fcn.004176e0
push edx
call fcn.0042ef90
pop edx
push eax
push edx
call fcn.0042ef90
pop edx
push eax
call sub.KERNEL32.dll_GetUserDefaultLangID
cdq
push edx
push eax
call fcn.0042cc20
lea eax, [esp + 4]
push eax
call fcn.0042f030
push dword [esp]
call fcn.0042cca0
mov ebx, eax
cmp ebx, 3
jne 0x407a1c
push edx
call fcn.0042ef90
pop edx
push eax
mov edx, 0x47b40e
push edx
call fcn.0042efd0
mov edx, dword [esp + 4]
push edx
call fcn.0042efd0
lea eax, [esp + 4]
push eax
call fcn.0042f030
mov edx, dword [esp]
push edx
call fcn.0042ef90
pop edx
push eax
push edx
call fcn.0042efd0
pop eax
push eax
call fcn.004176b0
pop edx
add eax, edx
jmp 0x407a43
push dword [esp]
call fcn.0042f190
add esp, 4
pop ebx
ret
Function at 0x417e11
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x417ea9
push edi
push 0x5770d4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x5762b8]
test edi, edi
je 0x417e7d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x417e76
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x5762b8
call fcn.0042ee77
pop ecx
pop ecx
jmp 0x417e78
mov edi, dword [edi]
test edi, edi
jne 0x417e4d
pop ebx
mov eax, dword [0x5727f4]
mov esi, eax
inc eax
push 0x10
push 0x5762b8
mov dword [0x5727f4], eax
call fcn.0042eeb7
pop ecx
pop ecx
push 0x5770d4
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x418cb5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x418d0a
push dword [esp + 0x10]
push 0x418c34
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x576304]
test esi, esi
je 0x418d63
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x418d02
cmp byte [esi + 0x10], 0
je 0x418d02
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x418cde
jmp 0x418d63
mov esi, dword [0x576304]
test esi, esi
je 0x418d63
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x418d5c
cmp byte [esi + 0x11], 0
je 0x418d38
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x418d4f
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x576304
call fcn.0042ee77
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x418d17
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x418e67
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x577428]
call fcn.0042e496
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x418f67
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x418ebd
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x418eb5
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x418efd
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x418f3f
push 0x22
pop edx
cmp cx, dx
je 0x418eef
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x418edf
xor ecx, ecx
cmp word [eax], cx
je 0x418f3f
mov ecx, eax
add eax, 2
jmp 0x418f41
test dx, dx
je 0x418f47
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x418eef
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x418f35
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x418f3f
cmp cx, dx
je 0x418f32
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x418f22
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x418f07
jmp 0x418eef
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x418f49
xor edx, edx
cmp dword [ebp], ebx
jne 0x418f52
test edi, edi
jne 0x418f6f
test edx, edx
je 0x418f57
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x418eab
test edi, edi
jne 0x418f80
mov eax, ebx
jmp 0x418f84
test esi, esi
je 0x418f80
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x418f84
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41a2af
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push 0x41a1fe
push 0x10
push 0x2c
call fcn.0042e815
xor esi, esi
mov dword [0x576318], eax
push esi
push esi
push 8
call fcn.0042e501
mov dword [0x577450], eax
cmp word [0x576310], si
jne 0x41a398
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x41a307
mov word [0x576310], di
jmp 0x41a30f
xor eax, eax
mov word [0x576310], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x57632c], eax
test eax, eax
je 0x41a397
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x57632c]
mov dword [0x57631c], eax
call esi
push str.getnameinfo
push dword [0x57632c]
mov dword [0x576320], eax
call esi
push str.WSAStringToAddressA
push dword [0x57632c]
mov dword [0x576324], eax
call esi
cmp dword [0x57631c], 0
mov dword [0x576328], eax
je 0x41a397
cmp dword [0x576320], 0
je 0x41a397
cmp dword [0x576324], 0
je 0x41a397
test eax, eax
je 0x41a397
mov dword [0x576314], edi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x41ab90
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x576330], 0
jne 0x41ab9e
call fcn.0041ab30
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x576334]
call esi
test eax, eax
jne 0x41abc1
call fcn.0041ab30
push dword [0x576334]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x41abd0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x41ac30
mov ebx, 0x10
test edi, edi
jns 0x41ac39
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41ac02
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41bda4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x5770c8]
call fcn.0042e742
mov ebx, eax
test ebx, ebx
je 0x41be08
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41bdcd
push dword [esp + 0xc]
push ebx
call eax
jmp 0x41be08
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0042f3f0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0042f4d0
pop edi
pop esi
pop ebx
ret 8

Function at 0x41d0cf
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x577464]
call fcn.0042e496
xor ebx, ebx
mov ebp, eax
cmp dword [0x576598], ebx
jne 0x41d163
mov esi, 0xa4
push esi
push ebx
push 0x5765a0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x5765a4], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x5765a0], 0xa
mov dword [0x5765a8], 0x41cc64
push 0x7f89
push ebx
mov dword [0x576618], 0x41f410
mov dword [0x57661c], 0x41f3ea
mov dword [0x5765ac], 0x41cc83
mov dword [0x576630], 0x41cca3
call esi
mov dword [0x576598], eax
test eax, eax
jne 0x41d163
push 0x7f00
push ebx
call esi
mov dword [0x576598], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0042414c
push ebx
push dword [0x575c18]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x41d22f
push edi
push dword [esp + 0x14]
push dword [0x5770c8]
call fcn.0042e781
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x575c14]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x5765a0
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.0041f359
push 0x41cd89
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x420015
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x5770cc]
call fcn.0042e742
mov esi, eax
test esi, esi
je 0x4200ef
cmp dword [ebp + 0xc], 0
je 0x420061
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x420052
cmp dword [esi + 0x1c], 0
jne 0x420052
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4200ef
test byte [ebp + 0x10], 3
je 0x42007c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004207cc
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4200a1
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4200b5
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x4200d2
test ebx, ebx
je 0x4200c6
push 8
jmp 0x4200d8
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4200e5
test ebx, ebx
je 0x4200db
push 3
pop ecx
jmp 0x4200e5
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4211c8
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x421260
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x42125d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x42125d
lea eax, [esi - 1]
push eax
push dword [0x5770cc]
call fcn.0042e742
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x42125f
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x421254
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x421347
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x42123a
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x421306
push eax
call esi
test al, al
jns 0x421306
push 0x11
call esi
test al, al
js 0x421306
push 0x10
call esi
test al, al
js 0x421306
push 0x12
call esi
test al, al
js 0x421306
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x421306
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4212da
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4212f1
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x421351
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x421351
test ebp, ebp
je 0x42132a
push 0x11
call esi
test al, al
js 0x421322
push 0x10
call esi
test al, al
js 0x421322
push 0x12
call esi
test al, al
jns 0x42132a
push 1
push ebp
call fcn.0042135d
test ebx, ebx
je 0x42133e
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x421351
test edi, edi
je 0x421351
mov eax, dword [edi + 8]
jmp 0x421353
and dword [esp + 0x14], 0
jmp 0x42125f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x42199c
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x4219aa
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x4219ad
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4219d6
test byte [esp + 8], 2
je 0x4219ca
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4219d8
xor eax, eax
ret 8

Function at 0x421b37
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x421c0c
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x421c0b
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.004241e0
push esi
mov word [ebp - 0x20], ax
call fcn.00424206
push esi
mov word [ebp - 0x1e], ax
call fcn.00424228
push esi
mov word [ebp - 0x1c], ax
call fcn.00424249
push esi
mov word [ebp - 0x1a], ax
call fcn.0042426a
push esi
mov word [ebp - 0x18], ax
call fcn.0042428b
push esi
mov word [ebp - 0x16], ax
call fcn.004242ac
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x421bea
lea eax, [ebp - 8]
jmp 0x421bf8
cmp dword [ebp + 0xc], 2
jne 0x421bf5
lea ecx, [ebp - 8]
jmp 0x421bf8
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x421fe0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x42201c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4224b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x422515
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42250d
push dword [esp + 0x10]
push dword [0x577498]
call fcn.0042e742
test eax, eax
je 0x422503
cmp dword [eax + 4], 0
je 0x4224f2
push edi
push esi
push eax
call fcn.00422a10
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x422520
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x577498]
call fcn.0042e742
mov esi, eax
test esi, esi
je 0x42259f
cmp dword [esi + 4], 0
je 0x422570
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00422b20
test eax, eax
je 0x422564
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4225aa
cmp dword [esp + 8], 0
je 0x4225aa
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x422a10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x422b17
cmp dword [esi + 0x14], 1
jne 0x422a5b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x422ad8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x422ac3
dec eax
je 0x422aac
sub eax, 2
je 0x422a97
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00421fe0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x422b05
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x422a81
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x422b20
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x422b41
push esi
call fcn.00421fe0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x422bb5
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x422ba2
dec ecx
je 0x422b8d
sub ecx, 2
je 0x422b7a
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x422bfa
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x422c1b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc