joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4106e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 8]
push ecx
xor eax, eax
push 1
push eax
mov word [esi], ax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x425d87
mov edx, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push eax
mov eax, dword [ebp - 8]
push edx
add edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410753
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0x10]
jae 0x425d8d
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
push eax
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
xor edx, edx
mov word [edi + esi - 2], dx
jmp 0x41073f

Function at 0x417b1b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x490a54], 0xffffffff
je 0x417b2e
cmp dword [ebp + 8], 0
jne 0x417b10
push esi
push dword [0x490a58]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x417b0f
push dword [0x490a54]
push dword [0x490a58]
call esi
call eax
mov dword [ebp + 8], eax
pop esi
push 0
push dword [0x490a54]
push dword [0x4966c0]
dec cx
add bh, bh
adc eax, 0x490004
call eax
push dword [ebp + 8]
call fcn.004179a6
mov eax, dword [0x490a58]
cmp eax, 0xffffffff
je 0x417b41
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
ret
Function at 0x421dfe
Capabilities:
Encode data using xor

Disassembly:
mov ch, 0x2e
cmp ch, bl
dec ebx
mov ebp, edi
out dx, eax
pop esi
cmp byte [ebp + 0xb], al
or dword [esp], edx
add byte [ebx], dl
stc
sbb ch, byte [edi]
in al, 0xbe
jns 0x421e0e
push ss
xchg ebx, eax
arpl word [edi - 0x3bb495ba], si
push cs
xchg esi, eax
pop esp
test dh, cl
jo 0x421e09
pop edi
pop edi
sti
xlatb
lahf
loop 0x421dff
push ebp
mov fs, word [esp + eax*4 - 0x5a]
dec eax
add edx, ecx
dec eax
mov eax, dword [0x628f3398]
out dx, al
lea esi, [edx + esi*4]
in al, dx
stosb byte es:[edi], al
popfd
lcall 0xbb11, 0x48e0670
jl 0x421df9
test dword [esp + ecx - 0x61], esp
pop eax
outsd dx, dword [esi]
mov ecx, 0x303a9ca4
pop eax
imul ecx, dword [eax + 0x7912f8fa], 0xce202ff5
or al, 0x4c
mov dh, 0xa1
xlatb
sahf
ja 0x421e8d
or eax, 0x119d3229
jecxz 0x421e61
xchg dword [esi], edi
je 0x421ed8
xchg esp, eax
and ecx, esi
pop ecx
jnp 0x421ec7
xor byte [edx], 0x76
mov word [eax], cs
xor eax, 0xf5684ceb
popfd
invalid
mov esi, ebp
and byte [ebx], dh
xchg ebp, eax
xor ebx, dword [ecx + 0x2a]
in eax, dx
and dword [eax], 0x4223dea6
push eax
cdq
xchg ebp, eax
loop 0x421e21
mov esi, 0xc0c78cad
pop eax
dec eax
add byte [ecx - 0x38], dl
add eax, dword [0x6dc48801]
push es
mov dword [0x44d32cc], eax
fstp xword [edi]
push ecx
and al, 0x61
and cl, byte [0x4a891d1c]
add eax, 0x809131e9
add byte [eax + 0x62], bl
inc esi
mov eax, dword [0x11998401]
retf
pop es
pop ss
fimul dword [ecx - 0x402233d]
fist word [ecx + 0x2a2e6e60]
push eax
or eax, 0x682b7add
imul byte [eax + 0x349a51e1]
imul esp, dword [ecx + 0x6e], 0x7c0cfa12
push ecx
lcall 0xfa12, 0x6e616934
or al, 0x7c
xor dword [ebp + 0x6a], ecx
jge 0x421eef
or dword [eax], edx
push esi
xchg edi, eax
test eax, 0xdfc88c4d
cmp eax, 0x41607107
mov ebp, dword [esi]
or byte [edx], ch
out 0xa7, al
sub dword [edx + 0x725b9f8d], ebx
in al, 0xc4
mov al, 0x6a
sbb edx, dword [ebp + 0x544341]
push ecx
pop ecx
xor byte [eax], al
invalid
invalid
pop esi
int1
invalid
Function at 0x4fde50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DATA
lea edi, [esi - 0x86000]
push edi
or ebp, 0xffffffff
jmp 0x4fde72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fde79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fde68
mov eax, 1
add ebx, ebx
jne 0x4fde8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fde9c
jne 0x4fdebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fdebb
dec eax
add ebx, ebx
jne 0x4fdea8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fde80
add ebx, ebx
jne 0x4fdeb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fdf0d
xor ecx, ecx
sub eax, 3
jb 0x4fded3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fdf42
sar eax, 1
mov ebp, eax
jmp 0x4fdede
add ebx, ebx
jne 0x4fdede
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fdeac
inc ecx
add ebx, ebx
jne 0x4fdeec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fdeac
add ebx, ebx
jne 0x4fdef9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fdeee
jne 0x4fdf0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fdeee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fdf2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fdf1e
jmp 0x4fde6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fdf2c
add edi, ecx
jmp 0x4fde6e
pop esi
mov edi, esi
mov ecx, 0x16d1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fdf4a
cmp byte [edi], 0x17
jne 0x4fdf4a
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 0x4fdf4f
lea edi, [esi + 0xfa000]
mov eax, dword [edi]
or eax, eax
je 0x4fdfc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10f13c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10f290]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fdf7c
mov ecx, edi
jns 0x4fdfab
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 + 0x10f294]
or eax, eax
je 0x4fdfc1
mov dword [ebx], eax
add ebx, 4
jmp 0x4fdf99
call dword [esi + 0x10f2a4]
mov ebp, dword [esi + 0x10f298]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4fdffb
sub esp, 0xffffff80
jmp 0x418bce
Function at 0x407726
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042caf3
push 0x762ca0
mov edi, dword [eax + 0xc]
movzx eax, si
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4077e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4077e0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0066d280
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 4]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x4077c4
lea ecx, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
and dword [ecx], 0
push ecx
push ebx
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x4077c6
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
jmp 0x4077e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419cce
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x419d21
push esi
push dword [ebp + 8]
call fcn.00419eb4
mov edi, eax
test edi, edi
je 0x419d1c
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x419d1c
mov eax, dword [ebp - 8]
jmp 0x419d33
mov eax, dword [ebp + 0x10]
jmp 0x419d33
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x41cdb5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41cdfa
call fcn.0042caf3
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41cdfa
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41ce16
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042ae42
mov ebx, eax
test edi, edi
je 0x41ce14
test esi, esi
je 0x41ce14
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41d836
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x41d8f4
cmp dword [esi + 0x20], 0
je 0x41d8f4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41d8f4
cmp dword [ebp + 8], 0
je 0x41d8f4
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0042caf3
push 0x6c2cd0
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41d8c5
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41d8f4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0049c9ff
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x41d8e5
test edi, edi
je 0x41d8e5
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x41d8f0
mov ecx, esi
call fcn.0041d5d8
mov eax, ebx
jmp 0x41d8f6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x422296
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x6af227
call fcn.0054fe32
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4222bc
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42231c
call fcn.00423f02
push eax
lea ecx, [ebp - 0x10]
call fcn.00403018
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x6c0b28]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0067901c
push eax
call fcn.00406481
add esp, 0x14
test esi, esi
je 0x42230f
push esi
call fcn.00678350
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040298a
mov eax, ebx
call fcn.0054fdfb
ret 8

Function at 0x422b74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x422b9f
cmp dword [ebx + 0x80], 0
jne 0x422b9f
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0042caf3
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.00422e30
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x422bd9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0042caf3
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x422c10
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00422c2f
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4251e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x425232
call fcn.0042caf3
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42522f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x425282
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x42525f
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6c0b28]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x42525f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x425280
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x6c0b28]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4338ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x433909
call fcn.0042caf3
mov esi, dword [eax + 0xc]
push 0x762ca0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x43395f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43395f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x43393e
xor esi, esi
jmp 0x433954
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00433968
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x433961
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x49e438
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x49e48e
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49e467
call fcn.0040b3c1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x49e47c
call fcn.0040b3c1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x49e48e
call fcn.0040b3c1
call fcn.0042caf3
cmp dword [eax + 0x3c], 0
je 0x49e4a3
push edi
mov ecx, ebx
call fcn.0049db68
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0049e675
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x49e4cc
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x49e4d8
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c7969
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.00421e73
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.004c7b82
cmp esi, 3
je 0x4c79a7
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x4c79f0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4c79ca
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0041ce8a
jmp 0x4c79db
push 0xff
mov ecx, esi
call fcn.00402fdc
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00419ff0
jmp 0x4c7a14
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4c7a14
push dword [esi]
push dword [ebp - 4]
call fcn.0042dc42
pop edi
pop esi
leave
ret 0xc

Function at 0x4c7ad9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004c7b82
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c7b21
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041ce8a
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00419ff0
jmp 0x4c7b2c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042dc42
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5172d1
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0054a808
call fcn.0042cb47
cmp dword [eax + 0x14], 0
jne 0x5172ec
mov ecx, esi
pop esi
jmp fcn.005165fc
pop esi
ret

Function at 0x5194a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0067f241
pop ecx
test eax, eax
jne 0x5194e2
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040341b
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5194a8
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x531d00
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call sym.JiSuSetup.exe_public_virtual:_void___thiscall_Json::CharReader::destructor_void_
call fcn.0042cb47
cmp dword [eax + 0x14], 0
jne 0x531d1b
mov ecx, esi
pop esi
jmp fcn.0053157c
pop esi
ret
Function at 0x55de00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x55de27
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x55de16
pop edi
movzx eax, dl
pop esi
ret

Function at 0x55e099
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20c
call fcn.00550000
mov eax, dword [0x78ce5c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x55e00d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x55e00d
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0040290c
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00674074
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [ebp - 0x20c]
push 0
push ecx
test eax, eax
mov ecx, 0x200
cmovs eax, ecx
push eax
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x55e151
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55e015
sub ecx, edx
lea esi, [ecx + 1]
lea eax, [esi + esi]
call fcn.0054ffd0
mov edi, esp
test edi, edi
jne 0x55e039
mov edi, str.no_stack_
jmp 0x55e0bf
push esi
push edi
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x55e062
xor ecx, ecx
test esi, esi
je 0x55e062
mov eax, dword [ebp + 8]
movsx ax, byte [ecx + eax]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x55e051
xor edx, edx
test esi, esi
je 0x55e0bf
lea ebx, [edx + 0x53]
nop dword [eax + eax]
cmp word [edi + edx*2], 0x25
jne case.0x55e092.43
lea ecx, [edx + 1]
lea ecx, [edi + ecx*2]
nop dword [eax]
movzx eax, word [ecx]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x55e092.43
movzx eax, byte [eax + 0x55e180]
jmp dword [eax*4 + 0x55e168]
inc edx
add ecx, 2
jmp 0x55e080
mov word [ecx], bx
jmp case.0x55e092.43
mov eax, 0x73
jmp 0x55e0b7
mov eax, 0x43
jmp 0x55e0b7
mov eax, 0x63
mov word [ecx], ax
inc edx
cmp edx, esi
jb 0x55e070
lea eax, [ebp + 0xc]
push eax
push 0
push edi
lea eax, [ebp - 0x208]
push 0xff
push eax
call fcn.0040290c
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.006740bc
add esp, 0x1c
xor eax, eax
mov word [ebp - 0xa], ax
call fcn.0055de60
test eax, eax
jle 0x55e13b
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x55e151
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x55e151
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f347
mov esp, ebp
pop ebp
ret
Function at 0x59f650
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.00550000
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.0057a360
mov ebx, eax
push ebx
push esi
call fcn.0057a240
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x59f6d9
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x59f6b3
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0057a2b0
push esi
call fcn.0057a400
mov edi, eax
add esp, 0x10
test edi, edi
je 0x59f6d9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.0057a360
mov ebx, eax
push ebx
push esi
call fcn.0057a240
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x59f748
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x59f72e
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0057a2b0
push esi
call fcn.0057a400
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x59f6d1
push esi
call fcn.0057a400
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret