joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa653f8
Capabilities:
Parse pe header

Disassembly:
mov eax, 8
call fcn.00b2e9a8
mov eax, dword [esp + 0x10]
dec eax
jne 0xa654d6
mov eax, dword [0x10121d34]
test eax, eax
jne 0xa654af
push esi
push 0x100cc558
mov dword [0x10121d34], 1
call dword [0x100cc0bc]
add esp, 4
test eax, eax
je 0xa6549b
mov dl, byte [eax]
xor ecx, ecx
cmp dl, 0x7e
push edi
sete cl
mov edi, ecx
lea edx, [esp + 8]
push edx
push 0x100cc550
lea esi, [edi + eax]
push esi
call dword [0x100cc0b8]
add esp, 0xc
test eax, eax
jne 0xa65477
push eax
push eax
push esi
call dword [0x100cc0b4]
add esp, 0xc
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jmp 0xa6547f
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
test edi, edi
pop edi
je 0xa654a0
call fcn.00a67ff8
mov ecx, dword [esp + 4]
mov esi, dword [esp + 8]
not ecx
not esi
and eax, ecx
and edx, esi
jmp 0xa654a0
call fcn.00a67ff8
or ah, 4
mov dword [0x1012407c], edx
mov dword [0x10124078], eax
pop esi
mov ecx, dword [esp + 0xc]
cmp word [ecx], 0x5a4d
jne 0xa654d6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xa654d6
cmp ecx, dword [eax + 0x34]
je 0xa654d6
mov dword [0x10121d38], 1
mov eax, 1
add esp, 8
ret 0xc
Function at 0xa7057c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.00b2e9a8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0xa70543
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0xa70555
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0xa706fb
push esi
call fcn.00ad2b28
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0xa7058b
push 0x100ccb5c
push 0x68
push 0x100ccb44
call fcn.00a656f8
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0xa705e8
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.00ac9cd8
add esp, 0xc
test eax, eax
je 0xa706ee
mov eax, dword [esp + 0x98]
push ebp
push eax
push edi
call fcn.00ac9e88
add esp, 0xc
test eax, eax
je 0xa706ee
lea esi, [ebx + 0x4c]
lea ecx, [ebx + 0x50]
push esi
push ecx
push edi
call fcn.00ac9fb8
add esp, 0xc
test eax, eax
je 0xa706ee
jmp 0xa70627
test ebp, ebp
jl 0xa705f4
cmp ebp, 0x80
jle 0xa70608
push 0x100ccb1c
push 0x75
push 0x100ccb44
call fcn.00a656f8
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x4c]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0xa7064c
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x50]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0xa70655
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x1c]
push ebp
push esi
push edi
call fcn.00ac9cd8
add esp, 0xc
test eax, eax
je 0xa706ee
push esi
call fcn.00ad2b28
lea edx, [esp + 0x14]
push eax
push edx
push edi
call fcn.00ac9e88
add esp, 0x10
test eax, eax
je 0xa706ee
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0xa7069c
lea edi, [ebx + 0x34]
push ebp
push esi
push edi
call fcn.00ac9cd8
add esp, 0xc
test eax, eax
je 0xa706ee
push esi
call fcn.00ad2b28
lea edx, [esp + 0x14]
push eax
push edx
push edi
call fcn.00ac9e88
add esp, 0x10
test eax, eax
je 0xa706ee
lea eax, [ebx + 0x1c]
add ebx, 4
push eax
push ebx
call fcn.00aca058
add esp, 8
test eax, eax
jne 0xa70704
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
test eax, eax
je 0xa706da
jmp 0xa70653
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret
Function at 0xa8c3f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.00b2e9a8
mov eax, dword [ebp + 0x20]
push ebx
push esi
push edi
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp - 4], ecx
je 0xa8c445
mov eax, dword [ebp + 0x10]
test eax, eax
je 0xa8c445
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov dl, byte [ecx + edx]
mov al, byte [esi]
xor dl, al
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
mov edx, dword [ebp + 0x10]
inc eax
inc esi
dec edx
inc ecx
and ecx, 0xf
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], esi
mov dword [ebp + 0x10], edx
mov dword [ebp - 4], ecx
jne 0xa8c414
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 0xc]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
bswap eax
mov ebx, eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x10
jb 0xa8c4d5
mov edi, dword [ebp + 0x10]
shr edi, 4
add ebx, edi
cmp ebx, edi
mov dword [ebp + 0x18], ebx
jae 0xa8c473
sub edi, ebx
xor ebx, ebx
mov dword [ebp + 0x18], ebx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push ecx
push edi
push edx
push eax
call dword [ebp + 0x24]
add esp, 0x14
mov eax, dword [ebp + 0x18]
bswap eax
test ebx, ebx
mov dword [esi + 0xc], eax
jne 0xa8c4b2
mov cl, byte [esi + 0xb]
mov eax, 0xb
inc cl
mov byte [esi + 0xb], cl
jne 0xa8c4b2
test eax, eax
je 0xa8c4b2
mov cl, byte [eax + esi - 1]
dec eax
inc cl
mov byte [eax + esi], cl
je 0xa8c4a2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
shl edi, 4
sub eax, edi
add ecx, edi
add edx, edi
cmp eax, 0x10
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
jae 0xa8c45d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0xa8c566
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov edx, edi
xor ecx, ecx
push esi
push eax
mov dword [edx], ecx
push 1
push edi
push edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
call dword [ebp + 0x24]
add esp, 0x14
inc ebx
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x18]
bswap eax
test ebx, ebx
mov dword [esi + 0xc], eax
jne 0xa8c530
mov cl, byte [esi + 0xb]
mov eax, 0xb
inc cl
mov byte [esi + 0xb], cl
jne 0xa8c530
test eax, eax
je 0xa8c530
mov cl, byte [eax + esi - 1]
dec eax
inc cl
mov byte [eax + esi], cl
je 0xa8c520
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
dec ecx
sub esi, edi
sub edx, edi
inc ecx
lea eax, [ebx + edi]
add ebx, ecx
mov dword [ebp - 4], ebx
mov bl, byte [esi + eax]
xor bl, byte [eax]
inc eax
dec ecx
mov byte [edx + eax - 1], bl
jne 0xa8c54a
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0xa8d7e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.00b2e9a8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
mov ebx, dword [esi + 0x160]
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
cmp edi, 0xc
mov dword [ebp - 4], ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x168], eax
jne 0xa8d860
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov edi, 1
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov byte [esi + 0xf], 1
mov dword [ecx + 8], eax
jmp 0xa8d973
cmp edi, 0x10
mov dword [ebp - 0xc], edi
jb 0xa8d8a9
mov eax, edi
shr eax, 4
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov edx, 0x10
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0xa8d87c
mov ebx, dword [ebp - 4]
lea ecx, [esi + 0x60]
push ecx
push esi
call ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 8
add edx, 0x10
sub edi, 0x10
dec eax
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], eax
jne 0xa8d870
xor eax, eax
cmp edi, eax
je 0xa8d8c9
jbe 0xa8d8bf
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec edi
jne 0xa8d8b6
lea eax, [esi + 0x60]
push eax
push esi
call ebx
add esp, 8
mov eax, dword [ebp - 0xc]
mov ecx, 3
xor edx, edx
call fcn.00b2ea58
mov edi, edx
mov dl, byte [esi + 8]
mov ecx, edi
mov ebx, eax
mov al, byte [esi + 9]
mov dword [ebp - 8], edi
shr ecx, 0x18
xor dl, cl
mov cl, byte [esi + 0xa]
mov byte [esi + 8], dl
mov edx, edi
shr edx, 0x10
xor al, dl
mov dl, byte [esi + 0xb]
mov byte [esi + 9], al
mov eax, edi
shr eax, 8
xor cl, al
mov eax, ebx
mov byte [esi + 0xa], cl
mov cl, byte [ebp - 8]
xor dl, cl
mov ecx, 0x18
mov byte [esi + 0xb], dl
mov edx, edi
call fcn.00b2e9f8
mov cl, byte [esi + 0xc]
mov edx, edi
xor cl, al
mov eax, ebx
mov byte [esi + 0xc], cl
mov ecx, 0x10
call fcn.00b2e9f8
mov dl, byte [esi + 0xd]
mov ecx, 8
xor dl, al
mov eax, ebx
mov byte [esi + 0xd], dl
mov edx, edi
call fcn.00b2e9f8
mov cl, byte [esi + 0xe]
lea edx, [esi + 0x60]
xor cl, al
mov al, byte [esi + 0xf]
xor al, bl
push edx
push esi
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], al
call dword [ebp - 4]
mov eax, dword [esi + 0xc]
add esp, 8
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
bswap eax
mov edi, eax
mov ecx, dword [esi + 0x174]
lea edx, [esi + 0x20]
push ecx
push edx
push esi
call dword [esi + 0x170]
add esp, 0xc
inc edi
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 0xc]
bswap eax
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xbf6f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x553000]
push edi
or ebp, 0xffffffff
jmp 0xbf6f72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xbf6f79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbf6f68
mov eax, 1
add ebx, ebx
jne 0xbf6f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xbf6f9c
jne 0xbf6fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbf6fbb
dec eax
add ebx, ebx
jne 0xbf6fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xbf6f80
add ebx, ebx
jne 0xbf6fb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xbf700d
xor ecx, ecx
sub eax, 3
jb 0xbf6fd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xbf7042
sar eax, 1
mov ebp, eax
jmp 0xbf6fde
add ebx, ebx
jne 0xbf6fde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbf6fac
inc ecx
add ebx, ebx
jne 0xbf6fec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbf6fac
add ebx, ebx
jne 0xbf6ff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xbf6fee
jne 0xbf700a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xbf6fee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xbf702c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xbf701e
jmp 0xbf6f6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xbf702c
add edi, ecx
jmp 0xbf6f6e
pop esi
mov edi, esi
mov ecx, 0x37a14
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xbf704a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xbf704f
lea edi, [esi + 0x7f1000]
mov eax, dword [edi]
or eax, eax
je 0xbf70b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7fe0ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7fe1d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xbf7075
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7fe1dc]
or eax, eax
je 0xbf70b1
mov dword [ebx], eax
add ebx, 4
jmp 0xbf7092
call dword [esi + 0x7fe1ec]
mov ebp, dword [esi + 0x7fe1e0]
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 0xbf70eb
sub esp, 0xffffff80
jmp 0x915050
Function at 0x4592d8
Capabilities:
Encode data using xor

Disassembly:
stosd dword es:[edi], eax
adc eax, dword [edx]
xchg byte [esi - 0x5b], bh
xchg ecx, eax
mov byte [0x34210727], al
das
and al, 0xc1
adc byte [edi + 0x551bee71], 0x64
push ebp
xor al, 0xa0
les ebp, [0x8704dfbc]
out dx, eax
mov cl, 0x82
inc esi
adc al, 0x81
nop
xchg ebp, eax
mov esi, 0x451184f2
inc ebp
inc ecx
adc ah, byte [ebx + eax + 0x20929f05]
test dl, 0x64
mov ch, 0x6f
xchg ecx, eax
mov edi, 0xc81014f0
pop edi
sbb ebx, dword [ebp - 0x5e9b6db3]
or dl, byte [esi]
and dword [ecx + 0x5a], esi
or al, 0xa
push ecx
push 0xa4c39f69
mov ebp, 0x979b1b04
leave
lahf
lds eax, [edx - 0x73111085]
push ds
and cl, bh
movsb byte es:[edi], byte [esi]
rol dword ss:[ebp + 0x5d3d4686], 1
scasb al, byte es:[edi]
jns 0x4592d9
xchg esp, eax
popal
in al, 0x33
invalid

Function at 0x52e614
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x403dab
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x52b0c4]
call 0x66deb0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x403d89
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0052e558
mov eax, dword [ebp - 0xc]
call sym.imp.KERNEL32.dll_LoadResource
xor eax, eax
push ebp
push 0x403d6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x52e6de
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0052e0cc
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
pop ecx
call 0x658bf4
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x52e696
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d73
mov eax, dword [ebp - 0xc]
call sym.imp.KERNEL32.dll_InitializeCriticalSection
ret
Function at 0x5445d0
Capabilities:
Encode data using xor

Disassembly:
mov cl, 0xce
mov edi, 0x6b1ee791
or eax, 0x15c7c2d7
sbb cl, byte [ebp - 0x7117d141]
call 0x8424f53
add dword [edi - 0x12], esi
test eax, 0x9a974aee
push es
push cs
xchg byte [ebp - 0x59af6e21], bh
dec esi
mov eax, dword [edi - 0xd]
add byte [0x90466958], dl
imul eax, dword [esi - 0x70], 0x4417b32
outsb dx, byte [esi]
shl bl, 0xd9
inc edi
std
push ss
sub eax, 0xfed9f670
lcall 0xe6dd, 0x96c68579
in al, 0xa3
inc esi
xor byte [eax + 0x937572e], bh
pop ds
push es
or ch, byte [edx + 0x4306153e]
insb byte es:[edi], dx
sal byte [edi + 0x6e57890f], 1
xchg ecx, eax
mov dl, 0x77
mov esp, 0x268fd76b
inc edx
jp 0x5445cf
mov ch, 0xe7
mov ebp, 0xf5b672f1
aaa
xor dword [ebx - 0x56147b4b], esp
adc byte [ecx - 0x49], bl
push cs
lds ebx, [edi - 0x72]
invalid
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403e59
pop dword [ebp - 0x50]
mov eax, 0xc36bcc33
add eax, 0x3cd47226
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xef9563c6
sub dword [ebp - 0x60], 0xa1431e7b
mov dword [ebp - 0x5c], 0xc551024f
add dword [ebp - 0x5c], 0x6ce249f6
mov dword [ebp - 0x58], 0xafc6b15c
sub dword [ebp - 0x58], 0x637a6d2e
mov dword [ebp - 0x54], 0xb975af24
add dword [ebp - 0x54], 0x468a50dc
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x6cc2fb78
add dword [ebp - 0x60], 0x7af6dde
mov dword [ebp - 0x5c], 0x4532b193
add dword [ebp - 0x5c], 0xfc39afe2
mov dword [ebp - 0x58], 0x1cebbed2
sub dword [ebp - 0x58], 0xb97c5266
mov dword [ebp - 0x54], 0x97d028a9
sub dword [ebp - 0x54], 0x97d028a9
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x93138e53
add eax, 0x6d2ce255
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3aaf5
push 0
call eax
mov ecx, 0xf9e057b7
sub ecx, 0xf9dffff7
mov edx, eax
mov edi, 0xca4ff7e8
sub edi, 0xca0ef7e8
add edi, dword [ebp - 0x50]
mov esi, 0xe0fb6203
add esi, 0xe5afd298
xor dword [ebp - 4], ebx
mov ebx, dword [edi]
add dword [ebp - 0x20], edi
add ebx, esi
mov dword [edx], ebx
sub dword [ebp - 0x48], 0xdaaf25dd
add edx, 0x76223c63
add edx, 0x89ddc3a1
add edi, 0x259b3aab
sub edi, 0x259b3aa7
loop 0x403f76
add eax, 0x151d3
mov ebx, eax
add eax, 0x17e0fe06
sub eax, 0x17e0fe01
mov ecx, 0x43e51794
add ecx, 0xbc5ae86c
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4032dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405120
test esi, esi
jne 0x403312
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405210
jmp 0x403330
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031e0
mov edi, eax
test esi, esi
je 0x403330
cmp dword [ebx], 0
je 0x403330
dec esi
jmp 0x403319
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4040cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a3020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404164
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404144
xor eax, eax
push ebp
push 0x40413d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404180
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404144
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4a3020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a3020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404f80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52f04c], 0
je 0x404fe1
cmp word [0x52f220], 0xd7b2
jne 0x404fa9
cmp dword [0x52f228], 0
jbe 0x404fa9
mov eax, 0x52f21c
call dword [0x52f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405008
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a302c], 0
jne 0x404ffd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40d390
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d208
mov eax, dword [0x52e4c8]
cmp byte [eax], 0
je 0x40d40c
mov eax, dword [0x52e270]
call fcn.00403724
call fcn.0040304c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a2a4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d454
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d442
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x52e210]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5317f8]
call fcn.0040668c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40dd0c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40dde2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004051b8
lea eax, [ebp - 4]
call fcn.00405608
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004055b0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ddcc
mov eax, ebx
call fcn.00402ef0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ddc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004055b0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ddaf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ddf4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ddaf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ddcc
mov eax, dword [ebp - 0x10]
call fcn.00402f0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dde9
lea eax, [ebp - 4]
call fcn.00405120
ret
Function at 0x420674
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5339ec
cmp dword [edi], 0
jne 0x4206f0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5339e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a3aec
mov ecx, 2
call fcn.004030e0
mov edx, 0x42064c
lea eax, [esi + 5]
call fcn.0042066c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042066c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4206c5
mov dword [0x5339e8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x422e44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004055b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x422e9c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x52e644]
mov dl, 1
mov eax, dword [0x422950]
call fcn.0040d55c
call fcn.00404b48
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422a58
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4240cc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4240d2
ret