joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cf66
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x481c48]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cfa9
cmp word [esi], dx
jne 0x41cfa9
or byte [edi + eax + 0x28], 4
jmp 0x41cfae
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d101
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d0e1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cff0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d026
cmp eax, edx
jae 0x41d032
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41cfc8
jmp 0x41d101
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d0dd
cmp dword [ebp - 0x14], 0
je 0x41d0dd
mov eax, dword [ebx*4 + 0x481c48]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d0b5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d07e
mov word [esi], cx
jmp 0x41d0b1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481c48]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481c48]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481c48]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d101
pop ebx
cmp word [ebp - 4], bx
jne 0x41d0c6
cmp esi, dword [ebp + 0xc]
jne 0x41d0c6
mov word [esi], bx
jmp 0x41d0fe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d99a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d101
push 0xd
jmp 0x41d0fa
mov ecx, dword [ebx*4 + 0x481c48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d0f8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d101
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41fa82
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 0x41fb1f
push ebx
push esi
call fcn.0041fa4b
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.0041e82c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41facc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fb1e
push edi
push eax
call fcn.004193ad
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41faec
call fcn.0041858f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fb1d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e82c
add esp, 0x20
test eax, eax
jne 0x41fb0b
push edi
call fcn.0041858f
jmp 0x41fb13
push ebx
call fcn.0041858f
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 0x426e50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426e7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426e7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x428000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x14
mov ecx, dword [ebp + 8]
sub eax, ecx
sar eax, 2
push esi
push edi
test eax, eax
je 0x4280d1
xor edi, edi
mov esi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov al, byte [esi + 0x47f9b0]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x47f9b0], al
call fcn.00404768
push eax
call fcn.00404928
mov al, byte [esi + 0x47f9b0]
mov edx, str.Earth
add al, 0x4e
xor al, 0xdc
pop ecx
mov byte [esi + 0x47f9b0], al
call fcn.00404768
push eax
call fcn.00404928
mov al, byte [esi + 0x47f9b0]
xor al, 0xac
mov dword [esp], 0x430db8
sub al, 0x65
xor al, 0x22
sub al, 0x73
mov byte [esi + 0x47f9b0], al
call fcn.00411bcd
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push edi
call fcn.00405922
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx]
xor byte [esi + 0x47f9b0], al
mov eax, dword [ebp - 8]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.004051ef
inc esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
pop ecx
pop ecx
cmp esi, 0x4ac
jb 0x428028
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4280e6
mov eax, dword [ebp + 0x10]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.004051ef
pop ecx
pop ecx
pop edi
pop esi
leave
ret 0x14

Function at 0x428706
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x428614
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x418a57
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004188c8

Function at 0x418e51
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408d10
mov eax, dword [0x4613c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00416a14
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418e93
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418fef
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423550
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x463950]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419bf0
mov ecx, dword [esi*4 + 0x463950]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418fe8
cmp eax, dword [edi + ecx + 0x24]
jne 0x418fe8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418fe8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419bf0
add esp, 0x14
test edx, edx
jl 0x418fe8
jg 0x418f5e
test eax, eax
jb 0x418fe8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418fe8
jl 0x418f78
cmp dword [ebp - 0x1008], eax
ja 0x418fe8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418f96
test ebx, ebx
je 0x418fcf
cmp ecx, edi
jae 0x418fcf
mov al, byte [ecx]
cmp al, 0xd
jne 0x418fb0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418fbc
cmp byte [ecx + 1], 0xa
jne 0x418fbc
inc ecx
jmp 0x418fbc
movzx eax, al
movsx eax, byte [eax + 0x461680]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418f96
cmp edx, ebx
jne 0x418f96
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418fed
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408107
leave
ret
Function at 0x41908e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x463950]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4190ce
cmp byte [ebx], 0xa
jne 0x4190ce
or byte [eax + edi + 0x28], 4
jmp 0x4190d3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4191d1
mov al, byte [edx]
cmp al, 0x1a
je 0x4191b3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419102
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419127
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419131
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4190e4
jmp 0x4191d1
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4191ae
cmp dword [ebp - 0xc], 0
je 0x4191ae
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x463950]
test byte [eax + edi + 0x28], 0x48
je 0x419188
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419173
mov byte [esi], dl
jmp 0x419184
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x463950]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4191d1
cmp byte [ebp - 1], 0xa
jne 0x419197
cmp esi, ebx
jne 0x419197
mov byte [esi], 0xa
jmp 0x4191d0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419c0e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4191d1
mov byte [esi], 0xd
jmp 0x4191d0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x463950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4191cd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4191d1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4191da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x463950]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41921d
cmp word [esi], dx
jne 0x41921d
or byte [edi + eax + 0x28], 4
jmp 0x419222
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419375
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419355
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419264
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41929a
cmp eax, edx
jae 0x4192a6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41923c
jmp 0x419375
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419351
cmp dword [ebp - 0x14], 0
je 0x419351
mov eax, dword [ebx*4 + 0x463950]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419329
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4192f2
mov word [esi], cx
jmp 0x419325
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x463950]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x463950]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x463950]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419375
pop ebx
cmp word [ebp - 4], bx
jne 0x41933a
cmp esi, dword [ebp + 0xc]
jne 0x41933a
mov word [esi], bx
jmp 0x419372
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419c0e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419375
push 0xd
jmp 0x41936e
mov ecx, dword [ebx*4 + 0x463950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41936c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419375
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425238
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x250
mov eax, dword [0x4613c0]
xor eax, esp
mov dword [esp + 0x24c], eax
and dword [esp + 4], 0
lea eax, [esp + 4]
and dword [esp + 8], 0
push ebx
push ebp
mov ebp, dword [esp + 0x25c]
push esi
push edi
push eax
call fcn.0040163c
mov esi, dword [esp + 0x270]
xor ebx, ebx
pop ecx
mov dword [esp + 0x14], eax
push str.JAHNsiu
push 0x462fa0
call fcn.004013cb
push eax
call fcn.00401eb7
mov eax, ebx
mov byte [esp + ebx + 0x68], bl
cdq
add esp, 0xc
idiv dword [esp + 0x270]
mov al, byte [edx + esi]
mov byte [esp + ebx + 0x15c], al
inc ebx
cmp ebx, 0x100
jl 0x425279
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x5c]
movzx eax, byte [esp + esi + 0x15c]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4252d9
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x5c]
mov byte [esp + esi + 0x5c], al
inc esi
mov byte [esp + edi + 0x5c], dl
cmp esi, 0x100
jl 0x4252b6
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x268], ebx
jle 0x42542f
inc ebx
and ebx, 0x800000ff
jns 0x425316
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x5c]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x42532f
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x5c]
mov byte [esp + ebx + 0x5c], al
mov byte [esp + edi + 0x5c], cl
lea ecx, [esp + 0x5c]
movzx eax, byte [esp + ebx + 0x5c]
add eax, edx
mov dword [esp + 0x1c], edi
movzx eax, al
xor edi, edi
add eax, ecx
mov dword [esp + 0x38], edi
push eax
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call fcn.00401858
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], edi
push eax
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00401920
push 0x426554
lea ecx, [esp + 0x48]
call fcn.0040217e
cmp dword [esp + 0x58], 0xf
lea eax, [esp + 0x44]
cmova eax, dword [esp + 0x44]
push eax
call fcn.0040d44e
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp], str.Asucjhudaujsa
call fcn.00404d14
pop ecx
push 0xa
pop edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
call fcn.0040182c
sub edi, 1
jne 0x4253c5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + ecx*8 + 4]
mov eax, dword [esp + 0x38]
mov al, byte [ecx + eax]
lea ecx, [esp + 0x20]
xor byte [edx + ebp], al
call fcn.0040433b
lea ecx, [esp + 0x44]
call fcn.00404387
lea ecx, [esp + 0x2c]
call fcn.0040433b
lea ecx, [esp + 0x38]
call fcn.00404318
mov edi, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x268]
jl 0x425305
lea eax, [esp + 0x14]
push eax
mov ecx, eax
call fcn.00401aa6
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408107
add esp, 0x250
ret
Function at 0x42554f
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
sub eax, dword [esp + 0x10]
sar eax, 2
push edi
mov edi, dword [esp + 0x20]
test eax, eax
je 0x425627
push ebx
xor ebx, ebx
push esi
mov esi, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x425625
push ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x462fa0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebp
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebp
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x426548
mov byte [edi + esi], al
call fcn.0040d44e
add esp, 0x1c
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
push ebx
call fcn.00401920
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
xor byte [edi + esi], al
mov eax, dword [esp + 0x18]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00401800
inc esi
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp esi, dword [esp + 0x30]
jb 0x42558c
pop ebp
pop esi
pop ebx
lea ecx, [esp + 0x14]
call fcn.0040433b
pop edi
add esp, 0xc
ret 0x14

Function at 0x425637
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x425653
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x401f26
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, 0x58bf
mov dword [esp + 0xc], ecx
xor ebp, ebp
mov dword [esp + 0x14], 0xce6dd971
push edi
mov dword [esp + 0x1e], ebp
mov word [esp + 0x1c], ax
call fcn.0040bd27
mov ecx, dword [esp + 0x2c]
mov bl, 0xf
add cl, 5
mov bh, al
and cl, 0xf
sub bl, cl
call fcn.0040bd27
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
shl al, 4
or al, bl
movzx esi, bl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x2c]
lea ecx, [eax + 6]
lea eax, [edi + 6]
add ecx, esi
add eax, esi
mov dword [edx], ecx
push eax
cmp dword [esp + 0x34], edi
jne 0x401f9a
call fcn.0041f6e0
jmp 0x401f9f
call fcn.004201a0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [edi + 4], bh
mov ebx, ebp
mov byte [edi + 5], al
test esi, esi
je 0x401fc0
call fcn.0040bd27
mov byte [edi + ebx + 6], al
inc ebx
cmp ebx, esi
jb 0x401fb2
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
add eax, 2
add eax, esi
push eax
lea eax, [edi + 4]
push eax
call fcn.00401db8
mov eax, dword [esp + 0x1e]
push edi
mov dword [edi], eax
mov eax, dword [esp + 0x14]
push 0x10
push edi
push eax
lea ebx, [eax + 0x234]
push ebx
call fcn.00410699
mov eax, dword [esp + 0x48]
add esp, 0x14
mov esi, dword [eax]
sub esi, 0x10
cmp esi, 0x10
jb 0x402033
add edi, esi
push 0x10
mov ecx, edi
sub ebp, esi
pop edx
mov al, byte [ecx + ebp]
xor byte [ecx], al
inc ecx
dec edx
jne 0x40200c
push edi
push 0x10
push edi
push dword [esp + 0x1c]
push ebx
call fcn.00410699
mov ebp, esi
add esp, 0x14
sub esi, 0x10
sub edi, 0x10
cmp esi, 0x10
jae 0x402005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
Function at 0x40acf4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x436a34
call fcn.0041fd88
sub esp, 0x1e8
push ebx
push ebp
push esi
mov ebx, ecx
lea ecx, [esp + 0xc0]
push edi
call fcn.0040bc64
mov ebp, dword [esp + 0x20c]
and dword [esp + 0x200], 0
cmp dword [ebp + 0x7ee], 4
jne 0x40ae63
cmp byte [ebx + 0x98c], 1
lea edi, [esp + 0x2c]
mov eax, dword [esp + 0x210]
push 8
mov ecx, dword [eax + 0x15]
lea esi, [eax + 0x19]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
jne 0x40ad90
cmp byte [ebx + 0x98b], 0
jne 0x40ad90
lea eax, [esp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x967]
jne 0x40ae79
lea edx, [esp + 0x2c]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 0x96b]
jne 0x40ae79
inc ecx
cmp ecx, 8
jne 0x40ad7a
xor esi, esi
call fcn.0040bd27
mov dword [esp + esi + 0x18], eax
add esi, 4
cmp esi, 0x14
jl 0x40ad92
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
push 5
pop ecx
lea eax, [esp + 0x2c]
lea esi, [esp + 0x18]
lea edi, [esp + 0x4c]
push eax
push dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xcc]
call fcn.0040bc9f
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xcc]
call fcn.0040bbce
mov esi, dword [esp + 0x210]
xor edx, edx
inc esi
mov al, byte [esi + edx]
xor al, byte [esp + edx + 0x18]
mov byte [edx + ebp + 0x7d1], al
inc edx
cmp edx, 0x10
jl 0x40adf3
push 5
pop ecx
mov byte [esp + 0x6c], 0x10
lea edi, [esp + 0x6d]
mov byte [ebp + 0x7e1], 1
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
lea esi, [esp + 0xa4]
lea edi, [esp + 0x81]
rep movsd dword es:[edi], dword [esi]
call fcn.0040271a
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 1]
push edx
push edx
push ecx
push ecx
mov ecx, esp
push edx
push 6
push edx
mov dword [ecx], eax
mov ax, word [ebp + 5]
mov word [ecx + 4], ax
lea eax, [esp + 0x90]
push 0x1a8
push eax
mov ecx, ebx
call fcn.0040b2b6
mov ecx, dword [esp + 0x1f8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push 1
call fcn.0040692d
mov esi, eax
pop ecx
push 1
mov ecx, dword [esi + 0x10]
mov byte [ecx], 0x1c
mov dword [esi + 0xc], 8
mov ecx, dword [ebp + 1]
push ecx
mov dword [esi + 2], ecx
mov ax, word [ebp + 5]
push ecx
mov ecx, esp
mov word [esi + 6], ax
mov eax, dword [esi + 2]
mov dword [ecx], eax
mov ax, word [esi + 6]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.004076a9
push esi
mov ecx, ebx
mov word [esi], ax
call fcn.00406671
mov dword [ebp + 0x7ee], 2
jmp 0x40ae63
Function at 0x40bd27
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x445dd0]
js 0x40bd69
mov eax, dword [0x46ec64]
mov ecx, dword [eax]
add eax, 4
mov dword [0x46ec64], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
cmp dword [0x445dd0], 0xffffffff
push ebx
push ebp
push esi
mov ebx, 0x46e2a0
mov esi, 0x46e2a8
push edi
mov edi, ebx
jge 0x40bd8d
push 0x1105
call fcn.0040be74
pop ecx
mov eax, dword [0x46e2a0]
mov ebp, 0xe3
mov edx, dword [0x46e2a4]
mov dword [0x445dd0], 0x26f
mov dword [0x46ec64], 0x46e2a4
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [esi + 0x62c]
mov dword [edi], ecx
add edi, 4
mov edx, dword [esi]
add esi, 4
dec ebp
jne 0x40bdb1
mov ebp, 0x18c
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
lea ebx, [ebx + 4]
mov dword [edi], ecx
lea edi, [edi + 4]
mov edx, dword [esi]
lea esi, [esi + 4]
dec ebp
jne 0x40bdeb
mov edx, dword [0x46e2a0]
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
shr eax, 0xb
xor edx, eax
mov dword [edi], ecx
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
pop edi
pop esi
mov eax, edx
shr eax, 0x12
pop ebp
xor eax, edx
pop ebx
ret

Function at 0x410285
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push edi
movzx edi, al
test edi, edi
jle 0x4102ce
push esi
mov esi, dword [esp + 0xc]
add esi, 2
movzx eax, byte [esi + 1]
movzx ecx, byte [esi - 1]
mov edx, dword [eax*4 + 0x448ef8]
movzx eax, byte [esi]
lea esi, [esi + 4]
xor edx, dword [ecx*4 + 0x4486f8]
xor edx, dword [eax*4 + 0x448af8]
movzx eax, byte [esi - 6]
xor edx, dword [eax*4 + 0x4482f8]
mov dword [esi - 6], edx
dec edi
jne 0x410299
pop esi
pop edi
ret