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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53eaa8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x58f660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x40f52c
xor eax, eax
jmp 0x40f6b1
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x40f555
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40f555
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x40f6b1
cmp dword [edi + 0x54], 0
je 0x40f6ae
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x40f57d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x40f5a3
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.0051578b
add esp, 8
cmp eax, 0xffffffff
je 0x40f6ae
mov eax, ebx
jmp 0x40f6b1
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.0040ff00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x40f5c0
mov edx, eax
cmp ebx, 0x10
jae 0x40f5cc
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x40f6a6
cmp eax, 1
jg 0x40f660
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40f60c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x40f635
cmp ebx, 0x10
jae 0x40f61b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00515f14
add esp, 0x10
cmp esi, eax
jne 0x40f6a6
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x40f699
test esi, esi
jne 0x40f5c0
cmp dword [ebp - 0x1c], 0x20
jae 0x40f6a6
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.0040ff60
jmp 0x40f5b5
cmp eax, 3
jne 0x40f6a6
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.0051578b
add esp, 8
cmp eax, 0xffffffff
je 0x40f68a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.004042a0
mov eax, esi
jmp 0x40f6b1
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.004042a0
mov eax, esi
jmp 0x40f6b1
lea ecx, [ebp - 0x2c]
call fcn.004042a0
mov eax, dword [ebp + 8]
jmp 0x40f6b1
lea ecx, [ebp - 0x2c]
call fcn.004042a0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret 4
Function at 0x410460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ed38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x58f660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x410568
cmp byte [edi + 0x49], 0
je 0x410568
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x41055c
lea esi, [ebp - 0x2c]
call fcn.0040ff00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4104d3
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4104fc
dec eax
je 0x410500
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x410557
jmp 0x410563
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x410510
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x410539
cmp ebx, 0x10
jae 0x41051f
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00515f14
add esp, 0x10
cmp esi, eax
jne 0x410554
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x410560
test esi, esi
jne 0x4104c7
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.0040ff60
jmp 0x4104c1
lea ecx, [ebp - 0x2c]
call fcn.004042a0
xor al, al
jmp 0x41056a
lea ecx, [ebp - 0x2c]
call fcn.004042a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret
Function at 0x4106d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e86b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58f660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00532f88
push 4
mov dword [ebp - 4], 0
call fcn.0041f693
mov edi, eax
add esp, 4
test edi, edi
je 0x41074c
call fcn.00532add
mov dword [edi], eax
call fcn.0053289c
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.005327d1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x410742
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.005327f9
jmp 0x41074e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413970
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e9f3
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x58f660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x20], 0x59807c
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], eax
lea edi, [ebx + 0x34]
mov dword [ebx], vtable.TiXmlDocument.0
mov dword [edi], 0x59807c
mov byte [ebp - 4], 1
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x3c], ecx
push 0x56ad5b
xor esi, esi
mov dword [ebx + 0x38], 4
mov byte [ebx + 0x44], al
mov byte [ebx + 0x2c], al
mov dword [ebx + 0x30], eax
call fcn.00414850
xor eax, eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x413c67
cmp byte [ebx + 0x2c], 0
jne 0x413c5d
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413c40
sub eax, esi
push edx
lea edi, [ebx + 0x34]
mov esi, eax
call fcn.00414850
or eax, 0xffffffff
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x413c81
mov edi, edi
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
test esi, esi
jne 0x413c70
xor ecx, ecx
push 2
or eax, 0xffffffff
push ecx
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], ecx
push edi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.005168b0
push edi
call fcn.00516ac0
push 0
mov esi, eax
push 0
push edi
mov dword [ebp - 4], esi
call fcn.005168b0
add esp, 0x1c
test esi, esi
jg 0x413cdf
cmp byte [ebx + 0x2c], 0
jne 0x413c5d
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 0xc
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413cd3
jmp 0x413c47
lea eax, [esi + 1]
push eax
call fcn.0041f693
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edi, eax
push esi
push edi
mov byte [edi], 0
call fcn.00516d6f
add esp, 0x14
cmp eax, 1
je 0x413d3c
push edi
call fcn.0041f6cd
add esp, 4
cmp byte [ebx + 0x2c], 0
jne 0x413c5d
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
jmp 0x413d30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413d30
jmp 0x413c47
mov edx, dword [ebp - 4]
mov byte [edi + edx], 0
cmp byte [edi], 0
mov eax, edi
mov esi, edi
je 0x413d6c
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 0xd
jne 0x413d63
mov byte [esi], 0xa
inc eax
inc esi
cmp byte [eax], 0xa
jne 0x413d67
jmp 0x413d66
mov byte [esi], cl
inc esi
inc eax
cmp byte [eax], 0
jne 0x413d50
push 0
mov byte [esi], 0
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push 0
push edi
mov ecx, ebx
call edx
push edi
call fcn.0041f6cd
add esp, 4
xor eax, eax
cmp byte [ebx + 0x2c], al
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4175d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x58f660]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x20]
mov ebx, edx
mov eax, dword [ebx + 0x58]
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x110], eax
call fcn.0041a3e0
test eax, eax
jne 0x41771f
push 0x107
call fcn.0041f6c2
add esp, 4
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x41763d
pop edi
pop esi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret
push 0x103
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.00518380
lea eax, [edi + 0x5c]
lea edx, [ebp - 0x108]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417665
cmp dword [ebx + 0x30], 0x10
lea eax, [ebx + 0x1c]
jb 0x41767a
mov eax, dword [eax]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417680
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417690
mov ecx, eax
shr ecx, 2
push 0
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push 0
push 1
mov ecx, eax
push SysReAllocString
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4176f4
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.0041f6cd
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x417736
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.0041f6cd
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x114]
mov esi, dword [ebp - 0x10c]
mov edi, 0x100
cmp eax, 0x100
ja 0x41774a
mov edi, eax
push 0
lea edx, [ebp - 0x120]
push edx
push edi
lea eax, [esi + 7]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x120], edi
jne 0x417797
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x11c]
mov ecx, esi
mov esi, dword [edx + 0x20]
push eax
call fcn.0041a4a0
mov esi, eax
test esi, esi
jne 0x4177be
add dword [ebp - 0x110], edi
sub dword [ebp - 0x114], edi
jne 0x417730
jmp 0x417707
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041f6cd
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10c]
push eax
call fcn.0041f6cd
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00514194
mov esp, ebp
pop ebp
ret
Function at 0x418960
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x58f660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0x1c]
movzx ecx, byte [eax + 0x1b]
add ecx, 5
push esi
movzx esi, byte [eax + 0x1e]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x1d]
shl esi, 8
or esi, ecx
mov cl, 0x65
mov byte [ebp - 6], cl
mov ecx, 0
mov dword [ebp - 0xc], 0x69796567
mov word [ebp - 8], 0x7578
mov byte [ebp - 5], cl
jle 0x4189e4
push edi
lea edi, [eax + edx]
mov eax, 0x24924925
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
lea edx, [eax*8]
sub edx, eax
mov eax, ecx
sub eax, edx
mov dl, byte [ebp + eax - 0xc]
xor dl, byte [edi + ecx]
inc ecx
rol dl, 4
mov byte [edi + ecx - 1], dl
cmp ecx, esi
jl 0x4189b1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00514194
mov esp, ebp
pop ebp
ret 4

Function at 0x418a00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x58f660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x17]
movzx edx, byte [eax + 0x16]
push esi
push edi
movzx edi, byte [eax + 0x19]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x18]
shl edi, 8
or edi, edx
mov dword [ebp - 0xc], 0x69796567
mov dword [ebp - 8], 0x657578
mov esi, 0
jbe 0x418a83
add ecx, eax
push ebx
jmp 0x418a50
mov bl, byte [ecx + esi]
mov eax, 0x24924925
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
lea edx, [eax*8]
sub edx, eax
mov eax, esi
rol bl, 4
sub eax, edx
xor bl, byte [ebp + eax - 0xc]
inc esi
mov byte [ecx + esi - 1], bl
cmp esi, edi
jb 0x418a50
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00514194
mov esp, ebp
pop ebp
ret 4
Function at 0x419ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x58f660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push edi
mov edi, ecx
cmp eax, 4
ja case.0x419efb.0
jmp dword [eax*4 + 0x419fe0]
mov eax, 0x80004005
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 8]
push 8
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
test eax, eax
jne 0x419f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 8]
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
test eax, eax
je 0x419f28
mov edx, dword [ebp + 8]
mov eax, dword [esi + 8]
push 0
push edi
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419f28
call fcn.00517609
mov edi, dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x34]
push edx
push eax
call edi
test eax, eax
je 0x419f28
call fcn.00517609
sub eax, dword [ebp - 0x30]
cmp eax, 0x3e8
jge 0x419f9a
cmp dword [ebp - 8], 0
ja 0x419f73
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040ad80
cmp dword [ebp - 8], 0
lea ecx, [ebp - 0x2c]
je 0x419fc7
call fcn.004042a0
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret 4
call fcn.004042a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00514194
mov esp, ebp
pop ebp
ret 4

Function at 0x41a000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x58f660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x14], eax
call fcn.00517609
mov edi, eax
mov edi, edi
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x41a064
call fcn.00517609
sub eax, edi
cmp eax, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
jge 0x41a07b
test eax, eax
jne 0x41a07f
cmp dword [ebp + 0xc], eax
ja 0x41a020
mov eax, 0x102
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x41a04e
cmp eax, dword [ebp + 0xc]
jb 0x41a04e
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 8]
push 0
push ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a064
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00514194
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
mov esi, ecx
mov ecx, edi
mov edx, ebx
mov eax, 0xffff
test edi, edi
je 0x41a0f1
jmp 0x41a0d0
movzx ebx, byte [edx]
xor ebx, eax
shr ax, 8
and ebx, 0xff
xor ax, word [ebx*2 + 0x56b8d0]
inc edx
dec ecx
movzx eax, ax
jne 0x41a0d0
mov ebx, dword [ebp + 8]
not eax
movzx edx, ax
mov eax, dword [esi + 0x24]
xor ecx, ecx
mov byte [eax], 0x7e
mov dword [ebp - 4], edx
mov eax, 1
test edi, edi
je 0x41a148
jmp 0x41a113
mov ebx, dword [ebp + 8]
mov dl, byte [ecx + ebx]
cmp dl, 0x7e
je 0x41a129
cmp dl, 0x7d
je 0x41a129
mov ebx, dword [esi + 0x24]
mov byte [eax + ebx], dl
inc eax
jmp 0x41a140
mov edx, dword [esi + 0x24]
mov byte [eax + edx], 0x7d
mov dl, byte [ecx + ebx]
mov ebx, dword [esi + 0x24]
xor dl, 0x20
mov byte [eax + ebx + 1], dl
add eax, 2
inc ecx
cmp ecx, edi
jb 0x41a110
mov edx, dword [ebp - 4]
cmp dl, 0x7e
je 0x41a15b
cmp dl, 0x7d
je 0x41a15b
mov ecx, dword [esi + 0x24]
mov byte [eax + ecx], dl
inc eax
jmp 0x41a171
mov ecx, dword [esi + 0x24]
mov byte [eax + ecx], 0x7d
mov edi, dword [esi + 0x24]
mov cl, dl
xor cl, 0x20
mov byte [eax + edi + 1], cl
add eax, 2
shr edx, 8
mov cl, dl
cmp cl, 0x7e
je 0x41a189
cmp cl, 0x7d
je 0x41a189
mov edx, dword [esi + 0x24]
mov byte [eax + edx], cl
inc eax
jmp 0x41a19d
mov edx, dword [esi + 0x24]
mov byte [eax + edx], 0x7d
mov edx, dword [esi + 0x24]
xor cl, 0x20
mov byte [eax + edx + 1], cl
add eax, 2
mov ecx, dword [esi + 0x24]
mov byte [eax + ecx], 0x7e
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi + 0x24]
inc eax
push eax
call fcn.00419ee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41b710
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push 0
lea eax, [ebp - 4]
push eax
push 8
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0x7405c
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41b7c4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x54]
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x18]
cmp byte [edx + 0x54], 0
mov edi, eax
push edi
je 0x41b75e
push 0x56ebdc
jmp 0x41b763
push str.Failed_to_obtain_the_disk_capacity._The_error_code_is
push 0x597f50
call fcn.00515b45
movzx eax, word [esi + 4]
mov ecx, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
and eax, 0xff
push 0x597f50
or eax, 0x100
shl eax, 0x10
push eax
push 0x178c
push ecx
call ebx
movzx edx, word [esi + 4]
mov eax, dword [esi + 8]
and edx, 0xff
push 0x597f50
shl edx, 0x10
or edx, 0x1000001
push edx
push 0x178c
push eax
call ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp ecx, 4
jg 0x41b7da
jl 0x41b7d5
test eax, eax
jne 0x41b7da
mov byte [esi], 1
jmp 0x41b7dd
mov byte [esi], 0
push 0
push 0x200
push ecx
push eax
call fcn.0051aa20
pop edi
mov dword [esi + 0x1c], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
mov edi, eax
mov ebx, dword [edi + 0x54]
mov eax, dword [ebp + 0xc]
push 0x400000
push 0
shl ebx, 9
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], ebx
call fcn.00518380
mov ecx, dword [edi + 0x58]
add esp, 0xc
test ecx, ecx
jns 0x41d3fb
mov eax, dword [esi + 0x1c]
add eax, ecx
jmp 0x41d3fd
mov eax, ecx
cdq
mov edi, eax
mov eax, dword [esi + 8]
shld edx, edi, 9
mov dword [ebp - 0x1c], edx
movzx edx, word [esi + 4]
and edx, 0xff
mov ecx, ebx
push ecx
shl edx, 0x10
or edx, 2
push edx
push 0x178c
push eax
shl edi, 9
call dword [sym.imp.USER32.dll_SendMessageA]
test ebx, ebx
jbe 0x41d5b3
cmp ebx, 0x400000
jbe 0x41d447
mov eax, 0x400000
mov dword [ebp - 0xc], eax
jmp 0x41d44c
mov dword [ebp - 0xc], ebx
mov eax, ebx
mov ecx, eax
and ecx, 0x1ff
sub eax, ecx
cmp byte [esi + 0xc], 0
mov dword [ebp - 8], eax
jne 0x41d52c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
jne 0x41d499
test eax, eax
jne 0x41d4af
cmp ecx, 0xffffffff
jne 0x41d4af
cmp dword [ebp - 0x14], 0
jne 0x41d4af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41d4e5
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d4dc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x41d4dc
mov dword [ebp - 4], 0
jmp 0x41d4e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d53e
add edi, dword [ebp - 8]
movzx edx, word [esi + 4]
adc dword [ebp - 0x1c], 0
sub ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 8]
and edx, 0xff
sub ecx, ebx
push ecx
shl edx, 0x10
or edx, 3
push edx
push 0x178c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ebx, ebx
jne 0x41d435
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0x4c7
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x18]
cmp byte [ecx + 0x54], 0
push eax
je 0x41d54f
push 0x56f0a8
jmp 0x41d554
push 0x56f0d0
push 0x597f50
call fcn.00515b45
movzx edx, word [esi + 4]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
and edx, 0xff
push 0x597f50
or edx, 0x100
shl edx, 0x10
push edx
push 0x178c
push eax
call edi
movzx ecx, word [esi + 4]
mov edx, dword [esi + 8]
and ecx, 0xff
push 0x597f50
shl ecx, 0x10
or ecx, 0x1000001
push ecx
push 0x178c
push edx
call edi
mov byte [esi + 0xd], 1
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8