joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2f60
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4db00c]
xor eax, esp
mov dword [esp + 0x64], eax
movaps xmm0, xmmword [0x4d6d90]
xor ecx, ecx
push ebx
push ebp
push esi
push edi
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x24], 0x58736a6c
mov dword [esp + 0x28], 0x48625f6b
mov dword [esp + 0x2c], 0x796d530e
mov word [esp + 0x30], 0x5d43
mov byte [esp + 0x32], 0
mov al, byte [esp + 0x14]
xor byte [esp + ecx + 0x15], al
inc ecx
cmp ecx, 0x1d
jb 0x4c2fa4
xorps xmm0, xmm0
mov byte [esp + 0x32], 0
lea ecx, [esp + 0x15]
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x48], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2fd6
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004b8710
mov esi, dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
call esi
mov ebx, 0xe
mul ebx
cmp eax, ebx
jae 0x4c300f
cmp eax, 4
jae 0x4c300f
call esi
mul ebx
cmp eax, 4
jb 0x4c3006
mov ebp, dword [esp + 0x34]
lea ecx, [edx - 0x7ffffff9]
cmp ecx, 0x80000000
lea eax, [ecx - 0x80000000]
lea edi, [ecx - 0x80000000]
cmovae edi, eax
xor ebx, ebx
mov dword [esp + 0x10], edi
test edi, edi
jle 0x4c3090
call esi
mov ecx, 0xe
mul ecx
cmp eax, ecx
jae 0x4c305d
cmp eax, 4
jae 0x4c305d
mov edi, ecx
nop dword [eax]
call esi
mul edi
cmp eax, 4
jb 0x4c3050
mov edi, dword [esp + 0x10]
lea ecx, [edx - 0x7ffffff9]
cmp ecx, 0x80000000
lea eax, [ecx - 0x80000000]
lea edx, [ecx - 0x80000000]
cmovae edx, eax
cmp dword [esp + 0x48], 0x10
lea eax, [esp + 0x34]
cmovae eax, ebp
mov al, byte [edx + eax]
mov byte [esp + ebx + 0x4c], al
inc ebx
cmp ebx, edi
jl 0x4c3038
cmp edi, 0x28
jae 0x4c3174
push 0xf00
mov byte [esp + edi + 0x50], 0
call fcn.004cb07b
mov ebx, dword [0x4db86c]
add esp, 4
xor edi, edi
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x3c]
mov ebp, dword [ecx + ebx + 0x78]
mov esi, dword [ebp + ebx + 0x20]
add esi, ebx
mov eax, dword [esi]
mov edx, 0xa59280af
add eax, ebx
mov cl, byte [eax]
inc eax
test cl, cl
je 0x4c30f1
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [eax - 1]
test cl, cl
jne 0x4c30d4
cmp edx, 0x8583f9e4
je 0x4c30f7
inc edi
add esi, 4
jmp 0x4c30c4
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push 0x780
push esi
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + ebx + 0x24]
push 0
push 0
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [ebp + ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
call eax
mov eax, dword [esp + 0x48]
cmp eax, 0x10
jb 0x4c315f
mov edx, dword [esp + 0x34]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c3155
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c3155
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004cb06d
add esp, 8
mov ecx, dword [esp + 0x74]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cadd9
add esp, 0x6c
ret
call fcn.004cb1c9
int3
Function at 0x4cb87e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4cb8bd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cb8bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cb8bd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4cb8bd
cmp dword [ecx + 0x74], 0xe
jbe 0x4cb8bd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5b08af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x5cd54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x5cd54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x5cc378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b08b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4013b6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
push str.DWORD
mov dword [ebp - 8], 0x64
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], 1
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4013fa
and dword [ebp - 4], 0
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [esi + 4]
lea edi, [esi + 0x10]
push edi
push eax
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4013e3
mov eax, dword [esi + 8]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x401434
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
push ebx
push ebx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4013e7
mov dword [ebp - 4], ebx
jmp 0x4013e7
push 4
push dword [ebp + 8]
push 4
push ebx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4013e7
xor eax, eax
jmp 0x4013f3

Function at 0x40213e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x402de8
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xc
push esi
push edi
mov edi, ecx
push ecx
lea eax, [ebp + 8]
xor esi, esi
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 0x1c48345
mov dword [ebp - 0x18], 0x8aed3500
call fcn.004028be
mov ecx, edi
call fcn.004021e9
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4021cd
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 0xc
Function at 0x4011b3
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push 0x64
push eax
mov edi, 0x404164
push 0x406114
push edi
call fcn.00403360
add esp, 0x10
test eax, eax
je 0x4012bf
xor ebx, ebx
cmp byte [ebp - 0x68], bl
je 0x401206
lea eax, [ebp - 0x25c]
push 0x63
push eax
lea eax, [ebp - 0x68]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4012bf
mov esi, 0x12c
push ebx
lea eax, [ebp - 0x194]
push esi
push eax
push ebx
push 0x406108
push 0x4043cc
push edi
call fcn.004036ed
add esp, 0x1c
test eax, eax
je 0x4012bf
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xa
cmp eax, esi
jae 0x4012bf
lea eax, [ebp - 0x194]
push str.s_pid.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x194]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4012bf
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 4]
push ebx
push eax
shl esi, 1
lea eax, [ebp - 0x25c]
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jne 0x4012b2
push 1
pop eax
jmp 0x4012c1
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012c6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
push edi
push str.Rstrtmgr.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [ebp - 8], eax
cmp eax, edi
je 0x401479
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RmStartSession
push eax
call esi
push str.RmRegisterResources
mov ebx, eax
push dword [ebp - 8]
call esi
push str.RmRestart
mov dword [ebp - 0x18], eax
push dword [ebp - 8]
call esi
push str.RmShutdown
mov dword [ebp - 0x1c], eax
push dword [ebp - 8]
call esi
push str.RmEndSession
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call esi
cmp ebx, edi
mov dword [ebp - 0x20], eax
je 0x40146e
cmp dword [ebp - 0x18], edi
je 0x40146e
cmp dword [ebp - 0x1c], edi
je 0x40146e
cmp dword [ebp - 0xc], edi
je 0x40146e
cmp eax, edi
je 0x40146e
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 4]
push edi
push eax
call ebx
test eax, eax
jne 0x40146e
lea eax, [ebp - 0x124]
push 0x104
push eax
push 0x4068d4
push 0x406124
push SysReAllocStringLen
call fcn.004034cd
add esp, 0x14
test eax, eax
je 0x401468
lea eax, [ebp - 0x124]
push 0x5c
push eax
call fcn.00402fa0
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
jne 0x4013d0
lea eax, [ebp - 0x124]
push 0x2f
push eax
call fcn.00402fa0
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
je 0x401468
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
push 0xc
pop ebx
sub ebx, eax
lea eax, [ebp - 0x124]
push eax
call esi
add ebx, eax
cmp ebx, 0x104
jae 0x401468
mov eax, dword [ebp - 0x10]
push 0x406118
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x124]
push eax
call esi
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x124]
push esi
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, eax
jne 0x401468
lea eax, [ebp - 0x370]
push edi
mov dword [ebp - 0x14], eax
push edi
push edi
lea eax, [ebp - 0x14]
push edi
push eax
push 1
mov word [ebp + esi*2 - 0x370], di
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call dword [ebp - 0x18]
test eax, eax
jne 0x401468
push edi
push 0x10
push dword [ebp - 4]
call dword [ebp - 0xc]
test eax, eax
jne 0x401468
push edi
push edi
push dword [ebp - 4]
call dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [ebp - 0x20]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x403263
Capabilities:
Create directory

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40328b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40328b
xor eax, eax
ret
push 1
pop eax
ret

Function at 0x4034cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4034f2
xor eax, eax
jmp 0x40354f
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40353d
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x40353d
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x40353d
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x403634
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x403687
lea eax, [ebp + 0xc]
push eax
push 0x2001f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x403669
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x4036e9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
je 0x403682
cmp eax, 2
je 0x403682
xor esi, esi
jmp 0x4036d0
push 1
pop esi
jmp 0x4036d0
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4036ac
xor eax, eax
jmp 0x4036e9
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x18], edi
je 0x4036de
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x40391c
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
movsx eax, byte [esi]
push eax
call fcn.00402e7f
test eax, eax
pop ecx
je 0x403978
cmp byte [esi + 1], 0x3a
jne 0x403978
cmp byte [esi + 2], 0x5c
jne 0x403978
push 4
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x403960
cmp eax, 4
jne 0x403978
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403978
and eax, 0x10
cmp al, 0x10
je 0x403978
push 1
pop eax
jmp 0x40397a
xor eax, eax
pop esi
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x421bd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421bf2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421be8
mov eax, 1
add ebx, ebx
jne 0x421c0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421c1c
jne 0x421c2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421c2c
dec eax
add ebx, ebx
jne 0x421c28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x421c00
xor ecx, ecx
sub eax, 3
jb 0x421c44
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421cb6
sar eax, 1
mov ebp, eax
jmp 0x421c4f
add ebx, ebx
jne 0x421c4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421c5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421c80
inc ecx
add ebx, ebx
jne 0x421c6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421c61
jne 0x421c7d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c61
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421ca0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421c91
jmp 0x421bee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421ca0
add edi, ecx
jmp 0x421bee
pop esi
mov edi, esi
mov ecx, 0x843
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421cbe
cmp byte [edi], 0xd
jne 0x421cbe
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x421cc3
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421d3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x228e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2299c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421cf0
mov ecx, edi
jns 0x421d1f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x229a0]
or eax, eax
je 0x421d35
mov dword [ebx], eax
add ebx, 4
jmp 0x421d0d
call dword [esi + 0x229a4]
popal
jmp section.UPX0
Function at 0x10001b60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10039750
pop ebp
jmp fcn.1000d820

Function at 0x10003430
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10038a48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ecx + 0x210]
push eax
lea esi, [ecx + 8]
push esi
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10006260
add esp, 0x14
lea eax, [ebp - 0x20c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100112fa
mov esp, ebp
pop ebp
ret

Function at 0x100034b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x100034c6
mov eax, 0xb7
pop esi
pop ebp
ret 0xc
push edi
lea edi, [esi + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
push 0x10006800
push dword [ebp + 0xc]
push 0
call fcn.10018e2d
add esp, 0x18
test eax, eax
jne 0x100034f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
pop edi
pop esi
pop ebp
ret 0xc
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10003550
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x10038a48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x220], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0
mov esi, dword [eax]
mov eax, dword [ebp - 0x214]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100035bf
push eax
call ebx
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x214]
push eax
push 0x2001f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x100035e8
xor eax, eax
cmp esi, 2
cmove esi, eax
jmp 0x100036b9
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10013190
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x218]
add esp, 0xc
mov dword [ebp - 0x218], 0xff
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x214]
call edi
test eax, eax
jne 0x10003688
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.10003550
mov esi, eax
test esi, esi
jne 0x100036b9
push 0x200
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10013190
add esp, 0xc
mov dword [ebp - 0x218], 0xff
lea eax, [ebp - 0x218]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
call edi
test eax, eax
je 0x10003632
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x1000369f
push eax
call ebx
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x220]
push dword [ebp - 0x21c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x100036b9
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x100036d7
push ecx
call ebx
mov dword [ebp - 0x214], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100112fa
mov esp, ebp
pop ebp
ret 4