joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd722
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
lea eax, [ebp - 0x94]
push edi
mov edi, ecx
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
ja 0x4bd761
jne 0x4bd75a
cmp dword [ebp - 0x8c], 1
jae 0x4bd761
mov esi, 0x735
jmp 0x4bd766
mov esi, 0x734
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0
movzx ecx, si
mov esi, dword [sym.imp.USER32.dll_LoadImageA]
push 0x10
push 0x10
push 1
push ecx
push eax
call esi
test eax, eax
mov dword [edi + 0x47c], eax
je 0x4bd7bb
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0
push 0x10
push 0x10
push 1
push 0x162
push eax
call esi
test eax, eax
mov dword [edi + 0x480], eax
jne 0x4bd7bf
push dword [edi + 0x47c]
call dword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
jmp 0x4bd7cd
push 0
push 0x435b
mov ecx, edi
call sub.MFC42.DLL_CDialog::Create
pop edi
pop esi
leave
ret
Function at 0x4be6e0
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4e2619
call fcn.0046fad0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x4f94a0
mov eax, dword [esi + 0x2f0]
lea edi, [esi + 0x2f0]
test eax, eax
mov dword [ebp - 4], 0x11
je 0x4be727
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x7d0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x10]
push edx
push 0x4e5890
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x4be76f
test eax, eax
je 0x4be76f
mov ebx, dword [eax]
push 0x4e5870
mov ecx, esi
mov edi, eax
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push edi
call dword [ebx + 0x2c]
mov eax, dword [ebp - 0x10]
test eax, eax
mov byte [ebp - 4], 0x11
je 0x4be77d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x75c]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x754]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x750]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2f8]
mov byte [ebp - 4], 0xd
call dword [sym.imp.QQBaseClassInDll.dll_public_virtual:_void___thiscall_CQQShowWnd::destructor_void_]
lea ecx, [esi + 0x2ec]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0x2e4]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x10], edi
mov dword [edi], 0x4f9574
mov byte [ebp - 4], 0xb
mov dword [edi], 0x4f4bf0
mov ecx, edi
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ebx, 0x4e7404
mov byte [ebp - 4], 0xb
mov dword [edi], ebx
mov edi, dword [sym.imp.QQBaseClassInDll.dll_public_virtual:_void___thiscall_CHypelinkButton::destructor_void_]
lea ecx, [esi + 0x268]
mov byte [ebp - 4], 0xa
call edi
lea ecx, [esi + 0x1ec]
mov byte [ebp - 4], 9
call edi
lea ecx, [esi + 0x170]
mov byte [ebp - 4], 8
call edi
lea ecx, [esi + 0xf4]
mov byte [ebp - 4], 7
call edi
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 3
call fcn.0046f47a
lea edi, [esi + 0x88]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edi
mov dword [edi], 0x4f7730
mov byte [ebp - 4], 2
mov dword [edi], 0x4f4bf0
mov ecx, edi
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [ebp - 4], 2
mov dword [edi], ebx
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
push 0x10
lea eax, [esi + 0x40]
push 0
push eax
call sub.MSVCRT.dll_memset
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov ecx, esi
call fcn.0046f47a
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4c1457
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 1
pop edi
xor esi, esi
mov dword [ebp - 0xc], ecx
push 0xfffffffffffffff5
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [ebp - 0x28]
or dword [ebp - 8], 0xffffffff
or dword [ebp - 4], 0xffffffff
push esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4c1559
or dword [ebp - 0x18], 0xffffffff
push 2
push esi
lea eax, [ebp - 0x18]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push eax
push dword [ebp - 8]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
mov ecx, dword [ebp - 0xc]
push edi
test eax, eax
lea eax, [ebp - 8]
push edi
push eax
jne 0x4c14e0
call fcn.004c1a02
mov ecx, dword [ebp - 0xc]
push edi
lea eax, [ebp - 4]
push edi
push eax
jmp 0x4c1554
call fcn.004c1a02
lea eax, [ebp - 0x28]
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
push 0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4c1559
or dword [ebp - 0x1c], 0xffffffff
push 2
push 0
lea eax, [ebp - 0x1c]
push 0
push eax
call esi
push eax
push dword [ebp - 0x10]
call esi
push eax
call ebx
test eax, eax
push edi
push edi
jne 0x4c155d
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.004c1a02
push edi
lea eax, [ebp - 4]
push edi
push eax
mov ecx, esi
call fcn.004c1a02
push edi
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, esi
call fcn.004c1a02
push edi
lea eax, [ebp - 0x10]
push edi
push eax
mov ecx, esi
call fcn.004c1a02
xor eax, eax
jmp 0x4c15c9
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004c1a02
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
call fcn.004c15ce
test eax, eax
jne 0x4c1582
xor ebx, ebx
jmp 0x4c1593
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004c1661
mov ebx, eax
push edi
lea eax, [ebp - 0x18]
push edi
push eax
mov ecx, esi
call fcn.004c1a02
push edi
lea eax, [ebp - 4]
push edi
push eax
mov ecx, esi
call fcn.004c1a02
push edi
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, esi
call fcn.004c1a02
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
mov ecx, esi
call fcn.004c1a02
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c15ce
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax], 0xffffffff
je 0x4c1658
mov ebx, dword [ebp + 0xc]
cmp dword [ebx], 0xffffffff
je 0x4c1658
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0x18
or word [ebp - 0x28], 0x101
mov dword [ebp - 0x54], edi
mov eax, dword [eax]
mov word [ebp - 0x24], si
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push str.ipconfig__all
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x4c1658
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
jmp 0x4c165a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401c20
Capabilities:
Get geographical location
Read file via mapping

Disassembly:
sub esp, 0x2c
mov eax, dword [0x413044]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
push edi
push 0x27
lea eax, [esp + 0x11]
push eax
push 0x1004
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 0xc]
push ecx
push 0
mov byte [esp + 0x14], 0x2e
call fcn.00402e03
add esp, 8
push str.GetDirectxInfomation
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x401c8f
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x401cb4
push edi
call ebp
xor edi, edi
xor esi, esi
test esi, esi
mov dword [0x414ba0], esi
jne 0x401cb8
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00401dce
add esp, 0x2c
ret 0x10
mov esi, eax
jmp 0x401c91
lea eax, [esi + 1]
mov byte [esi], 0xd
mov byte [eax], 0xa
push 2
add eax, 1
push 0
mov dword [0x414ba0], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call entry0
test eax, eax
jge 0x401cf3
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00401dce
add esp, 0x2c
ret 0x10
push ebx
push 0x411e80
call fcn.00401bb0
add esp, 4
call fcn.004013f0
push eax
push str._x
call fcn.00401bb0
mov eax, dword [0x414ba4]
add esp, 8
test eax, eax
je 0x401d3c
mov ecx, dword [eax + 0x10]
cmp ecx, 9
jae 0x401d43
movzx edx, word [eax + 0x18]
mov eax, dword [eax + 0x14]
push edx
push eax
push ecx
push str.DirectX_Version_:__d._d._c__
call fcn.00401bb0
add esp, 0x10
mov ebx, 1
jmp 0x401d45
xor ebx, ebx
call fcn.004010e0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [0x414ba0]
push esi
mov byte [ecx], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebp
mov ecx, dword [esp + 0x38]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00401dce
add esp, 0x2c
ret 0x10

Function at 0x401dce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413044]
jne 0x401dd8
repz ret
jmp fcn.004031c1
Function at 0x40d2a5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405bc6
xor ebx, ebx
cmp dword [0x414b38], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40d37a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40d2e5
xor eax, eax
jmp 0x40d43e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40d2de
push eax
call fcn.00405b63
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414b38], eax
call esi
push eax
call fcn.00405b63
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414b3c], eax
call esi
push eax
call fcn.00405b63
mov dword [0x414b40], eax
lea eax, [ebp - 8]
push eax
call fcn.00405904
test eax, eax
pop ecx
pop ecx
je 0x40d348
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403ba3
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40d37a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00405b63
cmp eax, ebx
pop ecx
mov dword [0x414b48], eax
je 0x40d37a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405b63
pop ecx
mov dword [0x414b44], eax
mov eax, dword [0x414b44]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40d3f3
cmp dword [0x414b48], esi
je 0x40d3f3
push eax
call fcn.00405bcf
pop ecx
call eax
cmp eax, ebx
je 0x40d3c0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x414b48]
call fcn.00405bcf
pop ecx
call eax
test eax, eax
je 0x40d3c0
test byte [ebp - 0x18], 1
jne 0x40d3f3
lea eax, [ebp - 0xc]
push eax
call fcn.0040593b
test eax, eax
pop ecx
je 0x40d3db
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403ba3
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40d3ea
or dword [ebp + 0x10], 0x200000
jmp 0x40d424
or dword [ebp + 0x10], 0x40000
jmp 0x40d424
mov eax, dword [0x414b3c]
cmp eax, esi
je 0x40d424
push eax
call fcn.00405bcf
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40d424
mov eax, dword [0x414b40]
cmp eax, esi
je 0x40d424
push dword [ebp - 4]
push eax
call fcn.00405bcf
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x414b38]
call fcn.00405bcf
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40baf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x44
mov edi, esp
sub eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edi, [esp]
mov eax, dword [esi + ecx*4 - 4]
cdq
mov dword [esp + 0x40], edx
clc
lodsd eax, dword [esi]
pushfd
xor eax, edx
popfd
sbb eax, edx
stosd dword es:[edi], eax
loop 0x40bb17
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea edi, [esp + 0x10]
mov eax, dword [esi + ecx*4 - 4]
cdq
xor dword [esp + 0x40], edx
clc
lodsd eax, dword [esi]
pushfd
xor eax, edx
popfd
sbb eax, edx
stosd dword es:[edi], eax
loop 0x40bb35
mov cl, byte [ebp + 0xc]
mov ch, byte [ebp + 0x14]
lea esi, [esp]
lea edi, [esp + 0x10]
lea ebx, [esp + 0x20]
cmp cl, ch
jae 0x40bb58
xchg ch, cl
xchg edi, esi
push ebx
push esi
push ebx
push edi
push ecx
mov edi, dword [edi]
or edi, edi
je 0x40bb82
lodsd eax, dword [esi]
or eax, eax
je 0x40bb7b
mul edi
add dword [ebx], eax
adc dword [ebx + 4], edx
jae 0x40bb7b
adc dword [ebx + 8], 0
jae 0x40bb7b
adc dword [ebx + 0xc], 0
add ebx, 4
dec cl
jne 0x40bb63
pop eax
mov cl, al
pop edi
pop ebx
pop esi
add edi, 4
add ebx, 4
dec ch
jne 0x40bb59
pop ebx
mov ecx, dword [ebp + 0x1c]
lea esi, [esp + 0x20]
mov edi, dword [ebp + 0x18]
mov edx, dword [esp + 0x40]
clc
lodsd eax, dword [esi]
pushfd
xor eax, edx
popfd
sbb eax, edx
stosd dword es:[edi], eax
loop 0x40bba2
add esp, 0x44
pop ebx
pop edi
pop esi
leave
ret 0x18
Function at 0x4056f2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea eax, [ebp - 0x108]
push 1
push 5
push eax
push dword [ecx]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x411124
lea ecx, [ebp - 0x108]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push 0x14
call fcn.00406b66
push eax
lea ecx, [ebp - 0x108]
push ecx
call esi
push 0
lea eax, [ebp - 0x108]
push 0x8000000
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405759
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
cmp dword [ecx + 0xf6c], 0
push esi
push edi
je 0x40579a
cmp dword [ecx + 0xf54], 0
je 0x40579a
push 0x124
push 2
push 0x10
push dword [ecx]
call fcn.00406ba3
cmp eax, 6
je 0x40579a
xor eax, eax
jmp 0x405926
push 2
mov ecx, dword [ebp - 8]
push 0x40000000
call fcn.004056f2
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4057c5
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4057fa
cmp dword [ebp - 0x10], 0xffffffff
je 0x4057d4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x4057e3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
mov eax, dword [ebp - 8]
push 2
push 0x12
push dword [eax]
call fcn.00406ba3
xor eax, eax
jmp 0x405926
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [eax], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 8]
call fcn.00403a68
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
add ecx, 0x18
lea esi, [edx + 0xf10]
mov eax, dword [edx + 0x350]
mov dword [ecx - 8], eax
mov eax, dword [edx + 0x58]
mov dword [ecx - 4], eax
mov eax, 4
mov edx, dword [esi]
add esi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x40584a
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add esi, 0xf20
add ecx, 0x28
mov dword [ebp - 4], 0x12
mov eax, 8
mov edx, dword [esi]
add esi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x405872
xor esi, esi
mov eax, dword [ebp - 8]
cmp esi, 0xa
jge 0x4058db
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
inc dword [ebp - 4]
mov ebx, dword [ecx + esi*4 + 0x28]
mov ecx, dword [ebp - 8]
mov dword [eax + edx*4], ebx
mov eax, dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ebx, dword [eax + esi*4 + 0x50]
xor edi, edi
mov dword [ecx + edx*4], ebx
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
lea ebx, [ecx + edx*4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
cmp dword [ecx + esi*4 + 0x28], edi
jle 0x4058d8
push edi
push esi
inc edi
call fcn.0040792e
mov dword [ebx], eax
inc dword [ebp - 4]
add ebx, 4
jmp 0x4058ba
inc esi
jmp 0x405881
mov edx, dword [ebp - 4]
push 0
mov ebx, dword [eax + 0xf58]
mov ecx, dword [ebp - 0xc]
lea eax, [edx*4 + 4]
mov dword [ecx + edx*4], ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
push ecx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
call fcn.00405691
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4089c9
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401090
push 0x4098b0
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x411924], eax
mov al, ah
and eax, 0xff
mov dword [0x411930], eax
mov eax, dword [0x411924]
shr dword [0x411924], 0x10
and eax, 0xff
mov dword [0x41192c], eax
shl eax, 8
add eax, dword [0x411930]
mov dword [0x411928], eax
call fcn.00409806
mov dword [ebp - 4], 0
call fcn.00409718
call fcn.0040970d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x415778], eax
call fcn.00409281
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x4118b0], eax
call fcn.004091b6
call fcn.00408e78
mov esi, dword [0x415778]
mov al, byte [esi]
cmp al, 0x22
jne 0x408a87
mov al, byte [ebp - 0x28]
inc esi
mov al, byte [esi]
test al, al
je 0x408a7f
cmp al, 0x22
jne 0x408a74
cmp byte [esi], 0x22
jne 0x408a91
inc esi
jmp 0x408a91
cmp al, 0x20
jbe 0x408a91
inc esi
cmp byte [esi], 0x20
ja 0x408a8b
cmp byte [esi], 0
je 0x408aa1
cmp byte [esi], 0x20
ja 0x408aa1
inc esi
cmp byte [esi], 0
jne 0x408a96
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x408ac1
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00408ea8
jmp 0x408afd
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408eca
Capabilities:
Terminate process

Disassembly:
mov dword [0x41195c], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x411958], bl
jne 0x408f26
cmp dword [0x415774], 0
je 0x408f14
mov esi, dword [0x415770]
sub esi, 4
cmp dword [0x415774], esi
ja 0x408f14
mov eax, dword [esi]
test eax, eax
je 0x408f09
call eax
sub esi, 4
cmp dword [0x415774], esi
jbe 0x408f01
push 0x410028
push 0x410020
call fcn.00408f49
add esp, 8
push 0x410030
push 0x41002c
call fcn.00408f49
add esp, 8
test ebx, ebx
jne 0x408f46
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret

Function at 0x409979
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 4
xor eax, eax
mov ecx, 0x411fa8
push edi
cmp dword [ecx], edx
je 0x409998
add ecx, 8
inc eax
cmp ecx, 0x412020
jb 0x409988
shl eax, 3
cmp dword [eax + 0x411fa8], edx
jne 0x4099cc
mov edx, dword [eax + 0x411fac]
push 0
lea eax, [esp + 8]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [0x411c58]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
add esp, 4
ret
Function at 0x40b462
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub esp, 0x410
cmp eax, dword [0x411c08]
push ebx
push esi
push edi
jb 0x40b498
mov dword [0x411918], 9
mov dword [0x41191c], 0
mov eax, 0xffffffff
jmp 0x40b5f4
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x40b4a9
xor eax, eax
jmp 0x40b5f4
mov eax, dword [ebp + 8]
test byte [eax + 0x411c10], 0x20
je 0x40b4c2
push 2
push 0
push eax
call fcn.0040d605
add esp, 0xc
mov eax, dword [ebp + 8]
test byte [eax + 0x411c10], 0x80
je 0x40b54c
mov dword [ebp - 0xc], 0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x40b584
lea ebx, [ebp - 0x410]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x40b516
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x40b502
inc esi
mov byte [ebx], 0xd
inc ebx
lea ecx, [ebp - 0x410]
mov byte [ebx], al
inc ebx
mov eax, ebx
sub eax, ecx
cmp eax, 0x400
jl 0x40b4ec
lea eax, [ebp - 0x410]
push 0
sub ebx, eax
lea ecx, [ebp - 0x410]
lea eax, [ebp - 4]
push eax
push ebx
push ecx
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x411c50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b57b
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
cmp eax, ebx
jge 0x40b4d8
jmp 0x40b584
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax*4 + 0x411c50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b57b
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x40b584
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jne 0x40b5ef
cmp dword [ebp - 0xc], 0
je 0x40b5bc
cmp dword [ebp - 0xc], 5
jne 0x40b5aa
mov dword [0x411918], 9
mov eax, dword [ebp - 0xc]
mov dword [0x41191c], eax
jmp 0x40b5b5
push dword [ebp - 0xc]
call fcn.0040d59c
add esp, 4
mov eax, 0xffffffff
jmp 0x40b5f4
mov eax, dword [ebp + 8]
test byte [eax + 0x411c10], 0x40
je 0x40b5d4
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40b5d4
xor eax, eax
jmp 0x40b5f4
mov dword [0x411918], 0x1c
mov dword [0x41191c], 0
mov eax, 0xffffffff
jmp 0x40b5f4
mov eax, dword [ebp - 8]
sub eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret