joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476390
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60bdfb
push eax
mov dword fs:[0], esp
sub esp, 0x2a0
push ebx
push ebp
push esi
push edi
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x47652e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAStartup
push ebp
call esi
push str.gethostname
push ebp
mov edi, eax
call esi
push str.gethostbyname
push ebp
mov dword [esp + 0x18], eax
call esi
push str.WSACleanup
push ebp
mov ebx, eax
call esi
push str.inet_ntoa
push ebp
mov dword [esp + 0x1c], eax
call esi
test edi, edi
mov dword [esp + 0x1c], eax
je 0x476527
mov esi, dword [esp + 0x10]
test esi, esi
je 0x476527
test ebx, ebx
je 0x476527
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x476527
test eax, eax
je 0x476527
lea eax, [esp + 0x120]
push eax
push 0x101
call edi
test eax, eax
jne 0x476527
mov eax, dword [esp + 0x2c8]
test eax, eax
jne 0x476473
lea ecx, [esp + 0x20]
push 0xff
push ecx
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
je 0x476523
push eax
call ebx
test eax, eax
mov dword [esp + 0x18], eax
je 0x476523
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x476511
mov edi, dword [esp + 0x2c0]
mov ebx, dword [esp + 0x2c4]
xor esi, esi
mov ecx, dword [esi + eax]
xor eax, eax
xor edx, edx
mov al, byte [ecx + 3]
mov dl, byte [ecx + 2]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx]
shl eax, 8
add eax, edx
push eax
call dword [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.005eb163
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x2c0], 0
call fcn.005ea1ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2b8], 0xffffffff
call fcn.005eb0f5
test ebx, ebx
jne 0x476511
mov eax, dword [esp + 0x18]
add esi, 4
mov eax, dword [eax + 0xc]
cmp dword [esi + eax], 0
jne 0x47649e
call dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x476530
call dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x2b0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2ac
ret 0xc

Function at 0x476af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60be4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x69c108]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov edx, dword [esp + 0x20]
lea eax, [esp + 4]
push edx
push 0x6772d4
push eax
push 8
push 1
push 0x98
push ecx
mov dword [esp + 0x30], 1
call fcn.005eea97
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.005eae6a
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.005eb0f5
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x50a7cf
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
xor edx, edx
mov al, 1
shl al, cl
inc ecx
dec edx
cmp edx, 0xfffffff8
mov byte [ecx + 0x6a1397], al
mov byte [edx + 0x6b23d8], al
not al
mov byte [ecx + 0x6b13c7], al
jg 0x50a7d3
xor ecx, ecx
mov dl, cl
mov al, cl
shl dl, 4
shr al, 4
xor al, dl
and al, 0xf
xor al, dl
mov dl, al
shl dl, 2
shr al, 2
xor al, dl
and al, 0x33
xor al, dl
mov dl, al
add dl, dl
shr al, 1
xor al, dl
and al, 0x55
xor al, dl
mov byte [ecx + 0x6a1238], al
inc ecx
cmp ecx, 0x100
jl 0x50a7f4
push ebx
push ebp
push esi
push edi
push 7
mov esi, 0x6a1358
pop edi
mov edx, 0xff
mov ecx, edi
xor eax, eax
sar edx, cl
or bl, 0xff
mov ecx, eax
shl bl, cl
and bl, dl
mov byte [esi + eax], bl
inc eax
cmp eax, 8
jl 0x50a844
dec edi
add esi, 8
cmp edi, 0xffffffff
jg 0x50a839
xor esi, esi
mov eax, esi
xor ecx, ecx
shl eax, 3
lea edi, [eax + 0x6b13d7]
mov ebp, edi
xor edx, edx
inc edx
shl edx, cl
test esi, edx
setne dl
mov byte [ebp], dl
inc ecx
dec ebp
cmp ecx, 8
jl 0x50a870
lea ecx, [eax + 0x6b13d2]
xor edx, edx
mov dh, byte [ecx + 1]
mov dl, byte [ecx]
movzx ebx, byte [ecx - 1]
movzx ecx, byte [ecx - 2]
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x6b13d6]
mov dword [eax + 0x6b1bd0], edx
mov ch, byte [edi]
movzx edx, byte [eax + 0x6b13d5]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x6b13d4]
shl ecx, 8
or ecx, edx
inc esi
cmp esi, 0x100
mov dword [eax + 0x6b1bd4], ecx
jl 0x50a861
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x50f409
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
dec ecx
je 0x50f4e7
dec ecx
je 0x50f4a7
dec ecx
je 0x50f48d
dec ecx
je 0x50f46f
dec ecx
je 0x50f435
xor eax, eax
jmp 0x50f4fa
test byte [eax + 0x14c], 1
je 0x50f42e
mov edi, dword [ebp + 0xc]
push edi
push 0
push dword [ebp + 8]
call fcn.005d2100
mov eax, dword [esi + 4]
add esp, 0xc
add dword [eax + 0x1c], edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
cmp ecx, edx
ja 0x50f464
mov ecx, edx
mov dword [eax + 0x20], ecx
xor eax, eax
inc eax
jmp 0x50f4fa
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
jmp 0x50f4fa
mov ecx, dword [eax + 0x130]
test ecx, ecx
je 0x50f42e
push dword [eax + 0x14c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ecx
jmp 0x50f4fa
cmp byte [eax + 0x129], 0
mov edi, dword [ebp + 0xc]
mov edx, dword [eax + 0x1c]
je 0x50f4bb
mov ecx, dword [eax + 0x20]
jmp 0x50f4be
mov ecx, dword [eax + 0x18]
sub ecx, edx
cmp ecx, edi
jae 0x50f4c6
mov edi, ecx
test edi, edi
jbe 0x50f4e3
mov eax, dword [eax + 0x14]
push edi
add eax, edx
push eax
push dword [ebp + 8]
call dword [0x6a1344]
mov eax, dword [esi + 4]
add esp, 0xc
add dword [eax + 0x1c], edi
mov eax, edi
jmp 0x50f4fa
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005d0768
add esp, 0x10
pop edi
pop esi
leave
ret 8
Function at 0x50f7d2
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esi], ebx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x10]
dec ecx
je 0x50f844
dec ecx
je 0x50f832
dec ecx
je 0x50f818
dec ecx
je 0x50f7f8
dec ecx
je 0x50f83a
xor al, al
jmp 0x50f868
cmp byte [eax + 0x129], bl
je 0x50f809
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [edi + 4]
push ebx
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x50f864
mov ecx, dword [eax + 0x140]
cmp ecx, ebx
je 0x50f7f4
push esi
push dword [eax + 0x14c]
call ecx
test eax, eax
setne al
jmp 0x50f868
cmp byte [eax + 0x129], bl
je 0x50f83f
mov eax, dword [eax + 0x20]
jmp 0x50f864
mov eax, dword [eax + 0x18]
jmp 0x50f864
cmp byte [eax + 0x129], bl
je 0x50f855
push dword [eax + 8]
call fcn.005d28e0
pop ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push dword [eax + 0x10]
call fcn.005d2856
pop ecx
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
ret 4

Function at 0x50f880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp byte [eax + 0x129], 0
je 0x50f8ae
mov ecx, dword [eax + 0x10]
dec ecx
je 0x50f97a
dec ecx
je 0x50f935
dec ecx
je 0x50f911
dec ecx
je 0x50f8d6
dec ecx
je 0x50f8b5
xor al, al
jmp 0x50f996
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
add dword [eax + 0x1c], ecx
mov edi, dword [edi + 4]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
cmp eax, ecx
ja 0x50f8ce
mov eax, ecx
mov dword [edi + 0x20], eax
jmp 0x50f976
mov esi, dword [ebp + 0xc]
and dword [ebp - 4], 0
imul esi, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push 0
push ecx
push esi
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [ebp - 4], esi
jne 0x50f90a
test al, al
je 0x50f90a
xor eax, eax
inc eax
jmp 0x50f996
xor eax, eax
jmp 0x50f996
mov ecx, dword [eax + 0x134]
test ecx, ecx
je 0x50f8ae
push dword [eax + 0x14c]
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call ecx
test eax, eax
setne al
jmp 0x50f996
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
imul esi, dword [ebp + 0x10]
lea edx, [ecx + esi]
cmp edx, dword [eax + 0x18]
jae 0x50f8ae
mov eax, dword [eax + 0x14]
push esi
push dword [ebp + 8]
add eax, ecx
push eax
call dword [0x6a1344]
mov eax, dword [edi + 4]
add esp, 0xc
add dword [eax + 0x1c], esi
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
cmp ecx, edx
ja 0x50f973
mov ecx, edx
mov dword [eax + 0x20], ecx
mov al, 1
jmp 0x50f996
push dword [eax + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005d2a46
sub eax, dword [ebp + 0x10]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x51f42c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
cmp dword [ebp + 8], edx
jne 0x51f43d
xor eax, eax
jmp 0x51f52a
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
imul esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
add esi, dword [ebp + 8]
push edi
mov edi, ebx
push 8
sub eax, ebx
and edi, 7
pop ecx
inc eax
sub ecx, edi
cmp ecx, eax
mov dword [ebp + 8], ecx
jb 0x51f467
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 8
jne 0x51f470
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 0x18]
and ecx, 7
inc ecx
cmp ecx, eax
mov dword [ebp + 0xc], ecx
jb 0x51f481
mov dword [ebp + 0xc], eax
mov ecx, ebx
xor ecx, dword [ebp + 0x18]
test ecx, 0xfffffff8
jne 0x51f491
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 8]
add ecx, ebx
cmp ebx, ecx
mov dword [ebp + 0x10], ecx
jae 0x51f4c5
mov edi, ebx
mov ecx, ebx
not edi
shr ecx, 3
and edi, 7
add ecx, esi
cmp dword [ebp + 0x1c], 0
mov dl, byte [edi + 0x6a1398]
je 0x51f4bb
or byte [ecx], dl
jmp 0x51f4bf
not dl
and byte [ecx], dl
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x51f49d
xor edi, edi
cmp eax, 8
jbe 0x51f4f7
sub eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
shr eax, 3
mov edi, eax
je 0x51f4f7
mov eax, dword [ebp + 0x1c]
push edi
neg eax
sbb eax, eax
and eax, 0xff
push eax
mov eax, ebx
shr eax, 3
add eax, esi
push eax
call fcn.005d2100
add esp, 0xc
lea edx, [ebx + edi*8]
jmp 0x51f51f
mov ecx, edx
mov eax, edx
not ecx
shr eax, 3
and ecx, 7
add eax, esi
cmp dword [ebp + 0x1c], 0
mov cl, byte [ecx + 0x6a1398]
je 0x51f51a
or byte [eax], cl
jmp 0x51f51e
not cl
and byte [eax], cl
inc edx
cmp edx, dword [ebp + 0x18]
jb 0x51f4fc
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
pop ebp
ret 0x18
Function at 0x52cc8f
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x120
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x52ccb3
push eax
call fcn.0053dcb0
push 2
call fcn.0053dc40
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.005d2100
add esp, 0xc
pop edi
pop esi
ret

Function at 0x53b76e
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x53b79b
push esi
call fcn.00539707
cmp byte [esi + 0x40], 0
pop ecx
je 0x53b794
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x53b80a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x53b7ff
mov eax, dword [esi + 8]
test eax, eax
je 0x53b7bc
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x53b7fb
cmp eax, 2
je 0x53b7ff
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x53b7b1
cmp eax, 3
je 0x53b7e0
cmp eax, 1
jne 0x53b7b1
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x53b7b1
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x53b7b1
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x53b828
cmp eax, 0xcc
je 0x53b828
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.0053b831
pop ecx
pop esi
ret

Function at 0x541e9e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [esp + 8], 0
jne 0x541ea8
xor eax, eax
ret
jmp fcn.00541ead
Function at 0x56b820
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
cld
invalid
jmp [ebp - 0x3a]
test dword [ebx + 0x40fffffc], edi
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0056b008
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0056afbd
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax

Function at 0x56da30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, ebp
push esi
shr eax, 5
inc eax
push edi
cmp ebp, eax
mov edx, ebp
mov esi, ebp
jb 0x56da66
xor ecx, ecx
mov edi, edx
mov cl, byte [ebx + esi - 1]
sub esi, eax
shl edi, 5
add ecx, edi
mov edi, edx
shr edi, 2
add ecx, edi
xor edx, ecx
cmp esi, eax
jae 0x56da4a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x56da98
cmp dword [eax + 0xc], ebp
jne 0x56da92
mov esi, ebx
mov ecx, ebp
lea edi, [eax + 0x10]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x56daa8
mov ebx, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x56da7c
mov ecx, dword [esp + 0x14]
push edx
push ebp
push ebx
push ecx
call fcn.0056dab0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5ff922
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5ff94a
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5ff95b
push 2
call edi
test ax, ax
jge 0x5ff95b
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005ebc1f
cmp dword [esi + 0x30], ebx
jne 0x5ffa35
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005ebc1f
cmp eax, dword [esp + 0x34]
jne 0x5ffa35
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5ff9d1
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5ffa16
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5ffa35
cmp eax, 0x205
je 0x5ffa35
cmp eax, 0x201
je 0x5ffa35
cmp eax, 0x204
je 0x5ffa35
cmp eax, ebx
jne 0x5ff9fc
cmp dword [esp + 0x1c], 0x1b
je 0x5ffa35
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x6dbb5c]
jbe 0x5ffa2b
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5ff98e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4

Function at 0x401199
Capabilities:
Accept command line arguments
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 4], 4
mov esi, eax
jl 0x40124a
mov eax, dword [esi + 4]
cmp word [eax], 0x31
jne 0x4011e5
mov dword [section..data], 0x7f01
mov dword [0x402004], 0x10
mov eax, dword [esi + 8]
mov dword [0x402010], eax
mov eax, dword [esi + 0xc]
mov dword [0x40200c], eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40121b
push 0x8050
push edi
push edi
push 1
push dword [esi + 0x10]
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x402008], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 5
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0x401096
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40fd80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46af0b
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.0045fb36
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40fe02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045da4d
mov eax, dword [eax]
push 0x6761c0
push eax
call fcn.004508b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045fdc1
test bl, bl
je 0x40fe02
push 0x6761c0
lea ecx, [esp + 0xc]
call fcn.00460151
push 0x679d2c
lea ecx, [esp + 0xc]
call fcn.00460151
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 0x40fe3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045fdc1
jmp 0x40ff09
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 0x40fec2
lea edx, [esp + 0x7c]
push 0x679d28
push edx
call fcn.004508b4
add esp, 8
test eax, eax
je 0x40fec2
lea eax, [esp + 0x7c]
push 0x679d24
push eax
call fcn.004508b4
add esp, 8
test eax, eax
je 0x40fec2
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 0x40fe52
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.0045fdc1
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 0x410700
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 0x410762
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 0x410770
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46af8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6801d0]
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 0x4108a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4107d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045fdc1
xor eax, eax
jmp 0x41091f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045fefe
push esi
lea ecx, [esp + 0xc]
call fcn.0046018d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4108fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00410700
test eax, eax
jne 0x4108fd
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 accept
mov ecx, edi
call fcn.00410700
test eax, eax
jne 0x4108fd
lea eax, [esp + 0x14]
push 0x679d40
push eax
call fcn.004518f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4108dc
lea ecx, [esp + 0x14]
push 0x679d3c
push ecx
call fcn.00451870
mov esi, eax
add esp, 8
test esi, esi
jne 0x4108dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4108df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045feae
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4107ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045fdc1
xor eax, eax
jmp 0x41091f
mov byte [esi], 0
push 0x679d38
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.0045fdc1
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