joyce8/EMBER2024-capa huggingface dataset:
Function at 0x130d87d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.13020d10
mov eax, dword [0x13147f14]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push esi
mov esi, dword [esp + 0x44]
mov ebx, edx
lea edx, [esi - 1]
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
cmp edx, 0x7f
ja 0x130d8989
mov edx, dword [edi]
mov dword [esp + 0x18], edx
mov edx, dword [edi + 4]
push ebp
mov dword [esp + 0x20], edx
mov edx, dword [edi + 8]
push eax
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0xc]
push edi
push edi
mov dword [esp + 0x34], edx
call ecx
lea eax, [esi + 7]
cdq
and edx, 7
add eax, edx
mov esi, eax
add esp, 0xc
sar esi, 3
cmp dword [esp + 0x58], 0
je 0x130d8877
test esi, esi
jle 0x130d88be
mov eax, dword [esp + 0x14]
mov edx, edi
lea ebp, [esp + 0x2c]
sub edx, ebx
sub ebp, ebx
sub eax, ebx
mov ecx, ebx
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov al, byte [edx + ecx]
xor al, byte [ecx]
mov ebx, dword [esp + 0x14]
mov byte [ecx + ebp], al
mov byte [ebx + ecx], al
inc ecx
sub esi, 1
jne 0x130d8860
jmp 0x130d88be
xor ebp, ebp
test esi, esi
jle 0x130d88be
lea eax, [esp + 0x2c]
mov ecx, eax
sub ebx, eax
mov eax, dword [esp + 0x14]
mov edx, edi
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jmp 0x130d88a4
mov edx, dword [esp + 0x18]
lea ecx, [esp + ebp + 0x2c]
mov al, byte [ebx + ecx]
mov dl, byte [edx + ecx]
xor dl, al
mov byte [ecx], al
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, esi
mov byte [eax + ecx], dl
jl 0x130d88a0
mov eax, dword [esp + 0x4c]
mov ecx, eax
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x130d88d1
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x130d8912
mov ecx, dword [esp + eax + 0x1c]
mov edx, dword [esp + eax + 0x20]
lea eax, [esp + eax + 0x1c]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 0xc]
pop ebp
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.130222cb
add esp, 0x34
ret
mov dl, 8
sub dl, cl
mov byte [esp + 0x13], dl
inc edi
lea esi, [esp + eax + 0x1d]
mov ebp, 4
movzx edx, byte [esi - 1]
mov al, byte [esi]
shl dl, cl
movzx ecx, byte [esp + 0x13]
mov bl, al
shr bl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
movzx ecx, byte [esp + 0x13]
or dl, bl
mov byte [edi - 1], dl
mov dl, byte [esi + 1]
mov bl, dl
shr bl, cl
mov ecx, dword [esp + 0x14]
shl dl, cl
movzx ecx, byte [esp + 0x13]
or al, bl
mov byte [edi], al
mov al, byte [esi + 2]
mov bl, al
shr bl, cl
movzx ecx, byte [esp + 0x13]
or dl, bl
mov byte [edi + 1], dl
movzx edx, byte [esi + 3]
shr dl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
add esi, 4
add edi, 4
or dl, al
sub ebp, 1
mov byte [edi - 2], dl
jne 0x130d8924
pop ebp
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.130222cb
add esp, 0x34
ret
Function at 0x130d8a90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.13020d10
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x28]
test esi, esi
je 0x130d8ad5
test ebx, ebx
je 0x130d8ad5
mov cl, byte [esi + edi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc esi
dec ebx
and esi, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
jne 0x130d8ab0
cmp ebx, 0x10
jb 0x130d8b50
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, ebx
shr eax, 4
mov ebp, ecx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebp, edi
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
push edx
push edi
push edi
call dword [esp + 0x3c]
add esp, 0xc
cmp esi, 0x10
jae 0x130d8b3c
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
sub ecx, 1
mov dword [eax + ebp - 4], edx
jne 0x130d8b27
add dword [esp + 0x20], 0x10
sub ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x130d8b06
test ebx, ebx
je 0x130d8b8d
mov eax, dword [esp + 0x24]
push eax
push edi
push edi
call dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esi + edi]
sub ebp, edi
sub ecx, edi
add esi, ebx
mov dl, byte [eax + ebp]
xor dl, byte [eax]
dec ebx
mov byte [eax + ecx], dl
inc eax
test ebx, ebx
jne 0x130d8b73
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x130f4d90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.13020d10
mov edx, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
inc edx
mov dword [esp + 8], edx
cmp eax, 0xfeff
je 0x130f4dc8
cmp eax, 0x100
je 0x130f4dc8
mov esi, dword [esp + 0x14]
cmp edx, dword [esi + 4]
jbe 0x130f4de4
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
add edx, ecx
cmp edx, eax
ja 0x130f4dc2
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
test dword [edi + 0x100], 0x200
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push ebx
movzx ebx, byte [eax + ecx - 1]
push ebp
mov dword [esp + 0x24], ebx
je 0x130f4e4e
cmp dword [edi + 0x88], 0
jne 0x130f4e4e
mov edx, dword [edi + 0x58]
mov ecx, 8
mov eax, 0x131339ac
add edx, ecx
sub edx, eax
jmp 0x130f4e20
mov ebp, dword [edx + eax]
cmp ebp, dword [eax]
jne 0x130f4e3d
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x130f4e20
test bl, 1
jne 0x130f4e3d
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov edx, dword [edi + 0x58]
test byte [edx], 8
je 0x130f4e4e
test ebx, ebx
jbe 0x130f4e4e
dec ebx
mov dword [esp + 0x24], ebx
mov edx, dword [esi + 4]
mov eax, edx
sub eax, ebx
sub eax, dword [esp + 0x10]
mov ecx, 0xff
not eax
lea edi, [edx - 1]
sar eax, 0x1f
cmp edi, ecx
jae 0x130f4e6c
mov ecx, edi
test ecx, ecx
jbe 0x130f4ea4
mov edi, dword [esi + 0xc]
mov ebp, ebx
lea edi, [edi + edx - 1]
mov dword [esp + 0x18], ecx
lea ecx, [ecx]
movzx ebx, byte [edi]
xor ebx, dword [esp + 0x24]
mov ecx, ebp
not ecx
sar ecx, 0x1f
movzx ecx, cl
and ecx, ebx
not ecx
and eax, ecx
dec edi
dec ebp
sub dword [esp + 0x18], 1
jne 0x130f4e80
mov ebx, dword [esp + 0x24]
mov ecx, eax
shr ecx, 4
and eax, ecx
mov ecx, eax
shr ecx, 2
and eax, ecx
lea ecx, [eax + eax]
and ecx, eax
shl ecx, 0x1e
sar ecx, 0x1f
lea eax, [ebx + 1]
and eax, ecx
sub edx, eax
shl eax, 8
or dword [esi], eax
pop ebp
mov eax, ecx
pop ebx
and eax, 1
not ecx
pop edi
mov dword [esi + 4], edx
or eax, ecx
pop esi
pop ecx
ret
Function at 0x130f4ee0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x98
call fcn.13020d10
mov eax, dword [0x13147f14]
xor eax, esp
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb0]
push edi
mov edi, dword [ecx + 4]
mov dword [esp + 0x10], edi
sub edi, esi
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
cmp dword [esp + 0xb8], esi
jae 0x130f4f44
push str.orig_len___md_size
push 0x10c
push str.._ssl_s3_cbc.c
call fcn.13081270
add esp, 0xc
cmp esi, 0x40
jbe 0x130f4f60
push str.md_size___EVP_MAX_MD_SIZE
push 0x10d
push str.._ssl_s3_cbc.c
call fcn.13081270
add esp, 0xc
mov eax, dword [esp + 0xb8]
lea ebp, [esp + 0x24]
neg ebp
and ebp, 0x3f
lea edx, [esi + 0x100]
lea ebp, [esp + ebp + 0x24]
cmp eax, edx
jbe 0x130f4f88
mov ebx, eax
sub ebx, esi
sub ebx, 0x100
mov eax, esi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, edi
xor edx, edx
div esi
push esi
push 0
push ebp
mov edi, edx
mov dword [esp + 0x28], edi
call fcn.1301f940
add esp, 0xc
xor ecx, ecx
cmp ebx, dword [esp + 0xb8]
jae 0x130f5025
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb8]
mov edi, ebx
sub edi, edx
sub edx, dword [esp + 0x14]
sub eax, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x130f4fe8
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov bl, byte [ebx]
mov eax, edi
not eax
sar eax, 0x1f
add edx, edi
not al
and al, bl
not edx
sar edx, 0x1f
and al, dl
or byte [ecx + ebp], al
mov edx, 1
add dword [esp + 0x18], edx
add ecx, edx
mov eax, ecx
sub eax, esi
sar eax, 0x1f
and ecx, eax
add edi, edx
sub dword [esp + 0x10], edx
jne 0x130f4fe4
mov edi, dword [esp + 0x1c]
xor eax, eax
test esi, esi
jbe 0x130f5051
jmp 0x130f5030
mov ecx, edi
xor ecx, 0x20
mov dl, byte [ecx + ebp]
mov cl, byte [edi + ebp]
mov edx, dword [esp + 0x20]
mov byte [edx + eax], cl
inc edi
mov ecx, edi
sub ecx, esi
sar ecx, 0x1f
inc eax
and edi, ecx
cmp eax, esi
jb 0x130f5030
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.130222cb
add esp, 0x98
ret
Function at 0x130f5ef0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.13020d10
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
xor ebp, ebp
push ebp
xor edi, edi
call fcn.130eb520
add esp, 0xc
test eax, eax
je 0x130f5f49
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
shl edx, 8
test eax, edx
je 0x130f5f31
inc edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
inc ebp
push ebp
call fcn.130eb520
add esp, 0xc
test eax, eax
jne 0x130f5f21
mov eax, dword [esp + 0x4c]
cdq
idiv edi
mov edi, dword [esp + 0x48]
push esi
push 0
mov ebp, eax
mov eax, dword [esp + 0x58]
push eax
call fcn.1301f940
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x60], 0
call fcn.130eb520
add esp, 0x18
test eax, eax
je 0x130f6038
jmp 0x130f5f90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
shl eax, 8
test ecx, eax
je 0x130f6014
mov eax, dword [esp + 0x14]
test eax, eax
je 0x130f6045
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push esi
push ebx
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x50]
and edx, 1
add edx, ebp
push edx
mov edx, dword [esp + 0x5c]
push edi
push eax
call fcn.130f5af0
add esp, 0x34
test eax, eax
je 0x130f6063
add edi, ebp
test esi, esi
jle 0x130f6014
mov eax, dword [esp + 0x50]
mov ecx, ebx
sub ecx, eax
mov edx, esi
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
sub edx, 1
jne 0x130f6005
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
inc eax
push edx
push eax
mov dword [esp + 0x54], eax
call fcn.130eb520
add esp, 0xc
test eax, eax
jne 0x130f5f90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0x109
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.13075000
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

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

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.13070840
add esp, 8
test esi, esi
jg 0x130f9a8e
je 0x130f9a6c
cmp esi, 0xffffffff
jne 0x130f9a8e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 4
je 0x130f9a83
cmp eax, 0xb
je 0x130f9a83
cmp eax, 0x2733
jne 0x130f9a8e
push 0xa
push edi
call fcn.13070860
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x54cae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf6000]
push edi
jmp 0x54cafa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x54cb01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54caf0
mov eax, 1
add ebx, ebx
jne 0x54cb13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x54cb24
jne 0x54cb43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54cb43
dec eax
add ebx, ebx
jne 0x54cb30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x54cb08
add ebx, ebx
jne 0x54cb3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x54cb95
xor ecx, ecx
sub eax, 3
jb 0x54cb5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x54cbca
sar eax, 1
mov ebp, eax
jmp 0x54cb66
add ebx, ebx
jne 0x54cb66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54cb34
inc ecx
add ebx, ebx
jne 0x54cb74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54cb34
add ebx, ebx
jne 0x54cb81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x54cb76
jne 0x54cb92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x54cb76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x54cbb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x54cba6
jmp 0x54caf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x54cbb4
add edi, ecx
jmp 0x54caf6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x54cbd2
cmp byte [edi], 0x11
jne 0x54cbd2
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 0x54cbd7
lea edi, [esi + 0x145000]
mov eax, dword [edi]
or eax, eax
je 0x54cc4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c0268]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c03e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x54cc04
mov ecx, edi
jns 0x54cc33
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 + 0x1c03e8]
or eax, eax
je 0x54cc49
mov dword [ebx], eax
add ebx, 4
jmp 0x54cc21
call dword [esi + 0x1c03f8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x54cc80
cmp al, 0xef
ja 0x54cc73
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x54cc55
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x54cc62
mov ebp, dword [esi + 0x1c03ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x54ccb4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x402df7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x402e13
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402e35
mov eax, 0
jmp 0x402e71
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.00407b10
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x402e71
mov esp, ebp
pop ebp
ret 4

Function at 0x40558d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4055d4
cmp ebx, 0x20
je 0x4055d4
cmp ebx, 0xffffffe0
je 0x4055d4
jne 0x4055dd
add eax, 1
cmp esi, eax
je 0x4055ea
jne 0x4055b9
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x4055ee
jne 0x4055b5
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x405602
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x4056c3
test ecx, ecx
je 0x4056c3
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x4056c3
test ebx, ebx
je 0x4056c3
mov ebx, eax
add ebx, edx
je 0x4056c3
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x4056c3
cmp dword [edx + eax + 0x14], 0
je 0x4056c3
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x4056c3
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4056b3
test dl, dl
je 0x4056af
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4056b3
add edi, 2
add esi, 2
test dl, dl
jne 0x405693
xor eax, eax
jmp 0x4056b8
sbb eax, eax
or eax, 1
test eax, eax
je 0x4056cf
inc ebp
cmp ebp, dword [esp + 4]
jb 0x405680
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4065c5
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4065f3
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4065ea
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4065e2
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x406614
mov esp, ebp
pop ebp
ret

Function at 0x406618
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x406684
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x4066b1
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4066a0
xor ecx, eax
xor edx, ebx
dec edi
jne 0x406691
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x4066d7
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x406678
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x406703
mov esp, ebp
pop ebp
ret 0xc

Function at 0x407dc0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x407dde
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x407dd3
pop esi
ret
Function at 0x408130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x408151
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x4081ab
inc edi
cmp edi, esi
jl 0x408145
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x4081e0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x40819a
cmp byte [eax], bl
je 0x4081b5
cmp byte [eax + 1], bl
je 0x4081be
cmp byte [eax + 2], bl
je 0x4081c8
cmp byte [eax + 3], bl
je 0x4081d4
add eax, 4
cmp eax, edi
jb 0x408171
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x416caf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x416cdd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x416cfb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00416c15
jmp 0x416cfb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x416cfb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00416c15
test edi, edi
mov eax, edi
jne 0x416ce5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219