joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10088dad
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100e6440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0x50
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x10088e1d
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x10088e1c
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x10088e1c
push esi
xor esi, esi
cmp esi, 0x28
jge 0x10088e1b
mov eax, dword [esi + ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10088e02
mov ecx, dword [edi + 0xc]
add esi, 4
add ebx, 0x10
cmp dword [esi + ecx], 0
jne 0x10088dee
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1008a872
leave
ret 4

Function at 0x10088e54
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100e6440]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
jne 0x10088e73
or eax, 0xffffffff
jmp 0x10088ece
push esi
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0x14]
push 2
mov dword [ebp - 0x10], eax
pop eax
mov word [ebp - 0x14], ax
push 0
movzx eax, si
mov esi, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.1008a492
add esp, 0x10
inc esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x100ee9f0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x10088ea3
pop esi
cmp eax, 0xffffffff
je 0x10088ec8
xor eax, eax
jmp 0x10088ece
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1008a872
leave
ret 0x14

Function at 0x1008a492
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov dl, bl
mov ecx, ebx
push edi
mov edi, dword [esp + 0x10]
test esi, esi
jle 0x1008a4b3
mov al, byte [ecx + edi]
and al, 0xaa
xor dl, al
inc ecx
cmp ecx, esi
jl 0x1008a4a7
push esi
push edi
push 0x100ee9f1
mov byte [0x100ee9f0], dl
call fcn.1008d330
add esp, 0xc
test esi, esi
jle 0x1008a4fb
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ebx + 0x100ee9f1]
mov al, byte [eax + 0x100e6338]
mov byte [ebx + 0x100ee9f1], al
test ecx, ecx
je 0x1008a4f3
xor al, byte [esp + 0x18]
xor al, 0xcc
mov byte [ebx + 0x100ee9f1], al
xor ecx, 1
inc ebx
cmp ebx, esi
jl 0x1008a4d0
pop edi
pop esi
pop ebx
ret

Function at 0x1008aac0
Capabilities:
Enumerate pe sections

Disassembly:
cmp dword [0x1010fd48], 6
jl 0x1008aada
vmovd xmm0, ecx
vpinsrd xmm0, xmm0, edx, 1
vcvtqq2pd xmm0, xmm0
ret
movd xmm0, ecx
orps xmm0, xmmword [0x100cd980]
subsd xmm0, qword [0x100cd980]
test edx, edx
je 0x1008ab01
cvtsi2sd xmm1, edx
mulsd xmm1, qword [0x100cd9a0]
addsd xmm0, xmm1
ret
Function at 0x10091cae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1008b4d0
mov eax, dword [0x100e6440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100a277e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10091cf0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10091e4c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1008b360
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10110048]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100a4a65
mov ecx, dword [esi*4 + 0x10110048]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10091e45
cmp eax, dword [ecx + edi + 0x24]
jne 0x10091e45
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10091e45
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100a4a65
add esp, 0x14
test edx, edx
jl 0x10091e45
jg 0x10091dbb
test eax, eax
jb 0x10091e45
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10091e45
jl 0x10091dd5
cmp dword [ebp - 0x1008], eax
ja 0x10091e45
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10091df3
test ebx, ebx
je 0x10091e2c
cmp ecx, edi
jae 0x10091e2c
mov al, byte [ecx]
cmp al, 0xd
jne 0x10091e0d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10091e19
cmp byte [ecx + 1], 0xa
jne 0x10091e19
inc ecx
jmp 0x10091e19
movzx eax, al
movsx eax, byte [eax + 0x100e6688]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10091df3
cmp edx, ebx
jne 0x10091df3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10091e4a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1008a872
leave
ret

Function at 0x100a07a3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100a07e2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100a07e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a07e2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100a07e2
cmp dword [ecx + 0x74], 0xe
jbe 0x100a07e2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100a1889
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d158c
push 0x100d1584
push str.FlsAlloc
push 0x1f
call fcn.100a16e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a18bd
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b126c]
call esi
jmp 0x100a18c3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100a1907
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d159c
push 0x100d1594
push str.FlsGetValue
push 0x21
call fcn.100a16e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a193e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b126c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100a1946
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d15a4
push 0x100d159c
push str.FlsSetValue
push 0x22
call fcn.100a16e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a1980
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100b126c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100a3d63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10110048]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100a3da3
cmp byte [ebx], 0xa
jne 0x100a3da3
or byte [edi + eax + 0x28], 4
jmp 0x100a3da8
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100a3ea7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100a3e8a
inc eax
cmp dl, 0xd
je 0x100a3dd4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100a3dfa
cmp eax, ecx
jae 0x100a3e08
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100a3dbc
jmp 0x100a3ea7
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a3e85
cmp dword [ebp - 0x10], 0
je 0x100a3e85
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10110048]
test byte [eax + edi + 0x28], 0x48
je 0x100a3e5f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100a3e4a
mov byte [esi], dl
jmp 0x100a3e5b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10110048]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100a3ea7
cmp byte [ebp - 1], 0xa
jne 0x100a3e6e
cmp esi, ebx
jne 0x100a3e6e
mov byte [esi], 0xa
jmp 0x100a3ea6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100a4a83
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100a3ea7
mov byte [esi], 0xd
jmp 0x100a3ea6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10110048]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100a3ea4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100a3ea7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a3eb0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10110048]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100a3ef6
cmp word [ebx], dx
jne 0x100a3ef6
or byte [eax + edi + 0x28], 4
jmp 0x100a3efb
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100a405e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100a403e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100a3f3c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100a3f72
cmp eax, edx
jae 0x100a3f80
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100a3f17
jmp 0x100a405e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a4039
cmp dword [ebp - 0x18], 0
je 0x100a4039
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10110048]
test byte [eax + edi + 0x28], 0x48
je 0x100a400f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100a3fd3
mov word [esi], cx
jmp 0x100a400a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10110048]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10110048]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10110048]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100a405e
pop eax
cmp word [ebp - 4], ax
jne 0x100a401f
cmp esi, ebx
jne 0x100a401f
mov word [esi], ax
jmp 0x100a405b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100a4a83
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100a405e
push 0xd
pop eax
jmp 0x100a401a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10110048]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100a4058
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100a405e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a74d7
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a7459
Function at 0x100a9076
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100a9113
push ebx
push esi
call fcn.100a903f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100a8fd3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a90c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a9112
push edi
push eax
call fcn.100a5039
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a90e0
call fcn.100a155e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a9111
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100a8fd3
add esp, 0x20
test eax, eax
jne 0x100a90ff
push edi
call fcn.100a155e
jmp 0x100a9107
push ebx
call fcn.100a155e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100ad6f1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100ad66d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100ad860
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100ad860
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100ad815
jg 0x100ad74d
test eax, eax
je 0x100ad80b
push 1
push 0x1000
call fcn.100a1501
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100ad770
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100ad802
push 0x8000
push ebx
call fcn.100ad59e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100ad799
jg 0x100ad794
cmp ecx, 0x1000
jb 0x100ad799
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100a3b47
add esp, 0x10
cmp eax, 0xffffffff
je 0x100ad7de
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100ad794
jl 0x100ad7c5
test ecx, ecx
jne 0x100ad786
push dword [ebp - 0xc]
push ebx
call fcn.100ad59e
push esi
call fcn.100a155e
add esp, 0xc
xor ebx, ebx
jmp 0x100ad86e
cmp byte [edi + 0x24], 0
je 0x100ad7f5
cmp dword [edi + 0x20], 5
jne 0x100ad7f5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100ad800
mov ebx, dword [edi + 0x18]
jmp 0x100ad802
xor ebx, ebx
push esi
call fcn.100a155e
pop ecx
jmp 0x100ad86e
test ecx, ecx
jg 0x100ad7d7
jl 0x100ad815
test eax, eax
jae 0x100ad7d7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100a4a83
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100ad835
cmp byte [edi + 0x1c], 0
je 0x100ad7d7
jmp 0x100ad866
push ebx
call fcn.100a9684
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100ad7d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100ad86e
cmp byte [edi + 0x1c], 0
je 0x100ad86b
mov ebx, dword [edi + 0x18]
jmp 0x100ad86e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100a4a83
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100aeca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100aeccd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100aeccd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3a71030c
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x414152c2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x401090
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40330c], eax
mov eax, dword [ebp + 4]
mov dword [0x403159], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403159]
mov dword [ebp - 0x48], eax
mov eax, 0x402291
mov dword [ebp - 0x54], eax
mov ecx, 0x403206
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x403159]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403358], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403358]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401179
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116b
mov esp, ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x50026c9c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x70ff3abb
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x408958
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
or ecx, ecx
sub esi, ecx
call fcn.00408980
xor dword [edx], ebx
and ecx, esi
inc edx
push 0x787a6521
pop ecx
add ecx, 1
cmp edx, edi
jne fcn.00408958
ret
Function at 0x401330
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
cmp dword [0x870670], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
mov ecx, dword [0x451298]
mov edx, dword [0x45129c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
call fcn.00401320
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x4512a0]
mov ecx, dword [0x4512a4]
add ebx, 0x23f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0x20
jmp 0x4013b0
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x870670]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401410
push 0
lea edx, [ebp - 0x430]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
mov eax, dword [ebp - 4]
mov ecx, dword [0x870670]
add eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x40142a
mov dword [0x86fc0c], 0xedeb2e40
jmp 0x40143c
cmp ecx, 0x3eb
jne 0x40143c
mov dword [0x86f5c0], 0
mov ecx, dword [ebp - 0xc]
mov esi, edi
shr esi, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x10], eax
mov dword [0x86fc08], 0xf4ea3dee
add esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
cmp dword [0x870670], 0x9e6
jne 0x401472
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
xor dword [ebp - 4], edx
shr esi, cl
add esi, dword [ebp - 0x2c]
cmp dword [0x870670], 0x121
jne 0x4014d8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, esi
add ebx, 0x61c88647
sub edi, eax
sub dword [ebp - 0x1c], 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
jne 0x4013b0
cmp dword [0x870670], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x40151f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4