joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5458dc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x545be6
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404af0]
call fcn.0040c808
add esp, 4
mov eax, dword [ebp - 4]
mov byte [eax], 0xd
mov eax, dword [ebp - 4]
mov byte [eax + 1], 0xa
mov eax, dword [ebp - 4]
mov byte [eax + 2], 0xd
mov eax, dword [ebp - 4]
mov byte [eax + 3], 0xa
push 2
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x404af0]
call fcn.0040c808
add esp, 4
mov eax, dword [ebp - 8]
mov byte [eax], 0xa
mov eax, dword [ebp - 8]
mov byte [eax + 1], 0xa
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.004b22b0
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0xbc], edx
mov eax, dword [ebp - 0x10]
add eax, 0xc0
call fcn.0040a41c
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0xb0]
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xf0], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x48]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov byte [eax + 0x78], 0
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x2c], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x34]
call fcn.00504c04
mov eax, dword [ebp - 0x10]
call fcn.0050aa44
cdq
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
xor eax, eax
push ebp
push 0x545a19
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x545a20
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x34], edx
ret
Function at 0x41e670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x413015
lea edi, [esi - 0x12015]
push edi
or ebp, 0xffffffff
jmp 0x41e692
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41e699
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41e688
mov eax, 1
add ebx, ebx
jne 0x41e6ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41e6a0
jne 0x41e6bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e6a0
xor ecx, ecx
sub eax, 3
jb 0x41e6d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e742
mov ebp, eax
add ebx, ebx
jne 0x41e6db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41e6e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41e70c
inc ecx
add ebx, ebx
jne 0x41e6f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41e6ed
jne 0x41e709
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e6ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e72c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41e71d
jmp 0x41e68e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e72c
add edi, ecx
jmp 0x41e68e
pop esi
mov edi, esi
mov ecx, 0x6b8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e74a
cmp byte [edi], 6
jne 0x41e74a
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 0x41e74f
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41e7be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20f04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20fdc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e77c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20fe4]
or eax, eax
je 0x41e7b8
mov dword [ebx], eax
add ebx, 4
jmp 0x41e799
call dword [esi + 0x20fe0]
mov ebp, dword [esi + 0x20fe8]
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 0x41e7f2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x62b053b
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x79a30653
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x75984e
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
mov ebp, ecx
mov dword [esp + 0x14], 0xd9081c
mov ebp, dword [esp + ebp*4 + 0x29b26fbc]
sub cl, 0x88
add cl, ch
jne 0x5f1d21
Function at 0x4015a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x401627
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x4015ec
mov word [0x463e60], cx
call fcn.00404980
add esp, 0x94
ret
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x40160a
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x4015d9
mov word [0x463e60], ax
jmp 0x401618
cmp eax, 6
jb 0x4015d9
mov word [0x463e60], 1
call fcn.004012f0
call fcn.00401480
call fcn.00404980
add esp, 0x94
ret

Function at 0x402180
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov cl, 0x65
mov al, 0x72
push esi
xor esi, esi
mov byte [esp + 4], 0x54
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x402209
cmp al, 4
jbe 0x4021f7
lea eax, [esp + 4]
push eax
call fcn.00402210
add esp, 4
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
push ecx
call fcn.00402210
add esp, 4
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x402210
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
xor ebx, ebx
push str.SystemCurrentControlSetControlProductOptions
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4022e5
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebp
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x4022e5
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4022e5
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x4022e5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x4022d8
cmp dword [esp + 0x18], 7
jne 0x4022d8
mov al, byte [edi]
mov esi, edi
test al, al
je 0x4022d8
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
push esi
call ebx
test eax, eax
je 0x4022d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4022b6
jmp 0x4022d8
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4022f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402a30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
push 0x4e8
push 5
push 6
mov dword [esp + 0x10], 0x10
call fcn.00402f50
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x402ac4
mov edx, dword [esp + 4]
push ebx
mov ecx, edx
push edi
mov ebx, ecx
xor eax, eax
lea edi, [esp + 0x10]
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov word [esp + 0x14], 6
push eax
push esi
call sub.WSOCK32.dll_bind
pop edi
cmp eax, 0xffffffff
pop ebx
je 0x402ac4
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
je 0x402ac4
lea eax, [esp + 8]
push eax
call fcn.004029a0
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00434692
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push edx
call fcn.00434692
add esp, 8
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x402c10
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x402c65
cmp dword [esp + 4], 6
jne 0x402c65
mov eax, dword [esp + 8]
test eax, eax
jne 0x402c65
cmp word [esp + 0x94], 0
jne 0x402c65
mov eax, 1
cmp word [esp + 0x9a], ax
je 0x402c67
xor eax, eax
add esp, 0x9c
ret

Function at 0x403210
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.00402100
test eax, eax
jne 0x403240
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x403255
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x403299
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x403279
cmp eax, 0x102
jne 0x403286
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x403290
jmp 0x40325f
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x73
pop ebx
ret
push esi
call fcn.00403310
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4032b0
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.00402100
test eax, eax
jne 0x4032c8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x4032d1
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4032e4
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4032fb
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x406d20
Capabilities:
Get session user name

Disassembly:
sub esp, 0x4c8
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x406db1
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.0040f7d0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x406da7
mov eax, dword [str.NoName]
mov cx, word [0x461048]
mov dl, byte [0x46104a]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x406df8
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x406ddb
mov dx, word [0x461048]
mov ecx, dword [str.NoName]
mov al, byte [0x46104a]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x16], al
lea edi, [esp + 0x10]
lea edx, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
push ebx
push ecx
call fcn.0040f2b0
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2dc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe0]
push ecx
call fcn.0040f7d0
add esp, 0x10
cmp eax, 0xffffffff
pop ebx
jne 0x406e90
mov edx, dword [str.NoShareString]
mov eax, dword [0x4610c4]
mov ecx, dword [0x4610c8]
mov dword [esp + 0xd0], edx
mov dx, word [0x4610cc]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x406ebb
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
lea edi, [esp + 0xd0]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
push ecx
push edx
call fcn.0040f1e0
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x464f54], eax
add esp, 0x4c8
ret
Function at 0x4074b0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call fcn.00405c70
test esi, esi
mov edi, eax
jne 0x4074d1
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
pop ecx
ret 8
cmp word [edi + 0x18], 0x7242
lea esi, [edi + 0x18]
je 0x4074e8
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
pop ecx
ret 8
test byte [esi + 0x12], 4
jne 0x407500
mov word [esi + 6], 0xb39
pop edi
pop esi
pop ebp
mov ax, 0x39
pop ebx
pop ecx
ret 8
push 0
call fcn.00411510
mov ebp, eax
test ebp, 0x100
jne 0x407513
xor ebp, ebp
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc8], ebp
mov word [esi + 0xd0], ax
push eax
lea eax, [esi + 0x34]
mov word [esi + 0x30], 8
push eax
call fcn.00407630
xor bl, bl
mov eax, 3
cmp ax, 3
je 0x407547
cmp ax, 7
jne 0x40755d
push esi
mov byte [esi + 0xa], bl
call fcn.0040f470
push eax
call fcn.00407190
inc bl
cmp bl, 3
jbe 0x40753b
cmp ax, 9
jne 0x40756f
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
pop ecx
ret 8
test ax, ax
jne 0x40761b
mov bl, byte [edi]
mov byte [esp + 0x18], 0x91
and bl, 0xfc
mov byte [edi], bl
mov cx, word [esi + 0x3c]
mov al, bl
cmp cx, 5
mov bl, 1
jne 0x40759c
or al, 2
mov byte [esp + 0x18], bl
mov byte [edi], al
jmp 0x4075a6
cmp cx, 7
jne 0x4075a6
or al, bl
mov byte [edi], al
test ebp, ebp
je 0x4075d8
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 0xc8]
push ebp
push ecx
call fcn.00407f80
add esp, 8
cmp esi, eax
je 0x4075d8
push ebp
call fcn.00411620
cmp esi, eax
je 0x4075d8
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
pop ecx
ret 8
cmp dword [0x461104], 0xffffffff
jne 0x407618
lea edx, [esp + 0x10]
push edx
push 0
push 0x464f72
push 0x408580
push 0
push 0
call fcn.004427ea
mov dword [0x461104], eax
mov al, byte [0x464f70]
add esp, 0x18
cmp al, bl
jne 0x407618
pop edi
pop esi
pop ebp
mov ax, 0x68
pop ebx
pop ecx
ret 8
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x407f80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc0
push ebx
mov ebx, dword [esp + 0xc8]
test bl, 0x80
je 0x4080f0
push esi
mov esi, dword [esp + 0xd0]
mov eax, esi
mov ecx, esi
and eax, 0xff00
xor edx, edx
shl ecx, 0x10
or eax, ecx
mov ecx, esi
and ecx, 0xff0000
push edi
shr esi, 0x10
or ecx, esi
mov esi, ebx
and esi, 0xf
shl eax, 8
shr ecx, 8
cmp esi, 3
ja case.default.0x407fd1
jmp dword [esi*4 + 0x4081f0]
mov edi, 0x20
mov esi, eax
shr esi, 0xd
and esi, 1
mov ebx, esi
xor esi, ecx
shl ebx, 0x1f
shr edx, 1
shl esi, 0x1f
shr eax, 1
or edx, ebx
or esi, eax
shr ecx, 1
dec edi
mov eax, esi
jne 0x407fdd
jmp case.default.0x407fd1
mov esi, 0x20
mov edi, eax
mov ebx, ecx
and edi, 0xffff0000
shl edi, 0xf
shr edx, 1
or edx, edi
mov edi, eax
and edi, 0xfffff000
shl ebx, 0xc
xor edi, ebx
mov ebx, eax
shl edi, 8
and ebx, 0xfff00000
xor edi, ebx
shl edi, 0xb
shr eax, 1
or eax, edi
shr ecx, 1
dec esi
jne 0x408008
jmp case.default.0x407fd1
push ebp
mov edi, 0x20
mov esi, ecx
mov ebp, eax
and esi, 1
and ebp, 0xfff80000
mov ebx, esi
shl ebx, 0x13
xor ebx, ebp
shl ebx, 0xc
shr edx, 1
or edx, ebx
mov ebx, eax
and bl, 0
shl esi, 8
xor ebx, esi
mov esi, eax
shl ebx, 0xf
and esi, 0xff800000
xor ebx, esi
shl ebx, 8
shr eax, 1
or eax, ebx
shr ecx, 1
dec edi
jne 0x40804a
pop ebp
jmp case.default.0x407fd1
mov esi, 0x20
mov edi, eax
mov ebx, ecx
and edi, 0xfffff800
shl ebx, 0xb
xor edi, ebx
mov ebx, eax
shl edi, 5
and ebx, 0xffff0000
xor edi, ebx
mov ebx, ecx
shl edi, 0xf
shr edx, 1
or edx, edi
mov edi, eax
and edi, 0xffffff80
shl ebx, 7
xor edi, ebx
mov ebx, eax
shl edi, 0x12
and ebx, 0xfe000000
xor edi, ebx
shl edi, 6
shr eax, 1
or eax, edi
shr ecx, 1
dec esi
jne 0x408090
xor eax, eax
pop edi
mov al, dh
pop esi
mov ah, dl
and edx, 0xffff0000
or eax, edx
pop ebx
add esp, 0xc0
ret
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0xc], 0x29
mov byte [esp + 0xd], 0x56
mov byte [esp + 0xe], 0xb2
mov byte [esp + 0xf], 0x39
mov byte [esp + 0x10], 0xa0
mov byte [esp + 0x11], 0xce
mov byte [esp + 0x12], 0xeb
mov byte [esp + 0x13], 0x87
mov byte [esp + 0x14], 0x52
mov byte [esp + 0x15], 0xb4
mov byte [esp + 0x16], 0x76
mov byte [esp + 0x17], 0xfb
mov byte [esp + 0x18], 0xc
mov byte [esp + 0x19], 0x94
mov byte [esp + 0x1a], 0x37
mov byte [esp + 0x1b], 0x71
call fcn.00411aa0
mov eax, dword [esp + 0xd4]
and ebx, 0xff
mov byte [esp + 0xc], al
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esp + 0xf], al
mov al, bl
mov ah, al
mov ebx, eax
shl ebx, 0x10
shr ecx, 8
shr edx, 0x10
mov bx, ax
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], dl
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
push ecx
push edx
mov dword [esp + 0x20], ebx
call fcn.00411b90
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00411aa0
mov eax, dword [esp + 0x1f]
mov edx, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1d]
and eax, 0xff
shl eax, 8
and edx, 0xff
and ecx, 0xff
or eax, edx
mov edx, dword [esp + 0x1c]
shl eax, 8
or eax, ecx
add esp, 0x18
shl eax, 8
and edx, 0xff
pop ebx
or eax, edx
add esp, 0xc0
ret
Function at 0x409570
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
push edi
mov ecx, 0x2b
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x124]
test eax, eax
je 0x409739
mov ebp, dword [esp + 0x128]
test ebp, ebp
je 0x409739
mov ebx, dword [esp + 0x120]
cmp ebx, 0x50
ja 0x409739
cmp dword [esp + 0x12c], 0x50
jb 0x409739
test ebx, ebx
jne 0x4095d8
lea esi, [esp + 0xc0]
jmp 0x409631
cmp ebx, 0xc
jbe 0x40962a
mov eax, dword [esp + 0x11c]
mov edx, ebp
mov ecx, eax
cmp ebx, 0x4c
mov esi, dword [ecx]
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
ja 0x409739
lea ecx, [ebx - 0xc]
lea edi, [ebp + 0x10]
mov edx, ecx
lea esi, [eax + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, 0x38
mov ecx, edx
sub eax, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x40964e
push eax
lea eax, [ebx + ebp + 4]
jmp 0x409648
mov esi, dword [esp + 0x11c]
mov ecx, ebx
mov edi, ebp
mov edx, ecx
lea eax, [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x2c
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00411a70
mov byte [ebp + 0xc], bl
mov ebx, dword [esp + 0x118]
lea esi, [ebp + 0xe]
push 2
push esi
mov byte [ebp + 0xd], bl
call fcn.00411a70
mov cl, byte [esi]
mov dl, byte [ebp + 0xf]
mov al, byte [esp + 0x114]
not cl
mov byte [ebp + 0x3d], al
mov eax, dword [esp + 0x124]
mov byte [ebp + 0x3e], cl
lea ecx, [esp + 0x10]
shr ebx, 8
not dl
push eax
push ecx
mov byte [ebp + 0x3c], bl
mov byte [ebp + 0x3f], dl
call fcn.00411aa0
lea esi, [ebp + 0x30]
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00411dc0
mov ecx, 0xffffffd0
add esp, 0x10
mov eax, esi
sub ecx, ebp
mov dl, byte [eax - 0x10]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x10
jb 0x4096b1
lea esi, [ebp + 0x20]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00411dc0
mov ecx, 0xffffffe0
add esp, 8
mov eax, esi
sub ecx, ebp
mov dl, byte [eax - 0x10]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x10
jb 0x4096dd
lea esi, [ebp + 0x10]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00411dc0
mov ecx, 0xfffffff0
add esp, 8
mov eax, esi
sub ecx, ebp
mov dl, byte [eax - 0x10]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x10
jb 0x409709
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00411dc0
add esp, 8
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0x1c
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x100
ret 0x1c
Function at 0x409750
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x461104]
mov dword [esp], 0
test eax, eax
je 0x4097bb
cmp eax, 0xffffffff
je 0x4097bb
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp], 0x103
jne 0x4097bb
mov edx, dword [0x461104]
push 0x7530
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4097a4
mov eax, dword [0x461104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x461104]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x461104], 0
pop ecx
ret