joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bbb8
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 0x41bbfa
call fcn.004224ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41bbfa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41bbf1
xor eax, eax
jmp 0x41bc02
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041bc08
pop edi
pop esi
pop ebx
ret 4

Function at 0x41d194
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41d1bc
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c468
pop esi
ret 4

Function at 0x41e714
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x41e731
cmp dword [0x43172c], edi
jne 0x41e883
cmp word [0x431738], di
mov dword [0x43172c], 1
jne 0x41e763
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x431734], eax
mov word [0x431738], cx
cmp word [0x431738], 2
jne 0x41e79f
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x41e79f
mov ecx, dword [0x431734]
cmp ecx, edi
je 0x41e79f
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x431730], eax
jmp 0x41e888
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.004067b0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x431730], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41e883
cmp dword [ebp - 0x8c], 1
je 0x41e7f3
cmp dword [ebp - 0x8c], 2
jne 0x41e883
cmp dword [ebp - 0x98], 4
jae 0x41e862
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e883
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e857
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004071a0
add esp, 0xc
mov dword [0x431730], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e883
cmp dword [ebp - 0x8c], 2
jne 0x41e883
cmp dword [ebp - 0x98], 4
jb 0x41e883
push edi
push 0x431730
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x431730]
pop edi
leave
ret
Function at 0x41f7c8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x41f80c
push dword [ebp + 8]
call fcn.00422c94
mov esi, eax
test esi, esi
je 0x41f837
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x41f837
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x42b6c4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc

Function at 0x422302
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4240ca
call fcn.00406560
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.004172bc
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.004172bc
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00417139
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x4184fd
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x4228f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x422920
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x4229aa
cmp dword [esp + 0x14], ebx
je 0x4229aa
cmp esi, ebx
jne 0x422946
push 0x10
call fcn.0042270d
cmp eax, ebx
je 0x422935
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x422937
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004226af
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42295d
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42296d
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x422979
call fcn.00417103
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.004067b0
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8
Function at 0x4229e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x422a33
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x422a16
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x422a16
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x422a2d
and dword [ebp - 4], 0
jmp 0x422a2d
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x422a26
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x4229f7
cmp dword [ebp - 4], 0
je 0x422a61
push esi
lea ecx, [ebx + 0x14]
call fcn.004226c2
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x422a57
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x423287
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
push edi
push 0x405398
mov ecx, 0x42f8fc
call fcn.00422b56
mov edi, eax
cmp dword [edi + 0xc], 0
jne 0x4232d8
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4232b6
lea esi, [ebp - 0x190]
push esi
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4232e6
cmp byte [esi], 1
jne 0x4232e1
mov al, byte [esi + 1]
cmp al, 1
jne 0x4232e1
mov dword [edi + 0xc], 0x423255
push 1
pop eax
pop edi
pop esi
leave
ret 4
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4232db
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.Region.dat
mov byte [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401054
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0xf]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dl, byte [esp + 7]
push esi
shr dl, 4
mov byte [esp + 0xc], dl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
mov ecx, 6
and eax, 0xff
pop esi
cdq
idiv ecx
mov eax, edx
add esp, 0xc
ret
Function at 0x4010f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x318
push ebx
push ebp
push esi
push edi
call fcn.00401000
mov edi, eax
xor esi, esi
mov eax, dword [edi*4 + 0x40c040]
push eax
push esi
call fcn.00402d88
lea ecx, [edi - 2]
add esp, 8
cmp ecx, 3
mov eax, 0x67
ja case.default.0x401121
jmp dword [ecx*4 + 0x4012c4]
mov eax, 0x68
jmp case.default.0x401121
mov eax, 0x6c
jmp case.default.0x401121
mov eax, 0x6d
jmp case.default.0x401121
mov eax, 0x6e
mov edi, dword [esp + 0x32c]
and eax, 0xffff
push 0x40c098
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0x128]
test ecx, ecx
je 0x401192
lea edx, [esp + 0x128]
push eax
push edx
call fcn.00402d63
add esp, 8
xor edx, edx
shr ebp, 1
je 0x4011dd
lea ebx, [esp + 0x14]
lea ecx, [esp + 0x12c]
lea eax, [esp + 0x128]
lea edi, [esp + 0x12a]
cmp word [eax], 0xd
jne 0x4011cf
cmp word [edi], 0xa
jne 0x4011cf
mov dword [ebx], ecx
mov word [eax], si
add ebx, 4
inc edx
add edi, 2
add eax, 2
add ecx, 2
inc edx
add edi, 2
add eax, 2
add ecx, 2
cmp edx, ebp
jb 0x4011b1
lea eax, [esp + 0x14]
mov ebp, 0x40d124
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
push 0x100
lea eax, [esp + 0x2c]
mov edx, dword [ecx]
push edx
push eax
call fcn.00402b86
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x40121d
call fcn.00402600
mov ecx, dword [ebp]
cmp ecx, esi
je 0x401249
mov al, byte [ecx - 1]
test al, al
je 0x401249
cmp al, 0xff
je 0x401249
cmp ebx, esi
jne 0x401243
dec al
mov byte [ecx - 1], al
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
jmp 0x40129c
push ebx
lea ecx, [ebp - 4]
jmp 0x401274
cmp ebx, esi
jne 0x401259
push 1
lea ecx, [ebp - 4]
call fcn.00401c60
jmp 0x40129c
mov eax, dword [ebp + 8]
cmp eax, 0x1f
ja 0x401265
cmp eax, ebx
jae 0x401279
lea esi, [ebp - 4]
push 1
mov ecx, esi
call fcn.00401c60
push ebx
mov ecx, esi
call fcn.00401f60
mov edi, dword [ebp]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov dword [ebp + 4], ebx
xor esi, esi
mov byte [eax + ebx], 0
mov edx, dword [esp + 0x10]
add ebp, 0x10
add edx, 4
cmp ebp, 0x40d174
mov dword [esp + 0x10], edx
jl 0x4011ea
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
Function at 0x4012e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x124
push esi
lea eax, [esp + 0x20]
push edi
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x1c]
push ecx
xor esi, esi
push edx
push 0xf003f
push esi
push esi
push esi
mov edi, 1
push str.SOFTWAREKONAMIYu_Gi_Oh__Power_Of_Chaos_system
push 0x80000002
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40145b
mov al, byte [0x40d170]
mov dword [esp + 0x14], edi
mov byte [esp + 0x28], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x14]
push ebp
lea edx, [esp + 0x30]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x13c]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x4013a1
call fcn.00402600
mov ebp, dword [esp + 0x13c]
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x4013e2
mov al, byte [ecx - 1]
test al, al
je 0x4013e2
cmp al, 0xff
je 0x4013e2
cmp ebx, esi
jne 0x40141a
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x14]
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
xor eax, eax
pop ebp
cmp ecx, esi
pop ebx
pop edi
sete al
pop esi
add esp, 0x124
ret
cmp ebx, esi
jne 0x401405
push 1
mov ecx, ebp
call fcn.00401c60
mov ecx, dword [esp + 0x14]
xor eax, eax
pop ebp
cmp ecx, esi
pop ebx
pop edi
sete al
pop esi
add esp, 0x124
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x401411
cmp eax, ebx
jae 0x401422
push 1
mov ecx, ebp
call fcn.00401c60
push ebx
mov ecx, ebp
call fcn.00401f60
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov dword [ebp + 8], ebx
xor esi, esi
mov byte [eax + ebx], 0
xor eax, eax
pop ebp
cmp ecx, esi
pop ebx
pop edi
sete al
pop esi
add esp, 0x124
ret
pop edi
xor al, al
pop esi
add esp, 0x124
ret
Function at 0x406e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40cb68
cmp edx, dword [eax]
je 0x406e92
add eax, 8
inc ecx
cmp eax, 0x40cbf8
jl 0x406e83
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40cb68]
jne 0x406fc0
mov eax, dword [0x40d188]
cmp eax, 1
je 0x406f9a
test eax, eax
jne 0x406ec3
cmp dword [0x40c2f4], 1
je 0x406f9a
cmp edx, 0xfc
je 0x406fc0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406efa
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405410
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403d10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406f3d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403d10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40ac28
push edi
call fcn.00405250
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405410
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405420
lea eax, [ebp - 0xa0]
push 0x40ac08
push eax
call fcn.00405420
push dword [esi + 0x40cb6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405420
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040872a
add esp, 0x2c
pop edi
jmp 0x406fc0
lea eax, [ebp + 8]
lea esi, [esi + 0x40cb6c]
push 0
push eax
push dword [esi]
call fcn.00403d10
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4128f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e2fb
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.00462bf9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x412972
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00460b10
mov eax, dword [eax]
push 0x4881f4
push eax
call fcn.00453744
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00462e84
test bl, bl
je 0x412972
push 0x4881f4
lea ecx, [esp + 0xc]
call fcn.00463214
push 0x48bd6c
lea ecx, [esp + 0xc]
call fcn.00463214
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 0x4129ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00462e84
jmp 0x412a79
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 0x412a32
lea edx, [esp + 0x7c]
push 0x48bd68
push edx
call fcn.00453744
add esp, 8
test eax, eax
je 0x412a32
lea eax, [esp + 0x7c]
push 0x48bd64
push eax
call fcn.00453744
add esp, 8
test eax, eax
je 0x412a32
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 0x4129c2
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.00462e84
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 0x413270
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 0x4132d2
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 0x4132e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e37b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4922f8]
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 0x413418
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x413346
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462e84
xor eax, eax
jmp 0x41348f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00462fc1
push esi
lea ecx, [esp + 0xc]
call fcn.00463250
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 0x41346d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00413270
test eax, eax
jne 0x41346d
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 closesocket
mov ecx, edi
call fcn.00413270
test eax, eax
jne 0x41346d
lea eax, [esp + 0x14]
push 0x48bd80
push eax
call fcn.00454850
mov esi, eax
add esp, 8
test esi, esi
jne 0x41344c
lea ecx, [esp + 0x14]
push 0x48bd7c
push ecx
call fcn.004547d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41344c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41344f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00462f71
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41335e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462e84
xor eax, eax
jmp 0x41348f
mov byte [esi], 0
push 0x48bd78
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.00462e84
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 0x423ad0
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 0x423b3e
cmp si, 0x69
ja 0x423b3e
add esi, 0xffd0
cmp si, 0x11
je 0x423b0e
push 0x11
call edi
test ax, ax
jge 0x423b0e
or esi, 0x2000
cmp si, 0x10
je 0x423b23
push 0x10
call edi
test ax, ax
jge 0x423b23
or esi, 0x4000
cmp si, 0x12
je 0x423b38
push 0x12
call edi
test ax, ax
jge 0x423b38
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x423b4b
mov esi, 0xbd
jmp 0x423aff
cmp si, 0x6e
jne 0x423b58
mov esi, 0xbe
jmp 0x423aff
cmp si, 0x6f
jne 0x423af9
mov esi, 0xbf
jmp 0x423aff

Function at 0x425280
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a2988]
xor edx, edx
cmp eax, edx
jne 0x4252a6
xor eax, eax
mov byte [eax + 0x4a2888], al
inc eax
cmp eax, 0x100
jl 0x42528e
mov dword [0x4a2988], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a2888
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x425337
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 0x42530a
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 0x4252d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4253b0
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 0x425403
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 0x4253ea
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