joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c750
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e1fb
push eax
mov dword fs:[0], esp
sub esp, 0x78
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call dword [0x44000c]
test eax, eax
jne 0x42c884
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.Version
push eax
mov dword [esp + 0x20], 0x64
call dword [0x440010]
test eax, eax
jne 0x42c884
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp]
mov dword [esp + 0x80], 0
call sub.MFC42.DLL_CString::CString_2
push 0x2e
lea ecx, [esp + 8]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::Find_2
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 5
mov byte [esp + 0x80], 0
lea ecx, [esp]
jl 0x42c86b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
add esp, 0x84
ret
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x84
ret

Function at 0x42cf90
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x42cfa2
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 8]
mov edi, dword [0x44013c]
push eax
call edi
mov ecx, dword [esi + 0x14]
push ecx
call edi
lea edx, [esp + 8]
mov dword [esp + 8], 0
push edx
push 0
push esi
push 0x42ce10
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jg 0x42cfe0
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 0xc]
mov dword [esi + 4], eax
test ecx, ecx
je 0x42cff3
push 0xfffffffffffffff1
push eax
call dword [0x440154]
mov eax, dword [esi + 0x10]
push ebx
push 0xffffffffffffffff
push eax
call dword [0x440110]
mov ecx, dword [esi + 0x10]
mov ebx, eax
push ecx
call edi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
sete al
pop esi
pop ecx
ret

Function at 0x42deb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43e416
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0042f610
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], vtable.CUpdateRecordIO.0
call fcn.0042f890
push 0x457968
mov ecx, ebx
call fcn.004326b6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x42f2b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43e586
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0042f610
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], vtable.CPushUpdateInfoIO.0
call fcn.0042f890
push 0x457968
mov ecx, ebx
call fcn.004326b6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x431eb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e955
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x457968
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
mov edi, 1
lea eax, [esp + 0x14]
push edi
push 0x1a
push eax
push 0
mov dword [esp + 0x130], edi
call dword [0x440874]
test eax, eax
je 0x431f26
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
call fcn.004326b6
mov edx, dword [esp + 8]
mov eax, dword [edx - 8]
test eax, eax
jne 0x431f4a
mov esi, dword [esp + 0x128]
push 0x457830
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], edi
jmp 0x431fa3
push ebx
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x456120
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebx
je 0x431f8c
push 0x456120
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x128]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x434177
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
mov esi, dword [ebp + 8]
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push 1
push eax
mov ecx, esi
call fcn.00434102
lea eax, [ebp - 4]
push 2
push eax
mov ecx, esi
call fcn.00434102
movzx eax, word [ebp - 4]
push eax
mov ecx, esi
push dword [ebp + 0x10]
call fcn.00434102
movzx edi, word [ebp - 4]
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [ebp - 3]
sub eax, edi
add eax, dword [esi + 4]
xor cl, byte [ebp - 4]
xor edx, edx
test edi, edi
jle 0x4341e3
mov bl, byte [edx + eax]
not bl
xor bl, cl
mov byte [edx + eax], bl
inc edx
movzx edi, word [ebp - 4]
cmp edx, edi
jl 0x4341d0
movzx eax, byte [ebp + 0xc]
dec eax
cmp eax, 9
ja case.0x4341f1.8
jmp dword [eax*4 + 0x434338]
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
jmp 0x43424d
push 1
pop eax
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x14]
push eax
push 4
lea eax, [ebp + 0x10]
jmp 0x43424d
push 2
pop eax
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x14]
push eax
push 4
lea eax, [ebp + 0x10]
jmp 0x43424d
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
jmp 0x43424d
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
call fcn.00434102
mov ecx, eax
call fcn.00434102
jmp case.0x4341f1.8
mov eax, dword [ebp + 0x14]
push 4
mov ecx, esi
mov ebx, dword [eax - 8]
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00434102
mov edx, dword [ebp + 0x14]
mov ecx, eax
push dword [edx - 8]
push edx
call fcn.00434102
mov eax, dword [esi]
xor ecx, ecx
sub eax, ebx
mov cl, bh
add eax, dword [esi + 4]
xor cl, bl
xor esi, esi
test ebx, ebx
jle case.0x4341f1.8
mov dl, byte [esi + eax]
not dl
xor dl, cl
mov byte [esi + eax], dl
inc esi
cmp esi, ebx
jl 0x43429c
jmp case.0x4341f1.8
mov eax, dword [ebp + 0x14]
and dword [ebp + 8], 0
and dword [ebp + 0x10], 0
lea edx, [ebp + 8]
mov ecx, dword [eax]
push edx
lea edx, [ebp + 0x10]
push edx
push eax
call dword [ecx + 0x74]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.00434102
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 8]
call fcn.00434102
push dword [ebp + 8]
jmp 0x43432d
mov eax, dword [ebp + 0x14]
and dword [ebp + 8], 0
and dword [ebp + 0x10], 0
lea edx, [ebp + 8]
mov ecx, dword [eax]
push edx
lea edx, [ebp + 0x10]
push edx
push eax
call dword [ecx + 0xb8]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.00434102
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 8]
call fcn.00434102
push dword [ebp + 8]
call dword [0x4409d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003214
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.0100487d
jmp fcn.01003190

Function at 0x1004209
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x10042ca
cmp dword [ebp + 0x10], ebx
je 0x10042ca
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x100424e
mov dword [ebp - 4], 0x80040116
jmp 0x10042be
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004267
mov dword [ebp - 4], 0x80040116
jmp 0x10042b6
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x1004280
mov dword [ebp - 4], 0x8007000e
jmp 0x10042b5
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100429d
mov dword [ebp - 4], 0x80040116
jmp 0x10042b5
cmp esi, dword [ebp - 8]
je 0x10042ab
mov dword [ebp - 4], 0x80004005
jmp 0x10042b5
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop edi
mov eax, dword [ebp + 8]
cmp eax, ebx
pop esi
je 0x10042c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x10042cf
mov eax, 0x80070057
pop ebx
leave
ret 0xc

Function at 0x401490
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4014d1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4014d1.2
jmp dword [eax*4 + 0x40155c]
mov word [esp + 0x48], di
jmp 0x40150a
mov word [esp + 0x48], 2
jmp 0x40150a
mov word [esp + 0x48], 3
jmp 0x40150a
mov word [esp + 0x48], 4
jmp 0x40150a
mov word [esp + 0x48], 7
jmp 0x40150a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x401554
cmp dword [esp + 0x70], edi
je 0x401540
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x401a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a29
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a64
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401a60
lea ebx, [ebx]
cmp esi, eax
jae 0x401a64
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a50
cmp esi, eax
jb 0x401a6a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4028d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x432c9c]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00411c90
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.00411515
add esp, 0x98
ret

Function at 0x409faf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x409ff2
call fcn.0040454f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x409ff2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a00d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00409b66
test ebx, ebx
mov esi, eax
je 0x40a00b
test edi, edi
je 0x40a00b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40bf01
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x432c9c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x40bf41
push 0x42a9e0
push 4
push eax
call fcn.00412214
push eax
call fcn.00402820
add esp, 0x10
jmp 0x40bf53
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40bfc1
push edi
call fcn.00412eb6
mov edi, dword [eax]
call fcn.00412eb6
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00412184
add esp, 0x18
mov ebx, eax
call fcn.00412eb6
cmp dword [eax], 0
je 0x40bfa1
call fcn.00412eb6
push dword [eax]
call fcn.00403802
pop ecx
jmp 0x40bfa8
call fcn.00412eb6
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40bfc1
cmp ebx, esi
jae 0x40bfc1
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x40bfc3
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00411515
leave
ret
Function at 0x40dd2f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40dd5d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40dd7b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040dc99
jmp 0x40dd7b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40dd7b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040dc99
test edi, edi
mov eax, edi
jne 0x40dd65
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x435fc8]
test ecx, ecx
je 0x40de3e
jmp 0x40dd2e
ret 8

Function at 0x411515
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432c9c]
jne 0x41151f
repz ret
jmp fcn.004180bc

Function at 0x418f1b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x432fc8]
je 0x418f36
inc edi
cmp edi, 0x17
jb 0x418f27
cmp edi, 0x17
jae 0x4190b6
push ebp
push 3
call fcn.0041f480
cmp eax, 1
pop ecx
je 0x419082
push 3
call fcn.0041f480
test eax, eax
pop ecx
jne 0x418f6a
cmp dword [0x432cb0], 1
je 0x419082
cmp ebx, 0xfc
je 0x4190b5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x436728
push ebp
call fcn.00412214
add esp, 0xc
test eax, eax
je 0x418fa0
push esi
push esi
push esi
push esi
push esi
call fcn.00415e52
add esp, 0x14
push 0x104
mov esi, 0x436741
push esi
push 0
mov byte [0x436845], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418fe4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00412214
add esp, 0xc
test eax, eax
je 0x418fe4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00415e52
add esp, 0x14
push esi
call fcn.00412c30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419029
push esi
call fcn.00412c30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x436a3c
push 0x42b5f4
sub ecx, eax
push ecx
push eax
call fcn.004130ab
add esp, 0x14
test eax, eax
je 0x419029
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00415e52
add esp, 0x14
jmp 0x41902b
xor esi, esi
push 0x42b5f0
push ebx
push ebp
call fcn.004121a3
add esp, 0xc
test eax, eax
je 0x41904b
push esi
push esi
push esi
push esi
push esi
call fcn.00415e52
add esp, 0x14
push dword [edi*8 + 0x432fcc]
push ebx
push ebp
call fcn.004121a3
add esp, 0xc
test eax, eax
je 0x41906d
push esi
push esi
push esi
push esi
push esi
call fcn.00415e52
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041f2c3
add esp, 0xc
jmp 0x4190b5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4190b5
cmp ebp, 0xffffffff
je 0x4190b5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x432fcc]
push dword [esi]
call fcn.00412c30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41f2c3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00417af9
xor ebx, ebx
cmp dword [0x436cbc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41f399
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41f479
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42bf10
push edi
call esi
cmp eax, ebx
je 0x41f479
push eax
call fcn.00417a8b
mov dword [esp], 0x42bf00
push edi
mov dword [0x436cbc], eax
call esi
push eax
call fcn.00417a8b
mov dword [esp], 0x42beec
push edi
mov dword [0x436cc0], eax
call esi
push eax
call fcn.00417a8b
mov dword [0x436cc4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004149af
test eax, eax
pop ecx
pop ecx
je 0x41f367
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415e52
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41f399
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00417a8b
cmp eax, ebx
pop ecx
mov dword [0x436ccc], eax
je 0x41f399
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00417a8b
pop ecx
mov dword [0x436cc8], eax
mov eax, dword [0x436cc8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41f41e
cmp dword [0x436ccc], ecx
je 0x41f41e
push eax
call fcn.00417b02
push dword [0x436ccc]
mov esi, eax
call fcn.00417b02
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41f41e
cmp edi, ebx
je 0x41f41e
call esi
cmp eax, ebx
je 0x41f3eb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41f3eb
test byte [ebp - 0x18], 1
jne 0x41f41e
lea eax, [ebp - 0x10]
push eax
call fcn.004149e6
test eax, eax
pop ecx
je 0x41f406
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415e52
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41f415
or dword [ebp + 0x10], 0x200000
jmp 0x41f459
or dword [ebp + 0x10], 0x40000
jmp 0x41f459
mov eax, dword [0x436cc0]
cmp eax, dword [ebp - 8]
je 0x41f459
push eax
call fcn.00417b02
cmp eax, ebx
pop ecx
je 0x41f459
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41f459
mov eax, dword [0x436cc4]
cmp eax, dword [ebp - 8]
je 0x41f459
push eax
call fcn.00417b02
cmp eax, ebx
pop ecx
je 0x41f459
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436cbc]
call fcn.00417b02
cmp eax, ebx
pop ecx
je 0x41f479
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41f47b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4257f0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x432c9c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00425785
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00411c90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42583f
cmp dword [ebp - 0x1c], 5
jb 0x425857
jmp 0x425853
cmp dword [ebp - 0x10], 1
jne 0x425857
cmp dword [ebp - 0x1c], 4
ja 0x425853
jne 0x425857
cmp dword [ebp - 0x18], 0
jbe 0x425857
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42c8bc
call fcn.00425659
test eax, eax
jge 0x425878
mov byte [0x434080], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00411515
add ebp, 0x78
leave
ret
Function at 0x4cd5c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4cbbc8]
xor edx, edx
cmp eax, edx
jne 0x4cd5e6
xor eax, eax
mov byte [eax + 0x4cbac8], al
inc eax
cmp eax, 0x100
jl 0x4cd5ce
mov dword [0x4cbbc8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4cbac8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4cd677
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4cd64a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4cd618
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4cd6f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4cd743
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4cd72a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret