joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43af00
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0x60
mov word [ebx], 0
jl 0x43af53
cmp edi, 0x69
jg 0x43af53
push esi
push 1
push 0x40
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov esi, eax
mov eax, dword [0x451540]
push 0x3f
push esi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [edi - 0x60]
push ecx
push esi
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
pop esi
jmp 0x43afa0
cmp edi, 0x70
jl 0x43af75
cmp edi, 0x87
jg 0x43af75
lea edx, [edi - 0x6f]
push edx
push 0x451290
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x43afa0
xor eax, eax
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x43af88
inc eax
cmp eax, 0x14
jl 0x43af77
jmp 0x43afa0
mov eax, dword [eax*8 + 0x4511f4]
mov ecx, dword [0x451540]
push 0x3f
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [ebx], 0
jne 0x43afb0
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov byte [ebx], al
pop edi
pop ebx
ret

Function at 0x43b1c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push 0
push 0x78
push edi
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebp
push 0
push 0x79
push edi
call ebx
push eax
call ebp
xor esi, esi
mov eax, dword [esp + 0x18]
movsx ecx, word [eax + 0x12]
cmp esi, ecx
jne 0x43b201
push esi
push eax
push edi
call fcn.0043b170
add esp, 0xc
lea edx, [esi + 0x6e]
push 1
push edx
push edi
call ebx
push eax
call ebp
inc esi
cmp esi, 8
jl 0x43b1ea
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x440830
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x1f6]
lea ecx, [esp + 0x14]
push ebx
push ecx
test eax, eax
lea edx, [esp + 0x18]
push 1
setne al
push edx
push edi
mov byte [esp + 0x24], al
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44089c
mov al, byte [esp + 0x10]
test al, al
je 0x440891
mov eax, dword [esi + 0x1f6]
push eax
call fcn.00402600
push edi
mov esi, eax
call fcn.00433230
push esi
mov edi, eax
call fcn.00402600
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4408b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push edi
xor edi, edi
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x13]
push 1
push ecx
push ebx
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440944
mov al, byte [esp + 0xb]
push esi
test al, al
je 0x44093e
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0x1fe]
mov eax, dword [esi + 0x44]
push edx
push edi
push eax
push esi
call fcn.0043fff0
mov eax, dword [esi + 0x1f6]
add esp, 0x10
test eax, eax
je 0x440943
push ebp
push eax
call fcn.00402600
mov ecx, dword [esi + 0x1f6]
push edi
push ecx
mov ebp, eax
call fcn.00404b30
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], edi
push edx
push ebx
call fcn.00434890
push ebp
mov edi, eax
call fcn.00402600
add esp, 0x18
mov eax, edi
pop ebp
pop esi
pop edi
pop ebx
add esp, 8
ret
mov edi, 1
pop esi
mov eax, edi
pop edi
pop ebx
add esp, 8
ret
Function at 0x4429f0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push ebp
mov dword [eax], ebx
mov ecx, dword [0x45157c]
push esi
mov esi, dword [esp + 0x14]
mov ebp, dword [ecx + 0x90]
mov edx, dword [ecx + 0x11c]
and esi, 0x7fff
mov dword [esp + 0xc], ebx
add esi, ebp
mov dword [esp + 0x14], edx
mov ax, word [esi + 0x18]
cmp ax, bx
jl 0x442b18
push edi
jmp 0x442a36
mov edx, dword [esp + 0x18]
movsx eax, ax
lea edi, [eax*8]
sub edi, eax
lea edi, [eax + edi*4]
lea eax, [eax + edi*2]
mov edi, dword [ecx + 0x58]
lea eax, [edi + eax*2]
cmp dword [eax + 0x28], edx
jne 0x442a78
xor edi, edi
cmp word [eax + 2], bx
jl 0x442afd
mov edi, dword [eax + 0x2c]
mov eax, dword [ecx + 0x120]
cmp eax, ebx
jne 0x442afd
mov dword [ecx + 0x120], esi
jmp 0x442af7
mov dword [eax + 0x28], edx
mov ecx, dword [0x45157c]
xor edi, edi
cmp word [ecx + 0x418], bx
je 0x442a97
mov word [eax + 2], 0xffff
mov dword [eax + 0x2c], ebx
jmp 0x442af7
mov cx, word [eax + 6]
cmp cx, bx
mov word [eax + 2], cx
jge 0x442aa9
mov dword [eax + 0x2c], ebx
jmp 0x442af7
mov ecx, dword [0x45157c]
cmp dword [ecx + 0x120], ebx
jne 0x442ac3
mov dword [ecx + 0x120], esi
mov ecx, dword [0x45157c]
mov dx, word [eax + 6]
jmp 0x442acf
mov ecx, dword [0x45157c]
mov ebp, dword [ecx + 0x1278]
movsx edx, dx
mov edx, dword [ebp + edx*8]
cmp edx, ebx
je 0x442afd
mov cx, word [edx + 0x16]
mov word [edx + 2], cx
mov edx, ecx
cmp dx, bx
jge 0x442ac9
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x2c], ecx
mov edi, ecx
mov ecx, dword [0x45157c]
mov ebp, dword [esp + 0x10]
mov ax, word [esi + 0x1c]
add esi, 4
add ebp, edi
cmp ax, bx
mov dword [esp + 0x10], ebp
jge 0x442a32
pop edi
mov eax, dword [ecx + 0x120]
cmp eax, ebx
je 0x442b6d
movsx eax, word [eax + 0x18]
lea edx, [eax*8]
sub edx, eax
lea edx, [eax + edx*4]
lea eax, [eax + edx*2]
mov edx, dword [ecx + 0x58]
lea eax, [edx + eax*2]
mov dword [ecx + 0x12c], eax
mov ecx, dword [0x45157c]
movsx eax, word [eax + 2]
mov edx, dword [ecx + 0x1278]
mov eax, dword [edx + eax*8]
cmp eax, ebx
je 0x442b6d
mov edx, dword [esp + 0x18]
mov dword [ecx + 0x124], eax
mov ecx, dword [esp + 0xc]
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
pop ecx
ret
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x407fdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.0040787a
lea edi, [esi + 0x1c]
mov dword [esp + 0x230], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x20]
mov byte [esp + 0x230], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0x24]
mov byte [esp + 0x230], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [esp + 0x230], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x2c]
mov byte [esp + 0x230], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [esp + 0x230], 5
call sub.MFC42.DLL_CString::CString_2
xor eax, eax
push 0x40b960
mov ecx, ebp
mov byte [esp + 0x234], 6
mov dword [esi], 0x409450
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
call fcn.0040786e
push 0x40b960
mov ecx, ebx
call fcn.0040786e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x28]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x18]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x26]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x144]
push str._02d_02d_04d__02d_02d_02d_03d.TXT
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.0040786e
lea edx, [esp + 0x128]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x40101d
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x407fdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.0040787a
lea edi, [esi + 0x1c]
mov dword [esp + 0x230], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x20]
mov byte [esp + 0x230], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0x24]
mov byte [esp + 0x230], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [esp + 0x230], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x2c]
mov byte [esp + 0x230], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [esp + 0x230], 5
call sub.MFC42.DLL_CString::CString_2
xor eax, eax
push 0x40b960
mov ecx, ebp
mov byte [esp + 0x234], 6
mov dword [esi], 0x409450
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
call fcn.0040786e
push 0x40b960
mov ecx, ebx
call fcn.0040786e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x28]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x18]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x26]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x144]
push str._02d_02d_04d__02d_02d_02d_03d.TXT
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.0040786e
lea edx, [esp + 0x128]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x4011b0
Capabilities:
Access peb ldr_data
Delete file
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40802f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x409450
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
push eax
mov dword [esp + 0x18], 5
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CObArray::CObArray
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401260
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
mov ebx, ecx
push esi
push 0x40b960
lea esi, [ebx + 0x20]
mov ecx, esi
call fcn.0040786e
push ebx
push 0x401320
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x401286
pop esi
pop ebx
ret
push ebp
lea ebp, [ebx + 0x24]
push esi
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebx + 0x1c]
push 0x40b144
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40130b
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fputs]
push esi
push str._r_n_LAST_TOKEN_INFO__r_n
call edi
mov eax, dword [ebx + 0x2c]
push esi
push eax
call edi
push esi
push str._r_n_r_n
call edi
push esi
push str._r_n_LAST_KEY_STROKE__r_n
call edi
mov ecx, dword [ebx + 0x28]
push esi
push ecx
call edi
push esi
push str._r_n_r_n
call edi
push esi
push str._r_n_INFECTION_PATH___r_n
call edi
mov edx, dword [ebx + 0x30]
push esi
push edx
call edi
add esp, 0x40
push esi
push str._r_n_r_n
call edi
mov eax, dword [ebp]
push esi
push eax
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
ret
Function at 0x401ac0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40818c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
lea edi, [esi + 8]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0xc]
mov dword [esp + 0x230], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x128]
mov byte [esp + 0x230], 1
push eax
push 0xff
mov dword [esi], 0x40973c
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x18]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
mov edx, dword [esp + 0x26]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.BMP
push eax
call ebp
add esp, 0x24
lea ecx, [esp + 0x128]
push ecx
mov ecx, edi
call fcn.0040786e
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str._02d_02d_04d__02d_02d_02d_03d.JPG
lea ecx, [esp + 0x48]
push ecx
call ebp
add esp, 0x24
lea edx, [esp + 0x128]
mov ecx, ebx
push edx
call fcn.0040786e
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x1f2c
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x22c]
add esp, 4
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x401add
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40818c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
lea edi, [esi + 8]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0xc]
mov dword [esp + 0x230], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x128]
mov byte [esp + 0x230], 1
push eax
push 0xff
mov dword [esi], 0x40973c
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x18]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
mov edx, dword [esp + 0x26]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.BMP
push eax
call ebp
add esp, 0x24
lea ecx, [esp + 0x128]
push ecx
mov ecx, edi
call fcn.0040786e
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str._02d_02d_04d__02d_02d_02d_03d.JPG
lea ecx, [esp + 0x48]
push ecx
call ebp
add esp, 0x24
lea edx, [esp + 0x128]
mov ecx, ebx
push edx
call fcn.0040786e
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x1f2c
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x22c]
add esp, 4
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x401c70
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4081ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40973c
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esi + 8]
push eax
mov dword [esp + 0x1c], 0
call ebx
mov eax, dword [esi + 0xc]
add esi, 0xc
push eax
call ebx
mov ecx, esi
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402030
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
push ebx
push esi
mov esi, dword [esp + 0x48]
push edi
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea eax, [esp + 0x24]
push 0xe
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x44]
push 0x28
push ecx
call edi
mov ecx, dword [esp + 0x5a]
mov ebx, dword [esp + 0x50]
and ecx, 0xffff
add esp, 0x2c
imul ecx, ebx
lea eax, [ecx + 0x1f]
and al, 0xe0
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
lea edx, [ebx + ebx*2]
sar edi, 3
sar eax, 3
sub edi, eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0xc], edx
test eax, eax
jl 0x4020f1
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
push ebp
lea ebx, [ecx*4]
sub ebx, ecx
imul ecx, eax
lea edx, [edx + ecx*2]
neg ebx
add ecx, edx
inc eax
mov ebp, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
push esi
push 1
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x6c]
add esp, 0x1c
add ebp, ebx
dec eax
mov dword [esp + 0x50], eax
jne 0x4020c7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 0x1c

Function at 0x4024c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov al, 0x46
mov edx, 0x100
mov byte [esp + 5], al
mov byte [esp + 7], al
xor al, al
mov word [esp], 0xe0ff
mov byte [esp + 8], al
mov byte [esp + 0xb], al
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov eax, dword [ecx + 4]
lea ecx, [esp]
push eax
push 1
push 0x12
push ecx
mov word [esp + 0x12], 0x1000
mov byte [esp + 0x14], 0x4a
mov byte [esp + 0x16], 0x49
mov word [esp + 0x19], 0x101
mov word [esp + 0x1c], dx
mov word [esp + 0x1e], dx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x24
ret

Function at 0x402530
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebx, ecx
push esi
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x101c]
mov ecx, 0x10
lea edi, [esp + 0x15]
mov word [esp + 0x10], 0xdbff
mov word [esp + 0x12], 0x4300
mov byte [esp + 0x14], 0
push eax
rep movsd dword es:[edi], dword [esi]
push 1
lea ecx, [esp + 0x18]
push 0x45
push ecx
call ebp
mov edx, dword [ebx + 4]
lea esi, [ebx + 0x105c]
push edx
mov ecx, 0x10
lea edi, [esp + 0x29]
push 1
lea eax, [esp + 0x28]
mov byte [esp + 0x2c], 1
push 0x45
push eax
rep movsd dword es:[edi], dword [esi]
call ebp
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x4025b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov ax, word [ecx + 0x14]
push ebx
mov edx, eax
mov word [esp + 4], 0xc0ff
and edx, 0xffff
mov word [esp + 6], 0x1100
and edx, 0x800000ff
mov byte [esp + 8], 8
jns 0x4025e3
dec edx
or edx, 0xffffff00
inc edx
xor ebx, ebx
movzx dx, dl
mov bl, ah
xor ax, ax
shl edx, 8
mov al, bl
add edx, eax
mov ax, word [ecx + 0x10]
mov word [esp + 9], dx
mov edx, eax
and edx, 0xffff
and edx, 0x800000ff
jns 0x402616
dec edx
or edx, 0xffffff00
inc edx
xor ebx, ebx
mov ecx, dword [ecx + 4]
movzx dx, dl
mov bl, ah
xor ax, ax
shl edx, 8
mov al, bl
push ecx
add edx, eax
mov al, 3
mov word [esp + 0xf], dx
mov edx, 1
mov byte [esp + 0x12], dl
mov byte [esp + 0x17], dl
mov byte [esp + 0x1a], dl
push edx
mov byte [esp + 0x15], al
mov byte [esp + 0x1c], al
lea edx, [esp + 0xc]
mov al, 0x11
push 0x13
push edx
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 2
mov byte [esp + 0x22], al
mov byte [esp + 0x25], al
mov byte [esp + 0x1f], al
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
pop ebx
add esp, 0x14
ret
Function at 0x402680
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov edx, dword [0x409591]
push ebx
mov eax, dword [0x409589]
push esi
mov esi, ecx
push edi
mov ecx, dword [0x40958d]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x409595]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov word [esp + 0x20], 0xc4ff
mov word [esp + 0x22], 0x1f00
mov byte [esp + 0x24], 0
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x40959c]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xb
jbe 0x4026db
mov ecx, dword [0x4095ad]
mov edx, dword [0x4095b1]
mov eax, dword [0x4095a9]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x4095b5]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov byte [esp + 0x24], 1
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x4095bc]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xb
jbe 0x40273c
mov ecx, dword [0x4095cd]
mov edx, dword [0x4095d1]
mov eax, dword [0x4095c9]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x4095d5]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov word [esp + 0x22], 0xb500
mov byte [esp + 0x24], 0x10
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x4095dc]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xa1
jbe 0x4027a4
mov ecx, dword [0x409685]
mov edx, dword [0x409689]
mov eax, dword [0x409681]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x40968d]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov byte [esp + 0x24], 0x11
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x409694]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xa1
jbe 0x402808
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x402840
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
xor al, al
mov dl, 0x11
mov byte [esp + 6], al
mov byte [esp + 0xb], al
mov byte [esp + 0xd], al
mov eax, dword [ecx + 4]
push eax
push 1
lea ecx, [esp + 8]
push 0xe
push ecx
mov word [esp + 0x10], 0xdaff
mov word [esp + 0x12], 0xc00
mov byte [esp + 0x14], 3
mov byte [esp + 0x15], 1
mov byte [esp + 0x17], 2
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], 3
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1c], 0x3f
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
ret