joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417b80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x417ba2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417b98
mov eax, 1
add ebx, ebx
jne 0x417bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417bb0
jne 0x417bcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417bb0
xor ecx, ecx
sub eax, 3
jb 0x417be0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417c52
mov ebp, eax
add ebx, ebx
jne 0x417beb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417bf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417c1c
inc ecx
add ebx, ebx
jne 0x417c08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417bfd
jne 0x417c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417bfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417c3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417c2d
jmp 0x417b9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417c3c
add edi, ecx
jmp 0x417b9e
pop esi
mov edi, esi
mov ecx, 0xe0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417c5a
cmp byte [edi], 5
jne 0x417c5a
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 0x417c5f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417cd7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417c8c
mov ecx, edi
jns 0x417cbb
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 + 0x1784c]
or eax, eax
je 0x417cd1
mov dword [ebx], eax
add ebx, 4
jmp 0x417ca9
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x417d0b
sub esp, 0xffffff80
jmp 0x403a20
Function at 0x100072dd
Capabilities:
Send data
Send data on socket

Disassembly:
push 4
mov eax, 0x1000bc13
call fcn.1000b45c
push 0x10
call fcn.1000a3c3
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov ecx, eax
call fcn.1000517b
mov esi, eax
push 0xa8
mov ecx, esi
call fcn.100051a3
push 1
call fcn.100051a3
call fcn.100051ef
mov ecx, esi
call fcn.10008b98
mov ecx, dword [esi + 0xc]
push 0
movzx eax, word [ecx]
add eax, 2
push eax
push ecx
push dword [0x100107a0]
call dword [sym.imp.WS2_32.dll_send]
push dword [esi + 0xc]
call fcn.1000a4d9
push 0x10
push esi
call fcn.1000a3f3
add esp, 0xc
call fcn.1000b439
ret 8

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

Disassembly:
push 4
mov eax, 0x1000bc13
call fcn.1000b45c
push 0x10
call fcn.1000a3c3
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov ecx, eax
call fcn.1000517b
mov esi, eax
push 0x6e
mov ecx, esi
call fcn.100051a3
movzx ecx, word [0x10010738]
push ecx
mov ecx, esi
call fcn.100051c7
movzx ecx, word [0x1001073c]
push ecx
mov ecx, esi
call fcn.100051c7
movzx eax, word [0x10010784]
push eax
call fcn.100051c7
movzx eax, word [0x10010780]
push eax
call fcn.100051c7
call fcn.100051ef
mov ecx, esi
call fcn.10008b98
mov ecx, dword [esi + 0xc]
push 0
movzx eax, word [ecx]
add eax, 2
push eax
push ecx
push dword [0x100107a0]
call dword [sym.imp.WS2_32.dll_send]
push dword [esi + 0xc]
call fcn.1000a4d9
push 0x10
push esi
call fcn.1000a3f3
add esp, 0xc
call fcn.1000b439
ret
Function at 0x100083b6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0x40
push dword [ebp + 8]
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 8], 2
jne 0x100083dc
mov word [esi], bx
jmp 0x100083e4
cmp dword [ebp + 8], 1
jne 0x100083e4
mov byte [esi], bl
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
leave
ret

Function at 0x100083f9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
mov ebx, edx
push eax
mov esi, ecx
push 0x40
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push dword [ebp - 4]
call esi
pop esi
pop ebx
leave
ret

Function at 0x10008b98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x719d78]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x719d7c]
xor ebx, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [0x719d80]
cmp dword [edi + 8], 2
mov esi, dword [edi]
sete bl
mov dword [ebp - 0x20], eax
mov eax, dword [0x719d84]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
lea ebx, [ebx*4 + 2]
add esi, ebx
mov dword [ebp - 0x14], ebx
mov ecx, esi
mov dword [ebp - 8], esi
and ecx, 0x80000007
jns 0x10008bf1
dec ecx
or ecx, 0xfffffff8
add ecx, 1
je 0x10008bfd
push 8
pop eax
sub eax, ecx
add esi, eax
mov dword [ebp - 8], esi
mov ecx, dword [edi + 0xc]
mov eax, esi
cdq
add ecx, ebx
and edx, 3
mov dword [ebp - 0xc], ecx
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
test eax, eax
jle 0x10008c91
mov edi, dword [ecx + edx*4]
xor esi, esi
mov ebx, dword [ecx + edx*4 + 4]
push 0x20
pop edx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 3
add ecx, ebx
mov eax, dword [ebp + eax*4 - 0x28]
add eax, esi
sub esi, 0x61c88647
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xd
add ecx, edi
and eax, 3
mov eax, dword [ebp + eax*4 - 0x28]
add eax, esi
xor ecx, eax
add ebx, ecx
sub edx, 1
jne 0x10008c28
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + edx*4], edi
mov dword [ecx + edx*4 + 4], ebx
add edx, 2
mov dword [ebp - 4], edx
cmp edx, dword [ebp - 0x10]
jl 0x10008c1c
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0xc]
lea ecx, [ebx - 2]
add ecx, esi
mov word [eax], cx
mov dword [edi], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008ca3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x719d78]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x719d7c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x719d80]
mov dword [ebp - 0x14], eax
mov eax, dword [0x719d84]
mov dword [ebp - 0x10], eax
mov eax, edx
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jle 0x10008d5b
push ebx
push edi
mov edi, dword [esi + edx*4 + 2]
mov ebx, dword [esi + edx*4 + 6]
mov esi, 0xc6ef3720
push 0x20
pop edx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xd
add ecx, edi
and eax, 3
mov eax, dword [ebp + eax*4 - 0x1c]
add eax, esi
add esi, 0x61c88647
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 3
add ecx, ebx
mov eax, dword [ebp + eax*4 - 0x1c]
add eax, esi
xor ecx, eax
sub edi, ecx
sub edx, 1
jne 0x10008cf8
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [esi + edx*4 + 2], edi
mov dword [esi + edx*4 + 6], ebx
add edx, 2
mov dword [ebp - 4], edx
cmp edx, dword [ebp - 0xc]
jl 0x10008ce8
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100099e7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10009a0a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x10009ac5
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x10009a30
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10009a35
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x10009ab9
jg 0x10009a4a
test esi, esi
je 0x10009ab9
test ecx, ecx
jl 0x10009a9b
jg 0x10009a54
test eax, eax
je 0x10009a9b
cmp edi, ecx
jg 0x10009a66
jl 0x10009a5e
cmp esi, eax
jae 0x10009a66
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10009ab9
jg 0x10009a9e
test esi, esi
je 0x10009ab9
jmp 0x10009a9e
mov edx, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x10009ab9
push dword [ebx + 0x4c]
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10009aca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
jg 0x10009aec
jl 0x10009ae3
test edi, edi
jne 0x10009aec
xor eax, eax
xor edx, edx
jmp 0x10009bbb
cmp dword [ecx + 0x38], 0
je 0x10009b02
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x10009bbb
mov eax, dword [ecx + 0x1c]
push esi
mov esi, edi
mov edx, dword [eax]
test edx, edx
je 0x10009b4d
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x10009b4d
cmp eax, edi
jb 0x10009b23
mov eax, edi
mov dword [ebp + 0x10], edi
mov esi, dword [ebp + 8]
push eax
push edx
push esi
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add esi, edx
mov dword [ebp + 8], esi
mov esi, edi
sub esi, edx
mov eax, dword [ecx + 0x2c]
sub dword [eax], edx
mov eax, dword [ecx + 0x1c]
add dword [eax], edx
jmp 0x10009b53
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ecx + 0x4c], 0
je 0x10009bb1
call fcn.1000a110
mov edx, dword [ebp + 8]
mov eax, esi
cmp esi, 0xfff
jbe 0x10009b9b
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp + 8]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub esi, eax
mov dword [ebp + 8], edx
cmp eax, ecx
jne 0x10009bb1
cmp esi, ecx
mov ecx, dword [ebp - 4]
ja 0x10009b6b
mov eax, esi
test eax, eax
je 0x10009bb1
push dword [ecx + 0x4c]
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sub edi, esi
mov eax, edi
sbb ebx, 0
mov edx, ebx
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x10009e3a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10010040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10009e5d
xor eax, eax
jmp 0x10009f26
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10009e89
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10009e89
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x10009f1e
cmp dword [esi + 0x4c], 0
je 0x10009f22
mov ecx, esi
call fcn.1000a110
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10009ea6
movsx eax, bl
jmp 0x10009edf
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10009ef4
sub eax, 1
je 0x10009ef4
dec eax
sub eax, 1
jne 0x10009f22
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x10009f1e
or ebx, eax
jmp 0x10009f1e
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10009f12
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10009f22
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x10009f22
mov eax, ebx
jmp 0x10009f25
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a3b5
leave
ret 4
Function at 0x1000a133
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10010040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x1000a18b
cmp byte [esi + 0x3d], bl
je 0x1000a18b
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000a1c5
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x1000a19c
sub eax, 1
je 0x1000a19f
dec eax
sub eax, 1
jne 0x1000a1c5
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a3b5
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000a1bd
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1000a1c5
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1000a18d
xor al, al
jmp 0x1000a18d
Function at 0x10009300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x1008c880]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0x2075f4d2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
sub eax, 0x579bf5f
je 0x1000945e
jmp 0x1000933c
mov eax, dword [ebp - 0x28]
sub eax, 0xfd45f2d
je 0x100093f8
jmp 0x1000934f
mov eax, dword [ebp - 0x28]
sub eax, 0x2075f4d2
je 0x1000938d
jmp 0x10009362
mov eax, dword [ebp - 0x28]
sub eax, 0x479c2dc6
je 0x10009452
jmp 0x10009375
mov eax, dword [ebp - 0x28]
sub eax, 0x48757275
je 0x100094ab
jmp 0x10009388
jmp 0x100094b8
mov ecx, dword [0x1008dd8c]
mov eax, dword [0x1008dd88]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x48757275
mov ecx, 0xfd45f2d
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x100094b8
mov eax, dword [ebp - 0x24]
push eax
mov ecx, esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x1008dd8c]
mov ecx, dword [0x1008dd88]
mov edx, eax
sub edx, 0x4635a382
sub edx, 1
add edx, 0x4635a382
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x48757275
mov ecx, 0x479c2dc6
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x100094b8
mov dword [ebp - 0x1c], 0x579bf5f
jmp 0x100094b8
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0x14]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x63
sub byte [edi], 0x27
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x10009478
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10026930
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0xfd45f2d
jmp 0x10009326
Function at 0x1002b94a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002b989
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002b989
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002b989
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002b989
cmp dword [ecx + 0x74], 0xe
jbe 0x1002b989
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002e314
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 0x1002e3b1
push ebx
push esi
call fcn.1002e2dd
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.1002e271
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002e35e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002e3b0
push edi
push eax
call fcn.1002cc12
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002e37e
call fcn.1002cc60
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002e3af
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002e271
add esp, 0x20
test eax, eax
jne 0x1002e39d
push edi
call fcn.1002cc60
jmp 0x1002e3a5
push ebx
call fcn.1002cc60
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 0x1002e61e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10036450
push 0x10036448
push str.FlsAlloc
push 0x1f
call fcn.1002e53a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002e652
push dword [ebp + 8]
mov ecx, esi
call dword [0x10034150]
call esi
jmp 0x1002e658
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002e69c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10036460
push 0x10036458
push str.FlsGetValue
push 0x21
call fcn.1002e53a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002e6d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10034150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002e6db
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10036468
push 0x10036460
push str.FlsSetValue
push 0x22
call fcn.1002e53a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002e715
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10034150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10033c20
Capabilities:
Parse pe header

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, str.xy2.exe
push esi
push 0x10091514
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x10002070
push 0x10090ec0
push 1
pop ebx
push ebx
push 0x10090f70
push 0x10091618
call fcn.10004eef
push 0x100918f0
call fcn.10005639
add esp, 0x14
call fcn.1000546a
test eax, eax
jne 0x10002070
push edi
call dword [sym.imp.MSVCRT.dll__getpid]
push eax
push 0x10001ce9
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.100026fa
mov edi, eax
call fcn.100047a7
push 0x10001d63
call fcn.10003be4
and byte [ebp - 8], 0
pop ecx
push ebx
push 9
lea eax, [ebp - 0xc]
push 9
push eax
push esi
mov ecx, edi
mov byte [ebp - 0xc], 0xc6
mov byte [ebp - 0xb], 0x44
mov byte [ebp - 0xa], 0x24
mov byte [ebp - 9], 0x28
mov byte [ebp - 7], 0x8d
mov byte [ebp - 6], 0x4c
mov byte [ebp - 5], 0x24
mov byte [ebp - 4], 0x10
call fcn.1000249c
test eax, eax
jbe 0x10001f8c
push 0x100018d0
push eax
mov ecx, edi
call fcn.100020c5
push ebx
push 0
lea eax, [ebp - 0x10]
push 0xd
push eax
push esi
mov ecx, edi
mov byte [ebp - 0x10], 0x8b
mov byte [ebp - 0xf], 0xc3
mov byte [ebp - 0xe], 0xc1
mov byte [ebp - 0xd], 0xe0
mov byte [ebp - 0xc], 9
mov byte [ebp - 0xb], 3
mov byte [ebp - 0xa], 0xc2
mov byte [ebp - 9], 0x50
mov byte [ebp - 8], 0x8d
mov byte [ebp - 7], 0x4c
mov byte [ebp - 6], 0x24
mov byte [ebp - 5], 0x10
mov byte [ebp - 4], 0x51
call fcn.1000249c
test eax, eax
jbe 0x10001fe2
push 0x10001712
push eax
mov ecx, edi
call fcn.100022bd
push ebx
push 7
lea eax, [ebp - 0xc]
push 7
push eax
push esi
mov ecx, edi
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], 0xd8
mov byte [ebp - 0xa], 0x53
mov byte [ebp - 9], 0x8b
mov byte [ebp - 8], 0xd7
mov byte [ebp - 7], 0x8b
mov byte [ebp - 6], 0xc6
call fcn.1000249c
test eax, eax
jbe 0x10002020
push 0x10001355
push eax
mov ecx, edi
call fcn.100020c5
push ebx
push 0xb
lea eax, [ebp - 0xc]
push 6
push eax
push esi
mov ecx, edi
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], 0x4e
mov byte [ebp - 0xa], 0xc
mov byte [ebp - 9], 0x55
mov byte [ebp - 8], 3
mov byte [ebp - 7], 0xcf
call fcn.1000249c
test eax, eax
jbe 0x1000205a
push 0x10001acd
push eax
mov ecx, edi
call fcn.100022bd
push 0x100015d7
push 0x13e7195
mov ecx, edi
call fcn.100020c5
mov eax, ebx
pop edi
jmp 0x10002072
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x10002478
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
test edx, edx
je 0x10002499
cmp word [edx], 0x5a4d
jne 0x10002499
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x10002499
mov eax, dword [ecx + 0x50]
ret 4