joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4178e6
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push dword [ebp + 8]
call fcn.00416cec
test eax, eax
jne 0x41790c
push str._Clipboard_open_error
push 0x20000000
call fcn.00417cf8
jmp 0x4179d6
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x4179d6
push ebx
push esi
push edi
push str.Shell_IDList_Array
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov esi, dword [sym.imp.USER32.dll_EnumClipboardFormats]
xor edi, edi
push edi
mov dword [0x43a3e0], eax
call esi
mov ebx, eax
cmp eax, edi
je 0x4179e1
cmp eax, 1
je 0x417970
cmp eax, 0xd
je 0x417970
cmp eax, 8
je 0x41796c
cmp eax, 0x11
je 0x41796c
cmp eax, 0xe
je 0x41796c
cmp eax, dword [0x43a3e0]
je 0x41796c
push eax
call esi
cmp eax, edi
jne 0x417942
jmp 0x4179dd
mov ebx, eax
jmp 0x4179dd
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp + 8]
push ecx
push edi
push edi
push edi
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ebx, edi
je 0x4179da
cmp dword [ebp + 8], edi
je 0x4179da
push 0xd
pop ebx
lea eax, [ebp - 0x40]
push eax
push ebx
call fcn.0041766b
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, edi
je 0x4179d3
push edi
lea eax, [ebp - 0x40]
push eax
push esi
push str.Clipboard
push 0x43b520
call fcn.0040b92d
pop edi
pop esi
pop ebx
leave
ret 4
xor ebx, ebx
inc ebx
cmp ebx, edi
jne 0x4179a8
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4179d3
Function at 0x419328
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xee4
mov eax, dword [0x437b00]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [0x436038]
push ebx
push esi
mov esi, dword [ebp + 0x7c]
xor ebx, ebx
test byte [0x43b8ac], 1
push edi
mov dword [ebp - 0xe6c], esi
je 0x41937e
mov ecx, dword [0x4360b0]
cmp dword [0x436088], ebx
jne 0x41936a
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x28]
cmp ecx, edx
cmovge ecx, edx
imul ecx, ecx, 0xc
mov eax, dword [eax + ecx + 8]
jmp 0x419381
mov eax, dword [eax + 4]
push ebx
mov dword [ebp - 0xe70], eax
lea eax, [ebp - 0x508]
push eax
push str._geditor
push ebx
push 0x43b520
push esi
call dword [sym.imp.PPLIB32W.DLL__PP_ExtractMacro_24]
push 0xc8
lea eax, [ebp - 0x58]
push eax
mov edi, str.editorL
push edi
mov esi, str.A_exec
push esi
call dword [sym.imp.PPLIB32W.DLL__GetCustTable_16]
test eax, eax
je 0x419405
xor eax, eax
movzx ecx, word [eax + 0x430f40]
mov word [ebp + eax - 0x58], cx
inc eax
inc eax
cmp cx, bx
jne 0x4193c2
push 1
push 1
push 0x64
lea eax, [ebp - 0x58]
push eax
push str.TEDJEnter_editors_line_locate_option
push dword [ebp - 0xe6c]
call dword [sym.imp.PPLIB32W.DLL__tInput_24]
test eax, eax
jle 0x419485
push ebx
lea eax, [ebp - 0x58]
push eax
push edi
push esi
call dword [sym.imp.PPLIB32W.DLL__SetCustStringTable_16]
cmp word [ebp - 0x58], bx
je 0x419438
push dword [ebp - 0xe70]
lea eax, [ebp - 0x58]
push eax
push 0x43b8b8
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x9b8]
push str._s___s___s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x419459
push 0x43b8b8
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x9b8]
push str._s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0xe68]
push eax
push 0x258
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0xe68]
push eax
lea eax, [ebp - 0x9b8]
push eax
push dword [ebp - 0xe6c]
call dword [sym.imp.PPLIB32W.DLL__ComExec_12]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422725
add ebp, 0x74
leave
ret 4
Function at 0x419dcd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00422740
mov eax, dword [0x437b00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x439024], 1
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
jne 0x419e13
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419dfa
push 0
lea ecx, [ebp - 0x1008]
push ecx
sub eax, edx
push eax
push edi
jmp 0x419e9b
push esi
lea esi, [ebp - 0x1004]
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x419e70
movzx ecx, al
test byte [ecx + str._AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA], 2
je 0x419e6c
mov cl, byte [edi]
inc edi
cmp cl, 0x9f
jb 0x419e48
cmp al, 0xe0
sbb dl, dl
and dl, 0x80
add dl, 0xe0
add al, al
sub al, dl
add cl, 2
jmp 0x419e65
test cl, cl
je 0x419e65
cmp al, 0xe0
sbb dl, dl
and dl, 0x80
add dl, 0xe1
add al, al
sub al, dl
cmp cl, 0x7f
setb dl
add dl, 0x60
add cl, dl
mov byte [esi], al
inc esi
mov byte [esi], cl
jmp 0x419e72
mov byte [esi], 0x8e
inc esi
mov byte [esi], al
inc esi
test al, al
jne 0x419e1a
lea eax, [ebp - 0x1004]
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419e81
push 0
lea ecx, [ebp - 0x1008]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00422725
leave
ret 8
Function at 0x419eb2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xfac]
mov eax, 0x102c
call fcn.00422740
mov eax, dword [0x437b00]
xor eax, ebp
mov dword [ebp + 0xfa8], eax
push ebx
xor ebx, ebx
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push 0x43a840
call dword [sym.imp.PPLIB32W.DLL__CreateFileL_28]
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
je 0x41a042
cmp dword [0x43b8ac], 1
jne 0x41a039
mov eax, dword [0x4368b0]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
mov dword [0x4368b0], ebx
call fcn.00410c12
mov eax, dword [0x4367f4]
mov ecx, dword [0x436800]
add ecx, eax
mov eax, dword [0x436038]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
cmp dword [eax + 0x1c], ebx
jbe 0x41a028
push esi
mov dword [ebp - 0x60], ebx
push edi
mov ecx, dword [eax + 0x28]
add ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x80]
push ecx
call dword [eax + 0x2c]
mov esi, dword [ebp - 0x7c]
jmp 0x41a006
movzx eax, byte [esi]
dec eax
cmp eax, 0x11
ja case.0x419f74.12
movzx eax, byte [eax + 0x41a086]
jmp dword [eax*4 + 0x41a05a]
lea edi, [esi + 1]
push edi
push dword [ebp - 0x5c]
call fcn.00419dcd
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x419f8c
sub eax, edi
lea esi, [esi + eax + 2]
jmp 0x41a006
inc esi
push ebx
push 0x4310bc
push 0x1000
lea eax, [ebp - 0x58]
push eax
push 0xffffffffffffffff
inc esi
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
call fcn.00419dcd
jmp 0x419fc7
inc esi
inc esi
cmp word [esi], bx
jne 0x419fc5
inc esi
inc esi
jmp 0x41a006
add esi, 3
jmp 0x41a006
add esi, 5
jmp 0x41a006
push ebx
lea eax, [ebp - 0x68]
push eax
push 1
push 0x4310b8
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
jmp 0x41a006
inc esi
push ebx
lea eax, [ebp - 0x68]
push eax
push 2
push 0x4310b4
jmp 0x419fe6
mov esi, 0x42d7e0
cmp byte [esi], bl
jne 0x419f60
inc dword [ebp - 0x64]
mov eax, dword [0x436038]
mov ecx, dword [ebp - 0x64]
add dword [ebp - 0x60], 0xc
cmp ecx, dword [eax + 0x1c]
jb 0x419f4a
pop edi
pop esi
mov eax, dword [ebp - 0x6c]
mov dword [0x4368b0], eax
lea eax, [ebp - 0x80]
push eax
call fcn.00410c74
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xfa8]
xor ecx, ebp
pop ebx
call fcn.00422725
add ebp, 0xfac
leave
ret
Function at 0x41a482
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x450]
sub esp, 0x4d0
mov eax, dword [0x437b00]
xor eax, ebp
mov dword [ebp + 0x44c], eax
mov eax, dword [ebp + 0x45c]
push ebx
mov ebx, dword [ebp + 0x460]
push esi
mov esi, dword [ebp + 0x458]
push edi
push dword [eax]
add eax, 4
push eax
lea eax, [ebp - 0x64]
push str._s__04d.bmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor edi, edi
push edi
push 0x8000080
push 1
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.PPLIB32W.DLL__CreateFileL_28]
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je 0x41a554
mov ecx, 0x4d42
mov word [ebp - 0x80], cx
mov ecx, dword [esi + 4]
sub ecx, ebx
add ecx, 6
lea eax, [ebx + esi + 8]
mov dword [ebp - 0x7e], ecx
xor ecx, ecx
push eax
mov dword [ebp - 0x6c], eax
mov word [ebp - 0x78], cx
mov word [ebp - 0x7a], cx
call fcn.0041f59d
add eax, 0xe
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x76], eax
lea eax, [ebp - 0x70]
push eax
push 0xe
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x68]
call edi
push 0
lea eax, [ebp - 0x70]
push eax
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 8
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call edi
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x44c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422725
add ebp, 0x450
leave
ret 0xc
Function at 0x421b93
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x421ba9
xor eax, eax
inc eax
jmp 0x421d1e
push 0x91
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x421bc5
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.USER32.dll_BeginPaint]
jmp 0x421ba1
cmp dword [esi + 0xc], 0
jne 0x421bd5
push esi
call fcn.0042167e
test eax, eax
je 0x421bb8
cmp dword [esi + 0xc0], 0
fld qword [0x431b90]
push ebx
push edi
mov ebx, 0xff00ff00
mov edi, 0xff
jne 0x421c5e
mov ecx, dword [esi + 0xc4]
movzx edx, byte [esi + 0xc6]
movzx eax, cl
and ecx, ebx
shl eax, 0x10
or eax, edx
or eax, ecx
mov ecx, eax
shr ecx, 0x10
and ecx, edi
mov dword [ebp + 8], ecx
mov ecx, eax
shr ecx, 8
fild dword [ebp + 8]
and ecx, edi
mov dword [ebp + 8], ecx
movzx eax, al
fdiv st(1)
movss xmm0, dword [0x431b98]
lea ecx, [esi + 0xc0]
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
movss dword [ebp - 4], xmm0
fstp dword [ebp - 0x10]
fild dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
push eax
fdiv st(1)
fstp dword [ebp - 0xc]
fidivr dword [ebp + 8]
fstp dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x20]
jmp 0x421c60
fstp st(0)
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xe4]
test al, 1
je 0x421c81
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ValidateRect]
xor eax, eax
jmp 0x421d1c
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc0]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
lea edx, [esi + 0x18]
push edx
push eax
call dword [ecx + 0x78]
mov ecx, dword [esi + 0x70]
movzx edx, byte [esi + 0x72]
movzx eax, cl
and ecx, ebx
shl eax, 0x10
or eax, edx
or eax, ecx
mov ecx, eax
shr ecx, 0x10
and ecx, edi
mov dword [ebp + 8], ecx
mov ecx, eax
shr ecx, 8
fild dword [ebp + 8]
and ecx, edi
fld qword [0x431b90]
mov dword [ebp + 8], ecx
movzx eax, al
fdiv st(1), st(0)
movss xmm0, dword [0x431b98]
lea edx, [ebp - 0x10]
push edx
movss dword [ebp - 4], xmm0
fxch st(1)
fstp dword [ebp - 0x10]
fild dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
push eax
fdiv st(1)
fstp dword [ebp - 0xc]
fidivr dword [ebp + 8]
fstp dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xbc]
mov eax, dword [ebp + 0xc]
and dword [eax], 0
and dword [eax + 4], 0
add esi, 0x84
lea edi, [eax + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
movsd dword es:[edi], dword [esi]
pop eax
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x422725
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437b00]
jne 0x42272f
repz ret
jmp fcn.00423800
Function at 0x42925d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00424380
and dword [ebp - 4], 0
cmp dword [0x439af0], 0
mov ebx, eax
jne 0x42930e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4293bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4293bf
push eax
call fcn.0042430e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x439af0], eax
call esi
push eax
call fcn.0042430e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x439af4], eax
call esi
push eax
call fcn.0042430e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x439af8], eax
call esi
push eax
call fcn.0042430e
pop ecx
mov dword [0x439b00], eax
test eax, eax
je 0x42930e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042430e
pop ecx
mov dword [0x439afc], eax
mov eax, dword [0x439afc]
cmp eax, ebx
je 0x429366
cmp dword [0x439b00], ebx
je 0x429366
push eax
call fcn.00424389
push dword [0x439b00]
mov esi, eax
call fcn.00424389
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x429366
test edi, edi
je 0x429366
call esi
test eax, eax
je 0x42935d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42935d
test byte [ebp - 0xc], 1
jne 0x429366
or dword [ebp + 0x10], 0x200000
jmp 0x42939f
mov eax, dword [0x439af4]
cmp eax, ebx
je 0x42939f
push eax
call fcn.00424389
pop ecx
test eax, eax
je 0x42939f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42939f
mov eax, dword [0x439af8]
cmp eax, ebx
je 0x42939f
push eax
call fcn.00424389
pop ecx
test eax, eax
je 0x42939f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439af0]
call fcn.00424389
pop ecx
test eax, eax
je 0x4293bf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4293c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4020b4
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00402264
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4021b2
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x402155
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x402198
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40216c
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x402187
test al, 0x40
je 0x40217e
mov ecx, dword [edi + 0x20]
jmp 0x402185
test al, 0x80
je 0x402198
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x402198
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x402124
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4209e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4afb8b
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.004a2150
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x420a62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049f549
mov eax, dword [eax]
push 0x51c214
push eax
call fcn.00490cb4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a23db
test bl, bl
je 0x420a62
push 0x51c214
lea ecx, [esp + 0xc]
call fcn.004a27b7
push 0x51fda0
lea ecx, [esp + 0xc]
call fcn.004a27b7
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 0x420a9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a23db
jmp 0x420b69
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 0x420b22
lea edx, [esp + 0x7c]
push 0x51fd9c
push edx
call fcn.00490cb4
add esp, 8
test eax, eax
je 0x420b22
lea eax, [esp + 0x7c]
push 0x51fd98
push eax
call fcn.00490cb4
add esp, 8
test eax, eax
je 0x420b22
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 0x420ab2
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.004a23db
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 0x421dc0
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 0x421e22
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 0x421e30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4afceb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5298b0]
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 0x421f68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x421e96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a23db
xor eax, eax
jmp 0x421fdf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a2564
push esi
lea ecx, [esp + 0xc]
call fcn.004a27f3
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x51fdd8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x421fbd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.00421dc0
test eax, eax
jne 0x421fbd
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 bind
mov ecx, edi
call fcn.00421dc0
test eax, eax
jne 0x421fbd
lea eax, [esp + 0x14]
push 0x51fdb4
push eax
call fcn.00491e90
mov esi, eax
add esp, 8
test esi, esi
jne 0x421f9c
lea ecx, [esp + 0x14]
push 0x51fdb0
push ecx
call fcn.00491e10
mov esi, eax
add esp, 8
test esi, esi
jne 0x421f9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x421f9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a2514
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x421eae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a23db
xor eax, eax
jmp 0x421fdf
mov byte [esi], 0
push 0x51fdac
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.004a23db
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 0x4377a0
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 0x43780e
cmp si, 0x69
ja 0x43780e
add esi, 0xffd0
cmp si, 0x11
je 0x4377de
push 0x11
call edi
test ax, ax
jge 0x4377de
or esi, 0x2000
cmp si, 0x10
je 0x4377f3
push 0x10
call edi
test ax, ax
jge 0x4377f3
or esi, 0x4000
cmp si, 0x12
je 0x437808
push 0x12
call edi
test ax, ax
jge 0x437808
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x43781b
mov esi, 0xbd
jmp 0x4377cf
cmp si, 0x6e
jne 0x437828
mov esi, 0xbe
jmp 0x4377cf
cmp si, 0x6f
jne 0x4377c9
mov esi, 0xbf
jmp 0x4377cf

Function at 0x438fe0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x53a788]
xor edx, edx
cmp eax, edx
jne 0x439006
xor eax, eax
mov byte [eax + 0x53a688], al
inc eax
cmp eax, 0x100
jl 0x438fee
mov dword [0x53a788], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x53a688
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x439097
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 0x43906a
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 0x439038
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x439110
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 0x439163
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 0x43914a
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