joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40943a
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
movzx eax, word [esi + 0x158]
test ax, ax
jne 0x4097e8
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ax, cx
and ecx, 0x3ff
shr ax, 0xa
dec ecx
movzx eax, ax
cmp ecx, 0x2c
ja case.0x409470.9
jmp dword [ecx*4 + 0x4097ea]
push str.Arabic
lea ecx, [esi + 0x15c]
call main
mov eax, 0x401
jmp 0x4097e1
push str.Basque
lea ecx, [esi + 0x15c]
call main
mov eax, 0x42d
jmp 0x4097e1
push str.Bulgarian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x402
jmp 0x4097e1
push str.Catalan
lea ecx, [esi + 0x15c]
call main
mov eax, 0x403
jmp 0x4097e1
cmp eax, 2
je 0x409503
cmp eax, 4
je 0x409503
push str.ChineseTraditional
lea ecx, [esi + 0x15c]
call main
mov eax, 0x404
jmp 0x4097e1
push str.ChineseSimplified
lea ecx, [esi + 0x15c]
call main
mov eax, 0x804
jmp 0x4097e1
push str.Croatian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x41a
jmp 0x4097e1
push str.Czech
lea ecx, [esi + 0x15c]
call main
mov eax, 0x405
jmp 0x4097e1
push str.Danish
lea ecx, [esi + 0x15c]
call main
mov eax, 0x406
jmp 0x4097e1
push str.Dutch
lea ecx, [esi + 0x15c]
call main
mov eax, 0x413
jmp 0x4097e1
push str.Estonian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x425
jmp 0x4097e1
push str.Finnish
lea ecx, [esi + 0x15c]
call main
mov eax, 0x40b
jmp 0x4097e1
push str.French
lea ecx, [esi + 0x15c]
call main
mov eax, 0x40c
jmp 0x4097e1
push str.German
lea ecx, [esi + 0x15c]
call main
mov eax, 0x407
jmp 0x4097e1
push str.Greek
lea ecx, [esi + 0x15c]
call main
mov eax, 0x408
jmp 0x4097e1
push str.Hebrew
lea ecx, [esi + 0x15c]
call main
mov eax, 0x40d
jmp 0x4097e1
push str.Hungarian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x40e
jmp 0x4097e1
push str.Italian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x410
jmp 0x4097e1
push str.Japanese
lea ecx, [esi + 0x15c]
call main
mov eax, 0x411
jmp 0x4097e1
push str.Korean
lea ecx, [esi + 0x15c]
call main
mov eax, 0x412
jmp 0x4097e1
push str.Latvian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x426
jmp 0x4097e1
push str.Lithuanian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x427
jmp 0x4097e1
push str.Norwegian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x414
jmp 0x4097e1
push str.Polish
lea ecx, [esi + 0x15c]
call main
mov eax, 0x415
jmp 0x4097e1
push str.Portuguese
lea ecx, [esi + 0x15c]
call main
mov eax, 0x416
jmp 0x4097e1
push str.Romanian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x418
jmp 0x4097e1
push str.Russian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x419
jmp 0x4097e1
push str.Slovak
lea ecx, [esi + 0x15c]
call main
mov eax, 0x41b
jmp 0x4097e1
push str.Slovenian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x424
jmp 0x4097e1
push str.Spanish
lea ecx, [esi + 0x15c]
call main
mov eax, 0x40a
jmp 0x4097e1
push str.Swedish
lea ecx, [esi + 0x15c]
call main
mov eax, 0x41d
jmp 0x4097e1
push str.Turkish
lea ecx, [esi + 0x15c]
call main
mov eax, 0x41f
jmp 0x4097e1
push str.Ukrainian
lea ecx, [esi + 0x15c]
call main
mov eax, 0x422
jmp 0x4097e1
push str.English
lea ecx, [esi + 0x15c]
call main
mov eax, 0x409
mov word [esi + 0x158], ax
pop esi
ret
Function at 0x409ae5
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x43b505
call fcn.004224e0
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.0040c667
mov ecx, dword [ebp + 8]
push eax
call main
push 0x7d
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
pop ebx
mov eax, dword [ebp + 0x14]
add ebx, ebx
mov ecx, dword [ebp + 8]
push ebx
mov esi, dword [eax]
call main
push esi
push ebx
push eax
mov eax, dword [ebp + 0x10]
push 0x43d650
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call main
lea ecx, [esi + 1]
cmp ebx, ecx
jbe 0x409b14
mov eax, dword [ebp + 8]
call fcn.004224ae
ret 0x10
Function at 0x40afdb
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x28
mov eax, 0x43af65
call fcn.00422513
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0xec], esi
jne 0x40b192
cmp dword [ebx + 0xe4], esi
jne 0x40b192
call fcn.0040c667
push eax
lea ecx, [ebp - 0x2c]
call main
mov dword [ebp - 4], esi
call fcn.0040c667
push eax
lea ecx, [ebp - 0x28]
call main
mov ecx, dword [ebx + 0x110]
mov eax, dword [ebx + 0x50]
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], eax
test ecx, ecx
je 0x40b052
call fcn.00405053
test eax, eax
jne 0x40b052
mov esi, str.Adobe_Acrobat_Reader
lea ecx, [ebp - 0x28]
push esi
call main
mov dword [ebx + 0x50], esi
jmp 0x40b063
mov eax, 0x43fb7c
lea ecx, [ebp - 0x28]
push eax
mov dword [ebx + 0x50], eax
call main
push 0x90
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00409b5a
mov edi, dword [ebp - 0x28]
push edi
push dword [eax]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
call main
mov ecx, dword [ebp - 0x34]
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00401856
cmp dword [ebx + 0x164], 0
mov esi, dword [ebp - 0x2c]
jne 0x40b182
cmp dword [ebx + 0x160], 0
je 0x40b0ca
push 0
push 0x10024
push esi
call main
add esp, 0xc
cmp eax, 6
jne 0x40b182
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x130]
cmp dword [eax - 0xc], 0
je 0x40b0ee
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
lea ecx, [ebx + 0x130]
call fcn.00401451
and dword [ebx + 0xe0], 0
lea eax, [ebp - 0x24]
and dword [ebp - 0x24], 0
xor ebx, ebx
push eax
push 0x28
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b14b
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ebx, eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
test ebx, ebx
je 0x40b14b
xor ecx, ecx
lea eax, [ebp - 0x20]
push ecx
push ecx
push ecx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ebx, eax
push 1
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test ebx, ebx
je 0x40b173
xor ecx, ecx
lea eax, [ebp - 0x20]
push ecx
push ecx
push ecx
push eax
push ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp - 0x24], 0
je 0x40b182
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [edi - 0x10]
call fcn.00401856
lea ecx, [esi - 0x10]
call fcn.00401856
call fcn.004224c2
ret
Function at 0x40b7c7
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x43aff0
call fcn.004224e0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.0040194d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b843
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x40b81a
cmp ecx, 2
je 0x40b81a
push ebx
jmp 0x40b81e
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b868
mov ebx, 0x455994
push 0x43ff14
mov ecx, ebx
call main
push dword [ebp + 0x14]
mov ecx, ebx
call main
mov ecx, 0x4558c8
call fcn.0040b2fe
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, esi
call fcn.004224ae
ret

Function at 0x421c21
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44fa68
call fcn.00423d70
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x421ad8
xor ebx, ebx
jmp 0x421b0b
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x421ad4
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x421ad4
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x421b0b
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0042868b
test eax, eax
jne 0x421b1f
push 0x1c
call main
pop ecx
call fcn.004285f8
test eax, eax
jne 0x421b30
push 0x10
call main
pop ecx
call fcn.00428f76
and dword [ebp - 4], 0
call fcn.004286a0
test eax, eax
jns 0x421b4a
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x459adc], eax
call main
mov dword [0x457a24], eax
call main
test eax, eax
jns 0x421b70
push 8
call main
pop ecx
call fcn.00428b91
test eax, eax
jns 0x421b81
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x421b94
push eax
call main
pop ecx
call fcn.004293f4
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x421bb6
push esi
call main
call fcn.004279bd
jmp 0x421beb
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00423db5
ret
call main
jmp 0x421aaa
Function at 0x43772d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x43773c
pop dword [ebp - 0x10]
mov eax, 0x43773c
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x944f2090
sub dword [ebp - 0x20], 0x45fcdb45
mov dword [ebp - 0x1c], 0x70c86d16
sub dword [ebp - 0x1c], 0x3e9520d1
mov dword [ebp - 0x18], 0xd898bb6b
add dword [ebp - 0x18], 0x73b388c3
mov dword [ebp - 0x14], 0xbc36c703
add dword [ebp - 0x14], 0x43c938fd
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x9e21f9ce
sub dword [ebp - 0x20], 0x29af9078
mov dword [ebp - 0x1c], 0xe916891c
sub dword [ebp - 0x1c], 0xa7aa27a7
mov dword [ebp - 0x18], 0x746b80ac
sub dword [ebp - 0x18], 0x10fc1440
mov dword [ebp - 0x14], 0x4af8ce2d
sub dword [ebp - 0x14], 0x4af8ce2d
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x9c4e1f82
add eax, 0x63f5b372
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x47949
push 0
call eax
mov ecx, 0x4d76
mov ebx, eax
mov edx, 0xd70a64ec
sub edx, 0xd6c2f0ec
add edx, dword [ebp - 0x10]
mov edi, 0x98e62ced
add edi, 0xf4054d53
mov esi, dword [edx]
sub dword [ebp - 0xc], eax
sub esi, edi
xor dword [ebp - 0xc], ecx
mov dword [ebx], esi
add dword [ebp - 8], 0x16747f91
add ebx, 0xd9f392a8
sub ebx, 0xd9f392a4
add edx, 4
loop 0x43784e
add eax, 0x128ab
mov ebx, eax
add eax, 0x5578bf32
add eax, 0xaa8740d3
mov ecx, 0xb608f0b5
add ecx, 0x4a370f4b
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4015ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x401631
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x401637
add eax, 4
pop esi
dec esi
push esi
jne 0x401619
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8

Function at 0x40c4b3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x40c4eb
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x40c4d9
mov al, 1
jmp 0x40c53c
cmp dword [ebx + 0x54], ecx
jne 0x40c4e2
mov al, 2
jmp 0x40c53c
cmp dword [ebx + 0x7c], ecx
jne 0x40c53c
mov al, 3
jmp 0x40c53c
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x40c500
mov al, 4
jmp 0x40c53c
cmp ecx, 5
jne 0x40c520
cmp ebx, 0
jne 0x40c50e
mov al, 5
jmp 0x40c53c
cmp ebx, 1
jne 0x40c517
mov al, 6
jmp 0x40c53c
cmp ebx, 2
jne 0x40c520
mov al, 7
jmp 0x40c53c
cmp ecx, 6
jne 0x40c52c
cmp ebx, 0
jne 0x40c52e
mov al, 8
jmp 0x40c53c
cmp ebx, 1
jne 0x40c535
mov al, 9
cmp ebx, 2
jne 0x40c53c
mov al, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420ae3
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x18]
push eax
mov eax, 0x57
call fcn.004c7a04
cmp dword [ebp - 0x2c], esp
je 0x420b71
push 6
call fcn.004c79fe
add esp, 4
rdtsc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x20]
push eax
mov eax, 0x58
call fcn.004c7a04
cmp dword [ebp - 0x2c], esp
je 0x420b9c
push 6
call fcn.004c79fe
add esp, 4
fild qword [ebp - 0x20]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild qword [ebp - 0x18]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.00401b47
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x28]
push eax
mov eax, 0x58
call fcn.004c7a04
cmp dword [ebp - 0x2c], esp
je 0x420be2
push 6
call fcn.004c79fe
add esp, 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp dword [ebp - 0x24], edx
jg 0x420bf7
jl 0x420bf6
cmp dword [ebp - 0x28], eax
jae 0x420bf7
inc ecx
mov eax, ecx
test eax, eax
jne 0x420bbf
rdtsc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
fild qword [ebp - 0x10]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild qword [ebp - 8]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fdiv qword [0x64a453]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.00401b47
jmp 0x420c33
mov esp, ebp
pop ebp
ret

Function at 0x446cd2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, ecx
test ecx, ecx
je 0x446d2f
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x446cfe
cmp word [ecx], ax
je 0x446d03
jmp 0x446cf2
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x446cf2
jmp 0x446d03
mov eax, edx
lea ecx, [ecx + edx*2]
cdq
sub eax, edx
sar eax, 1
sub ecx, 2
test eax, eax
jle 0x446d2f
lea ecx, [ecx]
mov dx, word [esi]
xor word [ecx], dx
movzx edx, word [ecx]
xor word [esi], dx
movzx edx, word [esi]
xor word [ecx], dx
dec eax
sub ecx, 2
add esi, 2
test eax, eax
jg 0x446d12
pop esi
pop ebp
ret 8
Function at 0x4d8ce0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x59a00b
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.0058a002
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d8d62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0058782d
mov eax, dword [eax]
push 0x67b284
push eax
call fcn.00577f84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0058a28d
test bl, bl
je 0x4d8d62
push 0x67b284
lea ecx, [esp + 0xc]
call fcn.0058a669
push 0x67ee44
lea ecx, [esp + 0xc]
call fcn.0058a669
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 0x4d8d9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0058a28d
jmp 0x4d8e69
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 0x4d8e22
lea edx, [esp + 0x7c]
push 0x67ee40
push edx
call fcn.00577f84
add esp, 8
test eax, eax
je 0x4d8e22
lea eax, [esp + 0x7c]
push 0x67ee3c
push eax
call fcn.00577f84
add esp, 8
test eax, eax
je 0x4d8e22
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 0x4d8db2
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.0058a28d
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 0x4d9660
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 0x4d96c2
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 0x4d96d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x59a08b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x699f68]
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 0x4d9808
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4d9736
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0058a28d
xor eax, eax
jmp 0x4d987f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0058a416
push esi
lea ecx, [esp + 0xc]
call fcn.0058a6a5
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x67ee7c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4d985d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004d9660
test eax, eax
jne 0x4d985d
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.004d9660
test eax, eax
jne 0x4d985d
lea eax, [esp + 0x14]
push 0x67ee58
push eax
call fcn.005792e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d983c
lea ecx, [esp + 0x14]
push 0x67ee54
push ecx
call fcn.00579260
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d983c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4d983f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0058a3c6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4d974e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0058a28d
xor eax, eax
jmp 0x4d987f
mov byte [esi], 0
push 0x67ee50
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.0058a28d
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 0x4eba70
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 0x4ebade
cmp si, 0x69
ja 0x4ebade
add esi, 0xffd0
cmp si, 0x11
je 0x4ebaae
push 0x11
call edi
test ax, ax
jge 0x4ebaae
or esi, 0x2000
cmp si, 0x10
je 0x4ebac3
push 0x10
call edi
test ax, ax
jge 0x4ebac3
or esi, 0x4000
cmp si, 0x12
je 0x4ebad8
push 0x12
call edi
test ax, ax
jge 0x4ebad8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4ebaeb
mov esi, 0xbd
jmp 0x4eba9f
cmp si, 0x6e
jne 0x4ebaf8
mov esi, 0xbe
jmp 0x4eba9f
cmp si, 0x6f
jne 0x4eba99
mov esi, 0xbf
jmp 0x4eba9f

Function at 0x4ede70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6ab218]
xor edx, edx
cmp eax, edx
jne 0x4ede96
xor eax, eax
mov byte [eax + 0x6ab118], al
inc eax
cmp eax, 0x100
jl 0x4ede7e
mov dword [0x6ab218], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6ab118
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4edf27
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 0x4edefa
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 0x4edec8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4edfa0
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 0x4edff3
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 0x4edfda
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 0x4f1530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59b4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x20]
call fcn.005910a1
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub eax, esi
sub ecx, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.004f1400
add esp, 0x14
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00591113
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret