joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4242d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x506158
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x506150]
sub esp, 4
test ebx, ebx
je 0x424325
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x42431e
test esi, esi
je 0x42431e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x424300
mov dword [esp], 0x506158
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
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 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
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 + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0xb022364
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x28386d7e
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4015e1
Capabilities:
Contain obfuscated stackstrings
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x454
call dbg.__main
mov dword [ebp - 0x3d], 0x6c6c6548
mov dword [ebp - 0x39], 0x4e202c6f
mov dword [ebp - 0x35], 0x41474749
mov dword [ebp - 0x31], 0x21212121
mov byte [ebp - 0x2d], 0
lea eax, [ebp - 0x440]
mov dword [esp + 4], eax
mov dword [esp], 0x202
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401654
mov dword [esp], str.Failed_to_initialize_WinSock2.
call sym._puts
mov eax, 1
jmp 0x40175c
mov dword [esp], str.Initialized_WinSock2.
call sym._puts
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4016b2
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.Error_creating_socket._n_d_n
call sym._printf
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 1
jmp 0x40175c
mov dword [esp], str.Created_socket_successfully.
call sym._puts
mov word [server_address.sin_family], 2
mov dword [server_address.sin_addr], 0
mov dword [esp], 0x1f90
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [server_address.sin_port], ax
mov eax, 0x10
mov dword [esp + 8], eax
lea eax, [server_address.sin_family]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_bind]
call eax
sub esp, 0xc
shr eax, 0x1f
test al, al
je 0x401725
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.Error_binding_socket._n_d_n
call sym._printf
mov eax, 1
jmp 0x40175c
mov dword [esp + 4], 3
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_listen]
call eax
sub esp, 8
shr eax, 0x1f
test al, al
je 0x401757
mov dword [esp], str.Error_listening
call sym._puts
mov eax, 1
jmp 0x40175c
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x401bd0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable
Function at 0x401c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401d1d
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401c64
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401d16
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401c50
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401d5a
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401d3a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401d0f
sub eax, 0x40
and eax, 0xffffffbf
je 0x401d0f
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401d24
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401c6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]

Function at 0x402220
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402275
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40226e
test esi, esi
je 0x40226e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402250
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402490
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4024c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4024be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4024ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4024b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
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
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1003f1a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x2c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
add eax, 0x13
mov dword [esp + 0x28], eax
mov eax, dword [0x10069304]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
add eax, 0x7c6ec3e8
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp eax, 1
sete al
mov byte [esp + 0x13], al
mov cl, byte [esp + 0x13]
xor eax, eax
test cl, 1
mov dword [esp + 0xc], eax
jne 0x1003f28a
jmp 0x1003f202
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov bh, byte [edx + eax]
mov esi, 0x13
xor edx, edx
div esi
mov eax, dword [esp + 8]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0xa1
mov cl, 0xff
xor cl, 0xa1
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0xa1
and bl, cl
mov ecx, dword [esp + 0x24]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, eax
xor eax, eax
sub eax, 1
add ecx, eax
xor eax, eax
sub eax, ecx
cmp eax, 0xb
mov dword [esp + 0xc], eax
jne 0x1003f202
mov eax, dword [0x10069304]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x7c6ec3e8
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1003f28a
add esp, 0x2c
pop esi
pop ebx
ret
Function at 0x10041eb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x54], ecx
add eax, 0x14
mov dword [esp + 0x58], eax
mov eax, dword [0x10069318]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
add eax, 0xae315f99
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
cmp eax, 1
sete al
mov byte [esp + 0x43], al
mov cl, byte [esp + 0x43]
xor eax, eax
test cl, 1
mov dword [esp + 0x3c], eax
jne 0x10041f90
jmp 0x10041f13
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x3b], dl
mov edi, 0x14
xor edx, edx
div edi
mov eax, dword [esp + 0x34]
mov edi, edx
mov dh, byte [esp + 0x3b]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 7
mov dword [esp + 0x3c], eax
jne 0x10041f13
mov eax, dword [0x10069318]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
add eax, 0xae315f99
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov dword [eax], 1
jmp 0x10041f90
mov eax, dword [0x1006acf8]
mov ecx, dword [0x1006acf4]
mov dword [esp + 0x24], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
and eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp eax, 0
sete al
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x24]
cmp eax, 0xa
setl al
mov byte [esp + 0x1e], al
mov cl, byte [esp + 0x1e]
mov al, byte [esp + 0x1f]
mov dl, al
and dl, cl
mov byte [esp + 0x1c], dl
xor al, cl
mov byte [esp + 0x1d], al
mov cl, byte [esp + 0x1d]
mov al, byte [esp + 0x1c]
or al, cl
test al, 1
jne 0x10042003
jmp 0x100420dd
mov eax, dword [0x1006acf8]
mov dword [esp + 0x10], eax
mov ecx, dword [0x1006acf4]
mov dword [esp + 0x14], ecx
add eax, 0xafd4c2bc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub eax, 1
sub eax, 0xafd4c2bc
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 6], al
cmp ecx, 0xa
setl cl
mov byte [esp + 7], cl
xor al, 0xff
mov byte [esp + 8], al
xor cl, 0xff
mov byte [esp + 9], cl
mov cl, 1
xor cl, 0
mov byte [esp + 0xa], cl
and al, 0
mov byte [esp + 0xb], al
mov dl, byte [esp + 0xb]
mov ch, byte [esp + 0xa]
mov cl, byte [esp + 7]
mov al, byte [esp + 9]
mov ah, byte [esp + 6]
and ah, ch
and al, 0
and cl, ch
or dl, ah
mov byte [esp + 4], dl
or al, cl
mov byte [esp + 5], al
mov cl, byte [esp + 9]
mov al, byte [esp + 8]
mov ah, byte [esp + 5]
mov dl, byte [esp + 4]
xor dl, ah
mov byte [esp + 2], dl
or al, cl
mov byte [esp + 3], al
mov al, byte [esp + 2]
mov dl, byte [esp + 0xa]
mov cl, byte [esp + 3]
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x100420d6
jmp 0x100420dd
add esp, 0x5c
pop esi
pop edi
pop ebx
ret
jmp 0x10042003
Function at 0x10042a40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
add eax, 0x14
mov dword [esp + 0x2c], eax
mov eax, dword [0x10069320]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add eax, 0x956ce9e2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp eax, 1
sete al
mov byte [esp + 0x17], al
mov cl, byte [esp + 0x17]
xor eax, eax
test cl, 1
mov dword [esp + 0x10], eax
jne 0x10042b24
jmp 0x10042aa3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dl, byte [edx + eax]
mov byte [esp + 0xf], dl
mov edi, 0x14
xor edx, edx
div edi
mov eax, dword [esp + 8]
mov edi, edx
mov dh, byte [esp + 0xf]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
add eax, 0xdb566c6b
add eax, 1
sub eax, 0xdb566c6b
cmp eax, 0x16
mov dword [esp + 0x10], eax
jne 0x10042aa3
mov eax, dword [0x10069320]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x956ce9e2
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x10042b24
add esp, 0x30
pop esi
pop edi
pop ebx
ret
Function at 0x10045f90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0x68]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x4c], ecx
add eax, 0x1e
mov dword [esp + 0x50], eax
mov eax, dword [0x10069338]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
add eax, 0x3b735fa4
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 1
sete al
mov byte [esp + 0x3b], al
mov cl, byte [esp + 0x3b]
xor eax, eax
test cl, 1
mov dword [esp + 0x34], eax
jne 0x10046155
jmp 0x10045ff3
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x33], dl
mov edi, 0x1e
xor edx, edx
div edi
mov eax, dword [esp + 0x2c]
mov edi, edx
mov dh, byte [esp + 0x33]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
add eax, 0x6f235fed
add eax, 1
sub eax, 0x6f235fed
cmp eax, 0xb
mov dword [esp + 0x34], eax
jne 0x10045ff3
mov eax, dword [0x1006acc0]
mov dword [esp + 0x20], eax
mov ecx, dword [0x1006acbc]
mov dword [esp + 0x24], ecx
sub eax, 0x9820b261
sub eax, 1
add eax, 0x9820b261
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x1e], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x1f], al
mov cl, byte [esp + 0x1f]
mov al, byte [esp + 0x1e]
and al, cl
mov byte [esp + 0x1d], al
mov cl, byte [esp + 0x1f]
mov al, byte [esp + 0x1e]
xor al, cl
mov byte [esp + 0x1c], al
mov cl, byte [esp + 0x1c]
mov al, byte [esp + 0x1d]
or al, cl
mov byte [esp + 0x1b], al
mov al, byte [esp + 0x1b]
test al, 1
jne 0x100460d6
jmp 0x1004615c
mov eax, dword [0x10069338]
mov dword [eax + 0x3b735fa4], 1
mov eax, dword [0x1006acc0]
mov dword [esp + 0x14], eax
mov eax, dword [0x1006acbc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
sub eax, 0x6c94f50c
sub eax, 1
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
add edx, 0x6c94f50c
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0xa], dl
xor al, cl
mov byte [esp + 0xb], al
mov cl, byte [esp + 0xb]
mov al, byte [esp + 0xa]
or al, cl
test al, 1
jne 0x10046150
jmp 0x1004615c
jmp 0x10046155
add esp, 0x54
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x10069338]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x3b735fa4
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x100460d6