joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021439
Capabilities:
Get file version info

Disassembly:
push 0xe8
mov eax, 0x100441b5
call fcn.1002b17c
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x10021462
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x40]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x100214d1
call fcn.1001a60e
test eax, eax
je 0x100214bf
push 0x1b1
push str.JustUtil::GetVersion
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x6c]
call fcn.1001ac41
xor edi, edi
inc edi
mov esi, eax
mov byte [ebp - 4], 1
call fcn.1001aa80
mov ecx, eax
mov eax, str.Cant_get_FileInfo.
call fcn.1001ab2c
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.1001a66c
xor ebx, ebx
mov ecx, dword [ebp - 0x34]
push 0x10049800
call fcn.10001c21
jmp 0x10021628
push esi
call fcn.10025992
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100214bf
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.10002b1d
mov byte [ebp - 4], 2
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], ebx
jae 0x10021501
lea eax, [ebp + 0x10]
push edi
push esi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1002160a
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x1004a4b8
push edi
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x38], ebx
je 0x1002160a
lea eax, [ebp - 0xf4]
push eax
call fcn.1001366c
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x38]
cmp byte [ebp + 0x28], bl
je 0x10021568
movzx eax, word [ecx + 0x14]
movzx edx, word [ecx + 0x16]
push eax
push ecx
mov eax, 0x1004980c
push eax
push ecx
push edx
movzx edx, word [ecx + 0x10]
push ecx
push eax
push ecx
push edx
push ecx
push eax
movzx eax, word [ecx + 0x12]
jmp 0x10021588
movzx eax, word [ecx + 0xc]
movzx edx, word [ecx + 0xe]
push eax
push ecx
mov eax, 0x1004980c
push eax
push ecx
push edx
movzx edx, word [ecx + 8]
push ecx
push eax
push ecx
push edx
push ecx
push eax
movzx eax, word [ecx + 0xa]
push ecx
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.10021693
pop ecx
push eax
call fcn.100048bc
add esp, 0xc
push eax
call fcn.10021693
pop ecx
push eax
call fcn.100048bc
add esp, 0xc
push eax
call fcn.10021693
pop ecx
push eax
call fcn.100048bc
add esp, 0xc
push eax
call fcn.10021693
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xf4]
call fcn.10013700
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x100215e4
mov eax, dword [eax + 4]
jmp 0x100215e7
add eax, 4
push eax
lea ecx, [ebp - 0x30]
call fcn.100029e3
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.10002b97
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.10011f62
push edi
call fcn.10027fba
pop ecx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push eax
call fcn.10001c43
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.10002b97
push ebx
push 1
lea esi, [ebp + 0xc]
call fcn.10002d0f
mov eax, dword [ebp - 0x34]
call fcn.1002b1ff
ret
Function at 0x10024d80
Capabilities:
Read file on windows

Disassembly:
push 0x70
mov eax, 0x10042c9a
call fcn.1002b17c
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ebx
sub esp, 0x1c
mov dword [ebp - 4], ebx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.10001c43
lea ecx, [ebp - 0x48]
call fcn.1001f0c9
add esp, 0x1c
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x10024dc6
lea eax, [ebp - 0x44]
push 0x1004cc64
push eax
call fcn.1002846e
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x10024e48
call fcn.1001a60e
test eax, eax
je 0x10024e39
sub esp, 0x1c
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.10001c43
push 0x54
push str.FileSystem::ReadFile
mov byte [ebp - 4], 2
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x7c]
call fcn.1001ac41
mov ecx, eax
mov byte [ebp - 4], 3
mov eax, str.Cant_open_file:
call fcn.1001ab2c
mov edi, eax
mov byte [ebp - 4], 4
call fcn.1001ab52
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor ebx, ebx
mov ecx, dword [ebp - 0x4c]
push 0x10049800
call fcn.10001c21
jmp 0x10024ec2
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.10002b1d
push 2
push ebx
push esi
mov byte [ebp - 4], 5
call fcn.10029085
push esi
call fcn.1002a3ad
push ebx
push ebx
push esi
mov edi, eax
call fcn.10029085
add esp, 0x1c
push 0x20
mov eax, edi
lea ecx, [ebp - 0x2c]
call fcn.1000f0b7
push esi
push edi
push 1
xor edi, edi
lea eax, [ebp - 0x2c]
call fcn.10008614
push eax
call fcn.1002a6bb
add esp, 0x10
push ebx
lea ecx, [ebp - 0x2c]
call fcn.1000f0b7
push esi
call fcn.10028618
pop ecx
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
call fcn.10001c43
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10002b97
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.10002d0f
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.10002b97
mov eax, dword [ebp - 0x4c]
call fcn.1002b1ff
ret
Function at 0x10024ee1
Capabilities:
Write file on windows

Disassembly:
push 0x50
mov eax, 0x10042c4d
call fcn.1002b17c
xor edi, edi
sub esp, 0x1c
inc edi
mov dword [ebp - 4], edi
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.10001c43
lea ecx, [ebp - 0x2c]
call fcn.1001f0c9
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.10002160
lea ebx, [ebp - 0x4c]
call fcn.10024c7f
add esp, 0x1c
cmp dword [eax + 0x18], 8
jb 0x10024f34
mov eax, dword [eax + 4]
jmp 0x10024f37
add eax, 4
push eax
call fcn.1002a6d8
pop ecx
push 0
push edi
lea esi, [ebp - 0x4c]
call fcn.10002d0f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10024f55
lea eax, [ebp - 0x28]
push 0x1004a108
push eax
call fcn.1002846e
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x10024fd3
call fcn.1001a60e
test eax, eax
je 0x1002509c
sub esp, 0x1c
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.10001c43
push 0x70
push str.FileSystem::WriteFile
mov byte [ebp - 4], 3
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x5c]
call fcn.1001ac41
mov ecx, eax
mov byte [ebp - 4], 4
mov eax, 0x1004a10c
call fcn.1001ab2c
mov edi, eax
mov byte [ebp - 4], 5
call fcn.1001ab52
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.1001a66c
xor edi, edi
inc edi
jmp 0x1002509c
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0x10024fdf
lea eax, [ebp + 0x28]
push dword [ebp - 0x30]
push dword [ebp + 0x38]
push edi
push eax
call fcn.10028f79
mov esi, eax
add esp, 0x10
cmp esi, dword [ebp + 0x38]
je 0x1002504b
call fcn.1001a60e
test eax, eax
je 0x10025093
push 0x76
push str.FileSystem::WriteFile
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x5c]
call fcn.1001ac41
mov ecx, eax
push esi
mov byte [ebp - 4], 6
push dword [ebp + 0x38]
mov eax, str.Try_to_write
call fcn.1001ab2c
push eax
call fcn.1001a9c9
mov ecx, eax
mov eax, str.__really__
call fcn.1001ab2c
push eax
call fcn.1001a9c9
jmp 0x10025087
call fcn.1001a60e
test eax, eax
je 0x10025093
push 0x78
push str.FileSystem::WriteFile
call fcn.1001a60e
push eax
mov ecx, 0x1004a448
lea ebx, [ebp - 0x5c]
call fcn.1001ac41
mov byte [ebp - 4], 7
push dword [ebp + 0x38]
push eax
call fcn.1001a9c9
mov ecx, eax
mov eax, str.bytes_wrote.
call fcn.1001ab2c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.1001a66c
push dword [ebp - 0x30]
call fcn.10028618
pop ecx
xor ebx, ebx
push ebx
push edi
lea esi, [ebp - 0x2c]
call fcn.10002d0f
push ebx
push edi
lea ecx, [ebp + 8]
call fcn.10002b97
push ebx
push edi
lea ecx, [ebp + 0x24]
call fcn.10002b97
call fcn.1002b1ff
ret

Function at 0x10026081
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100572c0]
jne 0x1002608b
repz ret
jmp fcn.1002db19
Function at 0x1003c5d2
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.1002e6da
and dword [ebp - 4], 0
cmp dword [0x10059a48], 0
mov ebx, eax
jne 0x1003c683
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1003c734
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1003c734
push eax
call fcn.1002e668
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10059a48], eax
call esi
push eax
call fcn.1002e668
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10059a4c], eax
call esi
push eax
call fcn.1002e668
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10059a50], eax
call esi
push eax
call fcn.1002e668
pop ecx
mov dword [0x10059a58], eax
test eax, eax
je 0x1003c683
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1002e668
pop ecx
mov dword [0x10059a54], eax
mov eax, dword [0x10059a54]
cmp eax, ebx
je 0x1003c6db
cmp dword [0x10059a58], ebx
je 0x1003c6db
push eax
call fcn.1002e6e3
push dword [0x10059a58]
mov esi, eax
call fcn.1002e6e3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1003c6db
test edi, edi
je 0x1003c6db
call esi
test eax, eax
je 0x1003c6d2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1003c6d2
test byte [ebp - 0xc], 1
jne 0x1003c6db
or dword [ebp + 0x10], 0x200000
jmp 0x1003c714
mov eax, dword [0x10059a4c]
cmp eax, ebx
je 0x1003c714
push eax
call fcn.1002e6e3
pop ecx
test eax, eax
je 0x1003c714
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1003c714
mov eax, dword [0x10059a50]
cmp eax, ebx
je 0x1003c714
push eax
call fcn.1002e6e3
pop ecx
test eax, eax
je 0x1003c714
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10059a48]
call fcn.1002e6e3
pop ecx
test eax, eax
je 0x1003c734
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1003c736
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f30
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret

Function at 0x404220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x107c
call fcn.00419cf0
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x107c], 0
push 0x426730
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410a07
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x40427d
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
xor eax, eax
jmp 0x404346
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041172f
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.0041193f
add esp, 4
mov dword [ebp - 0x74], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.0041172f
add esp, 0xc
lea ecx, [ebp - 0x70]
push ecx
call fcn.00403f30
add esp, 4
mov edx, dword [ebp - 8]
push edx
push 0x1000
push 1
lea eax, [ebp - 0x1078]
push eax
call fcn.00411bee
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x404303
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x1078]
push eax
call fcn.00403f80
add esp, 0xc
mov ecx, dword [ebp - 0x107c]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x107c], ecx
jmp 0x4042b8
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404090
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.00410c8c
add esp, 4
mov edx, dword [ebp - 0x107c]
cmp edx, dword [ebp - 0x74]
jae 0x404341
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
xor eax, eax
jmp 0x404346
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret
Function at 0x404ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00419cf0
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
mov dword [0x42a640], 0
push 0x426728
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410a07
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x404ef4
xor eax, eax
jmp 0x404f9a
push 0
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [0x420208]
cmp eax, 4
je 0x404f14
xor eax, eax
jmp 0x404f9a
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x404f7a
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [0x420208]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404f44
jmp 0x404f7a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.00410ba5
add esp, 0x10
mov eax, dword [ebp - 0x1014]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1014], eax
mov ecx, dword [ebp - 0x1014]
mov dword [0x42a640], ecx
jmp 0x404f14
mov edx, dword [ebp - 8]
push edx
call fcn.00410c8c
add esp, 4
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0xc]
jae 0x404f95
xor eax, eax
jmp 0x404f9a
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret

Function at 0x405550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00417ec0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x405598
cmp dword [ebp + 0xc], 0
jne 0x4055a2
jmp 0x40568a
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x405615
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x4055c7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
je 0x405615
push 0x426134
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00410a07
add esp, 0xc
jmp 0x405658
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [0x420028]
push 0x42613c
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.0041123d
add esp, 0xc
push 0x426158
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00410a07
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x405680
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00410ba5
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.00410c8c
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret
Function at 0x4056a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00417ec0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4056ef
cmp dword [ebp + 0xc], 0
jne 0x4056f9
jmp 0x405806
cmp dword [ebp + 0x10], 0
je 0x40574e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x405717
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x405758
jmp 0x405806
cmp dword [0x428f30], 3
jne 0x40578e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [0x420024]
push 0x426160
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0041123d
add esp, 0xc
jmp 0x4057a0
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [0x420028]
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0041123d
add esp, 0xc
push 0x426164
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00410a07
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4057da
jmp 0x405806
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411bee
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.00410c8c
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret
Function at 0x405820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00417ec0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40586f
cmp dword [ebp + 0xc], 0
jne 0x405879
jmp 0x40594a
cmp dword [ebp + 0x10], 0
je 0x4058ce
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x405897
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x4058d2
jmp 0x40594a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [0x420028]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0041123d
add esp, 0xc
push 0x42616c
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00410a07
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40591e
jmp 0x40594a
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411bee
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00410c8c
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret
Function at 0x409880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x409890
xor eax, eax
jmp 0x409a2d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4099ee
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x424b60]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x424b60]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x424b60]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x424b60]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x424b60]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x424b60]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x424b60]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x424b60]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x409899
cmp dword [ebp + 0x10], 0
je 0x409a27
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x424b60]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x4099f4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40e8f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x4223e0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410a07
add esp, 0xc
test eax, eax
je 0x40e924
xor eax, eax
jmp 0x40e9f3
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0041172f
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.0041193f
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041172f
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.00410d00
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00411bee
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00410c8c
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.00401e70
add esp, 8
push 0x4223e8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410a07
add esp, 0xc
test eax, eax
je 0x40e9be
xor eax, eax
jmp 0x40e9f3
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00410ba5
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00410c8c
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret