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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x64da8e
cmp dword [ebp + 0x14], edi
je 0x64da8e
cmp ecx, edi
jne 0x64da95
call fcn.0064bed7
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0064506d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x64daa9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x64daca
cmp ebx, 0xffffffff
je 0x64dab9
push ebx
push edi
push ecx
call fcn.006455e0
add esp, 0xc
cmp esi, edi
je 0x64da76
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x64da76
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x64dae6
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x64daed
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x64dbde
test word [esi + 0xc], 0x10c
je 0x64db41
mov eax, dword [esi + 4]
test eax, eax
je 0x64db41
jl 0x64dc3f
cmp ebx, eax
mov edi, ebx
jb 0x64db12
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x64dbe6
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00644972
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 0x64dbd6
cmp ebx, dword [ebp - 0xc]
jb 0x64dbae
cmp dword [ebp - 0xc], 0
je 0x64db6b
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x64db60
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x64db67
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x64db76
mov eax, closesocket
cmp ebx, eax
ja 0x64db76
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x64dc12
push eax
push dword [ebp - 8]
push esi
call fcn.006545d1
pop ecx
push eax
call fcn.0065a038
add esp, 0xc
test eax, eax
je 0x64dc51
cmp eax, 0xffffffff
je 0x64dc3f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x64dbd6
push esi
call fcn.00657301
cmp eax, 0xffffffff
pop ecx
je 0x64dc43
cmp dword [ebp - 4], 0
je 0x64dc12
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 0x64daf5
mov eax, dword [ebp + 0x14]
jmp 0x64da90
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x64dbfd
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.006455e0
add esp, 0xc
call fcn.0064bed7
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x64da86
cmp dword [ebp + 0xc], 0xffffffff
je 0x64dc28
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.006455e0
add esp, 0xc
call fcn.0064bed7
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x64da86
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x64da90
or dword [esi + 0xc], 0x10
jmp 0x64dc43
Function at 0x654caf
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x7c0e30]
je 0x654cca
inc edi
cmp edi, 0x17
jb 0x654cbb
cmp edi, 0x17
jae 0x654e4a
push ebp
push 3
call fcn.0065d55d
cmp eax, 1
pop ecx
je 0x654e16
push 3
call fcn.0065d55d
test eax, eax
pop ecx
jne 0x654cfe
cmp dword [0x7c0b88], 1
je 0x654e16
cmp ebx, 0xfc
je 0x654e49
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x82b048
push ebp
call fcn.0065189e
add esp, 0xc
test eax, eax
je 0x654d34
push esi
push esi
push esi
push esi
push esi
call fcn.00644f71
add esp, 0x14
push 0x104
mov esi, 0x82b061
push esi
push 0
mov byte [0x82b165], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x654d78
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0065189e
add esp, 0xc
test eax, eax
je 0x654d78
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00644f71
add esp, 0x14
push esi
call fcn.00644a50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x654dbd
push esi
call fcn.00644a50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x82b35c
push 0x71879c
sub ecx, eax
push ecx
push eax
call fcn.00657a08
add esp, 0x14
test eax, eax
je 0x654dbd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00644f71
add esp, 0x14
jmp 0x654dbf
xor esi, esi
push 0x6b838c
push ebx
push ebp
call fcn.0065b249
add esp, 0xc
test eax, eax
je 0x654ddf
push esi
push esi
push esi
push esi
push esi
call fcn.00644f71
add esp, 0x14
push dword [edi*8 + 0x7c0e34]
push ebx
push ebp
call fcn.0065b249
add esp, 0xc
test eax, eax
je 0x654e01
push esi
push esi
push esi
push esi
push esi
call fcn.00644f71
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0065d3a0
add esp, 0xc
jmp 0x654e49
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x654e49
cmp ebp, 0xffffffff
je 0x654e49
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x7c0e34]
push dword [esi]
call fcn.00644a50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x65d3a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00652f8a
xor ebx, ebx
cmp dword [0x82b63c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x65d476
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x65d556
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x65d556
push eax
call fcn.00652f1c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x82b63c], eax
call esi
push eax
call fcn.00652f1c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x82b640], eax
call esi
push eax
call fcn.00652f1c
mov dword [0x82b644], eax
lea eax, [ebp - 0xc]
push eax
call fcn.006460e8
test eax, eax
pop ecx
pop ecx
je 0x65d444
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00644f71
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x65d476
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00652f1c
cmp eax, ebx
pop ecx
mov dword [0x82b64c], eax
je 0x65d476
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00652f1c
pop ecx
mov dword [0x82b648], eax
mov eax, dword [0x82b648]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x65d4fb
cmp dword [0x82b64c], ecx
je 0x65d4fb
push eax
call fcn.00652f93
push dword [0x82b64c]
mov esi, eax
call fcn.00652f93
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x65d4fb
cmp edi, ebx
je 0x65d4fb
call esi
cmp eax, ebx
je 0x65d4c8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x65d4c8
test byte [ebp - 0x18], 1
jne 0x65d4fb
lea eax, [ebp - 0x10]
push eax
call fcn.0064611f
test eax, eax
pop ecx
je 0x65d4e3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00644f71
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x65d4f2
or dword [ebp + 0x10], 0x200000
jmp 0x65d536
or dword [ebp + 0x10], 0x40000
jmp 0x65d536
mov eax, dword [0x82b640]
cmp eax, dword [ebp - 8]
je 0x65d536
push eax
call fcn.00652f93
cmp eax, ebx
pop ecx
je 0x65d536
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x65d536
mov eax, dword [0x82b644]
cmp eax, dword [ebp - 8]
je 0x65d536
push eax
call fcn.00652f93
cmp eax, ebx
pop ecx
je 0x65d536
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x82b63c]
call fcn.00652f93
cmp eax, ebx
pop ecx
je 0x65d556
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x65d558
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x665629
Capabilities:
Start service

Disassembly:
push ecx
push ebx
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebx
jne 0x665650
pop esi
pop ebx
add esp, 4
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push edi
push 0x14
push 0x7167a0
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
cmp ebp, ebx
jne 0x665677
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x6656a5
push ebx
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x420
jne 0x665699
mov eax, dword [esp + 0x10]
mov byte [eax + 0x10], bl
xor edi, edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x6656ad
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 8], ebx
jne 0x6656db
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x665778
push edi
push 0x24
push 0x7167a0
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x665703
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x665777
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x665729
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
mov dword [ebp - 4], eax
jne 0x665766
mov dword [ebp - 4], esi
jmp 0x665766
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
jmp 0x665757
call esi
sub eax, ebx
cmp eax, 0xea60
ja 0x66575f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x665766
cmp dword [ebp - 0x20], 1
jne 0x665735
jmp 0x665766
mov dword [ebp - 4], 0x5b4
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406784
xor eax, eax
test eax, eax
je 0x406797
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406797
xor ecx, ecx
jmp 0x40679a
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4068f4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068ce
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406925
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406907
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a030]
jne 0x401116
repz ret
jmp fcn.00401e51

Function at 0x408f8d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405882
and dword [ebp - 4], 0
cmp dword [0x44c754], 0
mov ebx, eax
jne 0x40903e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4090ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4090ef
push eax
call fcn.00405810
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44c754], eax
call esi
push eax
call fcn.00405810
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44c758], eax
call esi
push eax
call fcn.00405810
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44c75c], eax
call esi
push eax
call fcn.00405810
pop ecx
mov dword [0x44c764], eax
test eax, eax
je 0x40903e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405810
pop ecx
mov dword [0x44c760], eax
mov eax, dword [0x44c760]
cmp eax, ebx
je 0x409096
cmp dword [0x44c764], ebx
je 0x409096
push eax
call fcn.0040588b
push dword [0x44c764]
mov esi, eax
call fcn.0040588b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409096
test edi, edi
je 0x409096
call esi
test eax, eax
je 0x40908d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40908d
test byte [ebp - 0xc], 1
jne 0x409096
or dword [ebp + 0x10], 0x200000
jmp 0x4090cf
mov eax, dword [0x44c758]
cmp eax, ebx
je 0x4090cf
push eax
call fcn.0040588b
pop ecx
test eax, eax
je 0x4090cf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4090cf
mov eax, dword [0x44c75c]
cmp eax, ebx
je 0x4090cf
push eax
call fcn.0040588b
pop ecx
test eax, eax
je 0x4090cf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44c754]
call fcn.0040588b
pop ecx
test eax, eax
je 0x4090ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4090f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b180
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x44a030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b051cc]
push ebx
mov ebx, dword [0x2b04eec]
push esi
mov esi, dword [0x44af60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b1c1
push 0x448ce0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b051cc]
mov dword [0x2b04ee8], esi
cmp eax, 0x114e
jne 0x40b1e6
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2b051cc]
cmp eax, 0x2f
jne 0x40b214
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push ebx
call fcn.0040b070
mov ecx, dword [esp + 0x434]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401215
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030f0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401327
push 1
push dword [0x4030f0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030f8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401327
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x40130a
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x56641e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x5666dc68
call fcn.566541a0
sub esp, 0x14
mov eax, dword [0x5667b8ac]
mov al, byte [eax + 0x38]
push ebx
mov dword [ebp - 0x14], ecx
xor ecx, ecx
xor ebx, ebx
cmp al, bl
sete cl
push esi
push edi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.56641d1e
movzx eax, word [ebp + 8]
push 5
mov esi, 0x5667bcc8
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.56662069
push eax
call dword [0x5667b95c]
mov edi, eax
cmp edi, ebx
jne 0x56641eab
push 0x80004005
call fcn.5666003f
pop ecx
push edi
mov ecx, esi
call fcn.56662069
push eax
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x56641ecc
push 0x8007000e
call fcn.5666be85
pop ecx
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x56641ee7
push 0x8007000e
call fcn.5666be85
pop ecx
push edi
mov ecx, esi
call fcn.56662069
push eax
call dword [sym.imp.kernel32.dll_SizeofResource]
cmp dword [ebp - 0x1c], ebx
mov esi, eax
je 0x56641f60
push ebx
push 0x566316d0
push 0x5667bcc8
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp + 8], ebx
call fcn.56641ac1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
push esi
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x56641f3d
push eax
call fcn.5665fd4a
pop ecx
mov eax, dword [ebp - 0x10]
cmp word [eax + 2], 0xffff
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov esi, eax
jne 0x56641f52
add eax, 0xc
push eax
call dword [edx + 0x10]
lea ecx, [ebp + 8]
call fcn.5665f161
jmp 0x56641f6d
push esi
push dword [ebp - 0x18]
call fcn.56657a4c
pop ecx
pop ecx
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.5665f161
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x56647161
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5666e1e6
call fcn.566541a0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], 1
mov dword [esi + 4], ebx
lea ecx, [esi + 0x24]
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], ebx
call fcn.5666be85
mov dword [ebp - 4], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 1
call fcn.56644031
lea ecx, [esi + 0x68]
call fcn.5664a893
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x78], ebx
mov byte [esi + 0x7c], bl
mov byte [esi + 0x7d], bl
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret