joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x405d79
pop dword [ebp - 0x14]
mov eax, 0x975ee6aa
add eax, 0x68e176cf
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xcdf6991a
sub dword [ebp - 0x24], 0x7fa453cf
mov dword [ebp - 0x20], 0xa9c9e606
add dword [ebp - 0x20], 0x8869663f
mov dword [ebp - 0x1c], 0x7eaf1d86
add dword [ebp - 0x1c], 0xcd9d26a8
mov dword [ebp - 0x18], 0x7abdcb55
sub dword [ebp - 0x18], 0x7abdcb55
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x1ae8e1b0
sub dword [ebp - 0x24], 0xa676785a
mov dword [ebp - 0x20], 0xc314bef4
sub dword [ebp - 0x20], 0x81a85d7f
mov dword [ebp - 0x1c], 0x28f75690
add dword [ebp - 0x1c], 0x3a7815dc
mov dword [ebp - 0x18], 0x284ebb10
add dword [ebp - 0x18], 0xd7b144f0
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xbc198bae
add eax, 0x4426e472
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x36037
push 0
call eax
mov ecx, 0x2a413510
add ecx, 0xd5bf0c22
mov ebx, eax
mov esi, 0x3783d197
add esi, 0xc8bcf669
add esi, dword [ebp - 0x14]
mov edi, 0x569cc3e3
sub edi, 0xf36b1c73
xor dword [ebp - 4], edx
mov edx, dword [esi]
xor dword [ebp - 8], 0xd041a7b4
xor edx, edi
mov dword [ebp - 0xc], 0xb6b1d977
mov dword [ebx], edx
add dword [ebp - 0x10], edi
add ebx, 0x7086c0a3
add ebx, 0x8f793f61
add esi, 0x82783d6e
sub esi, 0x82783d6a
loop 0x405e96
add eax, 0xf79b
xor ebx, ebx
add ebx, eax
add eax, 0xd1879732
sub eax, 0xd187972d
mov ecx, 0x3cc54afa
sub ecx, 0x3c854afa
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x40d75b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40d76a
pop dword [ebp - 0x2c]
mov eax, 0x40d76a
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3784f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0xb3aa5f6f
add ecx, 0x4c55e530
mov edx, eax
mov edi, 0x394a2b3c
sub edi, 0x3908813c
add edi, dword [ebp - 0x2c]
mov esi, 0x4d646118
sub esi, 0xc1d65f38
add dword [ebp - 0x1c], eax
mov ebx, dword [edi]
sub dword [ebp - 0xc], esi
xor ebx, esi
sub dword [ebp - 0x14], 0x2a7d69b2
mov dword [edx], ebx
add dword [ebp - 0x24], 0x28d722c
add edx, 0x1c85c98f
sub edx, 0x1c85c98b
add edi, 0xb000092e
sub edi, 0xb000092a
loop 0x40d7bf
add eax, 0x1054f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc6efe8f2
add ecx, 0x3950170e
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x416ec0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d85
mov dword [ebp - 0x14], eax
cmp dword [0x466da0], esi
jne 0x416fb3
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417093
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417093
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417093
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x466da0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x466da4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x466da8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x466db0], eax
test eax, eax
je 0x416fb0
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x466dac], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416fd8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416fcb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416fed
push 4
pop eax
jmp 0x417095
cmp dword [ebp - 0x14], esi
je 0x416fed
push dword [0x466da0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416fd2
mov eax, dword [0x466dac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41704b
cmp dword [0x466db0], edi
je 0x41704b
push eax
call ebx
push dword [0x466db0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41704b
test eax, eax
je 0x41704b
call ecx
test eax, eax
je 0x417040
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x417040
test byte [ebp - 8], 1
jne 0x41704b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41707b
mov eax, dword [0x466da4]
cmp eax, edi
je 0x417078
push eax
call ebx
test eax, eax
je 0x417078
call eax
mov esi, eax
test esi, esi
je 0x417078
mov eax, dword [0x466da8]
cmp eax, edi
je 0x417078
push eax
call ebx
test eax, eax
je 0x417078
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x466da0]
call ebx
test eax, eax
je 0x417093
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417095
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406fb0
mov esp, ebp
pop ebp
ret
Function at 0x110f9c4c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x110f9c56
pushal
call 0x110f9c5c
pop ebp
sub ebp, 0x10
sub ebp, 0x10f9c4c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x110f9c80
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x110f9c89
mov eax, 0x10f9c4c
add eax, ebp
add eax, 0x63
mov ecx, 0x59f
mov edx, 0xcdfd7f4f
xor byte [eax], dl
inc eax
dec ecx
jne 0x110f9ca0
jmp 0x110f9cb3
les eax, [edx + 0x4f73c6c4]
dec edi
dec edi
into
invalid
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000cd63
pop dword [ebp - 0x1c]
mov eax, 0x1000cd63
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x390ab
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x23a7a468
add ecx, 0xdc58a3b9
mov edi, eax
mov ebx, 0x496f9bd
add ebx, 0xb6a8c43
add ebx, dword [ebp - 0x1c]
mov edx, 0x941f6954
add edx, 0x597d930e
mov dword [ebp - 8], 0xae3859b7
mov esi, dword [ebx]
xor esi, edx
sub dword [ebp - 0xc], 0xaf10e57f
mov dword [edi], esi
add edi, 0xd8f4f7a9
sub edi, 0xd8f4f7a5
add ebx, 4
loop 0x1000cdb8
add eax, 0x11357
mov ebx, eax
add eax, 5
mov ecx, 0x79d787f0
sub ecx, 0x69d787f0
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401072
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x490
push ebp
push esi
mov esi, dword [0x43aea0]
mov eax, edx
push edi
xor edi, edi
mov dword [esp + 0xc], eax
mov ebp, ecx
test esi, esi
je 0x4010e6
cmp word [ebp], di
jne 0x4010ad
push 0xa
pop eax
mov word [esp + 0x8c], ax
xor eax, eax
mov word [esp + 0x8e], ax
inc eax
jmp 0x4010cb
push eax
push ebp
lea eax, [esp + 0x94]
push str.__10s:__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [0x43aea0]
add esp, 0x10
push edi
push edi
add eax, eax
push eax
lea eax, [esp + 0x98]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x4011bd
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0x1004
push dword [0x43af10]
call ebx
push 0x38
mov esi, eax
lea eax, [esp + 0x20]
push edi
push eax
call fcn.0042aa1d
add esp, 0xc
mov dword [esp + 0x18], 1
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], esi
push eax
push edi
push 0x104d
push dword [0x43af10]
call ebx
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x54]
push ecx
push eax
push 0x1074
push dword [0x43af10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x6c], 1
mov dword [esp + 0x78], esi
call ebx
push ebp
push edi
push 0x1057
push dword [0x43af10]
call ebx
add eax, 0x10
mov ebp, 0x101e
cmp eax, dword [0x439114]
jle 0x40118a
mov dword [0x439114], eax
movzx eax, ax
push eax
push edi
push ebp
push dword [0x43af10]
call ebx
push esi
push edi
push 0x1057
push dword [0x43af10]
call ebx
add eax, 0x10
cmp eax, dword [0x439110]
jle 0x4011b8
mov dword [0x439110], eax
movzx eax, ax
push eax
push 1
push ebp
push dword [0x43af10]
call ebx
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x490
ret

Function at 0x40124a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push dword [ebp + 0x10]
push 0x80
push eax
push 0x42b238
push edx
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 0xc]
add ecx, ecx
cmp eax, ecx
jne 0x401292
push dword [ebp + 8]
mov edx, eax
lea ecx, [ebp - 0x100]
call fcn.004011f4
xor eax, eax
pop ecx
inc eax
jmp 0x401294
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401468
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xdc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [esp + 0x3c]
push ebp
push esi
push edi
push 0x20
push eax
push 0x10
xor ebp, ebp
mov dword [esp + 0x20], ecx
push 0x400
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call ebx
test eax, eax
jne 0x40149f
push 3
pop ecx
jmp 0x4014e2
mov ax, word [esp + 0x48]
lea esi, [esp + 0x48]
push 0x30
pop edx
mov ecx, ebp
cmp ax, dx
je 0x4014e2
movzx edx, ax
movzx edi, dx
lea eax, [edi - 0x30]
cmp eax, 0xa
jae 0x4014ca
imul eax, ecx, 0xa
lea ecx, [edi - 0x30]
add ecx, eax
jmp 0x4014cf
test dx, dx
je 0x4014df
add esi, 2
push 0x30
pop eax
movzx edx, word [esi]
cmp dx, ax
jne 0x4014b5
jmp 0x4014e2
imul ecx, ecx, 0xa
push 5
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], ecx
push eax
push 0xf
push 0x400
call ebx
mov ebx, dword [esp + 0xf0]
lea eax, [esp + 0x24]
mov edx, dword [esp + 0xf4]
lea edi, [esp + 0x98]
xorps xmm0, xmm0
mov dword [esp + 0x44], ebp
movlpd qword [esp + 0x18], xmm0
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
push 0
push 0xa
push edx
push ebx
call fcn.0042a8a8
add ecx, 0x30
mov dword [esp + 0x1c], ebx
mov word [esp + esi*2 + 0x48], cx
mov ebx, eax
add esi, 1
adc ebp, 0
or eax, edx
jne 0x40152c
mov ax, word [esp + esi*2 + 0x46]
add esi, 0xffffffff
mov word [edi], ax
lea edi, [edi + 2]
adc ebp, 0xffffffff
mov eax, esi
or eax, ebp
jne 0x40154f
mov ebx, dword [esp + 0x14]
push 0x28
push ebx
mov word [edi], ax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xa4]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
jne 0x40159d
lea eax, [esp + 0x98]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xdc
ret
Function at 0x401c47
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x7c8
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
push ebx
push 0x80
push 3
push ebx
inc esi
mov eax, ecx
push esi
push 0x80000000
mov ebp, edx
mov dword [esp + 0x30], eax
push eax
mov dword [esp + 0x38], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401d81
xor eax, eax
push 0x106
mov word [esp + 0x64], ax
lea eax, [esp + 0x66]
push ebx
push eax
call fcn.0042aa1d
push 0x100000
call fcn.0042a668
mov ecx, dword [0x43aee4]
shr ecx, 0x1a
and ecx, 0x3f
mov dword [esp + 0x24], eax
imul ebx, ecx, 0x1c
lea eax, [esp + 0x178]
push eax
add ebx, 0x439160
call dword [ebx + 0x10]
add esp, 0x14
lea eax, [esp + 0x10]
push 0
push eax
push 0x100000
push dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401d20
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x10], 0
jbe 0x401d1c
push dword [esp + 0x10]
lea eax, [esp + 0x16c]
push ebp
push eax
call dword [ebx + 0x14]
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x100000
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401cea
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x16c]
push eax
call dword [ebx + 0x18]
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.0042a654
pop ecx
mov ecx, dword [0x43aee4]
xor eax, eax
and ecx, 0x800000
or eax, ecx
jne 0x401d57
xor esi, esi
push esi
push dword [ebx + 8]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x68]
call fcn.00403b7b
test byte [0x43aee6], 1
lea edx, [esp + 0x68]
pop ecx
cmovne ebp, dword [esp + 0x1c]
pop ecx
mov ecx, ebp
call fcn.00401072
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c8
ret
Function at 0x401d8c
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x45c
lea edx, [esp + 0x250]
sub edx, ecx
push ebx
push ebp
push esi
push edi
push 2
pop ebx
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, ebx
test ax, ax
jne 0x401da2
lea ecx, [esp + 0x260]
xor ebp, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, bp
jne 0x401dbc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
push 0x2a
lea edi, [esp + ecx*2 + 0x262]
add edi, ebx
mov word [edi], ax
add edi, ebx
pop eax
push ebp
push ebp
mov word [edi], ax
xor eax, eax
mov word [edi + 2], ax
test byte [0x43aee7], 1
je 0x401e17
push 0x1004
push dword [0x43af10]
call esi
test eax, eax
jle 0x401e24
mov ecx, 0x42b238
mov edx, ecx
call fcn.00401072
jmp 0x401e24
push 0x1009
push dword [0x43af10]
call esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401e7e
test byte [esp + 0x10], 0x10
jne 0x401e6e
lea ecx, [esp + 0x3c]
mov edx, edi
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401e4f
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x260]
call fcn.00401c47
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401e3e
push ebp
push ebp
push 0x1004
push dword [0x43af10]
call esi
test eax, eax
jle 0x401ea1
push ebp
dec eax
push eax
push 0x1013
push dword [0x43af10]
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ecf
test al, 0x10
je 0x401ecf
mov ecx, esi
call fcn.00401d8c
jmp 0x401ed6
mov ecx, esi
call fcn.00401709
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402019
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
push 0
mov edi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402085
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402033
push ebx
sub edx, ecx
push esi
lea ebx, [edx + 1]
push ebx
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40207c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push edi
push eax
call fcn.0042a9fb
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
pop edi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
ret
Function at 0x4022d9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
push 0x54
xor edi, edi
lea eax, [ebp - 0x5c]
push edi
push eax
mov esi, ecx
call fcn.0042aa1d
xor eax, eax
mov dword [ebp - 0x5c], esi
mov word [0x439698], ax
add esp, 0xc
mov eax, 0x439698
mov dword [ebp - 0x60], 0x58
mov dword [ebp - 0x44], eax
xor esi, esi
mov dword [ebp - 0x34], eax
inc esi
lea eax, [ebp - 0x60]
mov dword [ebp - 0x40], 0x400
push eax
mov dword [ebp - 0x54], str.All_Files_._
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], 0x880201
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
cmp eax, esi
jne 0x402375
push 0x18
call fcn.0042a668
pop ecx
mov dword [eax], esi
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x10], ecx
movzx ecx, word [ebp - 0x28]
mov dword [eax + 0x14], ecx
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x401edb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x402375
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4023dc
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
lea eax, [ebp - 4]
xor edx, edx
push ebx
push esi
push edi
push eax
mov edi, ecx
call fcn.00402157
mov esi, eax
pop ecx
test esi, esi
je 0x4024e5
push 0x54
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0042aa1d
xor eax, eax
push 0x206
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
push ebx
push eax
call fcn.0042aa1d
add esp, 0x18
mov dword [ebp - 0x60], 0x58
lea eax, [ebp - 0x268]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x40], 0x104
push eax
mov dword [ebp - 0x54], str.txt_files_.txt_
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], 0x42b3a8
mov dword [ebp - 0x2c], 0x880001
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4024de
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4024a3
push 0x24
push str.Confirm_Save_As
push str.File_already_exists__do_you_want_to_replace_it_
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x4024de
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4024de
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042a654
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402523
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_MonitorFromRect]
mov ebx, edx
push edi
push 0
push ebx
mov ebp, ecx
call esi
test eax, eax
jne 0x4025e3
push 9
pop ecx
push 1
mov dword [esp + 0x1c], 0x28
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
push ebx
call esi
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
sub ecx, esi
mov edi, dword [esp + 0x28]
sub edi, dword [esp + 0x20]
mov eax, dword [0x43aea4]
cmp ecx, eax
jge 0x4025a9
mov eax, ecx
mov dword [esp + 0x14], 0xa
shl eax, 3
cdq
idiv dword [esp + 0x14]
mov dword [0x43aea4], eax
mov eax, edi
shl eax, 3
cdq
idiv dword [esp + 0x14]
mov dword [0x43af00], eax
mov eax, dword [0x43aea4]
sub edi, dword [0x43af00]
sub ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x20]
cdq
add ecx, 0xffffffe2
sub eax, edx
sar eax, 1
add esi, eax
mov eax, edi
cdq
sub eax, edx
mov dword [ebx], esi
sar eax, 1
add ecx, eax
mov eax, dword [0x43aea4]
add eax, esi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
mov eax, dword [0x43af00]
add eax, ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
push 0
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
push dword [ebx + 4]
push dword [ebx]
push ebp
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [0x43aef8]
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret