joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4364b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x48232d
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x482391]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.0040bc10
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.004491f0
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x477f4c], 0
jne 0x4365d6
mov byte [0x477f4c], 1
call fcn.00446be0
test eax, eax
je 0x4365a4
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.0040ab00
mov dword [esp], 2
mov esi, dword [fcn.00415ca0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x436594
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4822ed
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4490e0
jmp 0x4490d8
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x43655a
mov dword [esp], 2
call dword [0x476810]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x4490d3
mov dword [esp], 2
call dword [0x476810]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x4854e8
call fcn.00446110
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.004469c0
add esp, 0x18
pop ebx
ret
Function at 0x40c992
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433420]
jne 0x40c99c
repz ret
jmp fcn.00411432

Function at 0x41f71f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040f959
and dword [ebp - 4], 0
cmp dword [0x43585c], 0
mov ebx, eax
jne 0x41f7d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41f881
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41f881
push eax
call fcn.0040f8e7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43585c], eax
call esi
push eax
call fcn.0040f8e7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435860], eax
call esi
push eax
call fcn.0040f8e7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435864], eax
call esi
push eax
call fcn.0040f8e7
pop ecx
mov dword [0x43586c], eax
test eax, eax
je 0x41f7d0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f8e7
pop ecx
mov dword [0x435868], eax
mov eax, dword [0x435868]
cmp eax, ebx
je 0x41f828
cmp dword [0x43586c], ebx
je 0x41f828
push eax
call fcn.0040f962
push dword [0x43586c]
mov esi, eax
call fcn.0040f962
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41f828
test edi, edi
je 0x41f828
call esi
test eax, eax
je 0x41f81f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41f81f
test byte [ebp - 0xc], 1
jne 0x41f828
or dword [ebp + 0x10], 0x200000
jmp 0x41f861
mov eax, dword [0x435860]
cmp eax, ebx
je 0x41f861
push eax
call fcn.0040f962
pop ecx
test eax, eax
je 0x41f861
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41f861
mov eax, dword [0x435864]
cmp eax, ebx
je 0x41f861
push eax
call fcn.0040f962
pop ecx
test eax, eax
je 0x41f861
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43585c]
call fcn.0040f962
pop ecx
test eax, eax
je 0x41f881
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41f883
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421f80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x4333c0], 0x7cd
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x4333bc], 0x2490
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x421ff5
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [0x4333bc], 0x1a90
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x421fbe
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jne 0x4220c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
jne 0x4220c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
jne 0x4220c0
xor eax, eax
mov dword [0x4333c0], 0x154f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x4220c0
xor eax, eax
mov dword [0x4333bc], 0x1c53
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
jne 0x4220c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
jne 0x4220c0
xor eax, eax
mov dword [0x4333bc], 0x1c11
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x4220c0
mov eax, 1
mov dword [0x4333c0], 0x1352
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x423ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x4333c4], 0
mov dword [0x4333c8], 0
mov dword [0x4333d4], 0
mov edi, dword [0x4333bc]
add edi, 0xffffd9a3
mov dword [0x4333bc], edi
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jne 0x42402d
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x4333c8]
mov ecx, dword [0x4333c4]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
mov edi, ecx
add edi, 1
add eax, 1
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x4333c4], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x4333c8], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x4333cc], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x4333c0]
add edx, 0xffffef36
mov dword [0x4333bc], edx
mov cl, byte [0x4333cc]
mov edx, dword [0x4333c8]
mov byte [ebx + edx], cl
mov dword [0x4333c0], 0x1e89
mov edx, dword [0x4333c4]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x4333c8]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x4333d4], ecx
mov edx, dword [0x4333bc]
add edx, 0xfffffcf5
mov dword [0x4333bc], edx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov dword [0x4333c0], 0x1b26
mov dword [0x4333bc], 0x492
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x20], edi
je 0x424041
jmp 0x423f24
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
jmp 0x423f3b
jmp 0x423f1c
Function at 0x424050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa8
lea eax, [esp + 0x90]
lea ecx, [esp + 0x30]
mov dword [0x4333bc], 0x184c
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.00422c30
lea ecx, [0x422bb0]
mov edx, 0x2334
mov esi, dword [esp + 0x90]
mov dword [esp + 0x64], esi
mov dword [esp + 0x84], 0x141400
mov esi, dword [0x4333a8]
mov dword [esp + 0x48], esi
mov esi, dword [0x4333ac]
mov dword [esp + 0x5c], esi
mov esi, dword [0x4333b0]
mov dword [esp + 0x30], esi
mov esi, dword [0x4333b4]
mov dword [esp + 0x3c], esi
mov esi, dword [0x4333b8]
mov dword [esp + 0x8c], esi
mov dword [0x4333c0], 0x17b2
mov dword [0x4333bc], 0x26bb
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jmp 0x424113
mov eax, 0xe8b
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp word [ecx], 0x5a4d
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x4240f6
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
jne 0x4240f6
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, edx
add esi, 0x62c
mov dword [0x4333bc], edx
mov dword [esp + 0x4c], ecx
mov dword [0x4333c0], esi
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x7c], eax
call fcn.00421f80
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x4241bf
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x98]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004223e0
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x4333c0], 0x1fcd
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x108e6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x108e61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x108e607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108e606a
add dl, dl
jne 0x108e6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108e60dc
xor eax, eax
add dl, dl
jne 0x108e6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108e617d
add dl, dl
jne 0x108e60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108e60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108e60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108e60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108e60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x108e6075
mov eax, 1
add dl, dl
jne 0x108e60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108e60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108e60e1
sub eax, ebx
mov ebx, 1
jne 0x108e6128
mov ecx, 1
add dl, dl
jne 0x108e610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108e6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108e6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108e6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108e613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108e614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108e6136
cmp eax, 0x7d00
jae 0x108e616d
cmp eax, 0x500
jb 0x108e6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108e6075
cmp eax, 0x7f
ja 0x108e6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108e6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108e619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x108e6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401380
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x48a2c4]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00407490
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00407530
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.00447157
add esp, 0x68
ret

Function at 0x4013f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x48a2c4]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00407490
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00407530
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.00447157
add esp, 0x68
ret
Function at 0x401c80
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x48a2c4]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
lea eax, [esp + 8]
mov esi, edx
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00405360
add esp, 8
test eax, eax
jne 0x401ceb
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00447157
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x401d00
push esi
lea ecx, [esp + 0x14]
call fcn.00407490
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.00407530
test edi, edi
je 0x401d1e
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [esp + 8]
sete al
mov dword [edi], eax
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00447157
add esp, 0x6c
ret

Function at 0x401db0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x48a2c4]
xor eax, esp
mov dword [esp + 0x5c], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00405550
add esp, 4
test eax, eax
jne 0x401e0e
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00447157
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.00407530
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00447157
add esp, 0x64
ret

Function at 0x401e30
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x48a2c4]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
call fcn.00405630
add esp, 8
test eax, eax
jne 0x401eaf
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00447157
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.00406b40
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.00447157
add esp, 0x74
ret

Function at 0x4034e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40350b
push 0x47f4b4
mov eax, 0x47f4b4
call fcn.004081e0
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x403524
push 0x47f4b4
call fcn.00408490
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x403530
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40355b
push 0x47f4b4
mov eax, 0x47f4b4
call fcn.004081e0
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x403574
push 0x47f4b4
call fcn.00408490
add esp, 4
xor eax, eax
pop ecx
ret

Function at 0x4035f0
Capabilities:
Clear file content

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x403610
push 0x47f4b4
mov eax, 0x47f4b4
call fcn.004081e0
add esp, 4
xor eax, eax
ret
mov eax, 1
ret

Function at 0x403620
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x20
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x403657
push 0x47f4b4
mov eax, 0x47f4b4
call fcn.004081e0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
cmp esi, edi
ja 0x40377e
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
jb 0x403679
cmp ecx, edx
jae 0x40377e
mov eax, edx
sub eax, ecx
mov ecx, edi
sbb ecx, esi
mov ebx, eax
shrd ebx, ecx, 0xf
shr ecx, 0xf
and eax, 0x7fff
mov dword [esp + 0x10], ebx
mov esi, eax
jne 0x40369e
mov esi, 0x8000
jmp 0x4036a3
inc ebx
mov dword [esp + 0x10], ebx
xor eax, eax
sub edx, esi
sbb edi, eax
mov eax, dword [esp + 0x40]
mov ebp, edi
xor edi, edi
mov ebx, edx
add eax, ebx
adc edi, ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
jbe 0x40377e
mov edi, edi
mov ecx, dword [esp + 0x34]
push 0
push 0
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40363b
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40363b
cmp esi, dword [esp + 0x18]
jne 0x40378b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push 0
push 0
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40363b
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40363b
cmp esi, dword [esp + 0x1c]
jne 0x40378b
mov eax, dword [esp + 0x14]
add ebx, 0xffff8000
adc ebp, 0xffffffff
add dword [esp + 0x20], 0xffff8000
mov esi, 0x8000
adc edi, 0xffffffff
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jb 0x4036d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
push 0x47f4b4
mov eax, 1
call fcn.00408490
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x403970
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x20]
lea esi, [edi + 7]
shr esi, 3
add esi, esi
push eax
add esi, esi
add esi, esi
push esi
push ebp
push ecx
push ebx
call fcn.00403620
add esp, 0x14
test eax, eax
je 0x403a44
mov edx, dword [esp + 0x14]
push 0
push 0
push ebp
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x403a1c
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403a1c
cmp edi, dword [esp + 0xc]
je 0x4039ef
push 0x47f4b4
mov eax, 1
call fcn.00408490
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
sub esi, edi
je 0x403a4b
mov edx, dword [esp + 0x20]
push esi
push 0
push edx
call fcn.004471a0
add esp, 0xc
xor eax, eax
add edi, dword [esp + 0x14]
push 0
push 0
adc eax, ebp
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x403a35
push 0x47f4b4
mov eax, 0x47f4b4
call fcn.004081e0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x20]
mov edx, ebx
call fcn.00403530
test eax, eax
jne 0x403a4b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x4042f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x48a2c4]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x404323
mov dword [esp + 0x10], 0xffffffff
jmp 0x404329
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x404357
push 0x47f4b4
mov eax, 0x47f4b4
call fcn.004081e0
add esp, 4
jmp 0x404437
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404387
push 0x47f4b4
mov eax, 0x47f4b4
call fcn.004081e0
add esp, 4
jmp 0x404437
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x4043a9
mov eax, 1
push 0x47f4b4
call fcn.00408490
add esp, 4
jmp 0x404437
cmp dword [esp + 0x40], ebx
je 0x4043e5
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x4043cb
mov eax, 5
push 0x47f4b4
call fcn.00408490
add esp, 4
jmp 0x404437
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x40442f
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x4043f3
mov ebx, esi
jmp 0x4043b7
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40441c
push 0x47f4b4
mov eax, 0x47f4b4
call fcn.004081e0
add esp, 4
jmp 0x404437
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.004034e0
test eax, eax
je 0x404437
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404441
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00447157
add esp, 0x28
ret