joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ed3
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7a0ef0], 0x4c554e
mov edi, 0x400
mov ebp, 0x7a0ef0
je 0x405f1f
push 1
push 0
push esi
call fcn.00405dfd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40603e
cmp eax, edi
jg 0x40603e
mov esi, 0x7a12f0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40603e
cmp eax, edi
jg 0x40603e
push esi
push ebp
push str._s_s_r_n
push 0x7a0af0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a2b70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062fd
push 4
push 0xc0000000
push esi
call fcn.00405dfd
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40603e
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406037
push edi
push esi
push ebp
call fcn.00405e75
test eax, eax
je 0x406037
push str._Rename__r_n
push esi
call fcn.00405d62
test eax, eax
jne 0x405fd5
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40600a
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405d62
mov ebp, eax
test ebp, ebp
je 0x406006
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ff7
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405ff1
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40600c
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a0af0
push eax
call fcn.00405db8
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405ea4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406043
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x406066
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ed3
pop ecx
pop ecx
inc dword [0x7a2bf0]
ret 8

Function at 0x406151
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060f0
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4061c0
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x4061c0
cmp dword [ebp + 0xc], 1
je 0x4061c3
cmp dword [ebp + 0xc], 2
je 0x4061c3
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40665a
xor ecx, ecx
jmp 0x40665d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406749
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a16f4], 0
push esi
jne 0x406780
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40675a
mov dword [ecx*4 + 0x7a16f0], eax
inc ecx
cmp ecx, 0x100
jl 0x406755
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b1
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a16f0]
xor eax, esi
inc ecx
dec edx
jne 0x406793
pop edi
not eax
pop esi
ret 0xc
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x304a460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x304a860]
xor edx, dword [ebx*4 + 0x304ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x304a460]
add ecx, 4
xor edx, dword [eax*4 + 0x304b060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x304a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x304ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x304a460]
add ecx, 4
xor eax, dword [edx*4 + 0x304b060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x304a860]
xor edx, dword [ebx*4 + 0x304ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x304a460]
xor edx, dword [eax*4 + 0x304b060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x304a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x304ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x304a460]
xor eax, dword [edx*4 + 0x304b060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x304a860]
xor edx, dword [ebx*4 + 0x304ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x304a460]
xor edx, dword [eax*4 + 0x304b060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x304a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x304ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x304a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x304b060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x304a860]
xor edx, dword [ebx*4 + 0x304ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x304a460]
add ecx, 4
xor edx, dword [eax*4 + 0x304b060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x304a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x304ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x304a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x304b060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x304a860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x304ac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x304a460]
and eax, 0xff
xor edi, dword [eax*4 + 0x304b060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x304a460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x666f4d3e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0xb013d3
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4d2cf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcd000]
push edi
jmp 0x4d2d0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d2d11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2d00
mov eax, 1
add ebx, ebx
jne 0x4d2d23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d2d18
jne 0x4d2d34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d2d18
xor ecx, ecx
sub eax, 3
jb 0x4d2d48
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d2dba
mov ebp, eax
add ebx, ebx
jne 0x4d2d53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4d2d60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4d2d84
inc ecx
add ebx, ebx
jne 0x4d2d70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d2d65
jne 0x4d2d81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d2d65
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d2da4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d2d95
jmp 0x4d2d06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d2da4
add edi, ecx
jmp 0x4d2d06
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x4d2df5
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x4d2dd5
cmp al, 0x8f
ja 0x4d2dd5
cmp byte [edi - 2], 0xf
je 0x4d2ddb
sub al, 0xe8
cmp al, 1
ja 0x4d2dff
cmp ecx, 4
jb 0x4d2e04
mov eax, dword [edi]
sub al, 1
jne 0x4d2dff
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x4d2e04
mov al, byte [edi]
inc edi
jmp 0x4d2dd5
sub ecx, 1
jae 0x4d2dc4
lea edi, [esi + 0xd0000]
mov eax, dword [edi]
or eax, eax
je 0x4d2e55
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x154884]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15493c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d2e0a
mov ecx, edi
jns 0x4d2e39
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 + 0x154944]
or eax, eax
je 0x4d2e4f
mov dword [ebx], eax
add ebx, 4
jmp 0x4d2e27
call dword [esi + 0x154940]
mov ebp, dword [esi + 0x154948]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4d2e89
sub esp, 0xffffff80
jmp 0x4034a5
Function at 0x610630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x151000]
mov dword [edi + 0x1d0b20], 0x660e010c
push edi
jmp 0x61065a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x610661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x610650
mov eax, 1
add ebx, ebx
jne 0x610673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x610684
jne 0x6106a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6106a3
dec eax
add ebx, ebx
jne 0x610690
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x610668
add ebx, ebx
jne 0x61069f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6106f5
xor ecx, ecx
sub eax, 3
jb 0x6106bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x61072a
sar eax, 1
mov ebp, eax
jmp 0x6106c6
add ebx, ebx
jne 0x6106c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x610694
inc ecx
add ebx, ebx
jne 0x6106d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x610694
add ebx, ebx
jne 0x6106e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6106d6
jne 0x6106f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6106d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x610714
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x610706
jmp 0x610656
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x610714
add edi, ecx
jmp 0x610656
pop esi
mov edi, esi
mov ecx, 0xad18
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x610732
cmp byte [edi], 0x22
jne 0x610732
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 0x610737
lea edi, [esi + 0x1fb000]
mov eax, dword [edi]
or eax, eax
je 0x6107af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x212dc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x212f40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x610764
mov ecx, edi
jns 0x610793
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 + 0x212f44]
or eax, eax
je 0x6107a9
mov dword [ebx], eax
add ebx, 4
jmp 0x610781
call dword [esi + 0x212f54]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6107e0
cmp al, 0xef
ja 0x6107d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6107b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6107c2
mov ebp, dword [esi + 0x212f48]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x610814
sub esp, 0xffffff80
jmp 0x54b46e
Function at 0x430006
Capabilities:
Encode data using xor

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

Function at 0x412d20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x412d3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412d41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412d30
mov eax, 1
add ebx, ebx
jne 0x412d53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412d48
jne 0x412d64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412d48
xor ecx, ecx
sub eax, 3
jb 0x412d78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412dea
mov ebp, eax
add ebx, ebx
jne 0x412d83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412d90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412db4
inc ecx
add ebx, ebx
jne 0x412da0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412d95
jne 0x412db1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412d95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412dd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412dc5
jmp 0x412d36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412dd4
add edi, ecx
jmp 0x412d36
pop esi
mov edi, esi
mov ecx, 0x32f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412df2
cmp byte [edi], 0
jne 0x412df2
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 0x412df7
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412e66
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x120e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12198]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412e24
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1219c]
or eax, eax
je 0x412e60
mov dword [ebx], eax
add ebx, 4
jmp 0x412e41
call dword [esi + 0x121ac]
mov ebp, dword [esi + 0x121a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x412e9a
sub esp, 0xffffff80
jmp 0x4082e0
Function at 0x4014e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4014f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40150d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40152e
cmp esi, eax
jae 0x401507
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401520
cmp esi, eax
jae 0x401507
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403d70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x4e833c]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0xdc], eax
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [section.Shared], esi
je 0x403dbf
mov eax, dword [section.Shared]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
mov ecx, dword [esp + 0xdc]
call fcn.0040ac63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
mov dword [0x4e8ce8], ecx
xor eax, eax
lea edx, [esp + 0x40]
mov ecx, 0x25
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x44], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x50], 1
jne 0x403e04
cmp dword [esp + 0x44], 5
jae 0x403e04
cmp dword [esp + 0x48], 0x5a
ja 0x403e04
mov byte [0x4e8cec], 1
lea ecx, [esp + 0x10]
call fcn.00402450
push esi
push 0x64
call fcn.00401540
add esp, 8
cmp eax, esi
je 0x403e28
push 0x64
push eax
lea ecx, [esp + 0x18]
call fcn.00402690
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x20a0000
push ecx
mov ecx, 0x4e8d98
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.00404bc0
test eax, eax
lea ecx, [esp + 0x10]
jne 0x403e75
call fcn.004015d0
xor eax, eax
mov ecx, dword [esp + 0xdc]
call fcn.0040ac63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004015d0
push esi
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea edx, [esp + 0x30]
push edx
call esi
test eax, eax
jle 0x403eef
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ebx, [ebx]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
mov ecx, 0x4e8d98
call fcn.00404000
test eax, eax
jne 0x403ede
lea eax, [esp + 0x24]
push eax
mov ecx, 0x4e8d98
call fcn.004038a0
test eax, eax
jne 0x403ede
lea ecx, [esp + 0x24]
push ecx
call edi
lea edx, [esp + 0x24]
push edx
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
jg 0x403ea0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0xdc]
mov eax, 1
call fcn.0040ac63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404d80
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esi]
mov dword [esp + 0x18], edi
mov edi, dword [esi + 4]
mov dword [esp + 0x14], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x10], edi
mov edx, 0xc6ef3720
mov dword [esp + 0x24], esi
mov edi, 0x20
lea esp, [esp]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
shr esi, 5
add esi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
sub eax, esi
mov esi, eax
shr esi, 5
add esi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
sub ecx, esi
add edx, 0x61c88647
dec edi
jne 0x404dc0
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 0xc
ret

Function at 0x405a30
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x28
mov eax, dword [0x4e833c]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [esp + 0x48]
cmp edi, ebx
mov dword [esp + 0x34], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
jle 0x405a84
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
push ebp
push ebx
push esi
mov ecx, esi
call fcn.004058d0
dec edi
jne 0x405a75
xor ebx, ebx
mov ebp, dword [esp + 0x44]
push esi
push ebp
mov ecx, esi
call fcn.004059a0
xor eax, eax
mov word [esp + 0x49], ax
mov byte [esp + 0x48], 0
mov byte [esp + 0x4b], al
lea edi, [esp + 0x10]
mov dword [esp + 0x10], ebx
xor esi, esi
jmp 0x405ab0
movzx ecx, byte [esi + ebp]
push ecx
push str._02x
lea edx, [esp + 0x50]
push 4
push edx
call fcn.0040b885
push 2
lea eax, [esp + 0x5c]
push eax
push edi
call fcn.0040b750
add esp, 0x1c
add edi, 2
inc esi
cmp esi, 0x10
jl 0x405ab0
mov byte [edi - 1], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
pop esi
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x2c]
pop ebp
pop ebx
call fcn.0040ac63
add esp, 0x28
ret 0x10
Function at 0x406bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412bc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
push eax
mov dword [esp + 0xc], edi
call fcn.00406810
mov ecx, dword [esp + 0x20]
mov dword [edi + 4], ecx
push 0x40100000
push 0x3e800000
push 0x3f400000
push 1
lea esi, [edi + 0xc]
push 0x11
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.00405fc0
mov ecx, dword [esp + 0xc]
mov eax, edi
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], 0x4c
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8