joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40150d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x408008]
je 0x40152f
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x40151d
cmp esi, 0x13
je 0x40166b
mov eax, dword [0x408288]
cmp eax, 1
push ebx
je 0x40163a
test eax, eax
jne 0x401558
cmp dword [0x408004], 1
je 0x40163a
cmp ecx, 0xfc
je 0x40166a
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x4082e0
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x4082fa
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x4083fe], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4015a6
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x4082fa
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015ab
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x4015de
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015bf
sub eax, edx
push 3
lea eax, [eax + 0x4082bf]
push 0x406504
push eax
call fcn.00402250
add esp, 0xc
mov edx, 0x4082e0
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4015e6
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x40800c]
mov esi, 0x406500
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401602
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40160e
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00402155
add esp, 0xc
pop edi
jmp 0x40166a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x40166a
mov edx, dword [esi*8 + 0x40800c]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x401652
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x401bec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x408708]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x401c38
call esi
mov edi, eax
cmp edi, ebx
je 0x401c1e
mov dword [0x408708], 1
jmp 0x401c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x401c33
push 2
pop eax
mov dword [0x408708], eax
jmp 0x401c38
mov eax, dword [0x408708]
cmp eax, 1
jne 0x401cb5
cmp edi, ebx
jne 0x401c49
call esi
mov edi, eax
cmp edi, ebx
je 0x401cbe
cmp word [edi], bx
mov eax, edi
je 0x401c5e
inc eax
inc eax
cmp word [eax], bx
jne 0x401c50
inc eax
inc eax
cmp word [eax], bx
jne 0x401c50
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x401cac
call fcn.0040296d
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401cac
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x401ca9
push dword [ebp - 4]
call fcn.0040290a
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x401d0d
cmp eax, 2
je 0x401cc2
cmp eax, ebx
je 0x401cc2
xor eax, eax
jmp 0x401d0f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x401cbe
cmp byte [esi], bl
je 0x401cdf
inc eax
cmp byte [eax], bl
jne 0x401cd5
inc eax
cmp byte [eax], bl
jne 0x401cd5
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.0040296d
cmp eax, ebx
je 0x401d06
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402155
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40870c], ebx
push esi
push edi
jne 0x4021d7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402212
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40870c], eax
je 0x402212
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408710], eax
call esi
cmp dword [0x408298], 2
mov dword [0x408714], eax
jne 0x4021d7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40871c], eax
je 0x4021d7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408718], eax
mov eax, dword [0x408718]
test eax, eax
je 0x40221c
call eax
test eax, eax
je 0x402203
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40871c]
test eax, eax
je 0x402203
test byte [ebp - 8], 1
jne 0x40221c
cmp dword [0x4082a4], 4
jb 0x402216
or byte [ebp + 0x12], 0x20
jmp 0x40223b
xor eax, eax
jmp 0x40224b
or byte [ebp + 0x12], 4
jmp 0x40223b
mov eax, dword [0x408710]
test eax, eax
je 0x40223b
call eax
mov ebx, eax
test ebx, ebx
je 0x40223b
mov eax, dword [0x408714]
test eax, eax
je 0x40223b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40870c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ae5
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x403b16
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x403b1d
cmp ebx, dword [ebp + 8]
jae 0x403b1d
xor eax, eax
jmp 0x403d0d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403b2e
xor eax, eax
inc eax
jmp 0x403d0c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x403b44
cmp ecx, edx
jae 0x403c89
cmp dword [eax + 4], 0
je 0x403b4d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403b35
cmp dword [ebp + 8], 0
je 0x403b6f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x403c89
cmp eax, esi
jae 0x403c89
mov eax, dword [0x408728]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x403b94
cmp dword [esi*4 + 0x408730], edi
je 0x403c8d
inc esi
cmp esi, eax
jl 0x403b82
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403d09
cmp dword [ebp - 8], 0x1000000
jne 0x403d09
test byte [ebp - 0xc], 0xcc
je 0x403c12
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403d09
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403d09
cmp word [eax + 0x18], 0x10b
jne 0x403d09
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403d09
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403c12
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403c12
test byte [ecx + 0x27], 0x80
jne 0x403c89
push 1
push 0x408770
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403b26
mov ecx, dword [0x408728]
test ecx, ecx
mov edx, ecx
jle 0x403c46
lea eax, [ecx*4 + 0x40872c]
cmp dword [eax], edi
je 0x403c46
dec edx
sub eax, 4
test edx, edx
jg 0x403c3a
test edx, edx
jne 0x403c77
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403c53
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403c6b
lea eax, [edx*4 + 0x408730]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403c59
cmp ecx, 0x10
jge 0x403c77
inc ecx
mov dword [0x408728], ecx
push 0
push 0x408770
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403b26
xor eax, eax
jmp 0x403d0c
test esi, esi
jle 0x403b26
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x408770
call ebx
test eax, eax
jne 0x403b26
cmp dword [esi*4 + 0x408730], edi
je 0x403ce3
mov eax, dword [0x408728]
lea esi, [eax - 1]
test esi, esi
jl 0x403cd1
cmp dword [esi*4 + 0x408730], edi
je 0x403ccd
dec esi
jns 0x403cc1
test esi, esi
jge 0x403ce1
cmp eax, 0x10
jge 0x403cdc
inc eax
mov dword [0x408728], eax
lea esi, [eax - 1]
jmp 0x403ce3
je 0x403cfb
xor ecx, ecx
test esi, esi
jl 0x403cfb
lea eax, [ecx*4 + 0x408730]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403ce9
push 0
push 0x408770
call ebx
jmp 0x403b26
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b4c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404c60
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404c48
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x408298], 2
jne 0x404bcd
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x404bcd
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x404bcd
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x404bcd
cmp dword [ebp - 4], esi
jbe 0x404bcd
mov esi, dword [ebp - 4]
mov edx, dword [0x408298]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x404bf6
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x404c02
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x404c14
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x404c48
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x404c48
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x404c48
xor eax, eax
inc eax
jmp 0x404c4a
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40824c]
jne 0x405011
test ecx, 0xffff0000
jne 0x405011
ret
jmp fcn.00405016
Function at 0x4080fe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.00402340
mov dword [ebp - 0x14], eax
cmp dword [0x436e38], esi
jne 0x4081f1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40817e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4082d1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4082d1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4082d1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x436e38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x436e3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x436e40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436e48], eax
test eax, eax
je 0x4081ee
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436e44], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x408216
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408209
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40822b
push 4
pop eax
jmp 0x4082d3
cmp dword [ebp - 0x14], esi
je 0x40822b
push dword [0x436e38]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x408210
mov eax, dword [0x436e44]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x408289
cmp dword [0x436e48], edi
je 0x408289
push eax
call ebx
push dword [0x436e48]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x408289
test eax, eax
je 0x408289
call ecx
test eax, eax
je 0x40827e
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 0x40827e
test byte [ebp - 8], 1
jne 0x408289
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4082b9
mov eax, dword [0x436e3c]
cmp eax, edi
je 0x4082b6
push eax
call ebx
test eax, eax
je 0x4082b6
call eax
mov esi, eax
test esi, esi
je 0x4082b6
mov eax, dword [0x436e40]
cmp eax, edi
je 0x4082b6
push eax
call ebx
test eax, eax
je 0x4082b6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x436e38]
call ebx
test eax, eax
je 0x4082d1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4082d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401fa6
mov esp, ebp
pop ebp
ret
Function at 0x4182c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47571b
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.0046a1b9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x418342
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004680d0
mov eax, dword [eax]
push 0x4a0214
push eax
call fcn.0045ac44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046a444
test bl, bl
je 0x418342
push 0x4a0214
lea ecx, [esp + 0xc]
call fcn.0046a7d4
push 0x4a3d84
lea ecx, [esp + 0xc]
call fcn.0046a7d4
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 0x41837e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046a444
jmp 0x418449
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 0x418402
lea edx, [esp + 0x7c]
push 0x4a3d80
push edx
call fcn.0045ac44
add esp, 8
test eax, eax
je 0x418402
lea eax, [esp + 0x7c]
push 0x4a3d7c
push eax
call fcn.0045ac44
add esp, 8
test eax, eax
je 0x418402
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 0x418392
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.0046a444
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 0x418c40
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 0x418ca2
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 0x418cb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47579b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4aa52c]
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 0x418de8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x418d16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a444
xor eax, eax
jmp 0x418e5f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046a581
push esi
lea ecx, [esp + 0xc]
call fcn.0046a810
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 0x418e3d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00418c40
test eax, eax
jne 0x418e3d
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.00418c40
test eax, eax
jne 0x418e3d
lea eax, [esp + 0x14]
push 0x4a3d98
push eax
call fcn.0045bc80
mov esi, eax
add esp, 8
test esi, esi
jne 0x418e1c
lea ecx, [esp + 0x14]
push 0x4a3d94
push ecx
call fcn.0045bc00
mov esi, eax
add esp, 8
test esi, esi
jne 0x418e1c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x418e1f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046a531
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x418d2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a444
xor eax, eax
jmp 0x418e5f
mov byte [esi], 0
push 0x4a3d90
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.0046a444
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 0x429790
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 0x4297fe
cmp si, 0x69
ja 0x4297fe
add esi, 0xffd0
cmp si, 0x11
je 0x4297ce
push 0x11
call edi
test ax, ax
jge 0x4297ce
or esi, 0x2000
cmp si, 0x10
je 0x4297e3
push 0x10
call edi
test ax, ax
jge 0x4297e3
or esi, 0x4000
cmp si, 0x12
je 0x4297f8
push 0x12
call edi
test ax, ax
jge 0x4297f8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42980b
mov esi, 0xbd
jmp 0x4297bf
cmp si, 0x6e
jne 0x429818
mov esi, 0xbe
jmp 0x4297bf
cmp si, 0x6f
jne 0x4297b9
mov esi, 0xbf
jmp 0x4297bf

Function at 0x42af70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4bacd0]
xor edx, edx
cmp eax, edx
jne 0x42af96
xor eax, eax
mov byte [eax + 0x4babd0], al
inc eax
cmp eax, 0x100
jl 0x42af7e
mov dword [0x4bacd0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4babd0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42b027
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 0x42affa
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 0x42afc8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42b0a0
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 0x42b0f3
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 0x42b0da
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