joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x472ad3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x472aba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x479470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a6cfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00479d90
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4b5874
call fcn.004982da
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x479503
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004982da
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4794fc
push 0
mov ecx, eax
call fcn.00470600
mov dword [esi + 0xc], eax
jmp 0x479505
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x479505
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x49a967
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49a99f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004989f4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004989cc
jmp 0x49a9ab
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49c055
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49c097
call fcn.004a1b11
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49c097
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49c08e
xor eax, eax
jmp 0x49c09f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049c0a5
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a2041
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a206f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a208d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a1fa7
jmp 0x4a208d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a208d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a1fa7
test edi, edi
mov eax, edi
jne 0x4a2077
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4114a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xfc
push ebx
push ebp
mov ebp, dword [esp + 0x108]
push esi
xor esi, esi
push edi
mov ebx, ecx
mov edi, eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov eax, ebx
mov edx, ebp
mov ecx, dword [eax]
inc dword [esp + ecx*4 + 0x4c]
lea ecx, [esp + ecx*4 + 0x4c]
add eax, 4
sub edx, 1
jne 0x411504
cmp dword [esp + 0x4c], ebp
jne 0x411534
mov eax, dword [esp + 0x120]
mov dword [eax], esi
mov dword [edi], esi
mov ebp, dword [edi]
mov dword [esp + 0x10], ebp
mov ecx, 1
nop
cmp dword [esp + ecx*4 + 0x4c], esi
jne 0x41154c
inc ecx
cmp ecx, 0xf
jbe 0x411540
mov eax, ecx
mov dword [esp + 0x1c], eax
cmp ebp, ecx
jae 0x41155c
mov dword [esp + 0x10], ecx
mov ebp, ecx
mov edx, 0xf
cmp dword [esp + edx*4 + 0x4c], esi
jne 0x41156c
sub edx, 1
jne 0x411561
mov dword [esp + 0x2c], edx
cmp ebp, edx
jbe 0x41157a
mov dword [esp + 0x10], edx
mov ebp, edx
mov dword [edi], ebp
mov edi, 1
shl edi, cl
cmp ecx, edx
jae 0x4115a1
jmp 0x411590
sub edi, dword [esp + ecx*4 + 0x4c]
js 0x4116ac
inc ecx
add edi, edi
cmp ecx, edx
jb 0x411590
lea ecx, [edx*4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + ecx + 0x4c]
sub edi, ecx
mov dword [esp + 0x48], edi
js 0x4116ac
add ecx, edi
mov edi, dword [esp + 0x14]
and al, 0x14
mov dword [esp + edi + 0x4c], ecx
xor ecx, ecx
sub edx, 1
mov dword [esp + 0x90], esi
je 0x4115e9
xor edi, edi
add ecx, dword [esp + edi + 0x50]
add edi, 4
sub edx, 1
mov dword [esp + edi + 0x90], ecx
jne 0x4115d6
mov edx, ebx
xor edi, edi
lea ecx, [ecx]
Function at 0x411ea0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x411ea7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x411f84
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42d398]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42d398]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42d398]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42d398]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42d398]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42d398]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42d398]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42d398]
inc ecx
sub edx, 8
sub esi, 1
jne 0x411ec0
pop edi
test edx, edx
je 0x411fab
jmp 0x411f90
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42d398]
inc ecx
sub edx, 1
jne 0x411f90
not eax
pop esi
ret

Function at 0x412000
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x42d398]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x42d398]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x41d740
Capabilities:
Read file on windows

Disassembly:
pop edi
pop esi
pop ebx
leave
ret
test dword [esi + 0xc], 0x10c
je 0x41d771
mov eax, dword [esi + 4]
test eax, eax
je 0x41d771
jl 0x41d86f
mov edi, ebx
cmp ebx, eax
jb 0x41d742
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x41d816
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041c958
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x41d806
cmp ebx, dword [ebp - 0xc]
jb 0x41d7de
cmp dword [ebp - 0xc], 0
je 0x41d79b
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x41d790
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x41d797
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x41d7a6
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x41d7a6
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x41d842
push eax
push dword [ebp - 8]
push esi
call fcn.00425b2c
pop ecx
push eax
call fcn.00426c84
add esp, 0xc
test eax, eax
je 0x41d881
cmp eax, 0xffffffff
je 0x41d86f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x41d806
push esi
call fcn.00426597
pop ecx
cmp eax, 0xffffffff
je 0x41d873
cmp dword [ebp - 4], 0
je 0x41d842
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x41d724
invalid
inc ebp
Function at 0x4185b7
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [0x401094]
mov ecx, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
add esi, esi
or edx, 0xffffffff
cmp dword [0x422f00], ebx
jne 0x418618
mov dword [0x422f00], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x4185fe
shr eax, 1
xor eax, 0xedb88320
jmp 0x418600
shr eax, 1
dec edi
test edi, edi
jg 0x4185f1
mov dword [ecx*4 + 0x422b00], eax
inc ecx
cmp ecx, 0xff
jle 0x4185ec
mov ecx, dword [ebp + 8]
test esi, esi
je 0x418634
movzx eax, byte [ecx]
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x422b00]
inc ecx
dec esi
jne 0x41861c
mov ecx, dword [ebp - 4]
not edx
mov eax, edx
xor edx, edx
div dword [ecx + 0xc]
mov dword [ebp - 8], ebx
mov edi, edx
cmp dword [ecx + 0xc], ebx
jbe 0x41867d
lea eax, [ecx + 8]
mov dword [ebp - 0xc], eax
mov esi, edi
imul esi, esi, 0xc
add esi, dword [eax]
cmp dword [ebp + 0xc], ebx
je 0x418689
cmp dword [esi + 4], ebx
je 0x418679
push dword [ebp + 8]
push dword [esi + 4]
call dword [fcn.00401090]
test eax, eax
je 0x4186bb
mov ecx, dword [ebp - 4]
cmp dword [esi + 4], ebx
jne 0x4186a1
cmp dword [esi], ebx
jne 0x4186a1
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
cmp dword [esi + 4], ebx
je 0x4186bb
push dword [ebp + 8]
push dword [esi + 4]
call dword [fcn.00401090]
test eax, eax
je 0x4186bb
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 0xc]
jb 0x4186aa
sub edi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
jb 0x418650
jmp 0x41867d
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
jmp 0x418680
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402775
Capabilities:
Authenticate hmac
Encode data using base64

Disassembly:
push ebp
cmp ebx, 0x10000
jae 0x40278c
push 5
push 0xffffc060
push 0xfffffc60
jmp 0x402798
push 8
push 0xffff8300
push 0xfffffb00
push 0xffffffffffffffff
xor edx, edx
xor ecx, ecx
lodsb al, byte [esi]
xor al, bl
stosb byte es:[edi], al
dec ebx
jle 0x402807
call fcn.0040280d
jae 0x40279e
xor ebp, ebp
call fcn.00402819
sub ecx, 3
jae 0x4027be
mov eax, dword [esp]
inc ecx
jmp 0x4027e0
mov eax, ecx
mov ecx, dword [esp + 0xc]
call fcn.0040280d
adc eax, eax
loop 0x4027c4
not eax
cmp eax, dword [esp + 4]
adc ebp, 1
cmp eax, dword [esp + 8]
adc ebp, 0
mov dword [esp], eax
call fcn.0040280d
adc ecx, ecx
call fcn.0040280d
adc ecx, ecx
jne 0x4027f8
call fcn.00402819
add ecx, 2
add ecx, ebp
sub ebx, ecx
jb 0x402807
push esi
lea esi, [eax + edi]
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4027a3
jmp section..ropf

Function at 0x402819
Capabilities:
Authenticate hmac

Disassembly:
inc ecx
call fcn.0040280d
adc ecx, ecx
jmp loc.0041fe1d
Function at 0x40b010
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x40b032
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b028
mov eax, 1
add ebx, ebx
jne 0x40b04b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b05c
jne 0x40b07b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b07b
dec eax
add ebx, ebx
jne 0x40b068
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x40b040
add ebx, ebx
jne 0x40b077
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x40b0cd
xor ecx, ecx
sub eax, 3
jb 0x40b093
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b102
sar eax, 1
mov ebp, eax
jmp 0x40b09e
add ebx, ebx
jne 0x40b09e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b06c
inc ecx
add ebx, ebx
jne 0x40b0ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b06c
add ebx, ebx
jne 0x40b0b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b0ae
jne 0x40b0ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b0ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b0ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b0de
jmp 0x40b02e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b0ec
add edi, ecx
jmp 0x40b02e
pop esi
mov edi, esi
mov ecx, 0x6094
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x40b127
cmp byte [edi], 3
jne 0x40b10c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x40b10a
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b178
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb654]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb690]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b12d
mov ecx, edi
jns 0x40b15c
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 + 0xb694]
or eax, eax
je 0x40b172
mov dword [ebx], eax
add ebx, 4
jmp 0x40b14a
call dword [esi + 0xb6a4]
mov ebp, dword [esi + 0xb698]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x40b1ac
sub esp, 0xffffff80
jmp 0x4015ac
Function at 0xa5b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xa5b38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xa84074
push ecx
mov edi, eax
call fcn.00a6f198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa5b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a6f02e
push esi
call fcn.00a6efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa5e850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xa5e8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xa89720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa5e8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00a6f1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xa5e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa89720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa5e92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00a70082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa5e957
mov word [eax], si
add eax, 2
push eax
call fcn.00a70030
add esp, 4
jmp 0xa5e959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xa5e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa5e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xa5eff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xa5f080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa5f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa84458
push ecx
call fcn.00a6f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a6f1e1
add esp, 0x10
jmp 0xa5f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a6f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a6edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a5f050
mov eax, dword [0xa89728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xa5f13b
push esi
call fcn.00a5efb0
add esp, 4
mov dword [0xa89728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa5f14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00a5eff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xa62440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa624b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xa6248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa62471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa6247e
add edx, ecx
cmp ebx, edx
jb 0xa6248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa62467
xor ecx, ecx
jmp 0xa624a2
test eax, eax
jne 0xa62492
xor ecx, ecx
jmp 0xa624a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00a623c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xa628f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xa62921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xa62946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xa6296e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xa62993
push ecx
push esi
call fcn.00a624c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xa63c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xa63c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xa63c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xa63c38
add edx, eax
cmp ebx, edx
jb 0xa63c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xa63c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xa63c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xa63c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xa63cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa63c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa63ca8
add edx, ecx
cmp ebx, edx
jb 0xa63cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa63c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xa63f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00a70145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xa63ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xa63fdd
lea eax, [esp + 0x18]
push eax
jmp 0xa63fe2
push 0xa89720
call fcn.00a6ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xa63fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xa63f40
push 4
push ecx
push eax
call fcn.00a7043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret