joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e8b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov dword [eax + 0x34], 0
lea esi, [eax + 0x60]
mov word [eax + 0x1e], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x468], 0xffffffff
mov dword [eax + 0x46c], 0xffffffff
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x44e8f6
pop esi
pop ebp
ret

Function at 0x4506f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0046d5d1
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x45071b
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x452240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
test ebx, ebx
jne 0x452265
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004511b0
mov dword [esi + 4], ebx
mov eax, esi
mov dword [esi], 1
pop esi
pop ebx
pop ebp
ret
push edi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push ebx
call fcn.00451b10
mov edi, eax
add esp, 8
test edi, edi
je 0x45229a
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004511b0
mov dword [esi], edi
mov eax, esi
pop edi
mov dword [esi + 4], 0
pop esi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x10]
lea eax, [edi + 2]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4522ce
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004511b0
pop edi
mov dword [esi], 3
mov eax, esi
mov dword [esi + 4], 0
pop esi
pop ebx
pop ebp
ret
push ebx
push edi
push 1
push esi
call fcn.00464da4
add esp, 0x10
cmp eax, edi
je 0x452307
push esi
call dword [0x4bf004]
mov esi, dword [ebp + 8]
add esp, 4
mov ecx, esi
call fcn.004511b0
pop edi
mov dword [esi], 2
mov eax, esi
mov dword [esi + 4], 0
pop esi
pop ebx
pop ebp
ret
push edi
push esi
push dword [ebp + 0x18]
call fcn.00451ac0
add esp, 0xc
push dword [ebp + 0x1c]
push 1
push 1
push eax
push dword [ebp + 0x14]
push eax
push edi
push esi
call fcn.00454f80
add esp, 0xc
push eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
push eax
push esi
call fcn.00451f30
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45676a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4567a9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4567a9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4567a9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4567a9
cmp dword [ecx + 0x74], 0xe
jbe 0x4567a9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x461885
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00456930
mov eax, dword [0x4bf100]
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.0046d315
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4618c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x461a23
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047b930
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 + 0x4c0f40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0046404a
mov ecx, dword [esi*4 + 0x4c0f40]
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 0x461a1c
cmp eax, dword [edi + ecx + 0x24]
jne 0x461a1c
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 0x461a1c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046404a
add esp, 0x14
test edx, edx
jl 0x461a1c
jg 0x461992
test eax, eax
jb 0x461a1c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x461a1c
jl 0x4619ac
cmp dword [ebp - 0x1008], eax
ja 0x461a1c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4619ca
test ebx, ebx
je 0x461a03
cmp ecx, edi
jae 0x461a03
mov al, byte [ecx]
cmp al, 0xd
jne 0x4619e4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4619f0
cmp byte [ecx + 1], 0xa
jne 0x4619f0
inc ecx
jmp 0x4619f0
movzx eax, al
movsx eax, byte [eax + 0x4bf230]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4619ca
cmp edx, ebx
jne 0x4619ca
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x461a21
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00455c9e
leave
ret
Function at 0x46292a
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 + 0x4c0f40]
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 0x46296a
cmp byte [ebx], 0xa
jne 0x46296a
or byte [eax + edi + 0x28], 4
jmp 0x46296f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x462a6d
mov al, byte [edx]
cmp al, 0x1a
je 0x462a4f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46299e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4629c3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4629cd
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 0x462980
jmp 0x462a6d
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 0x462a4a
cmp dword [ebp - 0xc], 0
je 0x462a4a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4c0f40]
test byte [eax + edi + 0x28], 0x48
je 0x462a24
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x462a0f
mov byte [esi], dl
jmp 0x462a20
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c0f40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x462a6d
cmp byte [ebp - 1], 0xa
jne 0x462a33
cmp esi, ebx
jne 0x462a33
mov byte [esi], 0xa
jmp 0x462a6c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00464068
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x462a6d
mov byte [esi], 0xd
jmp 0x462a6c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4c0f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x462a69
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x462a6d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x462a76
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 + 0x4c0f40]
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 0x462ab9
cmp word [esi], dx
jne 0x462ab9
or byte [edi + eax + 0x28], 4
jmp 0x462abe
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 0x462c11
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 0x462bf1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x462b00
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x462b36
cmp eax, edx
jae 0x462b42
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 0x462ad8
jmp 0x462c11
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 0x462bed
cmp dword [ebp - 0x14], 0
je 0x462bed
mov eax, dword [ebx*4 + 0x4c0f40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x462bc5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x462b8e
mov word [esi], cx
jmp 0x462bc1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4c0f40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4c0f40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4c0f40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x462c11
pop ebx
cmp word [ebp - 4], bx
jne 0x462bd6
cmp esi, dword [ebp + 0xc]
jne 0x462bd6
mov word [esi], bx
jmp 0x462c0e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00464068
add esp, 0x10
cmp word [ebp - 4], bx
je 0x462c11
push 0xd
jmp 0x462c0a
mov ecx, dword [ebx*4 + 0x4c0f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x462c08
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x462c11
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 0x472c4d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a613c
push 0x4a6134
push str.FlsAlloc
push 0x1e
call fcn.00472ace
mov esi, eax
add esp, 0x10
test esi, esi
je 0x472c81
push dword [ebp + 8]
mov ecx, esi
call dword [0x484440]
call esi
jmp 0x472c87
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x472ccb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a614c
push 0x4a6144
push str.FlsGetValue
push 0x20
call fcn.00472ace
mov esi, eax
add esp, 0x10
test esi, esi
je 0x472d02
push dword [ebp + 8]
mov ecx, esi
call dword [0x484440]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4736e1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047365d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x473859
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x473859
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x473808
jg 0x47373a
test eax, eax
je 0x4737fe
push 1
push 0x1000
call fcn.0047293e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x473760
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4737f5
push 0x8000
push ebx
call fcn.0046ecac
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x47378c
jg 0x473787
cmp ecx, 0x1000
jb 0x47378c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004649be
add esp, 0x10
cmp eax, 0xffffffff
je 0x4737d1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x473787
jl 0x4737b8
test ecx, ecx
jne 0x473779
push dword [ebp - 0xc]
push ebx
call fcn.0046ecac
push esi
call fcn.00471291
add esp, 0xc
xor edi, edi
jmp 0x47386a
cmp byte [edi + 0x24], 0
je 0x4737e8
cmp dword [edi + 0x20], 5
jne 0x4737e8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4737f3
mov edi, dword [edi + 0x18]
jmp 0x4737f5
xor edi, edi
push esi
call fcn.00471291
pop ecx
jmp 0x47386a
test ecx, ecx
jg 0x4737ca
jl 0x473808
test eax, eax
jae 0x4737ca
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00464068
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47382b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4737ca
jmp 0x473862
push ebx
call fcn.004735f3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4737ca
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x47386a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x473867
mov edi, dword [edi + 0x18]
jmp 0x47386a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00464068
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4742c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474136
Function at 0x475c52
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4bf100]
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 0x475c9d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00475df1
test al, al
jne 0x475c97
sub edx, 2
cmp edx, edi
jne 0x475c7d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x475cbf
lea eax, [edi + 2]
cmp edx, eax
je 0x475cbf
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00475b9e
add esp, 0x10
jmp 0x475db9
push esi
lea ecx, [ebp - 0x255]
call fcn.00475df1
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 0x475d02
push dword [ebp - 0x25c]
jmp 0x475caf
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 0x475d3f
cmp word [ebp - 0x226], 0
je 0x475d60
cmp word [ebp - 0x226], ax
jne 0x475d3f
cmp word [ebp - 0x224], 0
je 0x475d60
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00475b9e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x475dac
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x475d19
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x475d94
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x475db9
push 0x4759ce
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047a470
add esp, 0x10
jmp 0x475d89
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.00455c9e
leave
ret

Function at 0x4766c4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4766d5
pop esi
ret
push ebx
push edi
push esi
call fcn.0047668d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004712cb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4766fd
push ebx
push esi
push edi
call fcn.00457890
add esp, 0xc
push 0
call fcn.00471291
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x476ac1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476712
Function at 0x47b800
Capabilities:
Parse pe header

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

Disassembly:
mov eax, dword [esp + 4]
push 0x10007500
push 0
push eax
push 0x10001020
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [0x100074fc], eax
ret

Function at 0x10004160
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
xor eax, eax
cmp byte [ecx + 1], 3
mov ebp, dword [esp + 0x14]
sete al
xor edx, edx
cmp byte [ecx], 1
mov ecx, 0
sete dl
and eax, edx
sete cl
lea ecx, [ecx + ecx + 4]
movzx edx, cx
movzx si, byte [edx + edi - 2]
add edx, edi
movzx dx, byte [edx - 1]
shl si, 8
or si, dx
sub si, 2
movzx edx, si
mov esi, dword [esp + 0x18]
mov word [esi], dx
add ecx, edx
movzx esi, cx
movzx ebx, byte [esi + edi + 1]
add esi, edi
movzx esi, byte [esi]
shl esi, 8
sub ecx, edx
movzx edx, dx
or ebx, esi
xor esi, esi
test edx, edx
jbe 0x100041dd
movzx ecx, cx
add edi, ecx
mov cl, byte [edi + esi]
mov byte [esi + ebp], cl
inc esi
cmp esi, edx
jb 0x100041d2
test eax, eax
jne 0x10004220
mov eax, 0xffff
mov ecx, ebp
test edx, edx
jbe 0x10004211
lea esp, [esp]
movzx esi, ax
shl eax, 8
shr esi, 8
xor ax, word [esi*2 + 0x10005208]
movzx si, byte [ecx]
xor ax, si
inc ecx
sub edx, 1
movzx eax, ax
jne 0x100041f0
movzx edx, ax
pop edi
pop esi
xor eax, eax
cmp edx, ebx
pop ebp
sete al
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x10004230
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
push esi
xor esi, esi
cmp dl, 3
sete al
xor ebx, ebx
cmp cl, 1
sete bl
and eax, ebx
mov dword [esp + 0x10], eax
jne 0x10004262
mov byte [edi], 1
mov byte [edi + 1], 2
mov esi, 2
movzx eax, si
add eax, edi
mov byte [eax], dl
mov byte [eax + 1], cl
add esi, 4
movzx eax, si
movzx edx, bp
add eax, edi
mov ecx, 0xffff
test edx, edx
jbe 0x100042a1
movzx ebx, cx
shl ecx, 8
shr ebx, 8
xor cx, word [ebx*2 + 0x10005208]
movzx bx, byte [eax]
xor cx, bx
inc eax
sub edx, 1
movzx ecx, cx
jne 0x10004280
movzx eax, cx
add esi, ebp
movzx ecx, si
add ecx, edi
mov edx, eax
shr edx, 8
add esi, 2
cmp dword [esp + 0x10], 0
mov byte [ecx], dl
mov byte [ecx + 1], al
jne 0x100042f5
movzx eax, si
add eax, edi
add esi, 2
lea ecx, [esi - 8]
mov byte [eax], 3
mov byte [eax + 1], 4
movzx eax, cx
mov edx, 0xfffe
sub edx, eax
add esi, edx
movzx ecx, si
add ecx, edi
mov edx, eax
mov byte [ecx - 1], al
lea eax, [eax + esi + 2]
pop esi
shr edx, 8
pop ebp
mov byte [ecx - 2], dl
pop ebx
ret
add esi, 0xfffffffc
movzx eax, si
mov ecx, eax
pop esi
shr ecx, 8
pop ebp
mov byte [edi + 3], al
mov byte [edi + 2], cl
add eax, 4
pop ebx
ret
Function at 0x100043f0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
movzx eax, ax
add ecx, 2
mov edx, 5
push edi
lea ecx, [ecx]
movzx edi, byte [ecx - 2]
movzx esi, ax
shr esi, 8
xor di, word [esi*2 + 0x10005208]
shl eax, 8
xor di, ax
movzx eax, di
movzx edi, byte [ecx - 1]
movzx esi, ax
shr esi, 8
xor di, word [esi*2 + 0x10005208]
shl eax, 8
xor di, ax
movzx eax, di
movzx edi, byte [ecx + 1]
movzx esi, ax
shl eax, 8
shr esi, 8
xor ax, word [esi*2 + 0x10005208]
movzx si, byte [ecx]
xor ax, si
movzx eax, ax
movzx esi, ax
shr esi, 8
xor di, word [esi*2 + 0x10005208]
shl eax, 8
xor di, ax
movzx eax, di
movzx edi, byte [ecx + 2]
movzx esi, ax
shr esi, 8
xor di, word [esi*2 + 0x10005208]
shl eax, 8
xor di, ax
movzx eax, di
movzx edi, byte [ecx + 3]
movzx esi, ax
shr esi, 8
xor di, word [esi*2 + 0x10005208]
shl eax, 8
xor di, ax
add ecx, 6
sub edx, 1
movzx eax, di
jne 0x10004400
pop edi
pop esi
ret

Function at 0x100046ee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100046f8
repz ret
jmp fcn.10004aab
Function at 0x477160
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x61000]
push edi
jmp 0x47717a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x477181
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477170
mov eax, 1
add ebx, ebx
jne 0x477193
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4771a4
jne 0x4771c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4771c3
dec eax
add ebx, ebx
jne 0x4771b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x477188
add ebx, ebx
jne 0x4771bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x477215
xor ecx, ecx
sub eax, 3
jb 0x4771db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47724a
sar eax, 1
mov ebp, eax
jmp 0x4771e6
add ebx, ebx
jne 0x4771e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4771b4
inc ecx
add ebx, ebx
jne 0x4771f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4771b4
add ebx, ebx
jne 0x477201
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4771f6
jne 0x477212
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4771f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x477234
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x477226
jmp 0x477176
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x477234
add edi, ecx
jmp 0x477176
pop esi
mov edi, esi
mov ecx, 0x25ac
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x477252
cmp byte [edi], 5
jne 0x477252
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 0x477257
lea edi, [esi + 0x74000]
mov eax, dword [edi]
or eax, eax
je 0x4772cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x77000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x77118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x477284
mov ecx, edi
jns 0x4772b3
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 + 0x7711c]
or eax, eax
je 0x4772c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4772a1
call dword [esi + 0x7712c]
mov ebp, dword [esi + 0x77120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x477303
sub esp, 0xffffff80
jmp section.UPX0