joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441cb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x460eeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x518
push ebp
push esi
push edi
mov ecx, 0x12
mov esi, str.lb98DHMos76FVMosdad6IOBVFLOVN5o908ao908c2FVo37V7VN09dyfhFVM4DBDJDSUFHD34
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x2d
xor eax, eax
lea edi, [esp + 0x71]
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
stosw word es:[edi], ax
call sub.MFC42.DLL_CString::CString_1
mov ebp, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x52c], ebp
call sub.MFC42.DLL_CString::CString_1
push 0x4e100c
lea ecx, [esp + 0x10]
mov byte [esp + 0x530], 2
call sub.MFC42.DLL_CString::operator_1
push str.Settings.ini
lea eax, [esp + 0x14]
push 0x4f20c0
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x52c], 3
push ecx
push 0
push str.Proxy000
push str.CDDB
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
test esi, esi
jne 0x441d7f
mov esi, dword [esp + 0x534]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], ebp
jmp 0x441e65
fld qword [0x466b08]
fcos
sub esi, 0xe58
fmul qword [0x466b00]
call sub.MSVCRT.dll__ftol
xor eax, esi
mov edi, 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
jle 0x441e4e
mov eax, ebp
lea ecx, [esp + 0x28]
sub eax, ecx
push ebx
lea ebx, [esp + 0x12c]
mov dword [esp + 0x28], eax
jmp 0x441dc7
mov eax, dword [esp + 0x28]
lea ebp, [esp + edi + 0x2c]
lea edx, [esp + 0x18]
add eax, ebp
push eax
push str.Proxy_03d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
push 0
push ecx
push str.CDDB
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
test esi, esi
je 0x441e48
fild dword [esp + 0x20]
fadd qword [0x466af8]
fmul qword [0x466af0]
fcos
fmul qword [0x466ae8]
call sub.MSVCRT.dll__ftol
movsx edx, byte [ebp]
sub esi, edx
lea ecx, [esp + 0x10]
sub esi, 0x5c7c
mov dword [ebx], eax
xor esi, eax
push esi
call fcn.0045b2bc
mov eax, dword [esp + 0x24]
inc edi
add ebx, 4
cmp edi, eax
mov dword [esp + 0x20], edi
jl 0x441dc3
mov ebp, 1
pop ebx
mov esi, dword [esp + 0x534]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x52c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x52c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x52c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x524]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x524
ret 4
Function at 0x443240
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x48
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.WINMM.dll_mixerGetNumDevs]
test eax, eax
jne 0x44325b
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x48
ret
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
mov word [esp + 0x10], 1
mov dword [esp + 0x18], eax
mov word [esp + 0x12], 1
mov dword [esp + 0x1c], eax
mov word [esp + 0x1c], 2
push eax
push eax
push eax
push ecx
push 0xffffffffffffffff
push edx
mov word [esp + 0x38], ax
mov dword [esp + 0x2c], 0x5622
mov word [esp + 0x36], 0x10
mov dword [esp + 0x30], 0xac44
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
je 0x4432c0
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x48
ret
mov eax, dword [esp + 0xc]
lea ebp, [esi + 8]
push 0x90000000
push ebp
push eax
call dword [sym.imp.WINMM.dll_mixerGetID]
mov ecx, dword [esp + 0xc]
mov edi, eax
push ecx
call dword [sym.imp.WINMM.dll_waveOutClose]
test edi, edi
je 0x4432ee
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x48
ret
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x50], str.Master_Output_Volume_Msg_Wnd_Class
mov dword [esp + 0x30], 0x443960
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x88000000
push str.Master_Output_Volume_Msg_Wnd
push str.Master_Output_Volume_Msg_Wnd_Class
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x443355
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x48
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp]
push 0x10000
push 0
push eax
lea edx, [esi + 0xc]
push ecx
push edx
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
je 0x44338e
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x48
ret
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x48
ret

Function at 0x4487e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x448839
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4e100c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44882c
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x44883b
xor eax, eax
pop esi
leave
ret 4
Function at 0x45a770
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x45a810
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x45a7c2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4e0b20]
xor eax, edx
inc esi
cmp esi, edi
jl 0x45a7a3
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x45a7eb
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4e0b20]
xor eax, edx
inc esi
cmp esi, edi
jl 0x45a7ce
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x401380
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push 0x10
call section..text
add esp, 4
mov dword [ebp - 0x14], eax
push 0x28
call fcn.00404b8e
add esp, 4
mov dword [ebp - 4], eax
push 0x10
call fcn.00401070
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00402000
add esp, 0xc
push 0x10
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x10
push edx
call fcn.00402000
add esp, 0xc
push 5
push str..png
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
call fcn.00402000
add esp, 0xc
push 0x28200
call fcn.00404b8e
add esp, 4
mov dword [ebp - 0xc], eax
push 0x28200
push 0x411180
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00402000
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x401417
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x28200
jae 0x401436
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx ecx, byte [eax]
xor ecx, 4
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov byte [edx], cl
jmp 0x40140e
push 0x440008
mov eax, dword [ebp - 4]
push eax
call fcn.00404603
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401467
mov ecx, dword [ebp - 0x10]
push ecx
push 0x28200
push 1
mov edx, dword [ebp - 0xc]
push edx
call fcn.004048e2
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040451c
add esp, 4
push 0x44
push 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.00402580
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00402580
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 4]
push eax
call fcn.00404b24
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401b9a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401bd9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401bd9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bd9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401bd9
cmp dword [ecx + 0x74], 0xe
jbe 0x401bd9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408781
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ab78
push 0x43ab70
push str.FlsAlloc
push 0x1e
call fcn.00408642
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4087b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x411124]
call esi
jmp 0x4087bb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4087ff
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ab88
push 0x43ab80
push str.FlsGetValue
push 0x20
call fcn.00408642
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408836
push dword [ebp + 8]
mov ecx, esi
call dword [0x411124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x409cee
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x409d8b
push ebx
push esi
call fcn.00409cb7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00409c00
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409d38
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409d8a
push edi
push eax
call fcn.00408445
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409d58
call fcn.004060c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409d89
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00409c00
add esp, 0x20
test eax, eax
jne 0x409d77
push edi
call fcn.004060c2
jmp 0x409d7f
push ebx
call fcn.004060c2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40caa5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x441170]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40cae5
cmp byte [ebx], 0xa
jne 0x40cae5
or byte [eax + edi + 0x28], 4
jmp 0x40caea
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x40cbe8
mov al, byte [edx]
cmp al, 0x1a
je 0x40cbca
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x40cb19
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x40cb3e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x40cb48
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x40cafb
jmp 0x40cbe8
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cbc5
cmp dword [ebp - 0xc], 0
je 0x40cbc5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x441170]
test byte [eax + edi + 0x28], 0x48
je 0x40cb9f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40cb8a
mov byte [esi], dl
jmp 0x40cb9b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x441170]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40cbe8
cmp byte [ebp - 1], 0xa
jne 0x40cbae
cmp esi, ebx
jne 0x40cbae
mov byte [esi], 0xa
jmp 0x40cbe7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040c89e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40cbe8
mov byte [esi], 0xd
jmp 0x40cbe7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x441170]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40cbe4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40cbe8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40cbf1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x441170]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40cc34
cmp word [esi], dx
jne 0x40cc34
or byte [edi + eax + 0x28], 4
jmp 0x40cc39
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x40cd8c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x40cd6c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x40cc7b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40ccb1
cmp eax, edx
jae 0x40ccbd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x40cc53
jmp 0x40cd8c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cd68
cmp dword [ebp - 0x14], 0
je 0x40cd68
mov eax, dword [ebx*4 + 0x441170]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x40cd40
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x40cd09
mov word [esi], cx
jmp 0x40cd3c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x441170]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x441170]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x441170]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x40cd8c
pop ebx
cmp word [ebp - 4], bx
jne 0x40cd51
cmp esi, dword [ebp + 0xc]
jne 0x40cd51
mov word [esi], bx
jmp 0x40cd89
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040c89e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x40cd8c
push 0xd
jmp 0x40cd85
mov ecx, dword [ebx*4 + 0x441170]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40cd83
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40cd8c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e105
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.0040e081
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x40e27d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x40e27d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x40e22c
jg 0x40e15e
test eax, eax
je 0x40e222
push 1
push 0x1000
call fcn.00408a87
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40e184
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x40e219
push 0x8000
push ebx
call fcn.00405795
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 0x40e1b0
jg 0x40e1ab
cmp ecx, 0x1000
jb 0x40e1b0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00407ec8
add esp, 0x10
cmp eax, 0xffffffff
je 0x40e1f5
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 0x40e1ab
jl 0x40e1dc
test ecx, ecx
jne 0x40e19d
push dword [ebp - 0xc]
push ebx
call fcn.00405795
push esi
call fcn.004060c2
add esp, 0xc
xor edi, edi
jmp 0x40e28e
cmp byte [edi + 0x24], 0
je 0x40e20c
cmp dword [edi + 0x20], 5
jne 0x40e20c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x40e217
mov edi, dword [edi + 0x18]
jmp 0x40e219
xor edi, edi
push esi
call fcn.004060c2
pop ecx
jmp 0x40e28e
test ecx, ecx
jg 0x40e1ee
jl 0x40e22c
test eax, eax
jae 0x40e1ee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040c89e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40e24f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x40e1ee
jmp 0x40e286
push ebx
call fcn.0040a5b1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40e1ee
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 0x40e28e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x40e28b
mov edi, dword [edi + 0x18]
jmp 0x40e28e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040c89e
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41058d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41058d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4016f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0
mov ebx, dword [esp + 0x20]
call sub.USER32.dll_OpenClipboard
sub esp, 4
test eax, eax
jne 0x401712
add esp, 0x14
pop ebx
pop esi
ret
call sub.USER32.dll_EmptyClipboard
mov dword [esp], ebx
call fcn.004014e0
movzx eax, ax
mov dword [esp], 0
add eax, 1
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GlobalAlloc
sub esp, 8
test eax, eax
mov esi, eax
je 0x401777
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalLock
sub esp, 4
test eax, eax
je 0x401781
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], esi
call sub.KERNEL32.dll_GlobalUnlock
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], 1
call sub.USER32.dll_SetClipboardData
sub esp, 8
add esp, 0x14
pop ebx
pop esi
jmp 0x40263c
mov dword [esp], esi
call sub.KERNEL32.dll_GlobalFree
sub esp, 4
jmp 0x401777
jmp dword [sym.imp.USER32.dll_CloseClipboard]

Function at 0x401880
Capabilities:
Hide graphical window

Disassembly:
push esi
push ebx
mov edx, 0xffffffff
sub esp, 0x24
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov word [esp + 0x18], dx
mov dword [esp + 0x1c], 0x4040bc
mov dword [esp], eax
call fcn.004017d0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
lea esi, [esp + 0x14]
lea ebx, [esp + 0x18]
lea esi, [esi]
lea edi, [edi]
mov dword [esp], 0x32
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp], esi
call fcn.004015e0
mov eax, dword [esp + 0x14]
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
call fcn.00401920
cmp word [esp + 0x18], 0xffff
je 0x4018d0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004016f0
mov eax, 0xffffffff
mov word [esp + 0x18], ax
jmp 0x4018d0
Function at 0x402000
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x406044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40603c]
sub esp, 4
test ebx, ebx
je 0x40204b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402044
test esi, esi
je 0x402044
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402020
mov dword [esp], 0x406044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402230
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402358
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4022be
cmp eax, 4
jne 0x4022e0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4022ce
cmp edx, 4
je 0x4022ce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402230
Function at 0x4026f0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00401ef0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x402726
jmp 0x40275e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x402723
cmp al, 9
je 0x402723
cmp al, 0x22
jne 0x402747
jmp 0x4027a6
cmp al, 9
je 0x402753
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x402740
jmp 0x402753
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x402750
cmp al, 9
je 0x402750
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40276d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401880
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x4027b2
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x4027a2
cmp al, 0x22
jne 0x402753
lea ebx, [edx + 2]
jmp 0x402753