joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041751
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100416cd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100418c9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100418c9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10041878
jg 0x100417aa
test eax, eax
je 0x1004186e
push 1
push 0x1000
call fcn.1003365f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100417d0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10041865
push 0x8000
push ebx
call fcn.100415fe
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100417fc
jg 0x100417f7
cmp ecx, 0x1000
jb 0x100417fc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10034e9d
add esp, 0x10
cmp eax, 0xffffffff
je 0x10041841
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100417f7
jl 0x10041828
test ecx, ecx
jne 0x100417e9
push dword [ebp - 0xc]
push ebx
call fcn.100415fe
push esi
call fcn.100336bc
add esp, 0xc
xor edi, edi
jmp 0x100418da
cmp byte [edi + 0x24], 0
je 0x10041858
cmp dword [edi + 0x20], 5
jne 0x10041858
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10041863
mov edi, dword [edi + 0x18]
jmp 0x10041865
xor edi, edi
push esi
call fcn.100336bc
pop ecx
jmp 0x100418da
test ecx, ecx
jg 0x1004183a
jl 0x10041878
test eax, eax
jae 0x1004183a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10036621
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004189b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1004183a
jmp 0x100418d2
push ebx
call fcn.1003d6c7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004183a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100418da
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100418d7
mov edi, dword [edi + 0x18]
jmp 0x100418da
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10036621
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10042030
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004205d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004205d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401077
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, 0x451b30
mov ecx, edi
call fcn.00401827
mov esi, eax
test esi, esi
js 0x401152
push 0x43f430
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00409072
pop ecx
pop ecx
push eax
call fcn.00421ba4
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ebx
call fcn.004090cc
add esp, 0xc
test ebx, ebx
je 0x401152
push 0
push dword [ebp + 8]
mov ecx, edi
call fcn.0040187c
mov ebx, eax
test ebx, ebx
jne 0x4010e2
or eax, 0xffffffff
jmp 0x401155
push 0x8000
call fcn.0041d655
mov dword [ebp - 4], eax
pop ecx
test esi, esi
je 0x401130
jmp 0x4010f9
mov eax, dword [ebp - 4]
mov ecx, 0x8000
cmp esi, ecx
mov edi, ecx
mov ecx, 0x451b30
cmovl edi, esi
push edi
push eax
push ebx
call fcn.00401a41
push dword [ebp - 8]
push edi
push 1
push dword [ebp - 4]
call fcn.00421ee9
add esp, 0x10
cmp eax, edi
jl 0x40112b
sub esi, edi
jne 0x4010f6
mov edi, 0x451b30
push ebx
mov ecx, edi
call fcn.004017fe
push dword [ebp - 8]
call fcn.00421c31
push dword [ebp - 4]
call fcn.0041d00c
pop ecx
pop ecx
test esi, esi
jne 0x401152
xor eax, eax
jmp 0x401155
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40622c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
or ecx, 0xffffffff
cmp dword [ebp + 0xc], edx
jle 0x406257
push esi
mov esi, dword [ebp + 8]
movsx eax, byte [edx + esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43f4d0]
inc edx
cmp edx, dword [ebp + 0xc]
jl 0x40623d
pop esi
not ecx
mov eax, ecx
pop ebp
ret 8

Function at 0x4090e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004091b0
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4090fd
or eax, 0xffffffff
jmp 0x40911f
push esi
push edi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00421ee9
push edi
mov esi, eax
call fcn.00421c31
add esp, 0x14
call fcn.00426808
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4091ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40921d
cmp dword [ebp + 0xc], 0
je 0x40921d
cmp dword [ebp + 0x10], 0
jg 0x409208
xor eax, eax
pop ebp
ret
push dword [ebp + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00426a74
add esp, 0x10
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret
Function at 0x40ea0c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0041dbf0
push esi
push edi
call fcn.00404dda
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0041d79b
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00409013
push dword [ebp - 4]
lea eax, [edi + 0x368]
push eax
call fcn.0040a966
lea eax, [ebp - 4]
push eax
call fcn.004090cc
add esp, 0x18
lea eax, [ebp - 0x2004]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20
lea eax, [ebp - 0x4004]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.0041d4e9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4004]
push eax
call fcn.00409013
push dword [ebp - 4]
lea esi, [edi + 0x338]
push esi
call fcn.0040a966
push 0x5c
push dword [esi]
call fcn.0041d0d1
push dword [esi]
lea eax, [edi + 0x384]
push eax
call fcn.0040a966
push str.hsptv_
push dword [esi]
call fcn.00421f60
lea eax, [ebp - 4]
push eax
call fcn.004090cc
push dword [esi]
lea eax, [edi + 0x388]
push eax
call fcn.0040a966
add esp, 0x40
pop edi
pop esi
leave
ret

Function at 0x40eaf3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov ax, word [ebp + 0xc]
xor ecx, ecx
mov word [ebp - 0x24], ax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], ecx
push eax
push ecx
push ecx
push 0x20
push ecx
push ecx
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
push ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 1
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x20
pop eax
leave
ret
Function at 0x40fae2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shl eax, 2
push ebx
push esi
mov esi, dword [ebp + 0xc]
not eax
xor ebx, ebx
and eax, 8
or eax, 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp byte [esi], bl
je 0x40fb74
push 0x3c
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0041f270
lea eax, [ebp - 4]
mov dword [ebp - 0x44], 0x3c
push eax
push esi
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x3c], ebx
call fcn.00409072
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00409072
add esp, 0x1c
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
lea eax, [ebp - 4]
push eax
je 0x40fbe7
call fcn.004090cc
lea eax, [ebp - 8]
push eax
call fcn.004090cc
pop ecx
pop ecx
jmp 0x40fbe3
push eax
test cl, 0x10
je 0x40fb9a
mov eax, 0x43fc40
push eax
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00409072
pop ecx
pop ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40fbd2
test cl, 0x20
je 0x40fbbc
mov eax, 0x43fc40
push eax
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00409072
pop ecx
pop ecx
push eax
push str.print
jmp 0x40fb91
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00409072
pop ecx
pop ecx
push eax
call fcn.0040eaf3
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.004090cc
pop ecx
cmp esi, 0x20
jl 0x40fbf7
pop esi
pop ebx
leave
ret
call fcn.004090cc
lea eax, [ebp - 8]
push eax
call fcn.004090cc
pop ecx
pop ecx
push 0x44e504
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0xe
push eax
call fcn.0041f44c
int3
Function at 0x40fc0d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041dbf0
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x2004], ax
xor edx, edx
mov eax, ecx
push esi
sub eax, edx
je 0x40fcd6
sub eax, 1
je 0x40fcc9
sub eax, 1
je 0x40fcb5
sub eax, 1
je 0x40fca1
sub eax, 1
je 0x40fc91
sub eax, 1
je 0x40fc87
sub eax, 1
je 0x40fc76
test ecx, 0x10000
je 0x40fd30
push edx
movzx eax, cx
push eax
lea eax, [ebp - 0x2004]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x40fce9
mov esi, dword [0x452c10]
add esi, 0x390
jmp 0x40fd2b
mov esi, 0x43f452
jmp 0x40fd2b
mov eax, dword [0x452c10]
mov esi, dword [eax + 0x368]
jmp 0x40fd2b
push 0x1000
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x40fce9
push 0x1000
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x40fce9
mov eax, dword [0x452c10]
mov esi, dword [eax + 0x384]
jmp 0x40fd2b
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.00424fa8
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.00409013
mov eax, dword [0x452c10]
push dword [ebp + 8]
add eax, 0x338
push eax
call fcn.0040a966
lea eax, [ebp + 8]
push eax
call fcn.004090cc
mov eax, dword [0x452c10]
push 0x5c
mov esi, dword [eax + 0x338]
push esi
call fcn.0041d0d1
add esp, 0x1c
mov eax, esi
pop esi
leave
ret
push 0x44e504
lea eax, [ebp - 4]
mov dword [ebp - 4], 3
push eax
call fcn.0041f44c
int3
Function at 0x40fd46
Capabilities:
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0x104
push edi
push 4
pop edi
test bl, 0x10
je 0x40fd6d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x40fd92
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp + 0x10]
and ebx, 0xf
mov ecx, dword [ebp + ebx*4 - 0x48]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x40fea7
push esi
sub ebx, 0
je 0x40fe0c
sub ebx, 1
je 0x40fdfc
sub ebx, 1
je 0x40fdd7
sub ebx, 1
je 0x40fdc2
sub ebx, 0xd
je 0x40fdbd
sub ebx, 1
je 0x40fdb8
xor eax, eax
jmp 0x40fea6
mov eax, dword [ebp - 0x14]
jmp 0x40fdcd
mov eax, dword [ebp - 0x10]
jmp 0x40fdcd
mov eax, dword [0x452c10]
mov eax, dword [eax + 0x37c]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40fe9f
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp + 8]
push eax
push esi
call fcn.00409013
push dword [ebp + 8]
call fcn.00424760
add esp, 0xc
jmp 0x40fe7a
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
jmp 0x40fde5
mov esi, dword [ebp + 0x10]
push str.Windows
push esi
call fcn.0042b62c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
mov ecx, 0x43fc54
mov eax, 0x43fc5c
test ebx, ebx
cmovs ecx, eax
push ecx
push esi
call fcn.0042b59b
mov eax, ebx
shr eax, 8
movzx eax, al
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0x148]
push str._ver_d._d
push eax
call fcn.0040e7e8
lea eax, [ebp - 0x148]
push eax
push esi
call fcn.0042b59b
lea eax, [ebp + 8]
push eax
push esi
call fcn.00409013
push dword [ebp + 8]
call fcn.00424760
add esp, 0x2c
mov edi, eax
cmp esi, dword [ebp + 8]
je 0x40fe92
push edi
push dword [ebp + 8]
push esi
call fcn.0041ecf0
add esp, 0xc
mov byte [edi + esi], 0
lea eax, [ebp + 8]
push eax
call fcn.004090cc
pop ecx
push 2
pop edi
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dword [ecx], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x412d6b
Capabilities:
Log keystrokes

Disassembly:
mov eax, 0x43ec41
call fcn.0041dbc8
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [0x452cc4]
test byte [eax + 0x30c], 2
je 0x412de0
cmp dword [esi + 4], 0x200
jne 0x412e2f
cmp dword [0x452cd8], 0
movzx ecx, word [esi + 0xc]
movzx eax, word [esi + 0xe]
jne 0x412dd5
cmp dword [0x452cdc], ecx
jne 0x412e5e
cmp dword [0x452ce0], eax
jne 0x412e5e
jmp 0x412de0
mov dword [0x452cdc], ecx
mov dword [0x452ce0], eax
cmp dword [esi + 4], 0x100
jne 0x412e20
cmp dword [esi + 8], 9
jne 0x412df4
call fcn.0041281b
push 2
call fcn.004057ac
pop ecx
test eax, eax
je 0x412e20
push dword [esi + 0xc]
and dword [ebp - 4], 0
push dword [esi + 8]
push 2
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 2
call fcn.00405975
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
cmp dword [esi + 4], 0x100
jne 0x412e20
cmp dword [0x452cd8], 0
jne 0x412de0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x44e504
jmp 0x412e6a
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0x44e504
push eax
call fcn.0041f44c
int3
Function at 0x4132e3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xec], 9
je 0x413422
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x413330
cmp dword [ebp - 0x18], 0x12
je 0x4134b1
lea eax, [ebp - 0x1c]
push eax
call fcn.00412d6b
pop ecx
jmp 0x413415
mov eax, dword [esi + 0xec]
sub eax, 1
je 0x4133aa
sub eax, 1
je 0x4133ca
sub eax, 1
je 0x413371
push 3
pop ecx
sub eax, ecx
je 0x4134a8
sub eax, 1
je 0x41349f
sub eax, 1
jne 0x413428
mov dword [esi + 0xec], ecx
jmp 0x413415
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp dword [ebp - 0x18], 0x12
je 0x4134b1
lea eax, [ebp - 0x1c]
push eax
call fcn.00412d6b
cmp dword [esi + 0xec], 3
pop ecx
je 0x413371
push 0x4ff
push 0x3e8
jmp 0x41344d
cmp dword [0x4510b8], 0xffffffff
jne 0x4133bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4133bd
call ebx
push eax
call fcn.004043c9
pop ecx
mov dword [esi + 0xec], eax
cmp dword [0x4510b8], 0xffffffff
jne 0x41342d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push edi
call fcn.00404376
pop ecx
test eax, eax
je 0x4133f6
mov ecx, dword [esi + 0xf8]
push 0x4ff
sub ecx, edi
push ecx
jmp 0x41344b
mov eax, dword [0x452cc4]
test byte [eax + 0x30c], 2
je 0x413413
mov eax, dword [0x452cd8]
test eax, eax
je 0x413413
dec eax
mov dword [0x452cd8], eax
xor edi, edi
cmp dword [esi + 0xec], 9
jne 0x413304
mov dword [esi + 0xec], edi
pop edi
pop esi
pop ebx
leave
ret
call ebx
lea edi, [eax + 5]
push edi
call fcn.00404376
pop ecx
test eax, eax
je 0x413460
mov eax, dword [esi + 0xf8]
push 0x4ff
sub eax, edi
push eax
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x413415
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
mov edi, eax
push edi
call fcn.00404376
pop ecx
test eax, eax
jne 0x413458
mov eax, dword [0x452cc4]
mov dword [esi + 0xfc], edi
xor edi, edi
mov dword [esi + 0xec], edi
test byte [eax + 0x30c], 2
je 0x413415
mov eax, dword [0x452cd8]
test eax, eax
je 0x413415
dec eax
mov dword [0x452cd8], eax
jmp 0x413415
mov dword [ebp + 8], 0x2d
jmp 0x4134b4
mov dword [ebp + 8], 0xa
jmp 0x4134b4
mov dword [ebp + 8], edi
push 0x44e504
lea eax, [ebp + 8]
push eax
call fcn.0041f44c
int3
Function at 0x414da0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x18], ecx
push dword [edi + 8]
call esi
cmp dword [edi + 0xc], 0
mov ebx, dword [ebp + 0xc]
jl 0x414e31
mov ecx, dword [ebp - 0x18]
push dword [edi + 0xc]
mov ecx, dword [ecx + 0x130]
call fcn.00416a15
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
sub ecx, 1
je 0x414e03
sub ecx, 1
je 0x414df9
movzx ecx, word [edi + 0x14]
movzx edx, word [edi + 0x16]
jmp 0x414e0b
movzx ecx, word [edi + 0x18]
movzx edx, word [edi + 0x1a]
jmp 0x414e0b
movzx ecx, word [edi + 0x1c]
movzx edx, word [edi + 0x1e]
push 0xcc0020
movsx eax, dx
push eax
movsx eax, cx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, 0x200
test word [edi + 2], ax
je 0x414e5e
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x118]
push eax
push 0xff
push 0xd
push dword [edi + 8]
call esi
push 0
push 0
push 0x31
push dword [edi + 8]
call esi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
push 1
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00409072
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
lea eax, [ebp - 4]
push eax
call fcn.004090cc
pop ecx
push esi
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x416346
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push 0x43f430
mov esi, ecx
push eax
push dword [ebp + 8]
mov ebx, dword [esi + 0x40]
call fcn.00409072
pop ecx
pop ecx
push eax
call fcn.00421ba4
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.004090cc
add esp, 0xc
test edi, edi
jne 0x416388
or eax, 0xffffffff
jmp 0x4163da
mov ecx, dword [esi + 0x3c]
mov eax, 0x4d42
mov word [ebp - 0x14], ax
lea eax, [ebx + 0xe]
add eax, ecx
mov dword [ebp - 0x12], eax
lea eax, [ecx + 0xe]
mov dword [ebp - 0xa], eax
xor eax, eax
push edi
push 0xe
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00421ee9
push edi
push dword [esi + 0x3c]
push 1
push dword [esi + 0x18]
call fcn.00421ee9
push edi
push ebx
push 1
push dword [esi + 0x14]
call fcn.00421ee9
push edi
call fcn.00421c31
add esp, 0x34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416faf
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, ecx
call fcn.004168c1
mov eax, dword [edi + 0x324]
and dword [ebp + 8], 0
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x417001
mov eax, dword [esi + 0x34]
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00415bfa
push 0x1bc
push esi
call fcn.0041d966
mov eax, dword [edi + 0x324]
pop ecx
pop ecx
push 0
push dword [ebp + 8]
and dword [eax + ebx*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1bc
call fcn.0041d936
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x41703d
xor eax, eax
mov dword [esi + 0x1b8], 0xf
mov dword [esi + 0x1a4], eax
mov dword [esi + 0x1b4], eax
mov byte [esi + 0x1a4], al
mov dword [esi], eax
mov dword [esi + 0xc4], eax
jmp 0x41703f
xor esi, esi
mov eax, dword [edi + 0x324]
xor ecx, ecx
inc ecx
mov dword [eax + ebx*4], esi
mov eax, dword [ebp + 0x14]
and eax, ecx
mov dword [esi + 0x44], ecx
push eax
push dword [ebp + 0x10]
mov dword [esi + 0x48], ebx
mov ecx, esi
push dword [ebp + 0xc]
mov dword [esi + 0x130], edi
push dword [ebp + 8]
push dword [edi + 0x320]
call fcn.00416d25
and dword [esi + 0x50], 0
and dword [esi + 0x54], 0
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x41bb45
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x41bb73
cmp eax, edi
jge 0x41bb67
push esi
call fcn.0041accf
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x41bb96
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x41bb7c
mov dword [esi + 8], edx
jmp 0x41bbab
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x41bba1
xor dl, dl
jmp 0x41bba6
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x41bb96
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x41bbe4
mov dword [0x452d10], str.zlib_corrupt
xor eax, eax
jmp 0x41bc29
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x41bbf9
mov dword [0x452d10], str.read_past_buffer
jmp 0x41bbe0
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x41bc13
push edi
push ecx
push esi
call fcn.0041cef7
add esp, 0xc
test eax, eax
je 0x41bbe0
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0041ecf0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x41d388
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bf00