joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4122b1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004360d0
push 0xa0
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp], eax
push 0x24
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 4], eax
push 0x23
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 8], eax
push 0x21
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 0xc], eax
push 0x22
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 0x10], eax
mov ebx, dword [esp]
and ebx, ebx
je 0x412319
mov ebx, dword [esp + 4]
and ebx, ebx
je 0x412319
mov eax, 1
jmp 0x41231b
xor eax, eax
and eax, eax
je 0x41232e
call fcn.0040c050
mov dword [0x77a6a4], 0
mov ebx, dword [esp]
and ebx, ebx
je 0x412344
mov ebx, dword [esp + 8]
and ebx, ebx
je 0x412344
mov eax, 1
jmp 0x412346
xor eax, eax
and eax, eax
je 0x412359
call fcn.0040b685
mov dword [0x77a6a4], 0
mov ebx, dword [esp]
and ebx, ebx
je 0x41236f
mov ebx, dword [esp + 0xc]
and ebx, ebx
je 0x41236f
mov eax, 1
jmp 0x412371
xor eax, eax
and eax, eax
je 0x41237a
call fcn.0040e0f3
mov ebx, dword [esp]
and ebx, ebx
je 0x412390
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x412390
mov eax, 1
jmp 0x412392
xor eax, eax
and eax, eax
je 0x41239b
call fcn.00410ae6
xor eax, eax
add esp, 0x14
pop ebx
ret

Function at 0x415831
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 0x4158c9
push edi
push 0x77d280
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x77a878]
test edi, edi
je 0x41589d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x415896
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x77a878
call fcn.00435e1c
pop ecx
pop ecx
jmp 0x415898
mov edi, dword [edi]
test edi, edi
jne 0x41586d
pop ebx
mov eax, dword [0x77791c]
mov esi, eax
inc eax
push 0x10
push 0x77a878
mov dword [0x77791c], eax
call fcn.00435e5c
pop ecx
pop ecx
push 0x77d280
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 0x41a593
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41a5e8
push dword [esp + 0x10]
push 0x41a512
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x77ab50]
test esi, esi
je 0x41a641
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41a5e0
cmp byte [esi + 0x10], 0
je 0x41a5e0
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 0x41a5bc
jmp 0x41a641
mov esi, dword [0x77ab50]
test esi, esi
je 0x41a641
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 0x41a63a
cmp byte [esi + 0x11], 0
je 0x41a616
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41a62d
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 0x77ab50
call fcn.00435e1c
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41a5f5
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41b949
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x77d5f4]
call fcn.004354de
mov edi, dword [eax + 0x24]
test edi, edi
je 0x41ba07
cmp dword [edi + 8], 1
je 0x41ba07
mov edi, dword [edi + 0xc]
test edi, edi
je 0x41ba07
mov al, byte [edi]
cmp al, 0x20
je 0x41b982
cmp al, 9
jne 0x41b985
inc edi
jmp 0x41b978
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.00436290
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x41b9d6
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x41b9f2
cmp cx, dx
je 0x41b9f2
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x41b9ea
cmp cx, dx
jne 0x41b9f6
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x41b9dd
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.00436370
jmp 0x41b9d6
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004363a0
Function at 0x41d630
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x77ab64], 0
jne 0x41d63e
call fcn.0041d5b0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x77ab68]
call esi
test eax, eax
jne 0x41d661
call fcn.0041d5b0
push dword [0x77ab68]
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 0x41d670
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 0x41d6d0
mov ebx, 0x10
test edi, edi
jns 0x41d6d9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41d6a2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41d6f0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x77ab64], 0
jne 0x41d6fe
call fcn.0041d5b0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x77ab68]
call esi
mov edx, eax
test edx, edx
jne 0x41d725
call fcn.0041d5b0
push dword [0x77ab68]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x41d758
mov ebx, 0x10
test esi, esi
jns 0x41d761
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41d770
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41fe72
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x41fdc1
push 0x10
push 0x2c
call fcn.00435722
push 0
push 0
push 8
mov dword [0x77ad08], eax
call fcn.00435549
cmp word [0x77ad00], 0
mov dword [0x77d60c], eax
jne 0x41ff57
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x41feca
mov word [0x77ad00], di
jmp 0x41fed2
xor eax, eax
mov word [0x77ad00], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x77ad1c], eax
test eax, eax
je 0x41ff56
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x77ad1c]
mov dword [0x77ad0c], eax
call esi
push str.getnameinfo
push dword [0x77ad1c]
mov dword [0x77ad10], eax
call esi
push str.WSAStringToAddressA
push dword [0x77ad1c]
mov dword [0x77ad14], eax
call esi
cmp dword [0x77ad0c], 0
mov dword [0x77ad18], eax
pop esi
je 0x41ff56
cmp dword [0x77ad10], 0
je 0x41ff56
cmp dword [0x77ad14], 0
je 0x41ff56
test eax, eax
je 0x41ff56
mov dword [0x77ad04], edi
pop edi
add esp, 0x190
ret

Function at 0x420126
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x42026e
xor ecx, ecx
cmp word [eax], cx
je 0x42026e
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x42017f
cmp eax, 3
jne 0x4201b9
cmp word [esp + 0xa], 0x3a
jne 0x4201b9
cmp eax, 2
jne 0x42019d
lea eax, [esp + 8]
push 0x508288
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42026e
push 0xfffffffffffffffe
pop edi
jmp 0x42026e
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4201ce
cmp ax, bx
jne 0x4201d8
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4201c1
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x420217
test byte [esp + 0x21c], 0x10
je 0x4201fe
push 0xfffffffffffffffe
pop edi
jmp 0x42020e
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42026c
cmp word [esp + 0x10], bp
jne 0x420225
cmp word [esp + 0x12], bp
je 0x420244
cmp word [esp + 0x10], bx
jne 0x420233
cmp word [esp + 0x12], bx
je 0x420244
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x42026c
cmp word [esp + 0x12], ax
jne 0x42026c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x420259
test al, 0x10
je 0x42026c
jmp 0x420269
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42026c
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x42027d
Capabilities:
Set file attributes

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

Function at 0x420300
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x77ad24]
push esi
test eax, eax
jne 0x420325
push 0x42042d
push 0x10
push 0x258
call fcn.00435722
mov dword [0x77ad24], eax
push dword [esp + 0xc]
push eax
call fcn.0043568e
mov esi, eax
test esi, esi
je 0x420426
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x420347
mov edi, 0x50806c
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x420357
xor eax, eax
cmp word [ebx], ax
jne 0x42035c
mov ebx, 0x5082a4
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x77a400]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x42040d
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4203bd
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4203c1
push 0x508288
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4203c1
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4203e5
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4203fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4203f9
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x77a400]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x420424
cmp dword [esp + 0x14], 0xffffffff
je 0x420418
mov esi, dword [esp + 0x14]
push esi
push dword [0x77ad24]
call fcn.00435600
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x42062f
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x420658
test byte [esp + 8], 2
je 0x42064c
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 0x42065a
xor eax, eax
ret 8
Function at 0x420ca8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x420d20
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x420d01
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x420cfe
cmp ecx, 0x5c
je 0x420cfe
cmp ecx, 0x2f
jne 0x420d0b
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x420ceb
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x420d22
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x420d41
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x420d61
cmp dword [esp + 8], 0
je 0x420d61
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x420d63
xor eax, eax
ret 8

Function at 0x420eb0
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 0x420eec
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 0x4212b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x421315
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42130d
push dword [esp + 0x10]
push dword [0x77d610]
call fcn.0043564f
test eax, eax
je 0x421303
cmp dword [eax + 4], 0
je 0x4212f2
push edi
push esi
push eax
call fcn.004215a0
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 0x421430
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x77d610]
call fcn.0043564f
mov esi, eax
test esi, esi
je 0x4214af
cmp dword [esi + 4], 0
je 0x421480
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00421b60
test eax, eax
je 0x421474
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 0x4214ba
cmp dword [esp + 8], 0
je 0x4214ba
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 0x4214d0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x77d610]
call fcn.0043564f
test eax, eax
je 0x42151c
cmp dword [eax + 4], 0
je 0x421506
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00421b60
mov eax, dword [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x4215a0
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 0x4216a7
cmp dword [esi + 0x14], 1
jne 0x4215eb
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 0x421668
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x421653
dec eax
je 0x42163c
sub eax, 2
je 0x421627
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.00420eb0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x421695
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 0x421611
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x4216b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x77a400]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x421834
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x4216fe
test ebp, ebp
je 0x4217a0
dec ebp
cmp dword [ebx + 4], 0
je 0x421717
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00421b60
mov dword [esp + 0x14], eax
jmp 0x421731
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x4217a0
test cl, cl
je 0x421745
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x421780
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x77a400]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x4217a0
cmp dword [esp + 0x2c], 0
jne 0x4216f0
cmp cl, 0xd
je 0x4217a7
cmp cl, 0xa
jne 0x4216f0
dec esi
jmp 0x421817
cmp dword [esp + 0x2c], 0
jne 0x421817
cmp cl, 0xa
jne 0x4217af
dec esi
jmp 0x421817
cmp cl, 0xd
jne 0x421817
dec esi
cmp dword [ebx + 4], 0
je 0x4217ce
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00421b60
mov dword [esp + 0x14], eax
jmp 0x4217e4
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x421817
cmp dword [ebx + 4], 0
je 0x4217f6
inc dword [ebx + 0xc]
jmp 0x421817
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x421840
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x77a400]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x4219ed
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x421894
test ebp, ebp
je 0x42194d
dec ebp
cmp dword [ebx + 4], 0
je 0x4218ad
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00421b60
mov dword [esp + 0x14], eax
jmp 0x4218c7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x42194d
test ax, ax
je 0x4218e1
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x421928
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x77a400]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x42194d
cmp dword [esp + 0x30], 0
jne 0x421886
cmp ax, 0xd
je 0x421954
cmp ax, 0xa
jne 0x421886
sub edi, 2
jmp 0x4219cc
cmp dword [esp + 0x30], 0
jne 0x4219cc
cmp ax, 0xa
jne 0x42195f
sub edi, 2
jmp 0x4219cc
cmp ax, 0xd
jne 0x4219cc
sub edi, 2
cmp dword [ebx + 4], 0
je 0x421981
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00421b60
mov dword [esp + 0x14], eax
jmp 0x421997
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x4219cc
cmp dword [ebx + 4], 0
je 0x4219ab
add dword [ebx + 0xc], 2
jmp 0x4219cc
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x421a00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x77a400]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x421b50
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x421a4c
test edi, edi
je 0x421abd
dec edi
push esi
push ebp
call fcn.00421c80
mov dword [esp + 0x20], eax
test eax, eax
jne 0x421a5f
xor cl, cl
jmp 0x421a61
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x421aa4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x77a400]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x421abd
test eax, eax
jne 0x421a42
cmp cl, 0xd
je 0x421ac1
cmp cl, 0xa
jne 0x421a42
dec esi
jmp 0x421b33
test eax, eax
jne 0x421b33
cmp cl, 0xa
jne 0x421ac9
dec esi
jmp 0x421b33
cmp cl, 0xd
jne 0x421b33
dec esi
cmp dword [ebp + 4], 0
je 0x421ae8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00421b60
mov dword [esp + 0x20], eax
jmp 0x421aff
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x421b33
cmp dword [ebp + 4], 0
je 0x421b11
inc dword [ebp + 0xc]
jmp 0x421b33
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10