joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4074dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop edi
mov ecx, dword [ebp - 0x3f8]
mov dword [ebp - 0x1a04], ecx
push esi
and esi, 0xd13
pop esi
push edx
push edi
add esp, 4
xor edx, 0xe82
or edx, 0x3e54
pop edx
push edi
add edi, 0x6295
call 0x40735b
add byte [esi], dh
cmp al, 0x32
inc esp
cmp byte [ebx + eax*4 - 0x3c], cl
add al, 0x5f
mov edx, dword [ebp - 0x1a04]
mov dword [ebp - 0x1a08], edx
lea eax, [ebp - 0x1738]
push eax
call dword [ebp - 0x1a08]
test eax, eax
jne 0x4073bd
push ecx
call 0x40738c
add byte [eax], al
add byte [edi], bh
dec ebp
xor eax, dword [edi + eax*2 + 0x4b]
cmp eax, 0xc4834f4a
add al, 0xe8
or eax, dword [eax]
add byte [eax], al
add byte [esi], dh
xor al, byte [ecx + 0x4e]
dec esp
dec edx
cmp al, 0x4d
dec eax
aaa
add esp, 4
jmp 0x4073a7
xor ecx, 0x15f79
pop ecx
mov dword [ebp - 0xab4], 0
jmp 0x407aa8
push ecx
and ecx, 0x245b
pop ecx
push esi
push ebx
add esp, 4
sub esi, 0x14e34
jmp 0x4073d6
and esi, 0x627f
xor esi, 0x1539a
pop esi
push edi
push edi
add esp, 4
or edi, 0x1082c
pop edi
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x1a0c], ecx
mov edx, dword [ebp - 0x1a0c]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x1a10], eax
mov ecx, dword [ebp - 0x1a10]
mov dword [ebp - 0x167c], ecx
push ebx
xor ebx, 0x9fbe
add ebx, 0x9655
or ebx, 0x14c8b
and ebx, 0x722f
pop ebx
push edx
push edx
add esp, 4
xor edx, 0x1254c
xor edx, 0x2ae3
xor edx, 0x17d21
pop edx
cmp dword [ebp - 0x167c], 0
jne 0x407461
mov dword [ebp - 0x2fc], 0
jmp 0x407708
mov edx, dword [ebp - 0x167c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xce0], ecx
call dword [ecx + 0x53]
add esp, 4
xor ecx, 0xb58
jmp 0x407483
jmp 0x407489
jmp 0x407490
pop ecx
push eax
push eax
add esp, 4
and eax, 0xf2a2
pop eax
push ebx
sub ebx, 0xf2a6
pop ebx
cmp dword [ebp - 0xce0], 0
jne 0x4074bd
mov dword [ebp - 0x2fc], 0
jmp 0x407708
mov edx, dword [ebp - 0xce0]
mov dword [ebp - 0x51c], edx
push eax
push ecx
add esp, 4
call 0x4074dc
add byte [0x35474433], dh
cmp byte [ebx + 0x4c], al
add esp, 4
or eax, 0x17114
pop eax
push edx
call 0x4074f7
add byte [0x4c394f47], dh
inc eax
cmp dh, byte [edx + eax*2]
dec edx
add esp, 4
pop edx
lea eax, [ebp - 0x1738]
mov dword [ebp - 0xcdc], eax
mov ecx, dword [ebp - 0x51c]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcd8], edx
xor eax, eax
mov word [ebp - 0x224], ax
xor ecx, ecx
mov word [ebp - 0x40], cx
push ecx
push edx
add esp, 4
sub ecx, 0x41fd
or ecx, 0x34d2
sub ecx, 0x3364
add ecx, 0xcaa6
pop ecx
push ebx
or ebx, 0x1109a
sub ebx, 0x15682
or ebx, 0x146d
pop ebx
mov edx, dword [ebp - 0xcd8]
mov ax, word [edx]
mov word [ebp - 0x1046], ax
mov ecx, dword [ebp - 0xcd8]
add ecx, 2
mov dword [ebp - 0xcd8], ecx
mov dx, word [ebp - 0x1046]
invalid
invalid
xchg ebp, eax
Function at 0x4074f7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop edi
mov ecx, dword [ebp - 0x3f8]
mov dword [ebp - 0x1a04], ecx
push esi
and esi, 0xd13
pop esi
push edx
push edi
add esp, 4
xor edx, 0xe82
or edx, 0x3e54
pop edx
push edi
add edi, 0x6295
call 0x40735b
add byte [esi], dh
cmp al, 0x32
inc esp
cmp byte [ebx + eax*4 - 0x3c], cl
add al, 0x5f
mov edx, dword [ebp - 0x1a04]
mov dword [ebp - 0x1a08], edx
lea eax, [ebp - 0x1738]
push eax
call dword [ebp - 0x1a08]
test eax, eax
jne 0x4073bd
push ecx
call 0x40738c
add byte [eax], al
add byte [edi], bh
dec ebp
xor eax, dword [edi + eax*2 + 0x4b]
cmp eax, 0xc4834f4a
add al, 0xe8
or eax, dword [eax]
add byte [eax], al
add byte [esi], dh
xor al, byte [ecx + 0x4e]
dec esp
dec edx
cmp al, 0x4d
dec eax
aaa
add esp, 4
jmp 0x4073a7
xor ecx, 0x15f79
pop ecx
mov dword [ebp - 0xab4], 0
jmp 0x407aa8
push ecx
and ecx, 0x245b
pop ecx
push esi
push ebx
add esp, 4
sub esi, 0x14e34
jmp 0x4073d6
and esi, 0x627f
xor esi, 0x1539a
pop esi
push edi
push edi
add esp, 4
or edi, 0x1082c
pop edi
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x1a0c], ecx
mov edx, dword [ebp - 0x1a0c]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x1a10], eax
mov ecx, dword [ebp - 0x1a10]
mov dword [ebp - 0x167c], ecx
push ebx
xor ebx, 0x9fbe
add ebx, 0x9655
or ebx, 0x14c8b
and ebx, 0x722f
pop ebx
push edx
push edx
add esp, 4
xor edx, 0x1254c
xor edx, 0x2ae3
xor edx, 0x17d21
pop edx
cmp dword [ebp - 0x167c], 0
jne 0x407461
mov dword [ebp - 0x2fc], 0
jmp 0x407708
mov edx, dword [ebp - 0x167c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xce0], ecx
call dword [ecx + 0x53]
add esp, 4
xor ecx, 0xb58
jmp 0x407483
jmp 0x407489
jmp 0x407490
pop ecx
push eax
push eax
add esp, 4
and eax, 0xf2a2
pop eax
push ebx
sub ebx, 0xf2a6
pop ebx
cmp dword [ebp - 0xce0], 0
jne 0x4074bd
mov dword [ebp - 0x2fc], 0
jmp 0x407708
mov edx, dword [ebp - 0xce0]
mov dword [ebp - 0x51c], edx
push eax
push ecx
add esp, 4
call 0x4074dc
add byte [0x35474433], dh
cmp byte [ebx + 0x4c], al
add esp, 4
or eax, 0x17114
pop eax
push edx
call 0x4074f7
add byte [0x4c394f47], dh
inc eax
cmp dh, byte [edx + eax*2]
dec edx
add esp, 4
pop edx
lea eax, [ebp - 0x1738]
mov dword [ebp - 0xcdc], eax
mov ecx, dword [ebp - 0x51c]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcd8], edx
xor eax, eax
mov word [ebp - 0x224], ax
xor ecx, ecx
mov word [ebp - 0x40], cx
push ecx
push edx
add esp, 4
sub ecx, 0x41fd
or ecx, 0x34d2
sub ecx, 0x3364
add ecx, 0xcaa6
pop ecx
push ebx
or ebx, 0x1109a
sub ebx, 0x15682
or ebx, 0x146d
pop ebx
mov edx, dword [ebp - 0xcd8]
mov ax, word [edx]
mov word [ebp - 0x1046], ax
mov ecx, dword [ebp - 0xcd8]
add ecx, 2
mov dword [ebp - 0xcd8], ecx
mov dx, word [ebp - 0x1046]
invalid
invalid
xchg ebp, eax
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x6b2072ac
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x765c7a27
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
mov eax, section..rsrc
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x42bf341a
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..pdata
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x16d73281
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40c9fd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40ca1e
jl 0x40ca15
test edi, edi
jne 0x40ca1e
xor eax, eax
xor edx, edx
jmp 0x40cadf
cmp dword [ebx + 0x38], 0
je 0x40ca33
push eax
push edi
push dword [ebp + 8]
call fcn.0040cae5
jmp 0x40cadf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ca7a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ca7a
cmp eax, edi
jb 0x40ca54
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0042fe60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40ca80
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40cad4
mov ecx, ebx
call fcn.0040c0c5
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40cabf
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0045a2ba
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40cad4
jmp 0x40ca92
test edx, edx
je 0x40cad4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0045a2ba
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41e082
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x41e0a5
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41e093
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x42daf6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0045d2b3
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42db35
sub eax, 1
je 0x42db30
sub eax, 1
je 0x42db2c
xor eax, eax
leave
ret
push 3
jmp 0x42db37
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42f374
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42f3b3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f3b3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f3b3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42f3b3
cmp dword [ecx + 0x74], 0xe
jbe 0x42f3b3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x46d8f1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x490bfc
push 0x490bf4
push str.FlsAlloc
push 0x1e
call fcn.0046d5c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46d925
push dword [ebp + 8]
mov ecx, esi
call dword [0x48b224]
call esi
jmp 0x46d92b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46d96f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x490c0c
push 0x490c04
push str.FlsGetValue
push 0x20
call fcn.0046d5c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46d9a6
push dword [ebp + 8]
mov ecx, esi
call dword [0x48b224]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4727e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004723c7

Function at 0x4727eb
Capabilities:
Read file on windows

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

Function at 0x472d0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042f620
mov eax, dword [0x49f100]
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.004701bf
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x472d50
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x472eac
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00485160
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 + 0x4ec8f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004742a1
mov ecx, dword [esi*4 + 0x4ec8f0]
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 0x472ea5
cmp eax, dword [edi + ecx + 0x24]
jne 0x472ea5
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 0x472ea5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004742a1
add esp, 0x14
test edx, edx
jl 0x472ea5
jg 0x472e1b
test eax, eax
jb 0x472ea5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x472ea5
jl 0x472e35
cmp dword [ebp - 0x1008], eax
ja 0x472ea5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x472e53
test ebx, ebx
je 0x472e8c
cmp ecx, edi
jae 0x472e8c
mov al, byte [ecx]
cmp al, 0xd
jne 0x472e6d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x472e79
cmp byte [ecx + 1], 0xa
jne 0x472e79
inc ecx
jmp 0x472e79
movzx eax, al
movsx eax, byte [eax + 0x49f3f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x472e53
cmp edx, ebx
jne 0x472e53
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x472eaa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042e0ad
leave
ret
Function at 0x47342a
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 + 0x4ec8f0]
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 0x47346a
cmp byte [ebx], 0xa
jne 0x47346a
or byte [eax + edi + 0x28], 4
jmp 0x47346f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x47356d
mov al, byte [edx]
cmp al, 0x1a
je 0x47354f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x47349e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4734c3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4734cd
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 0x473480
jmp 0x47356d
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 0x47354a
cmp dword [ebp - 0xc], 0
je 0x47354a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ec8f0]
test byte [eax + edi + 0x28], 0x48
je 0x473524
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47350f
mov byte [esi], dl
jmp 0x473520
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ec8f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47356d
cmp byte [ebp - 1], 0xa
jne 0x473533
cmp esi, ebx
jne 0x473533
mov byte [esi], 0xa
jmp 0x47356c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004742bf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47356d
mov byte [esi], 0xd
jmp 0x47356c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ec8f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x473569
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47356d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x473576
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 + 0x4ec8f0]
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 0x4735b9
cmp word [esi], dx
jne 0x4735b9
or byte [edi + eax + 0x28], 4
jmp 0x4735be
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 0x473711
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 0x4736f1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x473600
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x473636
cmp eax, edx
jae 0x473642
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 0x4735d8
jmp 0x473711
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 0x4736ed
cmp dword [ebp - 0x14], 0
je 0x4736ed
mov eax, dword [ebx*4 + 0x4ec8f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4736c5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x47368e
mov word [esi], cx
jmp 0x4736c1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ec8f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ec8f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ec8f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x473711
pop ebx
cmp word [ebp - 4], bx
jne 0x4736d6
cmp esi, dword [ebp + 0xc]
jne 0x4736d6
mov word [esi], bx
jmp 0x47370e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004742bf
add esp, 0x10
cmp word [ebp - 4], bx
je 0x473711
push 0xd
jmp 0x47370a
mov ecx, dword [ebx*4 + 0x4ec8f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x473708
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x473711
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 0x476af7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x49f100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x476b42
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00476ed1
test al, al
jne 0x476b3c
sub edx, 2
cmp edx, edi
jne 0x476b22
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x476b64
lea eax, [edi + 2]
cmp edx, eax
je 0x476b64
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004767be
add esp, 0x10
jmp 0x476c5e
push esi
lea ecx, [ebp - 0x255]
call fcn.00476ed1
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x476ba7
push dword [ebp - 0x25c]
jmp 0x476b54
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x476be4
cmp word [ebp - 0x226], 0
je 0x476c05
cmp word [ebp - 0x226], ax
jne 0x476be4
cmp word [ebp - 0x224], 0
je 0x476c05
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004767be
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x476c51
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x476bbe
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x476c39
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x476c5e
push 0x4762dd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00481e00
add esp, 0x10
jmp 0x476c2e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e0ad
leave
ret
Function at 0x47804c
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 0x4780e9
push ebx
push esi
call fcn.00478008
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.0047543d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x478096
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4780e8
push edi
push eax
call fcn.0046f0e8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4780b6
call fcn.0046cf72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4780e7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0047543d
add esp, 0x20
test eax, eax
jne 0x4780d5
push edi
call fcn.0046cf72
jmp 0x4780dd
push ebx
call fcn.0046cf72
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 0x4780ec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4780fd
pop esi
ret
push ebx
push edi
push esi
call fcn.00478008
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046f0e8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x478125
push ebx
push esi
push edi
call fcn.0042fe60
add esp, 0xc
push 0
call fcn.0046cf72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x478a06
Capabilities:
Set environment variable

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

Function at 0x478e8d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00478d61

Function at 0x484f20
Capabilities:
Parse pe header

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

Function at 0x48a134
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
sar eax, 2
push esi
test eax, eax
je 0x48a1ba
xor esi, esi
mov al, byte [esi + 0x4e93e0]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x4e93e0], al
call fcn.0040618b
push eax
call fcn.00406159
mov al, byte [esi + 0x4e93e0]
mov edx, str.Earth
add al, 0x4e
xor al, 0xdc
pop ecx
mov byte [esi + 0x4e93e0], al
call fcn.0040618b
push eax
call fcn.00406159
mov al, byte [esi + 0x4e93e0]
xor al, 0xac
mov dword [esp], 0x49582c
sub al, 0x65
xor al, 0x22
sub al, 0x73
mov byte [esi + 0x4e93e0], al
call fcn.00458d4b
xor byte [esi + 0x4e93e0], al
inc esi
pop ecx
cmp esi, 0x4ac
jb 0x48a147
lea ecx, [esp + 0xc]
call fcn.00404eb8
pop esi
pop ecx
ret 0x14