joyce8/EMBER2024-capa huggingface dataset:
Function at 0xda5f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xda5ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xda6035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00da5e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xda5fc5
mov edi, 0xdc08b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xda6035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00da5e00
add edi, 4
add esp, 0xc
cmp edi, 0xdc08c0
jb 0xda6000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xda6070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00dac082
mov esi, eax
add esp, 8
test esi, esi
je 0xda6107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xda6102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00dab946
add esp, 8
test eax, eax
je 0xda60e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xda60e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00dab946
add esp, 8
test eax, eax
jne 0xda60c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xda6102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xda6f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xdbb9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xda7002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00daadff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xda7002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00da26e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00dab20b
push 0x10
call fcn.00dab1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xda6fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00d971c0
jmp 0xda6fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00da6b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xda6ff0
mov ecx, edi
call fcn.00d972c0
push edi
call fcn.00dab1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xda7021
inc ebx
cmp ebx, 0x20
jb 0xda6f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xda8250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdbc808
push 0xdac288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xda8329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xda8329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00dab1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xda8329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xda8329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xda832c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00da8351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xda8d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xda8d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xda8d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xda8d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xda8d94
push eax
push esi
call fcn.00dab20b
add esp, 8
pop esi
ret 0x10

Function at 0xda8da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xda8e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xda8e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xdc1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00daadff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xda8dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xda8e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xda8ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xda8eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xdc1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00daadff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xda8eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xda8e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xda9000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xda9131
push esi
call fcn.00dac145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d9b080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xda9131
push 0
push ebp
call fcn.00d9b3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d9b260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xda908b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d9b2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xda9121
push 0xdc1918
push edi
call fcn.00daa3f0
push eax
push ebx
push esi
call fcn.00da8f60
push 0xdc18f8
push edi
call fcn.00daa3f0
push eax
push ebx
push esi
call fcn.00da8f60
push 0xdc18d8
push edi
call fcn.00daa3f0
push eax
push ebx
push esi
call fcn.00da8f60
push 0xdc18c0
push edi
call fcn.00daa3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00da8f60
push 0xdc18a0
push edi
call fcn.00daa3f0
push eax
push ebx
push esi
call fcn.00da8f60
push 0xdc1888
push edi
call fcn.00daa3f0
push eax
push ebx
push esi
call fcn.00da8f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xdaa1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00daa140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00daa140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00daa140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00daa140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xdaabfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xdaac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xdbc87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xdaac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xdaac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401190
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x4343a0]
test eax, eax
push esi
push edi
je 0x4011eb
mov eax, dword [esp + 0x10]
mov edx, dword [0x433054]
mov ecx, dword [0x433058]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x4011b6
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x40125f
mov esi, dword [0x433050]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x433054]
add ecx, eax
pop edi
mov dword [0x433054], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.0041fb75
mov edi, eax
mov eax, dword [0x434390]
add esp, 0x10
test eax, eax
je 0x40125d
test edi, edi
jle 0x40125d
mov edx, dword [0x4341fc]
mov eax, dword [0x4341e0]
lea ecx, [eax + edx]
mov edx, dword [0x4341ec]
mov eax, dword [0x4341e8]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x40125d
mov dl, byte [0x4341f4]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
xor bl, cl
sub bl, al
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x401247
pop ebp
mov byte [0x4341f4], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x40f950
Capabilities:
Create process on windows

Disassembly:
mov cl, byte [esp + 4]
sub esp, 0x3c
test cl, 2
mov eax, 0xa
je 0x40f966
mov eax, 2
cmp byte [esi], 0
je 0x40f9cc
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [0x434be4]
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x14], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
jne 0x40fa2b
push 0x4316c0
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0xe
call fcn.00420030
test cl, 0x10
push eax
je 0x40f9e9
push 0x42c3a1
push 0x42c3a1
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40fa0f
test cl, 0x20
je 0x40fa08
push 0x42c3a1
push 0x42c3a1
push edx
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40fa0f
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jge 0x40fa2b
push 0x4316c0
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], 0xe
call fcn.00420030
add esp, 0x3c
ret
Function at 0x412e50
Capabilities:
Log keystrokes

Disassembly:
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x434c08]
test byte [eax + 0x30c], 2
je 0x412edc
mov edx, dword [esi + 4]
cmp edx, 0x200
mov edi, dword [0x434c00]
jne 0x412ebd
test edi, edi
movzx eax, word [esi + 0xc]
movzx ecx, word [esi + 0xe]
jne 0x412eb2
cmp dword [0x434bf8], eax
jne 0x412e9b
cmp dword [0x434bfc], ecx
je 0x412ebd
push 0x4316c0
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00420030
mov dword [0x434bf8], eax
mov dword [0x434bfc], ecx
cmp edx, 0x100
jne 0x412edc
test edi, edi
jne 0x412edc
push 0x4316c0
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], edi
call fcn.00420030
cmp dword [esi + 4], 0x100
jne 0x412f1a
cmp dword [esi + 8], 9
jne 0x412ef0
call fcn.00412ba0
push 2
call fcn.00403c70
add esp, 4
test eax, eax
je 0x412f1a
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
push eax
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call fcn.004049e0
add esp, 0x10
pop edi
pop ecx
ret
Function at 0x415540
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push esi
mov esi, dword [esp + 0x120]
push edi
lea eax, [esp + 0x10]
mov ebx, ecx
mov ecx, dword [esi + 8]
push eax
push ecx
call ebp
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [esp + 0x128]
jl 0x4155cd
mov ecx, dword [ebx + 0x130]
push eax
call fcn.00416310
mov ecx, dword [esp + 0x12c]
dec ecx
je 0x41559f
dec ecx
je 0x415595
movsx ecx, word [esi + 0x14]
movsx edx, word [esi + 0x16]
jmp 0x4155a7
movsx ecx, word [esi + 0x18]
movsx edx, word [esi + 0x1a]
jmp 0x4155a7
movsx ecx, word [esi + 0x1c]
movsx edx, word [esi + 0x1e]
push 0xcc0020
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test byte [esi + 3], 2
je 0x4155f9
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x20]
push edx
push 0xff
push 0xd
push eax
call ebx
mov ecx, dword [esi + 8]
push 0
push 0
push 0x31
push ecx
call ebx
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 1
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
push ebx
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0xc

Function at 0x418790
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
mov edi, ecx
call fcn.00416260
mov eax, dword [edi + 0x320]
mov ecx, dword [eax + ebx*4]
xor ebp, ebp
test ecx, ecx
je 0x4187e1
mov ecx, eax
mov esi, dword [ecx + ebx*4]
test esi, esi
mov ebp, dword [esi + 0x34]
je 0x4187cb
mov ecx, esi
call fcn.00418370
push esi
call fcn.0041ffec
add esp, 4
mov edx, dword [edi + 0x320]
push 0
push ebp
mov dword [edx + ebx*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x158
call fcn.0041fff1
add esp, 4
test eax, eax
je 0x4187fc
mov dword [eax], 0
mov esi, eax
jmp 0x4187fe
xor esi, esi
mov eax, dword [edi + 0x320]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
and ecx, 1
push ecx
mov dword [eax + ebx*4], esi
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x130], edi
mov dword [esi + 0x44], 1
mov ecx, dword [edi + 0x31c]
push ebp
push ecx
mov ecx, esi
call fcn.004185b0
xor eax, eax
pop edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x41a820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [ebx + 8]
push ebp
push esi
mov esi, eax
and esi, 7
je 0x41a84a
cmp eax, esi
jge 0x41a838
mov eax, ebx
call fcn.0041a070
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, esi
shr edx, cl
sub eax, esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
jle 0x41a87f
mov esi, 0xfffffff8
mov edx, ecx
lea ebx, [ebx]
mov cl, byte [ebx + 0xc]
mov ebp, dword [ebx + 0xc]
mov byte [esp + eax + 8], cl
shr ebp, 8
add edx, esi
inc eax
test edx, edx
mov dword [ebx + 0xc], ebp
jg 0x41a860
cmp eax, 4
mov dword [ebx + 8], edx
jge 0x41a89e
mov edx, dword [ebx + 4]
mov esi, dword [ebx]
cmp esi, edx
jb 0x41a88c
xor ecx, ecx
jmp 0x41a894
mov cl, byte [esi]
inc esi
mov dword [ebx], esi
movzx ecx, cl
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jl 0x41a882
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xa]
movzx ebp, ah
movzx edx, al
movzx eax, byte [esp + 0xb]
shl ebp, 8
add ebp, edx
shl eax, 8
mov edx, ebp
add eax, ecx
xor edx, 0xffff
cmp eax, edx
je 0x41a8d8
pop esi
mov dword [0x434c50], 0x42c860
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add eax, ebp
cmp eax, ecx
jbe 0x41a8f3
pop esi
mov dword [0x434c50], 0x42c84c
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x18]
add ecx, ebp
cmp ecx, eax
push edi
jbe 0x41a912
mov ecx, ebp
mov edi, ebx
call fcn.0041a0b0
test eax, eax
jne 0x41a912
pop edi
pop esi
pop ebp
pop ecx
ret
mov esi, dword [ebx]
mov edi, dword [ebx + 0x10]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add ecx, ebp
add eax, ebp
pop edi
pop esi
mov dword [ebx + 0x10], eax
mov dword [ebx], ecx
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x41f4f0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
jmp 0x421641
push 0x128
push 0x42cbe0
call fcn.00427ee0
mov eax, dword [0x43355c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x421751
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x421702
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00421490
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x4216ef
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x421751
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x421751
mov al, byte [edi]
cmp al, 0x5c
je 0x421710
cmp al, 0x2f
jne 0x421715
cmp al, byte [edi + 1]
je 0x42174b
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00427d82
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x421751
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427d23
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x42176d
push edi
call fcn.0041fcfc
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00427899
call fcn.00427f1b
ret

Function at 0x41f510
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push edi
xor edi, edi
test bl, 1
je 0x41f52c
mov edi, 0x10
test bl, 2
je 0x41f534
or edi, 6
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41f55e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
push esi
mov esi, dword [esp + 0x15c]
and ebx, 4
lea esp, [esp]
mov edx, dword [esp + 0x14]
xor eax, eax
and edx, edi
cmp eax, edx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x41f58b
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x41f5c9
mov al, byte [esp + 0x40]
test al, al
je 0x41f5c9
cmp al, 0x2e
jne 0x41f5af
mov al, byte [esp + 0x41]
test al, al
je 0x41f5c9
cmp al, 0x2e
jne 0x41f5af
mov al, byte [esp + 0x42]
test al, al
je 0x41f5c9
lea edx, [esp + 0x40]
push edx
push esi
inc ebp
call fcn.00409980
push 0x42c418
push esi
call fcn.00409980
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f570
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x144
ret