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

Disassembly:
cmp dword [0x486b20], 0
jne 0x41f370
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov edi, 0x486b20
push edi
mov dword [0x486b20], 0x9c
call esi
test eax, eax
jne 0x41f314
push edi
mov dword [0x486b20], 0x94
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41f34c
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41f345
push 0x486bbc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x486b24], 5
pop edi
pop esi
jne 0x41f370
cmp dword [0x486b28], 2
jne 0x41f370
push 1
pop eax
cmp byte [0x486bba], al
jne 0x41f370
mov dword [0x486b28], eax
ret

Function at 0x41fbab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, eax
push esi
shr eax, 4
and ebx, 0xf
inc eax
push edi
push dword [esp + 0x18]
movzx eax, ax
push eax
push 6
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x41fc0f
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41fc0f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41fc0f
mov edi, eax
xor ecx, ecx
mov ax, word [edi]
test ax, ax
je 0x41fc07
inc edi
inc edi
cmp ecx, ebx
movzx esi, ax
je 0x41fc15
lea edi, [edi + esi*2]
jmp 0x41fc09
inc edi
inc edi
inc ecx
cmp ecx, 0x10
jl 0x41fbf1
xor eax, eax
pop edi
pop esi
pop ebx
ret
lea eax, [esi + esi + 2]
push eax
call fcn.0044a27a
pop ecx
mov ebx, eax
test ebx, ebx
je 0x41fc36
push esi
push edi
push ebx
call fcn.00438780
add esp, 0xc
and word [ebx + esi*2], 0
mov eax, ebx
jmp 0x41fc11
Function at 0x4236d2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push str.CCPU_constructor
push 0x80
push 0x476888
mov dword [esi], vtable.CCPU.0
call fcn.004011d0
add esp, 0xc
xor ebx, ebx
xor ecx, ecx
lea eax, [esi + 0x14]
mov byte [esi + ecx + 0xc], bl
mov dword [eax - 4], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
inc ecx
add eax, 0x10
cmp ecx, 2
jl 0x423700
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x424591
Capabilities:
Create thread
Get system information on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, ecx
push esi
cmp byte [ebx + 0xd], 0
jne 0x4245a8
push 1
call fcn.00423878
test byte [ebx + 0x2c], 4
jne 0x4245b9
mov ecx, ebx
call fcn.00424426
test al, al
je 0x4245e2
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
jne 0x4245e7
mov eax, dword [ebx + 4]
jmp 0x42465d
push edi
mov ecx, ebx
push dword [ebp - 4]
call fcn.00424578
xor ecx, ecx
test esi, esi
mov dword [ebp - 8], ecx
jbe 0x424659
push 1
pop esi
shl esi, cl
test dword [ebp - 4], esi
je 0x424647
lea ecx, [ebp - 0xc]
xor eax, eax
push ecx
push 4
push ebx
push 0x424489
push eax
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x424647
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
test eax, eax
je 0x424647
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 4], 1
ja 0x424659
mov ecx, dword [ebp - 8]
inc ecx
cmp ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
jb 0x4245fb
mov eax, dword [ebx + 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425c5e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4578d8
call fcn.0043742c
sub esp, 0x160
push ebx
xor ebx, ebx
cmp byte [0x486c08], bl
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, 0x486c08
jne 0x425c9b
cmp esi, ebx
je 0x425cb0
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [0x486c08], bl
je 0x425cb0
cmp esi, ebx
je 0x425cb0
push edi
call fcn.004373b0
push eax
push esi
push edi
call fcn.004362b3
add esp, 0x10
call fcn.0041f45f
test eax, eax
je 0x425e2b
cmp esi, ebx
je 0x425cd3
push esi
call fcn.0041dc36
test eax, eax
pop ecx
mov dword [ebp + 0x14], 1
jne 0x425cd6
mov dword [ebp + 0x14], ebx
cmp dword [ebp + 8], ebx
mov edi, 0xffdc
je 0x425d15
cmp dword [ebp + 0xc], ebx
je 0x425d15
cmp dword [ebp + 0x10], ebx
je 0x425d15
push dword [ebp + 8]
call fcn.004373b0
push dword [ebp + 0xc]
add edi, 0xfffffffa
sub edi, eax
call fcn.004373b0
push 0xfffffffffffffffd
pop ebx
push dword [ebp + 0x10]
sub ebx, eax
call fcn.004373b0
sub ebx, eax
add esp, 0xc
add edi, ebx
xor ebx, ebx
cmp esi, ebx
je 0x425e17
cmp dword [ebp + 0x14], ebx
je 0x425d50
lea eax, [ebp - 0x16c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x425d73
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x425d73
cmp dword [ebp - 0x150], ebx
jne 0x425d73
cmp dword [ebp - 0x14c], edi
jae 0x425d73
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push ebx
push ebx
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, edi
jmp 0x425e3b
cmp dword [ebp + 0x14], ebx
je 0x425d50
cmp dword [0x486d0c], ebx
je 0x425e17
mov al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00402a10
push esi
call fcn.004373b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402970
mov ecx, dword [0x486d0c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.00427779
mov edi, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a10
mov eax, dword [0x486d0c]
cmp edi, dword [eax + 4]
je 0x425e17
mov al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402a10
push esi
call fcn.004373b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402970
mov ecx, dword [0x486d0c]
push 1
pop edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], edi
call fcn.00427728
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402a10
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004249e2
add esp, 0x10
jmp 0x425e3b
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x428888
Capabilities:
Identify system language via api

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x4288d9
call fcn.004294ab
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x114]
mov esi, dword [eax]
mov ebx, dword [ecx]
cmp esi, eax
je 0x4288d9
push dword [esp + 0x10]
call fcn.004373b0
pop ecx
push eax
lea ecx, [esi + 8]
push dword [esp + 0x14]
push dword [ecx + 8]
push 0
call fcn.0040eb90
test eax, eax
je 0x4288e5
mov esi, dword [esi]
mov ebx, dword [ebx]
cmp esi, dword [edi + 0x120]
jne 0x4288ad
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
pop edi
pop esi
pop ebx
ret 4
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x4288f1
mov ebx, 0x45a50c
push 0x10
push 0
push ebx
call fcn.00438eb7
add esp, 0xc
jmp 0x4288df
Function at 0x43e977
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4735d0
cmp edx, dword [eax]
je 0x43e999
add eax, 8
inc ecx
cmp eax, 0x473660
jl 0x43e98a
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4735d0]
jne 0x43eac7
mov eax, dword [0x488f34]
cmp eax, 1
je 0x43eaa1
test eax, eax
jne 0x43e9ca
cmp dword [0x472c94], 1
je 0x43eaa1
cmp edx, 0xfc
je 0x43eac7
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43ea01
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00437450
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004373b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43ea44
lea eax, [ebp - 0x1a4]
push eax
call fcn.004373b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45e9dc
push edi
call fcn.004388a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00437450
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00437460
lea eax, [ebp - 0xa0]
push 0x45e9bc
push eax
call fcn.00437460
push dword [esi + 0x4735d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00437460
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00441f41
add esp, 0x2c
pop edi
jmp 0x43eac7
lea eax, [ebp + 8]
lea esi, [esi + 0x4735d4]
push 0
push eax
push dword [esi]
call fcn.004373b0
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 0x4487a5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4487c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043a2c8
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4487e8
test byte [esp + 8], 2
je 0x4487e8
call fcn.0043a33b
mov dword [eax], 0xd
call fcn.0043a344
mov dword [eax], 5
jmp 0x4487c1
xor eax, eax
ret

Function at 0x44d086
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x44d0c8
call fcn.0045282d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44d0c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x44d0bf
xor eax, eax
jmp 0x44d0d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044d0d6
pop edi
pop esi
pop ebx
ret 4
Function at 0x453495
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 0x4534c3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4534e1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004533fb
jmp 0x4534e1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4534e1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004533fb
test edi, edi
mov eax, edi
jne 0x4534cb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4177d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x4177f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4177f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4177e8
mov eax, 1
add ebx, ebx
jne 0x41780b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417800
jne 0x41781c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417800
xor ecx, ecx
sub eax, 3
jb 0x417830
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4178a2
mov ebp, eax
add ebx, ebx
jne 0x41783b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417848
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41786c
inc ecx
add ebx, ebx
jne 0x417858
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41784d
jne 0x417869
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41784d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41788c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41787d
jmp 0x4177ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41788c
add edi, ecx
jmp 0x4177ee
pop esi
mov edi, esi
mov ecx, 0x2e4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4178aa
cmp byte [edi], 0
jne 0x4178aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4178af
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x41791e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1cb30]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1cb94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4178dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1cb98]
or eax, eax
je 0x417918
mov dword [ebx], eax
add ebx, 4
jmp 0x4178f9
call dword [esi + 0x1cba0]
mov ebp, dword [esi + 0x1cb9c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x417952
sub esp, 0xffffff80
jmp 0x407f84
Function at 0x40d380
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49f24b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00493e6c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d402
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00491888
mov eax, dword [eax]
push 0x4bec7c
push eax
call fcn.00483a34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004940f7
test bl, bl
je 0x40d402
push 0x4bec7c
lea ecx, [esp + 0xc]
call fcn.00494487
push 0x4bec88
lea ecx, [esp + 0xc]
call fcn.00494487
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40d43e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004940f7
jmp 0x40d509
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40d4c2
lea edx, [esp + 0x7c]
push 0x4bec84
push edx
call fcn.00483a34
add esp, 8
test eax, eax
je 0x40d4c2
lea eax, [esp + 0x7c]
push 0x4bec80
push eax
call fcn.00483a34
add esp, 8
test eax, eax
je 0x40d4c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d452
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004940f7
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40dd10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40dd72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40dd80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49f2cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ce388]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40deb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40dde6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004940f7
xor eax, eax
jmp 0x40df2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00494234
push esi
lea ecx, [esp + 0xc]
call fcn.004944c3
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40df0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040dd10
test eax, eax
jne 0x40df0d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040dd10
test eax, eax
jne 0x40df0d
lea eax, [esp + 0x14]
push 0x4bec98
push eax
call fcn.00484ab0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40deec
lea ecx, [esp + 0x14]
push 0x4bec94
push ecx
call fcn.00484a30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40deec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40deef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004941e4
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ddfe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004940f7
xor eax, eax
jmp 0x40df2f
mov byte [esi], 0
push 0x4bec90
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004940f7
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x420260
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4202ce
cmp si, 0x69
ja 0x4202ce
add esi, 0xffd0
cmp si, 0x11
je 0x42029e
push 0x11
call edi
test ax, ax
jge 0x42029e
or esi, 0x2000
cmp si, 0x10
je 0x4202b3
push 0x10
call edi
test ax, ax
jge 0x4202b3
or esi, 0x4000
cmp si, 0x12
je 0x4202c8
push 0x12
call edi
test ax, ax
jge 0x4202c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4202db
mov esi, 0xbd
jmp 0x42028f
cmp si, 0x6e
jne 0x4202e8
mov esi, 0xbe
jmp 0x42028f
cmp si, 0x6f
jne 0x420289
mov esi, 0xbf
jmp 0x42028f

Function at 0x421ba0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4debc0]
xor edx, edx
cmp eax, edx
jne 0x421bc6
xor eax, eax
mov byte [eax + 0x4deac0], al
inc eax
cmp eax, 0x100
jl 0x421bae
mov dword [0x4debc0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4deac0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421c57
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 0x421c2a
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 0x421bf8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421cd0
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 0x421d23
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 0x421d0a
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
Function at 0x428db0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x428f48
cmp ebp, ebx
jle 0x428f48
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x428e0e
dec eax
or eax, 0xfffffff8
inc eax
je 0x428e15
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x428e24
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x428e2b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00493e38
add esp, 4
cmp eax, ebx
je 0x428e4c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00493e38
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x428f3e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x428f25
mov al, byte [edx]
cmp al, 0xc0
jbe 0x428f11
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x428f06
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x428f14
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x428f14
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x428eb0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x428ea1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret