joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a81a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43a742
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x44e278]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x44e278]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x1120]
xor ebx, ebx
call fcn.004202e5
mov ecx, dword [esi + 0x1120]
mov eax, dword [ecx + 0x1e8]
mov edi, eax
mov edx, dword [ecx + 0x1e4]
sub edi, edx
add edi, 3
xor ecx, ecx
and dword [esp + 0x10], ecx
shr edi, 2
cmp edx, eax
cmova edi, dword [esp + 0x10]
test edi, edi
je 0x41a8b3
mov eax, dword [edx]
cmp dword [eax + 0x10], 1
je 0x41a8a4
cmp dword [eax + 0x10], 0
jne 0x41a8ab
cmp byte [eax + 0x4c], 0
jne 0x41a8ab
inc ebx
add edx, 4
inc ecx
cmp ecx, edi
jne 0x41a896
mov ecx, dword [esi + 0x1120]
call fcn.004202f3
test ebx, ebx
jne 0x41a8d0
cmp dword [esi + 0x10f4], 5
jl 0x41a8d0
xor eax, eax
inc eax
jmp 0x41a93f
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2f8
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00429320
add esp, 0xc
xor ecx, ecx
cmp dword [esi + 0x10f4], 5
mov eax, 0x442b30
cmove eax, ecx
lea ecx, [esp + 0x14]
push eax
push dword [esi + 4]
push dword [esi + 8]
call fcn.0041c98c
and dword [esp + 0x320], 0
lea ecx, [esp + 0x14]
call fcn.0041794e
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0041769f
or dword [esp + 0x320], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041ca7d
mov eax, esi
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.00424209
mov esp, ebp
pop ebp
ret

Function at 0x41aa36
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x54]
cmp eax, 1
jne 0x41aac0
push edi
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x10f4], 5
jne 0x41aa95
mov edi, dword [esi + 0x1120]
cmp byte [edi + 0x39c], 0
jne 0x41aa95
push ebx
push 6
lea edx, [edi + 0x558]
pop ebx
lea ecx, [edx + 8]
call fcn.00406562
test al, al
jne 0x41aa84
mov ecx, edx
call fcn.0040653b
add edx, 0x1d8
dec ebx
jne 0x41aa71
mov ecx, edi
call fcn.004213a8
pop ebx
cmp dword [esi + 0x1118], 0
jne 0x41aab7
mov edi, str.cross
push edi
call fcn.004022e0
pop ecx
push eax
push edi
lea ecx, [esi + 0x1108]
call fcn.00401683
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
xor eax, eax
pop esi
ret
Function at 0x41aac4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
movzx esi, dx
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x41aaec
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
test al, al
jne 0x41abbf
sub esi, 0x3f1
je 0x41ab57
sub esi, 6
je 0x41ab0f
sub esi, 0x34
je 0x41ab4c
dec esi
je 0x41ab3c
sub esi, 0x24
je 0x41ab2b
sub esi, 5
jne 0x41abbf
push 1
xor eax, eax
push eax
push eax
push str.https:__msetup.pro_license_
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41abbf
push 1
xor eax, eax
push eax
push 0x445134
push str.control.exe
jmp 0x41ab1a
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x41abbf
push 1
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x41ab81
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x41abbf
push 0
jmp 0x41ab45
cmp byte [edi + 0x648], 0
je 0x41abbf
mov eax, dword [edi + 0x10f4]
cmp eax, 2
jne 0x41ab7c
push 3
mov ecx, edi
call fcn.00419fb5
cmp dword [edi + 0x6c], 0
jne 0x41abbf
jmp 0x41ab81
cmp eax, 3
jne 0x41ab85
push 4
jmp 0x41ab8c
cmp eax, 4
jne 0x41ab95
push 5
mov ecx, edi
call fcn.00419fb5
jmp 0x41abbf
cmp eax, 5
je 0x41ab9f
cmp eax, 6
jne 0x41abbf
mov esi, str.button
push esi
call fcn.004022e0
pop ecx
push eax
push esi
lea ecx, [edi + 0x1108]
call fcn.00401683
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41ba41
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44e278]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x6c], ebx
je 0x41bb83
cmp byte [ebp + 8], bl
je 0x41bb3e
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [edi + 0x638]
call esi
push ebx
push dword [edi + 0x6dc]
call esi
push ebx
push dword [edi + 0x754]
call esi
push ebx
push dword [edi + 0x8a4]
call esi
push ebx
push dword [edi + 0x7dc]
call esi
inc ebx
push ebx
push dword [edi + 0x840]
call esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x3e9
push dword [edi + 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov esi, dword [edi + 0x6c]
cmp dword [esi + 0xc], 0
jne 0x41baf1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov ecx, edi
sub dword [ebp - 0x18], 4
mov esi, eax
add dword [ebp - 0x10], 4
mov dword [edi + 0x74], eax
call fcn.00417ff0
mov dword [edi + 0x48], esi
lea eax, [ebp - 0x18]
push dword [esi + 4]
mov ecx, edi
push eax
call fcn.00417d82
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x41bb83
mov eax, dword [ecx]
push dword [edi + 4]
call dword [eax + 0x10]
mov ecx, dword [edi + 0x48]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [edi + 0x48]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1c]
jmp 0x41bb83
call fcn.00417ff0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor ebx, ebx
inc ebx
push ebx
push dword [edi + 0x638]
call esi
push ebx
push dword [edi + 0x6dc]
call esi
push ebx
push dword [edi + 0x754]
call esi
push ebx
push dword [edi + 0x8a4]
call esi
push ebx
push dword [edi + 0x7dc]
call esi
push 0
push dword [edi + 0x840]
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424209
mov esp, ebp
pop ebp
ret 4
Function at 0x41d058
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44e278]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], eax
push eax
push edi
mov esi, edx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d0da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test esi, esi
je 0x41d0c6
mov eax, dword [esi]
lea ecx, [ebp - 9]
push ecx
push edi
push eax
mov dword [esi + 4], eax
mov ecx, esi
lea eax, [ebp - 8]
mov byte [ebp - 9], bl
push eax
call fcn.00413672
push edi
push dword [ebp - 0x10]
push dword [esi]
call fcn.00424400
add esp, 0xc
jmp 0x41d0da
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
mov ebx, eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424209
mov esp, ebp
pop ebp
ret

Function at 0x41dc5a
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44e278]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push esi
push edi
mov esi, ecx
je 0x41dc85
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x41dc85
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp dword [esi + 0xb0], edi
jne 0x41dcf1
mov eax, edi
mov edx, edi
cmp dword [esi + 0x2c], edi
jbe 0x41dca6
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x41dca3
mov eax, dword [eax]
push 3
pop edx
lea ecx, [esi + 4]
cmp dword [ecx + 0x14], 8
jb 0x41dcb1
mov ecx, dword [ecx]
push edi
push edi
push eax
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0xb0], eax
test eax, eax
je 0x41dcf1
push edi
push 6
xor edx, edx
pop ecx
call fcn.0040880a
pop ecx
test al, al
je 0x41dcf1
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x41
push dword [esi + 0xb0]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi + 0xb0], edi
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.00424209
mov esp, ebp
pop ebp
ret 4
Function at 0x41eaf1
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0xffffffff
jne 0x41eb65
cmp byte [edi + 0xc], 2
jne 0x41eb65
xor ebx, ebx
cmp dword [edi + 0x30], ebx
jne 0x41eb14
lea ecx, [edi + 0x20]
call fcn.004131a6
cmp dword [edi + 0x30], ebx
jbe 0x41eb65
lea esi, [edi + 0x20]
cmp dword [esi + 0x14], 8
jb 0x41eb23
mov eax, dword [esi]
jmp 0x41eb25
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41eb43
cmp dword [esi + 0x14], 8
jb 0x41eb3a
mov eax, dword [esi]
jmp 0x41eb3c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x41eb4b
mov esi, dword [esi]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
xor eax, eax
cmp dword [edi + 0x10], 0xffffffff
pop edi
pop esi
setne al
pop ebx
ret

Function at 0x41eb72
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44e278]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], eax
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov cl, byte [esi + 0xc]
inc dword [esi + 0x1c]
cmp cl, 2
jne 0x41ebd6
mov ecx, esi
call fcn.0041eaf1
test al, al
je 0x41ebc7
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ebc7
mov eax, dword [ebp - 8]
jmp 0x41ebef
push ecx
push ecx
mov ecx, esi
call fcn.0041ea7a
mov byte [esi + 0x18], 1
jmp 0x41ebf4
cmp cl, 1
jne 0x41ebf4
push dword [ebp - 0xc]
add eax, edi
mov ecx, esi
push eax
push edi
push dword [esi + 4]
call fcn.0041ec09
mov eax, dword [ebp - 0xc]
add dword [esi + 0x14], eax
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424209
mov esp, ebp
pop ebp
ret 8
Function at 0x421253
Capabilities:
Create directory
Create thread

Disassembly:
push 0x3c
mov eax, 0x43b327
call fcn.00427d33
mov esi, ecx
push 9
lea eax, [ebp - 0x2c]
xor bl, bl
push eax
call fcn.00422092
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x1c], edi
je 0x42129c
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push edi
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4212cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4212cf
push 8
lea eax, [ebp - 0x48]
push eax
call fcn.00422092
push eax
lea ecx, [ebp - 0x2c]
call fcn.004015c0
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.004017dc
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00402e22
push ecx
call fcn.004220b6
mov eax, dword [esi + 0x394]
xor edx, edx
mov dword [eax + 4], edx
cmp dword [esi + 0xec8], edx
jne 0x421395
mov eax, dword [esi + 0x1e8]
sub eax, dword [esi + 0x1e4]
sar eax, 2
test eax, eax
je 0x421395
push 6
pop ecx
mov dword [esi + 0xec8], ecx
mov eax, dword [esi + 0x1e8]
sub eax, dword [esi + 0x1e4]
sar eax, 2
inc eax
cmp eax, ecx
jae 0x421330
mov eax, dword [esi + 0x1e8]
sub eax, dword [esi + 0x1e4]
sar eax, 2
inc eax
mov dword [esi + 0xec8], eax
push edx
push edx
lea eax, [esi + 0x3b8]
push eax
push 0x4214bc
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
mov dword [esi + 0x3a0], eax
inc edi
cmp dword [esi + 0xec8], edi
jbe 0x421391
lea eax, [esi + 0x590]
lea ebx, [esi + 0x3a4]
mov dword [ebp - 0x30], eax
xor ecx, ecx
push ecx
push ecx
push eax
push 0x420378
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx], eax
inc edi
mov eax, dword [ebp - 0x30]
add ebx, 4
add eax, 0x1d8
mov dword [ebp - 0x30], eax
cmp edi, dword [esi + 0xec8]
jb 0x421366
mov bl, 1
xor edx, edx
push edx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017dc
mov al, bl
call fcn.00427ce2
ret

Function at 0x4213a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xec8], 0
jbe 0x421445
mov eax, dword [esi + 0x394]
xor edx, edx
inc edx
add eax, 4
xchg dword [eax], edx
push 0xffffffffffffffff
push 1
lea edi, [esi + 0x3a0]
push edi
push dword [esi + 0xec8]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor ebx, ebx
cmp dword [esi + 0xec8], ebx
jbe 0x421409
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi], 0
inc ebx
lea edi, [edi + 4]
cmp ebx, dword [esi + 0xec8]
jb 0x4213f2
cmp byte [esi + 0x39c], 0
je 0x421445
push 9
lea eax, [esp + 0x14]
push eax
call fcn.00422092
cmp dword [eax + 0x14], 8
jb 0x421426
mov eax, dword [eax]
push 1
xor ebx, ebx
push ebx
push ebx
push eax
push str.explore
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
push 1
lea ecx, [esp + 0x18]
call fcn.004017dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43149c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44e278]
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.0042c051
mov dword [ebp - 0x14], eax
cmp dword [0x450ab4], esi
jne 0x43158f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x43151c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43166f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x43166f
push 0x441828
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43166f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x450ab4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x450ab8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x450abc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x450ac4], eax
test eax, eax
je 0x43158c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x450ac0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4315b4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4315a7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4315c9
push 4
pop eax
jmp 0x431671
cmp dword [ebp - 0x14], esi
je 0x4315c9
push dword [0x450ab4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4315ae
mov eax, dword [0x450ac0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x431627
cmp dword [0x450ac4], edi
je 0x431627
push eax
call ebx
push dword [0x450ac4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x431627
test eax, eax
je 0x431627
call ecx
test eax, eax
je 0x43161c
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 0x43161c
test byte [ebp - 8], 1
jne 0x431627
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x431657
mov eax, dword [0x450ab8]
cmp eax, edi
je 0x431654
push eax
call ebx
test eax, eax
je 0x431654
call eax
mov esi, eax
test esi, esi
je 0x431654
mov eax, dword [0x450abc]
cmp eax, edi
je 0x431654
push eax
call ebx
test eax, eax
je 0x431654
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x450ab4]
call ebx
test eax, eax
je 0x43166f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x431671
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424209
mov esp, ebp
pop ebp
ret
Function at 0x403ecf
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ecx
push ebp
push edi
mov ebp, 0x104
mov edi, 0x40b4f8
push ebp
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403f55
push esi
push str.ShellExecuteA
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0xc], eax
je 0x403f4c
push ebx
mov esi, 0x40b5fc
push str._c_del__
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push esi
call ebx
push str._____NUL
push esi
call ebx
push ebp
push edi
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
pop ebx
je 0x403f4c
xor eax, eax
push eax
push eax
push esi
push edi
push eax
push eax
call dword [esp + 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x4043cb
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov ch, byte [eax + 3]
mov esi, dword [ebp + 8]
mov cl, byte [eax + 2]
push edi
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
xor edi, edi
movzx edx, byte [eax]
movzx ebx, byte [eax + 5]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dh, byte [eax + 7]
mov dl, byte [eax + 6]
movzx eax, byte [eax + 4]
shl edx, 8
or edx, ebx
shl edx, 8
or eax, edx
cmp dword [ebp + 0x14], edi
jne 0x404468
mov edx, dword [esi]
test edx, edx
jle 0x4044c1
mov dword [ebp + 8], edx
mov edx, eax
mov ebx, eax
shr edx, 5
shl ebx, 4
xor edx, ebx
mov ebx, edi
and ebx, 3
add edx, eax
mov ebx, dword [esi + ebx*4 + 4]
add ebx, edi
sub edi, 0x61c88647
xor edx, ebx
add ecx, edx
mov edx, ecx
mov ebx, ecx
shr edx, 5
shl ebx, 4
xor edx, ebx
mov ebx, edi
shr ebx, 0xb
and ebx, 3
add edx, ecx
mov ebx, dword [esi + ebx*4 + 4]
add ebx, edi
xor edx, ebx
add eax, edx
dec dword [ebp + 8]
jne 0x40441e
jmp 0x4044c1
mov edi, dword [esi]
mov edx, edi
imul edx, edx, 0x9e3779b9
test edi, edi
jle 0x4044c1
mov dword [ebp + 8], edi
mov edi, ecx
mov ebx, ecx
shr edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, edx
shr ebx, 0xb
and ebx, 3
add edi, ecx
mov ebx, dword [esi + ebx*4 + 4]
add ebx, edx
add edx, 0x61c88647
xor edi, ebx
sub eax, edi
mov edi, eax
mov ebx, eax
shr edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, edx
and ebx, 3
add edi, eax
mov ebx, dword [esi + ebx*4 + 4]
add ebx, edx
xor edi, ebx
sub ecx, edi
dec dword [ebp + 8]
jne 0x404479
mov esi, dword [ebp + 0x10]
mov edx, ecx
shr edx, 8
mov byte [esi + 1], dl
mov byte [esi], cl
mov edx, ecx
mov byte [esi + 4], al
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, eax
shr ecx, 8
mov byte [esi + 5], cl
mov ecx, eax
shr edx, 0x10
shr ecx, 0x10
shr eax, 0x18
mov byte [esi + 2], dl
mov byte [esi + 6], cl
mov byte [esi + 7], al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401012
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40f11b]
shl eax, 2
mov dword [0x40f11f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00404fb4
pop edx
call fcn.00404350
call fcn.00404fb8
push 0
call fcn.00405c64
pop ecx
push 0x40f0c4
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40f123], eax
push 0
jmp fcn.0040c848
Function at 0x404ca8
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4060cf
mov eax, dword [0x410088]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4060dc
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x406109
je 0x40611b
sub ecx, 0x100
je 0x406129
sub ecx, 0x100
je 0x406130
sub ecx, 0x100
je 0x406122
jmp 0x406137
sub ecx, 0x600
je 0x406130
sub ecx, 0x100
je 0x40611b
jmp 0x406137
mov edi, 1
jmp 0x40613c
mov edi, 2
jmp 0x40613c
mov edi, 4
jmp 0x40613c
mov edi, 5
jmp 0x40613c
mov edi, 3
test byte [ebp + 0xd], 1
je 0x406163
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40faf4]
test al, 0x80
je 0x40615c
mov ebx, 0x80
jmp 0x406175
mov ebx, 1
jmp 0x406175
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x406175
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x406187
je 0x406190
dec eax
je 0x406199
jmp 0x4061a2
mov dword [ebp - 4], 0x80000000
jmp 0x4061b1
mov dword [ebp - 4], 0x40000000
jmp 0x4061b1
mov dword [ebp - 4], 0xc0000000
jmp 0x4061b1
push 1
call fcn.004074c0
pop ecx
mov ebx, eax
jmp 0x4062a1
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4061cd
sub eax, 0x10
je 0x4061d4
sub eax, 0x10
je 0x4061dd
sub eax, 0x10
je 0x4061e6
jmp 0x4061e6
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4061ed
mov dword [ebp - 8], 1
jmp 0x4061ed
mov dword [ebp - 8], 2
jmp 0x4061ed
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x40625a
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x40624f
test byte [ebp + 0xd], 1
je 0x40624a
mov ebx, 0x50
jmp 0x40624f
mov ebx, 2
push ebx
call fcn.004074c0
pop ecx
mov ebx, eax
jmp 0x4062a1
mov edi, esi
push edi
call fcn.00406020
pop ecx
test eax, eax
je 0x40626e
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x40627a
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00407204
add esp, 8
mov ebx, eax
inc eax
jne 0x4062a1
push 4
call fcn.004074c0
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406fbc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.00404260
pop ecx
mov ebx, eax
test eax, eax
jne 0x406fe0
xor eax, eax
jmp 0x407089
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x407001
cmp esi, 0x104
jb 0x40700c
push ebx
call fcn.00404270
pop ecx
xor eax, eax
jmp 0x407089
cmp byte [ebx + 1], 0x3a
jne 0x40703c
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x40703c
push ebx
call fcn.00404270
pop ecx
xor eax, eax
jmp 0x407089
inc esi
test edi, edi
je 0x40707f
cmp esi, dword [ebp + 0x10]
jbe 0x407051
push ebx
call fcn.00404270
pop ecx
xor eax, eax
jmp 0x407089
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.00404270
pop ecx
mov eax, edi
jmp 0x407089
push esi
push ebx
call fcn.00404280
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret