joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a6a1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49a6ec
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049ab63
test al, al
jne 0x49a6e6
sub edx, 2
cmp edx, edi
jne 0x49a6cc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49a70e
lea eax, [edi + 2]
cmp edx, eax
je 0x49a70e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a29a
add esp, 0x10
jmp 0x49a808
push esi
lea ecx, [ebp - 0x255]
call fcn.0049ab63
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49a751
push dword [ebp - 0x25c]
jmp 0x49a6fe
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49a78e
cmp word [ebp - 0x226], 0
je 0x49a7af
cmp word [ebp - 0x226], ax
jne 0x49a78e
cmp word [ebp - 0x224], 0
je 0x49a7af
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a29a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49a7fb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49a768
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49a7e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49a808
push 0x499c82
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405529
add esp, 0x10
jmp 0x49a7d8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040303f
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5d2a4859
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3db053fb
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

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 0x4012a0
Capabilities:
Delete file
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x402930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x404288
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x10]
push eax
call section..text
mov eax, dword [eax]
mov dword [esp + 0x28], 0
push eax
call fcn.00402070
add esp, 0xc
lea ecx, [esp + 0xc]
test eax, eax
sete bl
or edi, 0xffffffff
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString
test bl, bl
push 0
je 0x4013b9
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x404288
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
push ecx
call section..text
add esp, 8
mov ecx, eax
mov dword [esp + 0x24], 1
call fcn.00401850
push eax
call fcn.004021c0
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString
push 0
push 0x80
push 2
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x404288
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x28]
push edx
call section..text
add esp, 8
mov ecx, eax
mov dword [esp + 0x38], 2
call fcn.00401850
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString
cmp esi, edi
jne 0x401490
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0x80
push 4
push 0
push 0
push 0xc0000000
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x404288
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x28]
push eax
call section..text
add esp, 8
mov ecx, eax
mov dword [esp + 0x38], 3
call fcn.00401850
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString
cmp esi, edi
jne 0x401424
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov ecx, 0x1c
div ecx
test edx, edx
je 0x401490
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x404288
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x18]
push edx
call section..text
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x4014b0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x402948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push edi
push 0xc0000000
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x404288
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x34]
push eax
call section..text
add esp, 8
mov ecx, eax
mov dword [esp + 0x44], edi
call fcn.00401850
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp ebx, 0xffffffff
jne 0x40153a
or eax, ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
mov dword [esp + 0x10], ecx
jne 0x40157f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push edi
push edi
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x14], esi
jne 0x4015b3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push edi
push edi
push edi
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x4015d6
push esi
call ebp
push ebx
call ebp
mov ecx, dword [esp + 0x10]
or edi, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], edi
test ecx, ecx
jle 0x401629
mov edx, dword [esp + 0x18]
mov ecx, 5
lea edi, [esp + 0x34]
mov esi, edx
xor ebp, ebp
repe cmpsd dword [esi], dword es:[edi]
jne 0x401607
mov ecx, dword [esp + 0x48]
mov esi, dword [edx + 0x14]
cmp esi, ecx
je 0x40161d
mov ecx, dword [esp + 0x10]
inc eax
add edx, 0x1c
cmp eax, ecx
jl 0x4015eb
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
jmp 0x401623
mov esi, dword [esp + 0x14]
mov edi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call ebp
push ebx
call ebp
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret
Function at 0x401650
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
call fcn.004012a0
mov ebp, dword [esp + 0x58]
mov ecx, 5
push ebp
lea esi, [esp + 0x48]
sub esp, 0x14
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004014b0
mov ecx, 5
lea esi, [esp + 0x5c]
lea edi, [esp + 0x30]
add esp, 0x18
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], ebp
xor ebp, ebp
push ebp
push 0x80
push 4
push ebp
push ebp
push 0xc0000000
push ecx
mov ebx, eax
mov eax, dword [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x74], esp
push 0x404288
mov dword [esp + 0x50], eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x74]
push ecx
call section..text
add esp, 8
mov ecx, eax
mov dword [esp + 0x54], ebp
call fcn.00401850
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x58]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x401719
or eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
jne 0x401737
lea edx, [esp + 0x10]
push 2
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40179f
lea edi, [ebx*8]
lea edx, [esp + 0x10]
sub edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
shl edi, 2
push ebp
push edx
push edi
push esi
call ebx
lea eax, [esp + 0x18]
push 0x1c
push eax
push esi
call fcn.004017e0
add esp, 0xc
test eax, eax
jne 0x401783
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
add edx, ecx
push ebp
mov dword [esp + 0x34], edx
lea edx, [esp + 0x14]
push edx
push edi
push esi
mov dword [esp + 0x20], ebp
call ebx
lea eax, [esp + 0x14]
push ebp
push eax
lea ecx, [esp + 0x20]
push 0x1c
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret

Function at 0x4017e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x10]
push esi
push eax
push edi
push ebx
push ebp
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401833
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x401814
add esi, eax
cmp esi, edi
jae 0x40183b
mov edx, edi
lea ecx, [esp + 0x10]
push 0
sub edx, esi
push ecx
lea eax, [esi + ebx]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40180a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x402070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40208a
and al, 0x10
neg al
sbb eax, eax
neg eax
inc eax
ret
xor eax, eax
ret

Function at 0x4021c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x402a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00402090
add esp, 0xc
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x1c], edi
mov al, byte [eax]
cmp al, 0x5c
je 0x402210
push str.__
push edi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Insert
push 0x5c
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::TrimRight
push 1
lea ecx, [esp + 0x28]
push edi
push ecx
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], edi
call sub.MFC42.DLL_CString::GetBuffer
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.004023b0
mov esi, eax
add esp, 0x10
cmp esi, edi
jle 0x4022f3
mov edx, dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCRT.dll_wcschr]
push 0x3a
push edx
call ebp
add esp, 8
cmp eax, edi
jne 0x402270
mov eax, dword [esp + 0x24]
push eax
jmp 0x40231e
mov ecx, dword [esp + 0x24]
add eax, 4
mov edx, eax
sub edx, ecx
sar edx, 1
dec esi
cmp edx, esi
jge 0x40231d
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
push 0x5c
push edi
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x4022cc
mov word [esi], 0
mov eax, dword [esp + 0x24]
push 0
push eax
lea edi, [esi + 2]
call ebx
test eax, eax
jne 0x4022be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4022c5
mov word [esi], 0x5c
jmp 0x40228e
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x4022eb
mov edx, dword [esp + 0x24]
push 0
push edx
call ebx
test eax, eax
jne 0x402319
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402319
mov eax, dword [esp + 0x24]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x24]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
Function at 0x405c44
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a04], 0
push esi
jne 0x405c7b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c55
mov dword [ecx*4 + 0x422a00], eax
inc ecx
cmp ecx, 0x100
jl 0x405c50
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cac
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a00]
xor eax, esi
inc ecx
dec edx
jne 0x405c8e
pop edi
not eax
pop esi
ret 0xc

Function at 0x50b580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x50b59a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b590
mov eax, 1
add ebx, ebx
jne 0x50b5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b5a8
jne 0x50b5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5a8
xor ecx, ecx
sub eax, 3
jb 0x50b5d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50b64a
mov ebp, eax
add ebx, ebx
jne 0x50b5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50b5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50b614
inc ecx
add ebx, ebx
jne 0x50b600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50b5f5
jne 0x50b611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50b634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50b625
jmp 0x50b596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50b634
add edi, ecx
jmp 0x50b596
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50b652
cmp byte [edi], 6
jne 0x50b652
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 al, bl
loop 0x50b657
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50b6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50b684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50b6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50b6a1
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50b6fa
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x410040
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x475bcb
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.0046a715
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4100c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046820a
mov eax, dword [eax]
push 0x4c9200
push eax
call fcn.0045a334
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046a9a0
test bl, bl
je 0x4100c2
push 0x4c9200
lea ecx, [esp + 0xc]
call fcn.0046ad30
push 0x4ccd68
lea ecx, [esp + 0xc]
call fcn.0046ad30
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 0x4100fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046a9a0
jmp 0x4101c9
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 0x410182
lea edx, [esp + 0x7c]
push 0x4ccd64
push edx
call fcn.0045a334
add esp, 8
test eax, eax
je 0x410182
lea eax, [esp + 0x7c]
push 0x4ccd60
push eax
call fcn.0045a334
add esp, 8
test eax, eax
je 0x410182
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 0x410112
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.0046a9a0
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 0x4109c0
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 0x410a22
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 0x410a30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x475c4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d34f4]
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 0x410b68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x410a96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a9a0
xor eax, eax
jmp 0x410bdf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046aadd
push esi
lea ecx, [esp + 0xc]
call fcn.0046ad6c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4ccda0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x410bbd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004109c0
test eax, eax
jne 0x410bbd
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.004109c0
test eax, eax
jne 0x410bbd
lea eax, [esp + 0x14]
push 0x4ccd7c
push eax
call fcn.0045b370
mov esi, eax
add esp, 8
test esi, esi
jne 0x410b9c
lea ecx, [esp + 0x14]
push 0x4ccd78
push ecx
call fcn.0045b2f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x410b9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x410b9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046aa8d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x410aae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a9a0
xor eax, eax
jmp 0x410bdf
mov byte [esi], 0
push 0x4ccd74
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.0046a9a0
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