joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449fae
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push edi
push 0
push 2
or edi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov esi, eax
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.0042d1b5
add esp, 0xc
mov dword [ebp - 0x22c], 0x22c
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x44a01e
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x224], ebx
je 0x44a017
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x449ffc
jmp 0x44a01d
mov edi, dword [ebp - 0x214]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44ab17
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44ab25
mov eax, dword [eax]
push 1
push 0
push eax
push 0x405ef8
push 0x404664
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret

Function at 0x44c756
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x44c791
test al, 8
jne 0x44c791
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x44c791
or byte [esi + 0xc], 4
mov cl, byte [esi + 0xc]
test eax, 0x21000000
jne 0x44c791
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x44c7ae
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0044c7be
jmp 0x44c7b9
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x44ce0c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x470a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x474508]
push ebx
push esi
xor esi, esi
mov ebx, 0x4744f0
push edi
xor edi, edi
inc esi
mov dword [ebp - 0x110], edi
test al, 1
jne 0x44ce54
or eax, esi
mov ecx, ebx
mov dword [0x474508], eax
call fcn.0041f8b0
push 0x46ec53
call fcn.0044f13f
pop ecx
mov ecx, ebx
call fcn.00423310
cmp byte [0x47450c], 0
jne 0x44d008
lea eax, [ebp - 0x34]
push eax
call fcn.0044d298
pop ecx
push eax
push 0x4062e0
lea ecx, [ebp - 0x10c]
call fcn.004138d0
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0044d0f3
pop ecx
push eax
push 0x4062e4
lea ecx, [ebp - 0x94]
call fcn.004138d0
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0044d025
pop ecx
push eax
push 0x4062e8
lea ecx, [ebp - 0xac]
call fcn.004138d0
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00421e20
add esp, 0xc
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00421e20
add esp, 0xc
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00421e20
add esp, 0xc
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00421e20
add esp, 0xc
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00421e20
add esp, 0xc
lea ecx, [ebp - 0xc4]
push edi
push esi
call fcn.004145d0
push edi
push esi
lea ecx, [ebp - 0x7c]
call fcn.004145d0
push edi
push esi
lea ecx, [ebp - 0xf4]
call fcn.004145d0
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.004145d0
push edi
push esi
lea ecx, [ebp - 0xac]
call fcn.004145d0
push edi
push esi
lea ecx, [ebp - 0x64]
call fcn.004145d0
push edi
push esi
lea ecx, [ebp - 0x94]
call fcn.004145d0
push edi
push esi
lea ecx, [ebp - 0xdc]
call fcn.004145d0
push edi
push esi
lea ecx, [ebp - 0x10c]
call fcn.004145d0
push edi
push esi
lea ecx, [ebp - 0x34]
call fcn.004145d0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmovae eax, dword [ebp - 0x1c]
push eax
call esi
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0044e270
add esp, 0xc
lea ecx, [ebp - 0x1c]
push eax
call fcn.00421620
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.004145d0
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0044e270
add esp, 0xc
lea ecx, [ebp - 0x1c]
push eax
call fcn.00421620
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.004145d0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call esi
cmp dword [ebp - 8], 0x10
lea esi, [ebp - 0x1c]
push 8
cmovae esi, dword [ebp - 0x1c]
mov edi, 0x47450c
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004145d0
mov ecx, ebx
call fcn.00423320
mov ecx, dword [ebp - 4]
mov eax, 0x47450c
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453031
mov esp, ebp
pop ebp
ret
Function at 0x44dd68
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.004501f0
mov eax, dword [0x470a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
mov esi, edi
push esi
lea eax, [ebp - 0x104]
push 0x406360
push eax
call fcn.00450076
add esp, 0xc
lea eax, [ebp - 0x104]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37c8], eax
cmp eax, 0xffffffff
je 0x44df59
mov dword [ebp - 0x37c4], edi
xor eax, eax
lea edi, [ebp - 0x37c0]
stosd dword es:[edi], eax
push 0x2710
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x33cc]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x37c0], edi
mov dword [ebp - 0x37bc], edi
call fcn.0042d1b5
add esp, 0xc
lea eax, [ebp - 0x37c4]
push edi
mov edi, dword [ebp - 0x37c8]
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push 0xc
lea eax, [ebp - 0x37c0]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44df4a
lea eax, [ebp - 0xcbc]
push eax
push 0
push dword [ebp - 0x33c0]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0044df76
lea eax, [ebp - 0x8d4]
push eax
push 0
push dword [ebp - 0x33bc]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0044df76
lea eax, [ebp - 0x37b4]
push eax
push 0
push dword [ebp - 0x33b8]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0044df76
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x33b4]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0044df76
add esp, 0x40
cmp byte [0x474550], 0
jne 0x44df0e
movsx eax, byte [ebp - 0x4ec]
push eax
call fcn.00453238
pop ecx
test eax, eax
jne 0x44dec8
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.00453238
pop ecx
test eax, eax
je 0x44df0e
xor eax, eax
cmp byte [ebp - 0x4ec], 0x20
jne 0x44dede
inc eax
cmp byte [ebp + eax - 0x4ec], 0x20
je 0x44ded3
lea ecx, [ebp - 0x4ec]
mov edx, 0x474550
add ecx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x44deed
xor ecx, ecx
mov al, byte [ebp + ecx - 0x8d4]
mov byte [ecx + 0x474950], al
inc ecx
test al, al
jne 0x44def9
xor ebx, ebx
inc ebx
push 0x2710
lea eax, [ebp - 0x33cc]
push 0
push eax
call fcn.0042d1b5
add esp, 0xc
lea eax, [ebp - 0x37c4]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push ecx
push ecx
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x44df50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc esi
cmp esi, 0x10
jl 0x44dd88
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453031
mov esp, ebp
pop ebp
ret

Function at 0x44e0c1
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.0042d1b5
and dword [esi + 0x44], 0
add esp, 0xc
and dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
pop esi
ret
Function at 0x44ec13
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44eca6
push esi
xor ecx, ecx
mov eax, 0x19000
push 2
pop edx
mov dword [ebp + 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004501b5
mov esi, eax
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push ebx
push esi
call fcn.0042d1b5
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
push esi
sbb al, al
lea ebx, [eax + 1]
call fcn.004114c0
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.004153a0
push esi
call fcn.004501b0
pop ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44ede2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x44ee15
xor al, al
jmp 0x44ee49
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x44ee3e
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4666aa
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x470a30]
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.00457e67
mov dword [ebp - 0x14], eax
cmp dword [0x4765d0], esi
jne 0x46679d
push 0x800
push esi
push 0x406170
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x46672a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x46687d
push esi
push esi
push 0x406170
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x46687d
push 0x40a930
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46687d
push eax
call ebx
push 0x40a93c
push edi
mov dword [0x4765d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x40a94c
push edi
mov dword [0x4765d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x40a960
push edi
mov dword [0x4765d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4765e0], eax
test eax, eax
je 0x46679a
push 0x40a97c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4765dc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4667c2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4667b5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4667d7
push 4
pop eax
jmp 0x46687f
cmp dword [ebp - 0x14], esi
je 0x4667d7
push dword [0x4765d0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4667bc
mov eax, dword [0x4765dc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x466835
cmp dword [0x4765e0], edi
je 0x466835
push eax
call ebx
push dword [0x4765e0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x466835
test eax, eax
je 0x466835
call ecx
test eax, eax
je 0x46682a
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 0x46682a
test byte [ebp - 8], 1
jne 0x466835
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x466865
mov eax, dword [0x4765d4]
cmp eax, edi
je 0x466862
push eax
call ebx
test eax, eax
je 0x466862
call eax
mov esi, eax
test esi, esi
je 0x466862
mov eax, dword [0x4765d8]
cmp eax, edi
je 0x466862
push eax
call ebx
test eax, eax
je 0x466862
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4765d0]
call ebx
test eax, eax
je 0x46687d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x46687f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453031
mov esp, ebp
pop ebp
ret
Function at 0x4013fa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push 0x40e0c0
call fcn.00407460
xor ebx, ebx
mov dword [esp], 0x40fde0
push ebx
mov dword [ebp - 0x14], eax
call fcn.004052d3
push ebx
push 0x40fba1
call fcn.00403464
add esp, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x444]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 8]
mov dword [ebp - 0x340], 0x224
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x18], eax
push ecx
push eax
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4015ef
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407370
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.0040c540
add esp, 0x10
test eax, eax
je 0x4015ef
push dword [ebp - 0x338]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4015ef
push esi
mov esi, 0x80000
push edi
push esi
mov edi, 0x411970
push ebx
push edi
call fcn.00407310
mov eax, dword [ebp - 0x328]
add esp, 0xc
cmp eax, esi
jb 0x4014e1
mov eax, esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
jne 0x401506
lea ecx, [ebp - 8]
push ecx
push eax
push edi
push dword [ebp - 0x32c]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4015e1
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x4015e1
push dword [ebp + 8]
push 0x40fba1
call fcn.00403434
push eax
mov dword [ebp - 0x10], eax
call fcn.00407460
xor esi, esi
add esp, 0xc
cmp dword [ebp + 0xc], esi
mov ebx, eax
je 0x40153c
lea eax, [ebx + 0x6e]
mov dword [ebp - 8], eax
jmp 0x40153f
mov eax, dword [ebp - 8]
sub eax, ebx
sub eax, 0xa
je 0x4015d2
push dword [ebp - 0x14]
lea edi, [esi + 0x411970]
push edi
push 0x40e0c0
call fcn.0040c490
add esp, 0xc
test eax, eax
je 0x4015cb
cmp dword [ebp + 0xc], 0
jne 0x40158b
push ebx
push edi
push dword [ebp - 0x10]
call fcn.0040c490
add esp, 0xc
test eax, eax
je 0x40158b
mov eax, dword [ebp - 8]
inc esi
sub eax, ebx
sub eax, 0xa
cmp esi, eax
jb 0x40154a
jmp 0x4015d2
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push str.2hpRdH
call fcn.00403434
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
jne 0x4015cb
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp + 8], eax
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x401512
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
pop edi
pop esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x4053ac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.00404687
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d84
call fcn.00407310
push esi
push edi
push 0x491c80
call fcn.00407310
push esi
push edi
push 0x491b7c
call fcn.00407310
push esi
push edi
push 0x491a78
call fcn.00407310
push esi
push edi
push 0x491974
call fcn.00407310
add esp, 0x40
push 0x40e0d0
push 0x1eac
push 0x40e0d4
call fcn.00403529
push 0x491e90
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491e98], edi
mov dword [0x491e88], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x40546c
cmp dword [ebp - 0x8c], ebx
jne 0x40546c
mov dword [0x491e98], ebx
call fcn.004048cb
mov esi, 0x7d000
push esi
call fcn.00407baf
cmp eax, edi
pop ecx
mov dword [0x491970], eax
jne 0x40548a
xor eax, eax
jmp 0x4054ae
push esi
push edi
push eax
call fcn.00407310
call fcn.0040556c
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.004052d3
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40556c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x4055d1
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491ea0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491e9c], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea4], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x4055fb
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea8], eax
mov edi, str.ThfhfpR
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40561c
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491eac], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406a68
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21d4
call fcn.00407b80
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x406a9c
push dword [ebp + 8]
call fcn.004046f6
test eax, eax
pop ecx
jne 0x406bda
mov edi, str.pRPZ
push ebx
push edi
call fcn.00403464
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406ac0
push ebx
call fcn.00404687
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, 0x40f1dc
push ebx
push esi
call fcn.00403464
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406ae5
push ebx
call fcn.00404687
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403d8c
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x406bda
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1ec0
lea eax, [ebp - 0x21d4]
push 0x40e0c0
push eax
call fcn.00407820
lea eax, [ebp - 0x21d4]
mov byte [ebp - 0x11c0], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004054b3
push ebx
call fcn.00404687
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x13200
push edx
push eax
call fcn.00403f63
push dword [ebp - 4]
push edi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407370
push dword [ebp - 8]
push esi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407380
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.004050c1
lea eax, [ebp - 0x10c]
push eax
call fcn.00403dfa
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406d75
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
pop ebx
push 0x927c0
call edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x12]
test bl, al
je 0x406d87
cmp word [ebp - 0xe], 6
jne 0x406d87
and dword [0x491e94], 0
cmp ax, 7
mov dword [0x491e98], ebx
jne 0x406dc0
mov dword [0x491e94], ebx
cmp ax, bx
jne 0x406dcb
mov dword [0x491e94], ebx
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x406d1c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
inc esi
cmp esi, 0x1a
jl 0x406dcd
push 0x1b7740
call edi
call fcn.00406d5e
push 0xffffffffffffffff
call edi
jmp 0x406d87
Function at 0x40a935
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411488
cmp edx, dword [eax]
je 0x40a957
add eax, 8
inc ecx
cmp eax, 0x411518
jl 0x40a948
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411488]
jne 0x40aa85
mov eax, dword [0x491ec0]
cmp eax, 1
je 0x40aa5f
test eax, eax
jne 0x40a988
cmp dword [0x4110b4], 1
je 0x40aa5f
cmp edx, 0xfc
je 0x40aa85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a9bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407370
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aa02
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b0
push edi
call fcn.0040abe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407370
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407380
lea eax, [ebp - 0xa0]
push 0x40d590
push eax
call fcn.00407380
push dword [esi + 0x41148c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407380
push pe_overlay
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bcb8
add esp, 0x2c
pop edi
jmp 0x40aa85
lea eax, [ebp + 8]
lea esi, [esi + 0x41148c]
push 0
push eax
push dword [esi]
call fcn.00407460
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x55b95dc1
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x186c2e3a
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219