joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410340
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [0x4612e0]
sub esp, 0xd0
test eax, eax
jne 0x410356
add esp, 0xd0
ret
push ebx
mov ecx, dword [str.SELECT_FROM_SYS.SYSOPTIONS_o_WHERE_o.user_name__PUBLICORDER_BY_2]
push ebp
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push str.Opt_Cursor
push ecx
push edi
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x3c], 0
call fcn.0041fcd0
mov esi, eax
add esp, 0x2c
cmp esi, 0x6b
jne 0x4103d4
push edi
call fcn.0041c5d0
mov eax, dword [0x4612e0]
push 1
push eax
call fcn.0041db90
mov ecx, dword [str.SELECT_FROM_SYS.SYSOPTIONS_o_WHERE_o.user_name__PUBLICORDER_BY_2]
mov eax, dword [0x4612e0]
push edi
push edi
push edi
push edi
push edi
push edi
push str.Opt_Cursor
push ecx
push edi
lea edx, [esp + 0x40]
push edx
push eax
call fcn.0041fcd0
mov ecx, dword [0x4612e0]
push edi
push ecx
mov esi, eax
call fcn.0041db90
add esp, 0x40
test esi, esi
jne 0x410532
mov edx, dword [esp + 0x10]
push esi
push edx
call fcn.0041fd10
add esp, 8
test eax, eax
jne 0x410532
mov eax, dword [esp + 0x10]
push eax
call fcn.00420be0
mov ecx, dword [esp + 0x14]
mov esi, eax
push 1
push ecx
mov dword [esp + 0x20], esi
call fcn.0041de00
mov edx, dword [esp + 0x1c]
push 0
push esi
push edx
call fcn.00420e50
add esp, 0x18
cmp eax, 1
je 0x4104fc
test eax, eax
jne 0x41052e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 1
push eax
push ecx
call fcn.0041e090
mov edi, eax
add esp, 0xc
xor ebp, ebp
lea ebx, [edi + 2]
mov esi, 0x45c5dc
nop
movzx edx, word [edi]
mov eax, dword [esi]
push edx
push ebx
push eax
call fcn.0044915f
add esp, 0xc
test eax, eax
je 0x410470
add esi, 0x1c
inc ebp
cmp esi, 0x45c924
jl 0x410450
cmp ebp, 0x1e
jne 0x4104cf
movzx ecx, word [edi]
push ecx
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.0043fed0
movzx eax, word [edi]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [0x4612e0]
push 0x3c
lea edx, [esp + 0x30]
mov byte [esp + eax + 0x70], 0
push edx
lea eax, [esp + 0x74]
push eax
push ecx
call fcn.004214b0
add esp, 0x20
test eax, eax
je 0x4104cf
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, dword [0x45c704]
jne 0x4104c1
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x60]
push edx
call fcn.00406260
add esp, 8
mov eax, dword [esp + 0x10]
push 1
push eax
call fcn.0041de00
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
call fcn.00420e50
add esp, 0x14
cmp eax, 1
jne 0x410427
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.0041e140
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00420280
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041dd30
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret
mov edi, dword [esp + 0x14]
push 0
call fcn.0041c5d0
add esp, 4
test edi, edi
je 0x41054e
mov eax, dword [esp + 0x10]
push edi
push eax
call fcn.0041e140
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410569
push eax
call fcn.00420280
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041dd30
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret
Function at 0x414ef0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4612e4]
push eax
call fcn.00435850
add esp, 4
call fcn.00434610
mov ecx, dword [esp + 4]
push ecx
call fcn.0043fe8d
int3

Function at 0x41f4d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareSybaseAdaptive_Server_Anywhere8.0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41f520
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push esi
push esi
push str.Location
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret

Function at 0x41f530
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push esi
mov esi, dword [esp + 0x118]
xor eax, eax
test esi, esi
mov dword [esp + 4], eax
je 0x41f59b
cmp dword [esi], 0
je 0x41f59b
lea ecx, [ecx]
test eax, eax
jne 0x41f651
mov eax, dword [esi]
lea edx, [esp + 0x10]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41f560
push 0
lea eax, [esp + 0x14]
call fcn.0041f3e0
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x18]
call fcn.0041ed80
mov ecx, dword [esi + 4]
add esi, 4
add esp, 8
test ecx, ecx
movzx eax, ax
jne 0x41f550
test eax, eax
jne 0x41f651
lea ecx, [esp + 8]
push ecx
push 1
push 0
push str.SoftwareSybaseAdaptive_Server_Anywhere8.0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f5ef
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push str.Location
push ecx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41f606
lea eax, [esp + 0x10]
push eax
mov ecx, 0x80000002
call fcn.0041f4d0
add esp, 4
test ax, ax
je 0x41f629
push 1
lea eax, [esp + 0x14]
call fcn.0041f3e0
lea ecx, [esp + 8]
push ecx
lea eax, [esp + 0x18]
call fcn.0041ed80
movzx eax, ax
add esp, 8
test eax, eax
jne 0x41f651
push 0
lea eax, [esp + 0x14]
mov byte [esp + 0x14], 0
call fcn.0041f3e0
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x18]
call fcn.0041ed80
movzx eax, ax
add esp, 8
test eax, eax
je 0x41f65c
xor ax, ax
pop esi
add esp, 0x110
ret
mov edx, dword [esp + 4]
xor eax, eax
test edx, edx
setne al
pop esi
inc eax
add esp, 0x110
ret

Function at 0x4239d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call fcn.004256f0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x429e40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov dword [0x462b78], 0
call esi
test ax, ax
push 0x14
setl bl
call esi
movsx eax, ax
mov ecx, eax
and ecx, 0x8000
je 0x429e71
test al, 1
je 0x429e79
test al, 1
je 0x429e7d
test ecx, ecx
jne 0x429e7d
mov al, 1
jmp 0x429e7f
xor al, al
test bl, bl
je 0x429e89
test al, al
je 0x429e8d
jmp 0x429e94
test al, al
je 0x429e94
or dword [0x462b78], 2
push 0x11
call esi
test ax, ax
jge 0x429ea4
or dword [0x462b78], 4
push 0x12
call esi
test ax, ax
pop esi
pop ebx
jge 0x429eb6
or dword [0x462b78], 1
ret
Function at 0x42faa0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [ebx + 0x28]
mov al, byte [esi + 0x38]
test al, 1
push edi
jne 0x42fae4
or al, 1
mov byte [esi + 0x38], al
lea eax, [esi + 0x4c]
mov edx, dword [eax]
lea ecx, [esi + 0x14]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [esi + 0x24], 0x40800000
mov dword [ecx + 0xc], eax
mov ebp, 0x25
jmp 0x42fb11
and al, 0xfe
mov byte [esi + 0x38], al
lea ecx, [esi + 0x3c]
mov eax, dword [ecx]
lea edx, [esi + 0x14]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov dword [esi + 0x24], 0x80cc0000
mov dword [edx + 0xc], ecx
mov ebp, 0x26
mov eax, dword [esi]
lea edx, [esi + 4]
push edx
push eax
call fcn.00431150
mov eax, dword [esi + 0x24]
add esp, 8
cmp eax, 0x80cc0000
je 0x42fb35
mov ecx, dword [esi]
push ecx
call fcn.00430cb0
add esp, 4
mov edx, dword [esi]
push edx
call fcn.00431270
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, 0x80cc0000
jne 0x42fba7
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
add esi, 0x3c
mov edx, dword [esi]
mov eax, dword [esi + 4]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esi + 8]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.0043f7d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
add esp, 0x20
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
push edx
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push ebx
call fcn.00426030
add esp, 8
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push ebp
push ebx
call dword [ebx + 0x54]
add esp, 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x438a50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
mov ebx, 0x45f7a0
jmp 0x438a70
mov ecx, 0xa
mov esi, str.SoftwareSybaseAdaptive_Server_Anywhere
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x438a86
mov ax, word [0x453294]
mov word [edi], ax
mov eax, dword [esp + 0xe4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438aa0
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x438ab0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push eax
call ebp
test eax, eax
jne 0x438b2a
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x438b2a
mov ecx, dword [esp + 0xf4]
cmp dword [esp + 0x14], ecx
je 0x438b46
add ebx, 4
cmp ebx, 0x45f7a8
jl 0x438a70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret

Function at 0x43fdba
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0044452d
xor esi, esi
inc esi
cmp dword [0x463d14], esi
pop ecx
jne 0x43fde2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x463d10], esi
mov byte [0x463d0c], al
jne 0x43fe48
mov ecx, dword [0x465ccc]
test ecx, ecx
je 0x43fe29
mov eax, dword [0x465cc8]
sub eax, 4
cmp eax, ecx
jmp 0x43fe22
mov eax, dword [eax]
test eax, eax
je 0x43fe14
call eax
mov eax, dword [0x465cc8]
sub eax, 4
cmp eax, dword [0x465ccc]
mov dword [0x465cc8], eax
jae 0x43fe0c
mov eax, 0x45c060
mov esi, 0x45c068
cmp eax, esi
mov edi, eax
jae 0x43fe48
mov eax, dword [edi]
test eax, eax
je 0x43fe41
call eax
add edi, 4
cmp edi, esi
jb 0x43fe39
mov eax, 0x45c06c
mov esi, 0x45c070
cmp eax, esi
mov edi, eax
jae 0x43fe67
mov eax, dword [edi]
test eax, eax
je 0x43fe60
call eax
add edi, 4
cmp edi, esi
jb 0x43fe58
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x43fe78
push 8
call fcn.00444499
jmp 0x43fe8a
push dword [ebp + 8]
mov dword [0x463d14], 1
call fcn.0043fd13
pop ecx
pop ebp
ret
Function at 0x442192
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x460458]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x44220d
push ebx
call fcn.0044215b
test eax, eax
pop ecx
jne 0x4421df
call fcn.0043fc26
mov dword [eax], 0xf
call fcn.0043fc1d
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0044920f
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x44221f
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4421cf
inc eax
cmp eax, 0x104
ja 0x4421cf
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x442257
cmp eax, dword [ebp + 0x10]
jg 0x44223a
mov eax, dword [ebp + 0x10]
push eax
call fcn.00440614
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x44226c
call fcn.0043fc1d
mov dword [eax], 0xc
jmp 0x4421cf
cmp eax, dword [ebp + 0x10]
jle 0x44226c
call fcn.0043fc1d
mov dword [eax], 0x22
jmp 0x4421cf
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.004441c0
pop ecx
pop ecx
jmp 0x4421d1

Function at 0x442dbd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x442ddd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043fc2f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x442e00
test byte [esp + 8], 2
je 0x442e00
call fcn.0043fc1d
mov dword [eax], 0xd
call fcn.0043fc26
mov dword [eax], 5
jmp 0x442dd9
xor eax, eax
ret
Function at 0x4435fe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4437c4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x464940]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4437c4
test cl, 0x48
je 0x443664
mov al, byte [eax + 5]
cmp al, 0xa
je 0x443664
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4436b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x44369e
call fcn.0043fc1d
mov dword [eax], 9
call fcn.0043fc26
mov dword [eax], esi
jmp 0x4436ae
cmp eax, 0x6d
je 0x4437c4
push eax
call fcn.0043fc2f
pop ecx
or eax, 0xffffffff
jmp 0x4437c6
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4437bf
test edx, edx
je 0x4436d9
cmp byte [ebx], 0xa
jne 0x4436d9
or al, 4
jmp 0x4436db
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4437b9
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4437a9
cmp al, 0xd
je 0x44370f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x44379b
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x443729
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x443724
add dword [ebp + 0x10], 2
jmp 0x44377d
mov dword [ebp + 0x10], eax
jmp 0x443797
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x443751
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x443797
cmp dword [ebp - 0xc], 0
je 0x443797
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x443772
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x44377d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x44379a
cmp ebx, dword [ebp + 0xc]
jne 0x443782
cmp byte [ebp - 1], 0xa
jne 0x443782
mov byte [ebx], 0xa
jmp 0x44379a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00447924
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x44379b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4436f3
jmp 0x4437b9
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4437b9
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4437c6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443876
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x460458]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x44389f
xor eax, eax
jmp 0x443a0d
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x464940]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4438d2
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00442f21
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4439a4
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4439df
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x44392d
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x44391e
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x443901
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44396d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x443976
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4438f2
jmp 0x443978
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x443a08
cmp dword [ebp - 8], edi
je 0x4439df
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4439d1
call fcn.0043fc1d
mov dword [eax], 9
call fcn.0043fc26
mov dword [eax], esi
jmp 0x4439da
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4439c6
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x443978
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x443978
push dword [ebp - 8]
call fcn.0043fc2f
pop ecx
or eax, 0xffffffff
jmp 0x443a0b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4439f4
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4439f4
xor eax, eax
jmp 0x443a0b
call fcn.0043fc1d
mov dword [eax], 0x1c
call fcn.0043fc26
mov dword [eax], edi
jmp 0x4439da
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0044920f
leave
ret
Function at 0x448982
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x460458]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x460340]
je 0x4489af
inc eax
cmp eax, 0x12
jb 0x4489a0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x460340]
jne 0x448ae3
mov eax, dword [0x463d34]
cmp eax, 1
je 0x448abe
cmp eax, edx
jne 0x4489df
cmp dword [0x45fd74], 1
je 0x448abe
cmp ecx, 0xfc
je 0x448ae3
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x448a18
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004441c0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00444370
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x448a5a
lea eax, [ebp - 0x10c]
push eax
call fcn.00444370
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x459458
push edi
call fcn.0043fed0
add esp, 0x10
push edi
call fcn.00444370
push dword [esi + 0x460344]
mov ebx, eax
call fcn.00444370
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004404f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004441c0
push edi
push ebx
call fcn.004441d0
push 0x459454
push ebx
call fcn.004441d0
push dword [esi + 0x460344]
push ebx
call fcn.004441d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004493dc
add esp, 0x2c
jmp 0x448ae3
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x460344]
push dword [esi]
call fcn.00444370
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0044920f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4493dc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4640d0], ebx
push esi
push edi
jne 0x44945c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x449497
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45a444
push edi
call esi
test eax, eax
mov dword [0x4640d0], eax
je 0x449497
push 0x45a434
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4640d4], eax
call esi
cmp dword [0x463cd4], 2
mov dword [0x4640d8], eax
jne 0x44945c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4640e0], eax
je 0x44945c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4640dc], eax
mov eax, dword [0x4640dc]
test eax, eax
je 0x4494a1
call eax
test eax, eax
je 0x449488
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4640e0]
test eax, eax
je 0x449488
test byte [ebp - 8], 1
jne 0x4494a1
cmp dword [0x463ce0], 4
jb 0x44949b
or byte [ebp + 0x12], 0x20
jmp 0x4494c0
xor eax, eax
jmp 0x4494d0
or byte [ebp + 0x12], 4
jmp 0x4494c0
mov eax, dword [0x4640d4]
test eax, eax
je 0x4494c0
call eax
mov ebx, eax
test ebx, ebx
je 0x4494c0
mov eax, dword [0x4640d8]
test eax, eax
je 0x4494c0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4640d0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x449930
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004404f0
mov eax, dword [0x460458]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00447924
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x449a5a
push 2
push esi
push dword [ebp + 8]
call fcn.00447924
add esp, 0xc
cmp eax, ebx
je 0x449a5a
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4499fd
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00449eb0
push 0x8000
push dword [ebp + 8]
call fcn.0044b93a
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4499b6
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00443876
add esp, 0xc
cmp eax, 0xffffffff
je 0x4499d6
sub edi, eax
test edi, edi
jg 0x4499ae
jmp 0x4499ee
call fcn.0043fc26
cmp dword [eax], 5
jne 0x4499eb
call fcn.0043fc1d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0044b93a
pop ecx
pop ecx
jmp 0x449a45
jge 0x449a45
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00447924
push dword [ebp + 8]
call fcn.004433db
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x449a45
call fcn.0043fc1d
mov dword [eax], 0xd
call fcn.0043fc26
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00447924
add esp, 0xc
mov eax, esi
pop edi
jmp 0x449a5c
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0044920f
leave
ret