joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ab4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409aec
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x409af0
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x40a215
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x411028], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40a260
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x433ef0], ax
xor eax, eax
mov word [0x433ef2], ax
mov dword [0x411028], 0x433ef0
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d124
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x411018
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40a5df
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x42de80]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x42ef94], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40a641
mov ecx, dword [0x42754c]
call fcn.0040562b
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40f308
push 0
push 0xc2
push edi
call esi
mov byte [0x42ef94], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40a691
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40a6db
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x40f800
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40af31
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004012c0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40af4c
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40af56
mov byte [eax], 0
test edi, edi
je 0x40afff
movzx eax, word [edi]
test ax, ax
je 0x40afff
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40af8f
cmp dword [ebp + 0xc], 0
je 0x40af9b
test esi, esi
jne 0x40af9b
test ebx, ebx
je 0x40af8b
mov byte [ebx], 1
mov esi, edx
jmp 0x40afaa
cmp ax, 0xd
je 0x40afbd
cmp ax, 0xa
je 0x40afbf
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40afb5
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40af6f
jmp 0x40afbf
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40afbf
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40affa
mov word [ebx], ax
test esi, esi
je 0x40affa
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040d0fa
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40b001
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40b046
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0040e28c
cmp byte [0x42ef95], 0
jne 0x40b0d4
push 6
push dword [0x411014]
lea eax, [ebp - 0x820]
push eax
call fcn.00407a2f
push eax
call fcn.0040dddc
test eax, eax
jne 0x40b0d4
push 0x40f880
call fcn.0040e279
lea eax, [ebp - 0x820]
push eax
call fcn.00409e20
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.00409b3d
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40b19f
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x42de71], 1
cmp dword [0x42de80], ebx
je 0x40b1c7
push 0x7d
call fcn.00409968
push eax
push 2
push dword [0x42de80]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x42de80]
mov dword [0x42de74], ebx
mov byte [0x42de70], 1
cmp eax, ebx
je 0x40b228
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42efa4], ebx
jne 0x40b1f6
cmp byte [0x42ef94], bl
je 0x40b1fe
cmp dword [0x42de78], ebx
jne 0x40b220
push ebx
push 1
push 0x111
push dword [0x42de80]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40b220
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040a1d6
cmp dword [0x42de80], ebx
jne 0x40b214
cmp byte [0x42de88], bl
pop ebx
je 0x40b236
jmp fcn.0040b046
ret
Function at 0x40b272
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x42de90], bl
je 0x40b2f2
cmp word [0x427550], bx
je 0x40b2f2
push esi
push 0x427550
lea esi, [ebp - 0x808]
call fcn.0040b237
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40b2f2
push dword [ebp + 8]
call fcn.00409e20
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40b2f7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004012c0
cmp byte [0x42de90], 0
je 0x40b39e
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040b237
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40b39e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b395
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40b379
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040d0fa
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40b4c6
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x42de6e], 0
mov eax, dword [ebp + 0xc]
mov dword [0x42dd60], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42dd64], eax
mov eax, dword [ebp + 0x14]
mov dword [0x42dd58], eax
je 0x40b4f6
xor eax, eax
inc eax
jmp 0x40b51f
cmp byte [0x42de6f], 0
je 0x40b504
push 2
pop eax
jmp 0x40b51f
push dword [ebp + 8]
push 0x40a7af
push dword [0x42de80]
push str.REPLACEFILEDLG
push dword [0x42dd5c]
call esi
dec eax
je 0x40b571
dec eax
je 0x40b583
dec eax
je 0x40b56a
dec eax
jne 0x40b54e
push dword [ebp + 8]
push 0x40aafb
push dword [0x42de80]
push str.RENAMEDLG
push dword [0x42dd5c]
call esi
test eax, eax
je 0x40b4d0
mov al, 0x52
jmp 0x40b57e
dec eax
je 0x40b55f
dec eax
mov al, 0x4e
jne 0x40b57e
mov byte [0x42de6f], 1
jmp 0x40b57e
mov byte [0x42de72], 1
mov al, 0x43
jmp 0x40b57e
mov byte [0x42de6e], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40b57e
Function at 0x40cdea
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040d480
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x433f08
call fcn.0040ded9
mov esi, 0x5800
push esi
push ebx
mov edi, 0x428558
push edi
call fcn.00409b3d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ce98
push eax
call fcn.0040ae0c
cmp byte [0x42de91], bl
je 0x40ce8a
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ce7f
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40ce76
push esi
push eax
push edi
call fcn.00409b6a
push edi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ce98
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x427d58
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x42dd5c], edi
mov dword [0x42de68], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x42de68]
mov dword [0x427d54], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x427d50], eax
call fcn.0040e2fc
push esi
mov ecx, 0x42efc4
call fcn.00409951
lea ecx, [ebp - 0x5c]
call fcn.004055da
lea ecx, [ebp - 0x34]
call fcn.004055da
push 0x64
call fcn.0040a4df
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040a4df
push ebx
push 0x40c5ce
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x42754c], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x427548], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x427548], ebx
mov dword [0x42754c], ebx
call fcn.004055fc
lea ecx, [ebp - 0x5c]
call fcn.004055fc
lea ecx, [ebp - 0xc]
call fcn.0040e356
cmp byte [0x42de88], bl
je 0x40cf77
call fcn.0040b046
push 0x100
push ebx
push 0x42dd68
call fcn.00409b3d
cmp dword [0x42efa4], ebx
jbe 0x40cf9a
push dword [0x42ef98]
call fcn.004099fd
push dword [0x427d54]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x427d50]
cmp eax, ebx
je 0x40cfb4
push eax
call esi
cmp dword [0x42efb8], ebx
jne 0x40cfd3
cmp byte [0x42de72], bl
je 0x40cfd3
push 0xff
mov ecx, 0x42efb8
call fcn.004019e5
mov eax, dword [0x42efb0]
mov byte [0x42de72], 1
cmp eax, ebx
je 0x40cfe9
push eax
call fcn.0040b007
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x42efac]
cmp eax, ebx
ja 0x40cffd
mov eax, dword [0x42efb8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d806
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x4254ac]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x4130d0]
mov ecx, dword [0x4254b4]
mov dword [0x4254ac], eax
movzx eax, al
add eax, dword [0x4254b0]
imul eax, eax, 0x8088405
inc eax
mov dword [0x4254b0], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4130d0]
mov eax, dword [esp + 4]
mov dword [0x4254b4], ecx
ret 4

Function at 0x40d899
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040d860
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409b6a
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040d7e6
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040d806
inc esi
cmp esi, 0xc
jl 0x40d8b8
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x414b48]
test byte [eax + 0x40], 2
movzx eax, byte [0x424bc7]
jne 0x40d8f3
movzx eax, byte [0x424bcf]
movzx ecx, cx
cmp ecx, eax
je 0x40d8ff
or eax, 0xffffffff
jmp 0x40d944
mov ecx, dword [0x424b60]
mov eax, ecx
cdq
cmp edx, dword [0x413924]
push edi
jl 0x40d921
mov edx, dword [0x413920]
jg 0x40d91d
cmp eax, edx
jbe 0x40d921
mov edi, edx
jmp 0x40d923
mov edi, ecx
mov esi, dword [0x424b58]
jmp 0x40d93d
dec edi
call fcn.0040d7e6
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040d806
inc esi
test edi, edi
jne 0x40d92b
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x40e1a1
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x40fc28
push 1
xor ebx, ebx
push ebx
push 0x40fcd8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40e272
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40fcc8
push eax
call dword [ecx]
test eax, eax
jl 0x40e269
cmp byte [ebp + 8], bl
je 0x40e1f4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40e211
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40e223
push 0x40f308
jmp 0x40e226
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40e23b
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40e24c
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40e260
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c
Function at 0x40e28c
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40ab10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48382b
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.0047800e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ab92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00475d50
mov eax, dword [eax]
push 0x4d3cd4
push eax
call fcn.00468774
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00478299
test bl, bl
je 0x40ab92
push 0x4d3cd4
lea ecx, [esp + 0xc]
call fcn.00478629
push 0x4d3ce0
lea ecx, [esp + 0xc]
call fcn.00478629
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 0x40abce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00478299
jmp 0x40ac99
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 0x40ac52
lea edx, [esp + 0x7c]
push 0x4d3cdc
push edx
call fcn.00468774
add esp, 8
test eax, eax
je 0x40ac52
lea eax, [esp + 0x7c]
push 0x4d3cd8
push eax
call fcn.00468774
add esp, 8
test eax, eax
je 0x40ac52
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 0x40abe2
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.00478299
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 0x40b4b0
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 0x40b512
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 0x40b520
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4838ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4dd660]
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 0x40b658
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b586
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00478299
xor eax, eax
jmp 0x40b6cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004783d6
push esi
lea ecx, [esp + 0xc]
call fcn.00478665
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4d3d14
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b6ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040b4b0
test eax, eax
jne 0x40b6ad
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.0040b4b0
test eax, eax
jne 0x40b6ad
lea eax, [esp + 0x14]
push 0x4d3cf0
push eax
call fcn.004697f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b68c
lea ecx, [esp + 0x14]
push 0x4d3cec
push ecx
call fcn.00469770
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b68c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b68f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00478386
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b59e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00478299
xor eax, eax
jmp 0x40b6cf
mov byte [esi], 0
push 0x4d3ce8
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.00478299
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 0x41ed00
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 0x41ed6e
cmp si, 0x69
ja 0x41ed6e
add esi, 0xffd0
cmp si, 0x11
je 0x41ed3e
push 0x11
call edi
test ax, ax
jge 0x41ed3e
or esi, 0x2000
cmp si, 0x10
je 0x41ed53
push 0x10
call edi
test ax, ax
jge 0x41ed53
or esi, 0x4000
cmp si, 0x12
je 0x41ed68
push 0x12
call edi
test ax, ax
jge 0x41ed68
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41ed7b
mov esi, 0xbd
jmp 0x41ed2f
cmp si, 0x6e
jne 0x41ed88
mov esi, 0xbe
jmp 0x41ed2f
cmp si, 0x6f
jne 0x41ed29
mov esi, 0xbf
jmp 0x41ed2f

Function at 0x420580
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4edde8]
xor edx, edx
cmp eax, edx
jne 0x4205a6
xor eax, eax
mov byte [eax + 0x4edce8], al
inc eax
cmp eax, 0x100
jl 0x42058e
mov dword [0x4edde8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4edce8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x420637
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 0x42060a
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 0x4205d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4206b0
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 0x420703
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 0x4206ea
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