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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x103
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x10f]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x110], 0
call fcn.00401f80
add esp, 0xc
mov edx, edi
call fcn.00439c75
test eax, eax
je 0x4903a7
xor eax, eax
jmp 0x490447
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00438aa8
pop ecx
mov esi, eax
call fcn.00438922
mov eax, esi
push edi
push eax
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
jne 0x4903f1
push edi
push eax
push eax
call fcn.0045531b
pop ecx
pop ecx
push eax
push 0x4af44c
mov eax, esi
push 0x104
push eax
call fcn.004392ef
add esp, 0x14
mov edi, esi
cmp dword [ebp - 0x114], 0
je 0x49043c
push 0x14e8
push str.File.c
mov edx, 0x4ae7a4
mov ecx, edi
call fcn.0048d3dd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4903a0
push edi
push 1
push 0x64
push dword [ebp - 0x114]
call fcn.0040257f
mov esi, eax
add esp, 0x10
neg esi
sbb esi, esi
mov ecx, edi
neg esi
call fcn.0048fcf9
jmp 0x490445
mov eax, edi
call fcn.0048e8b7
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401317
leave
ret

Function at 0x490455
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
mov esi, edx
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x114], esi
mov byte [ebp - 0x110], 0
call fcn.00401f80
add esp, 0xc
test esi, esi
je 0x490534
mov edx, edi
call fcn.00439c75
test eax, eax
jne 0x490534
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00438aa8
mov esi, eax
call fcn.00438922
mov eax, esi
push edi
push eax
call fcn.004023a0
add esp, 0xc
test eax, eax
jne 0x4904f2
push edi
push eax
push eax
call fcn.0045531b
pop ecx
pop ecx
push eax
push 0x4af44c
mov eax, esi
push 0x104
push eax
call fcn.004392ef
add esp, 0x14
mov edi, esi
push 0x14c8
push str.File.c
mov edx, 0x4ae668
mov ecx, edi
call fcn.0048d3dd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x490534
push edi
push 1
push 0x64
push dword [ebp - 0x114]
call fcn.00402244
add esp, 0x10
neg eax
sbb esi, esi
mov ecx, edi
neg esi
call fcn.0048fcf9
mov eax, esi
jmp 0x490536
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401317
leave
ret
Function at 0x490544
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 5
pop ecx
mov esi, str.ThisIsAFileLockxxxx
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0041a877
mov edx, ebx
mov dword [ebp - 0x24], eax
call fcn.00439c75
test eax, eax
jne 0x49065b
mov edi, ebx
call fcn.0048e806
test eax, eax
jne 0x490591
inc eax
jmp 0x49065d
push 0x148f
mov edi, str.File.c
mov esi, 0x4ae668
push edi
mov edx, esi
mov ecx, ebx
call fcn.0048d3dd
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4905d2
push 0x64
call ebx
mov ecx, dword [ebp - 0x1c]
push 0x1493
push edi
mov edx, esi
call fcn.0048d3dd
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
call fcn.00438b22
xor edi, edi
inc edi
cmp dword [ebp - 0x20], 0
je 0x4905fa
push dword [ebp - 0x20]
push edi
push 0x14
push eax
call fcn.00402244
mov ecx, dword [ebp - 0x20]
add esp, 0x10
call fcn.0048fcf9
lea eax, [ebp - 0x18]
push str.ThisIsAFileLockxxxx
push eax
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
jne 0x49065b
mov eax, dword [ebp - 0x1c]
call fcn.0048e8b7
test eax, eax
je 0x49061e
mov eax, edi
jmp 0x49065d
push 0x64
call ebx
call fcn.0041a877
sub eax, dword [ebp - 0x24]
mov esi, 0x2710
cmp eax, esi
jae 0x49063f
mov eax, dword [ebp - 0x1c]
call fcn.0048e8b7
test eax, eax
jne 0x49061a
push 0x64
call ebx
call fcn.0041a877
sub eax, dword [ebp - 0x24]
cmp eax, esi
jae 0x49065b
mov eax, dword [ebp - 0x1c]
call fcn.0048e8b7
test eax, eax
jne 0x49061a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret

Function at 0x49066c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
mov edx, esi
stosw word es:[edi], ax
call fcn.00439c75
test eax, eax
je 0x4906a0
xor eax, eax
jmp 0x490722
call fcn.0041a877
mov edi, eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041b245
pop ecx
jmp 0x4906cc
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041a877
sub eax, edi
cmp eax, 0x7530
ja 0x4906d9
xor edx, edx
mov ecx, esi
call fcn.0048ef71
test eax, eax
jne 0x4906b3
push 0x140a
push str.File.c
mov edx, 0x4ae7a4
mov ecx, esi
call fcn.0048d3dd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x490699
push esi
push 1
push 0x14
push str.ThisIsAFileLockxxxx
call fcn.0040257f
push esi
push 1
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.0040257f
add esp, 0x20
mov ecx, esi
mov edi, eax
call fcn.0048fcf9
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401317
leave
ret
Function at 0x490730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.00439c75
test eax, eax
je 0x49074d
xor eax, eax
jmp 0x4907dc
mov ecx, dword [ebp + 8]
xor edx, edx
call fcn.0048ef71
mov edi, eax
test edi, edi
je 0x490746
mov ecx, dword [ebp + 8]
push 0x1389
push str.File.c
mov edx, 0x4ae668
call fcn.0048d3dd
mov ebx, eax
pop ecx
pop ecx
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x490746
lea eax, [edi + 0xe]
push eax
call fcn.004028f8
mov esi, eax
pop ecx
test esi, esi
jne 0x490799
mov ecx, ebx
call fcn.0048fcf9
jmp 0x490746
push ebx
push edi
lea eax, [esi + 4]
push 1
push eax
call fcn.00402244
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jae 0x4907bf
push dword [esp + 0xc]
call fcn.004019d8
pop ecx
test eax, eax
jne 0x4907bf
xor ebx, ebx
mov ecx, dword [esp + 0xc]
call fcn.0048fcf9
test ebx, ebx
jne 0x4907d8
push esi
call fcn.00401a00
pop ecx
jmp 0x490746
mov dword [esi], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x491a62
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.00439c75
test eax, eax
je 0x491a7d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [0x4fa448], 0
je 0x491a8a
xor eax, eax
jmp 0x491a78
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x4fa448], 1
call fcn.0048ef71
mov ebx, 0x80000
cmp eax, ebx
ja 0x491ab2
xor eax, eax
and dword [0x4fa448], 0
jmp 0x491a78
push dword [ebp + 8]
call fcn.00490730
mov edi, eax
pop ecx
test edi, edi
jne 0x491ac6
or eax, 0xffffffff
jmp 0x491aa9
mov esi, dword [edi]
cmp esi, ebx
ja 0x491ad5
push edi
call fcn.00401a00
pop ecx
jmp 0x491ac1
lea ebx, [esi - 0x80000]
cmp byte [ebx + edi + 4], 0xa
je 0x491aef
inc ebx
lea eax, [esi - 0x20000]
cmp ebx, eax
jb 0x491adb
jmp 0x491af0
inc ebx
mov ecx, dword [ebp + 8]
push 0x4e8
push str.Error.c
mov edx, 0x4ae7a4
call fcn.0048d3dd
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x491acc
push eax
sub esi, ebx
push esi
lea eax, [ebx + edi + 4]
push 1
push eax
call fcn.0040257f
mov ecx, dword [ebp - 4]
call fcn.0048fcf9
push edi
call fcn.00401a00
xor eax, eax
add esp, 0x14
inc eax
jmp 0x491aa9
Function at 0x495318
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, eax
test esi, esi
jne 0x495328
xor eax, eax
jmp 0x49539d
test ebx, ebx
jne 0x495331
mov byte [esi], 0
jmp 0x495324
jns 0x495357
push edi
call fcn.00494e18
mov edi, eax
sub edi, dword [ebp + 8]
push ebx
call fcn.004041ba
pop ecx
cmp edi, eax
jge 0x49534d
mov ebx, edi
jmp 0x495356
push ebx
call fcn.004041ba
pop ecx
mov ebx, eax
pop edi
mov ax, word [ebp + 8]
mov word [ebp - 8], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 6], ax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push esi
call fcn.00494dd4
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x49538d
cmp eax, ebx
jg 0x49532c
mov byte [eax + esi], 0
jmp 0x495324
cmp eax, ebx
jg 0x495397
mov byte [eax + esi], 0
jmp 0x49539a
mov byte [esi], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x4956f5
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x14]
mov ebx, 0x100
lea esi, [ebx - 1]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00401f80
xor eax, eax
and dword [ebp - 0x114], eax
mov word [ebp - 0x108], ax
lea edi, [ebp - 0x106]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x10c]
add esp, 0xc
call fcn.00438ae8
test eax, eax
je 0x49576b
xor eax, eax
jmp 0x495822
push dword [ebp - 0x110]
lea edi, [ebp - 0x104]
push dword [ebp - 0x10c]
mov eax, edi
push esi
push eax
jmp 0x4957ba
lea eax, [ebp - 0x104]
cmp edi, eax
je 0x495794
push edi
call fcn.00401a00
pop ecx
add ebx, ebx
lea eax, [ebx + 0xa]
push eax
push 1
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x495764
push dword [ebp - 0x110]
lea eax, [ebx - 1]
push dword [ebp - 0x10c]
push eax
push edi
call fcn.00402db4
add esp, 0x10
cmp eax, 0xffffffff
je 0x495783
mov cx, word [ebp + 8]
mov word [ebp - 0x108], cx
mov cx, word [ebp + 0xc]
mov word [ebp - 0x106], cx
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp - 0x108]
push eax
push edi
call fcn.00494dd4
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
test eax, eax
jne 0x49580b
cmp byte [0x4f77db], al
jne 0x49580b
mov byte [0x4f77db], 1
lea eax, [ebp - 0x104]
cmp edi, eax
je 0x49581c
push edi
call fcn.00401a00
pop ecx
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x4958f4
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4f7d9c]
push ebx
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x495937
xor ebx, ebx
inc ebx
mov dword [0x4f7da0], ebx
test eax, eax
je 0x49591f
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x4f7d9c]
test edi, edi
je 0x495929
test eax, eax
jne 0x495905
jmp 0x49593a
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x495a38
xor ebx, ebx
inc ebx
test edi, edi
je 0x495a36
push esi
mov esi, 0x4f7da8
push edi
mov ecx, 0x104
mov eax, esi
call fcn.00438aa8
pop ecx
mov eax, edi
call fcn.00438b22
mov cl, byte [0x4f7da8]
xor edi, edi
xor edx, edx
xor eax, eax
jmp 0x495995
cmp edx, edi
je 0x49597f
cmp cl, 0x29
jne 0x495976
xor edx, edx
mov byte [eax + 0x4f7eb0], 0x20
jmp 0x49598e
cmp cl, 0x28
jne 0x495988
mov edx, ebx
jmp 0x495976
mov byte [eax + 0x4f7eb0], cl
mov cl, byte [eax + 0x4f7da9]
inc eax
test cl, cl
jne 0x49596b
push 0x4f7eb0
push esi
mov byte [eax + 0x4f7eb0], cl
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x495a17
mov dword [ebp + 8], edi
mov dword [0x4f7da0], edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ebx, 0x4f7da0
call fcn.004953f2
test eax, eax
jne 0x495a0b
mov dword [0x4f7d9c], 1
cmp dword [ebp + 8], eax
je 0x4959ea
push 0x4f7eb0
call edi
mov eax, 0x2ee
jmp 0x4959f2
push esi
call edi
mov eax, 0x5dc
call fcn.0041ab75
xor eax, eax
cmp dword [ebp + 8], eax
sete al
cmp dword [0x4f7da0], 0
mov dword [ebp + 8], eax
je 0x4959c4
push esi
call edi
and dword [0x4f7d9c], 0
jmp 0x495a35
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x3e8
mov dword [0x4f7d9c], edi
mov dword [0x4f7da0], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4

Function at 0x49620a
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
call fcn.004955cb
test eax, eax
je 0x49621b
xor eax, eax
inc eax
pop ebp
ret
pop ebp
jmp fcn.0049521e
Function at 0x496ca9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
push ebx
mov esi, eax
call fcn.00495440
pop ecx
mov dword [0x4f55d4], ebx
cmp esi, ebx
jne 0x496ce0
xor eax, eax
jmp 0x496e64
push edi
push 0x400
mov eax, 0x4f51d0
push ebx
push eax
mov dword [0x4f55d8], eax
xor edi, edi
mov dword [ebp - 0x10c], ebx
call fcn.00401f80
mov eax, dword [0x4f55d4]
mov edx, dword [0x4f55d0]
add esp, 0xc
cmp byte [esi], bl
je 0x496dd0
mov dword [ebp - 0x110], esi
cmp eax, 0x32
jge 0x496dbc
lea esi, [edx + edi]
cmp esi, 0x3f6
jge 0x496dbc
mov ecx, dword [ebp - 0x110]
mov cl, byte [ecx]
cmp cl, 0x20
ja 0x496d7c
xor ebx, ebx
cmp dword [ebp - 0x10c], ebx
jne 0x496d7c
cmp edi, ebx
jle 0x496d78
inc eax
lea edx, [esi + 6]
mov dword [0x4f55d4], eax
mov dword [0x4f55d0], edx
cmp eax, 1
jne 0x496d6b
add edx, 4
mov dword [0x4f55d0], edx
lea ecx, [edx + 0x4f51d0]
mov dword [eax*4 + 0x4f55d8], ecx
xor edi, edi
jmp 0x496da8
cmp cl, 0x22
jne 0x496d9d
cmp dword [ebp - 0x10c], ebx
jne 0x496d95
mov dword [ebp - 0x10c], 1
jmp 0x496da8
mov dword [ebp - 0x10c], ebx
jmp 0x496da8
mov esi, dword [eax*4 + 0x4f55d8]
mov byte [edi + esi], cl
inc edi
inc dword [ebp - 0x110]
mov ecx, dword [ebp - 0x110]
cmp byte [ecx], bl
jne 0x496d1b
cmp edi, ebx
jle 0x496dd0
inc eax
lea edx, [edx + edi + 1]
mov dword [0x4f55d4], eax
mov dword [0x4f55d0], edx
push 0x32
pop ecx
cmp eax, ecx
jge 0x496de8
lea edi, [eax*4 + 0x4f55d8]
sub ecx, eax
lea eax, [edx + 0x4f51d0]
rep stosd dword es:[edi], eax
mov esi, dword [0x4f55d8]
call fcn.0043a84f
mov edx, eax
call fcn.00439c75
test eax, eax
je 0x496e5e
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00401f80
push dword [0x4f55d8]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x108]
call fcn.00438aa8
mov eax, esi
push str..exe
lea esi, [ebp - 0x108]
call fcn.00439c34
add esp, 0x14
mov edi, esi
call fcn.0048e806
test eax, eax
je 0x496e5e
mov eax, esi
push eax
push dword [0x4f55d8]
call fcn.00401ba0
pop ecx
pop ecx
mov eax, dword [0x4f55d4]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x496e72
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00401f80
add esp, 0xc
call fcn.0049623c
xor edi, edi
inc edi
call fcn.00494dbe
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x496ebe
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push 0xfffffffffffffff6
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push eax
call ebx
test eax, eax
jne 0x496ed9
xor edi, edi
push 3
push 0xfffffffffffffff5
call esi
push eax
call ebx
test eax, eax
jne 0x496ee8
xor edi, edi
push 1
push 0x4953fe
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x496efb
xor edi, edi
push 0x35c
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x496f0c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ebx, ebx
mov dword [0x4f56a4], eax
cmp eax, ebx
jne 0x496f1f
xor edi, edi
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x496f62
lea edx, [ebp - 0x108]
call fcn.00439822
mov eax, edx
push eax
mov esi, 0x4ae828
call fcn.00438a03
pop ecx
test eax, eax
jne 0x496f62
push ebx
push ebx
call fcn.0045500f
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push ebx
call fcn.0045500f
pop ecx
pop ecx
mov ebx, eax
call fcn.0049a9af
call fcn.0041a877
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040236d
pop ecx
call fcn.0040237f
call fcn.0040237f
call fcn.0040237f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x497cf1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00411aa0
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0xffc
lea eax, [ebp - 0x1000]
mov edi, edx
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x100c], edi
mov dword [ebp - 0x1004], ebx
call fcn.00401f80
add esp, 0xc
mov dword [ebp - 0x1010], ebx
cmp edi, ebx
jne 0x497d43
xor eax, eax
jmp 0x497de5
shr esi, 2
mov eax, 0x40000
mov dword [ebp - 0x1008], esi
cmp esi, eax
jbe 0x497d5b
mov dword [ebp - 0x1008], eax
shr dword [ebp - 0x1008], 2
mov edi, 0x400
cmp dword [ebp - 0x1008], edi
jbe 0x497d84
push 4
push dword [ebp - 0x1008]
call fcn.00401a3a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x497d90
mov dword [ebp - 0x1008], edi
lea esi, [ebp - 0x1004]
xor edi, edi
push dword [ebp - 0x100c]
push dword [ebp - 0x1008]
push 4
push esi
call fcn.00402244
add esp, 0x10
mov dword [ebp - 0x1010], eax
test eax, eax
je 0x497dc5
xor ebx, ebx
test eax, eax
je 0x497dc1
add edi, dword [esi + ebx*4]
inc ebx
cmp ebx, eax
jb 0x497db9
add edi, eax
jmp 0x497d92
test edi, edi
jne 0x497dce
test ebx, ebx
je 0x497dce
inc edi
test esi, esi
je 0x497de3
lea eax, [ebp - 0x1004]
cmp esi, eax
je 0x497de3
push esi
call fcn.00401a00
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret

Function at 0x497ead
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x4d
lea eax, [ebp - 0x53]
push ebx
push eax
mov byte [ebp - 0x54], bl
call fcn.00401f80
add esp, 0xc
cmp esi, ebx
jne 0x497ede
or eax, 0xffffffff
jmp 0x497f89
lea eax, [ebp - 0x54]
push eax
mov edx, str.____This_is_the_beginning_of_a_PAULA_Arkive_self_extracting_compilation.____
call fcn.00439076
push esi
call fcn.00401e22
push esi
mov dword [ebp - 0x58], ebx
call fcn.00401e7e
add esp, 0xc
cmp eax, 0xffffffff
je 0x497f25
push 1
push eax
lea eax, [ebp - 0x58]
lea ebx, [ebp - 0x54]
call fcn.00488e0d
pop ecx
pop ecx
test eax, eax
jne 0x497f82
push esi
call fcn.00401e7e
pop ecx
cmp eax, 0xffffffff
jne 0x497f03
xor ebx, ebx
push edi
push 2
push ebx
push esi
call fcn.0040287c
add esp, 0xc
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00401a80
pop ecx
push eax
lea eax, [ebp - 0x54]
push 1
push eax
call fcn.0040257f
mov edi, eax
lea eax, [ebp - 0x54]
push eax
call fcn.00401a80
add esp, 0x14
cmp edi, eax
pop edi
jne 0x497ed6
push esi
call fcn.00401e22
push 2
push 0xffffffffffffffff
push esi
call fcn.0040287c
push esi
call fcn.00401e7e
push 2
push ebx
push esi
call fcn.0040287c
add esp, 0x20
push esi
call fcn.0040278d
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x4994d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x3c], eax
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
stosb byte es:[edi], al
call fcn.00439c75
test eax, eax
jne 0x49965b
cmp esi, ebx
je 0x499521
mov dword [esi], ebx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x49952a
mov dword [eax], ebx
push dword [ebp - 0x34]
mov esi, 0x4ae828
call fcn.00438a03
pop ecx
test eax, eax
jne 0x499560
mov esi, dword [ebp - 0x34]
push str..exe
mov dword [ebp - 0x44], 0x4e20
call fcn.0043a84f
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
je 0x499563
xor edi, edi
jmp 0x49956d
mov dword [ebp - 0x44], ebx
mov ecx, dword [ebp - 0x34]
call fcn.00499421
mov edi, eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
push 0x80000020
push 3
push 1
call fcn.0048ec75
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x499596
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49965b
push ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x30]
push eax
push 4
lea eax, [ebp - 0x38]
push eax
push esi
call edi
test eax, eax
je 0x49964b
cmp dword [ebp - 0x30], 4
jb 0x49964b
push ebx
lea eax, [ebp - 0x30]
push eax
push 4
lea eax, [ebp - 0x40]
push eax
push esi
call edi
test eax, eax
je 0x4995fe
cmp dword [ebp - 0x30], 4
jb 0x4995fe
push ebx
lea eax, [ebp - 0x30]
push eax
push 8
lea eax, [ebp - 0x48]
push eax
push esi
call edi
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x20
lea eax, [ebp - 0x2c]
push eax
push esi
call edi
test eax, eax
jne 0x499605
call fcn.0048d33e
jmp 0x49965b
call fcn.0048d33e
mov eax, dword [ebp - 0x30]
cmp eax, 0x22
jae 0x49965b
mov byte [ebp + eax - 0x2c], bl
lea eax, [ebp - 0x2c]
push str.222PAULAARCHIVE222JesusIAdoreYou
push eax
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
jne 0x49965b
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x49965b
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x49963d
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x499646
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x49965d
call fcn.0048d33e
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
call fcn.0048ef71
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x49af27
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x49af46
mov esi, dword [0x5edf20]
test esi, esi
je 0x49afa9
call fcn.004442eb
and dword [0x5edf20], 0
jmp 0x49afa9
mov eax, dword [0x5edf20]
test eax, eax
jne 0x49af5f
call fcn.00444328
mov dword [0x5edf20], eax
test eax, eax
jne 0x49af5f
pop esi
ret
push ebx
mov ebx, dword [esi + 0x130]
push edi
mov edi, eax
call fcn.004444ba
test eax, eax
jne 0x49af84
push dword [esi + 0x130]
mov ebx, dword [0x5edf20]
call fcn.004442d7
pop ecx
xor ebx, ebx
cmp dword [esi], ebx
jle 0x49afa7
lea edi, [esi + 4]
mov eax, dword [edi]
call fcn.0049acbf
test eax, eax
je 0x49af9f
mov ecx, dword [edi]
call fcn.0049ada0
inc ebx
add edi, 4
cmp ebx, dword [esi]
jl 0x49af8d
pop edi
pop ebx
xor eax, eax
inc eax
pop esi
ret