joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40d044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40d03c]
sub esp, 4
test ebx, ebx
je 0x401bfb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401bf4
test esi, esi
je 0x401bf4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401bd0
mov dword [esp], 0x40d044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401dd0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ef8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e5e
cmp eax, 4
jne 0x401e80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e6e
cmp edx, 4
je 0x401e6e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401dd0
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.240228154539083062901028
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.240228154539083062901028]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.240228154539083062901028
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.240228154539083062901028]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret
Function at 0x105e318
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105e468
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105e33e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e32a
add dl, dl
jne 0x105e349
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e39c
xor eax, eax
add dl, dl
jne 0x105e356
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e43d
add dl, dl
jne 0x105e365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e370
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e37b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e386
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105e392
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105e335
mov eax, 1
add dl, dl
jne 0x105e3aa
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e3b5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e3a1
sub eax, ebx
mov ebx, 1
jne 0x105e3e8
mov ecx, 1
add dl, dl
jne 0x105e3ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105e3d9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e3c5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e335
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105e3ff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105e40a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e3f6
cmp eax, 0x7d00
jae 0x105e42d
cmp eax, 0x500
jb 0x105e428
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e335
cmp eax, 0x7f
ja 0x105e430
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e335
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105e45e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105e335
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405570
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, 0x4237d4
lea edx, [esi + 0xa34]
mov byte [esi + 0x9d8], bl
mov byte [esi + 0x9d9], bl
mov byte [esi + 0xc3c], bl
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, bx
jne 0x405598
mov dword [esi + 0x9dc], ebx
mov dword [esi + 0x9e4], ebx
mov dword [esi + 0x9e8], ebx
mov dword [esi + 0x9ec], ebx
mov dword [esi + 0x9f0], ebx
mov dword [esi + 0x9f4], ebx
mov dword [esi + 0x9f8], ebx
mov dword [esi + 0x9fc], ebx
mov dword [esi + 0xa00], ebx
mov dword [esi + 0xa04], ebx
mov dword [esi + 0xa08], ebx
mov dword [esi + 0xa0c], ebx
mov dword [esi + 0xa10], ebx
mov dword [esi + 0xa14], ebx
mov dword [esi + 0xa18], ebx
mov dword [esi + 0xa1c], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov dword [esi + 0xa24], ecx
mov dword [esi + 0xa28], eax
cmp dword [esi + 0xa24], 0xa
jne 0x405645
push edi
lea edi, [esi + 0xa2c]
call fcn.0040ab88
pop edi
test eax, eax
je 0x405645
mov dword [esi + 0xa24], 0xb
mov eax, dword [esi + 0xa24]
cmp eax, 0xb
jne 0x405668
cmp dword [esi + 0xa2c], 0x55f0
jbe 0x405668
mov dword [esi + 0xa30], 1
jmp 0x40566e
mov dword [esi + 0xa30], ebx
cmp eax, 6
jb 0x40568e
jne 0x40568e
cmp dword [esi + 0xa28], 2
jb 0x40568e
mov byte [0x4293d4], 1
mov byte [0x4293d5], 1
jmp 0x40569a
mov byte [0x4293d4], bl
mov byte [0x4293d5], bl
mov eax, dword [ebp + 8]
push esi
call fcn.00405c93
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x405d28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
dec eax
push ebx
push esi
push 4
mov ebx, ecx
pop esi
je 0x405e00
mov ecx, dword [ebp + 8]
mov edx, 0x423868
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x405d65
test ax, ax
je 0x405d61
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x405d65
add ecx, esi
add edx, esi
test ax, ax
jne 0x405d41
xor eax, eax
jmp 0x405d6a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405d7a
mov byte [ebx + 0xc3c], 1
jmp 0x405ebf
mov eax, dword [ebp + 8]
mov ecx, str.noMeiryoUI
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405da6
test dx, dx
je 0x405da2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405da6
add eax, esi
add ecx, esi
test dx, dx
jne 0x405d82
xor eax, eax
jmp 0x405dab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405dbb
mov byte [ebx + 0x9d8], 1
jmp 0x405ebf
mov eax, dword [ebp + 8]
mov ecx, str.noTahoma
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405de7
test dx, dx
je 0x405de3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405de7
add eax, esi
add ecx, esi
test dx, dx
jne 0x405dc3
xor eax, eax
jmp 0x405dec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405ebf
mov byte [ebx + 0x9d9], 1
jmp 0x405ebf
mov edx, dword [ebp + 8]
mov ecx, 0x42385c
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x405e2c
test ax, ax
je 0x405e28
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x405e2c
add ecx, esi
add edx, esi
test ax, ax
jne 0x405e08
xor eax, eax
jmp 0x405e31
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405ebf
push edi
push 0x5c
push dword [ebp + 8]
call fcn.0040c3d5
pop ecx
pop ecx
test eax, eax
jne 0x405e83
push 0x2f
push dword [ebp + 8]
call fcn.0040c3d5
pop ecx
pop ecx
test eax, eax
jne 0x405e83
add ebx, 0xa34
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, ebx
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x405e70
mov esi, 0x423864
movsd dword es:[edi], dword [esi]
jmp 0x405e8e
add ebx, 0xa34
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp + 8]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x405e93
sub eax, edx
dec ebx
dec ebx
mov cx, word [ebx + 2]
inc ebx
inc ebx
test cx, cx
jne 0x405ea1
mov ecx, eax
shr ecx, 2
mov edi, ebx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x408a19
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
push dword [ebp + 0x10]
push 0x5c
push 0x22
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea eax, [ebp + 0x10]
push eax
mov edi, 0x1388
push edi
push 2
push 0
push 0x22
push 0x1a
mov esi, 0xffff
push esi
call ebx
test eax, eax
jne 0x408a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
jne 0x408a77
mov eax, dword [ebp + 8]
push 0x30
push str.Information
push str.SendMessage_timeout.
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp + 8]
push 0x8009
push dword [eax + 0x9e0]
call fcn.00409968
test al, al
je 0x408ad6
mov eax, dword [ebp + 0xc]
mov dword [0x42a24c], eax
xor eax, eax
push eax
push eax
push eax
push 0x408a08
push eax
push eax
call fcn.0040cf8b
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x408adf
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408acb
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408adf
push dword [ebp + 0xc]
call fcn.004089af
pop ecx
lea eax, [ebp + 0x10]
push eax
push edi
push 2
push str.WindowMetrics
push 0x2a
push 0x1a
push esi
call ebx
test eax, eax
jne 0x408b1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
jne 0x408b1b
mov eax, dword [ebp + 8]
push 0x30
push str.Information
push str.SendMessage_timeout.
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [ebp + 8]
call fcn.00405bb2
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x408d07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x428580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edi
xor eax, eax
movzx ecx, word [eax + str.____]
mov word [ebp + eax - 0x24], cx
inc eax
inc eax
cmp cx, di
jne 0x408d2c
xor eax, eax
movzx ecx, word [eax + 0x423eb8]
mov word [ebp + eax - 0x14], cx
inc eax
inc eax
cmp cx, di
jne 0x408d41
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408e0d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push 0x10
pop ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push edi
push str.ReleaseId
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], ebx
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push str.DisplayVersion
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], ebx
call esi
test eax, eax
jne 0x408dc5
movzx ecx, word [ebp + eax - 0x34]
mov word [ebp + eax - 0x24], cx
inc eax
inc eax
cmp cx, di
jne 0x408db4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push str.CurrentBuild
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], ebx
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x423f6c
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 4
call esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
call fcn.0040b7f6
pop ecx
mov esi, eax
pop ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xa24]
sub eax, 5
je 0x408e5a
dec eax
je 0x408e7c
sub eax, 4
je 0x408e53
dec eax
jne 0x408e7c
push 0x42373c
lea eax, [ebp - 0x74]
push 0x20
push eax
call fcn.0040e363
add esp, 0xc
cmp esi, 0x585d
jl 0x408e7c
push str._2022_Update
lea eax, [ebp - 0x74]
push 0x20
push eax
call fcn.0040d337
jmp 0x408e79
push 0x423734
jmp 0x408e6e
cmp dword [ecx + 0xa28], edi
jne 0x408e69
push str.2000
jmp 0x408e6e
push 0x423f80
lea eax, [ebp - 0x74]
push 0x20
push eax
call fcn.0040e363
add esp, 0xc
push dword [ebp - 0x80]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x74]
push dword [ebp + 0x10]
push eax
push str.OS:Windows__s___d._d__Version__s_Build__s._d
push dword [ebp - 0x84]
call fcn.0040c665
mov ecx, dword [ebp - 4]
add esp, 0x20
pop edi
xor ecx, ebp
pop esi
call fcn.0040b652
leave
ret 0x10
Function at 0x408eb4
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6cc
mov eax, dword [0x428580]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x670]
push eax
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push ebx
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.0040d28d
add esp, 0x14
push 0x42a250
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x258]
push str.hh.exe___s_s_s_
push eax
call fcn.0040c665
add esp, 0x14
push 0x44
lea eax, [ebp - 0x6c8]
push ebx
push eax
call fcn.00410210
xor eax, eax
lea edi, [ebp - 0x680]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x6c8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408faf
push dword [esi + 4]
mov eax, dword [ebp - 0x678]
push 0x409023
push ebx
push ebx
mov dword [0x42a468], eax
mov byte [0x42a664], bl
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
xor esi, esi
jmp 0x408fa7
cmp esi, 0x19
jge 0x408faf
push ebx
push 0x408fbe
call dword [sym.imp.USER32.dll_EnumWindows]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp byte [0x42a664], bl
je 0x408f8a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b652
leave
ret

Function at 0x40b652
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428580]
jne 0x40b65c
repz ret
jmp fcn.0040ebd7

Function at 0x417d09
Capabilities:
Inspect section memory permissions

Disassembly:
adc byte [ebx - 0x1fcc382], cl
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x417f80
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x417d36
cmp dword [eax + 0xc], ebx
je 0x417dd9
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00417791
lodsb al, byte [esi]
cdq
scasb al, byte es:[edi]
and eax, 0x750c5d39
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.00417791
cmp eax, dword [ebx - 0x25]
cmpsd dword [esi], dword es:[edi]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x417e45
add eax, esi
Function at 0x417e3b
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x417e45
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x417e40
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x417e2a
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
cmp edx, ebx
jne 0x417f80
cmp dword [ebp + 8], ecx
jb 0x417e01
add eax, dword [eax + 4]
jmp 0x417dee
mov dword [ebp + 0xc], ebx
jmp 0x417e50
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x417e68
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x417e86
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
invalid
mov ch, 0x54
invalid

Function at 0x417e73
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x417e45
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x417e40
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x417e2a
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
cmp edx, ebx
jne 0x417f80
cmp dword [ebp + 8], ecx
jb 0x417e01
add eax, dword [eax + 4]
jmp 0x417dee
mov dword [ebp + 0xc], ebx
jmp 0x417e50
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x417e68
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x417e86
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
invalid
mov ch, 0x54
invalid
Function at 0x41d8e3
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.0040f576
and dword [ebp - 4], 0
cmp dword [0x42a0a0], 0
mov ebx, eax
jne 0x41d994
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41da45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41da45
push eax
call fcn.0040f504
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42a0a0], eax
call esi
push eax
call fcn.0040f504
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42a0a4], eax
call esi
push eax
call fcn.0040f504
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42a0a8], eax
call esi
push eax
call fcn.0040f504
pop ecx
mov dword [0x42a0b0], eax
test eax, eax
je 0x41d994
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f504
pop ecx
mov dword [0x42a0ac], eax
mov eax, dword [0x42a0ac]
cmp eax, ebx
je 0x41d9ec
cmp dword [0x42a0b0], ebx
je 0x41d9ec
push eax
call fcn.0040f57f
push dword [0x42a0b0]
mov esi, eax
call fcn.0040f57f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41d9ec
test edi, edi
je 0x41d9ec
call esi
test eax, eax
je 0x41d9e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41d9e3
test byte [ebp - 0xc], 1
jne 0x41d9ec
or dword [ebp + 0x10], 0x200000
jmp 0x41da25
mov eax, dword [0x42a0a4]
cmp eax, ebx
je 0x41da25
push eax
call fcn.0040f57f
pop ecx
test eax, eax
je 0x41da25
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41da25
mov eax, dword [0x42a0a8]
cmp eax, ebx
je 0x41da25
push eax
call fcn.0040f57f
pop ecx
test eax, eax
je 0x41da25
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a0a0]
call fcn.0040f57f
pop ecx
test eax, eax
je 0x41da45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41da47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x67010a39
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov edx, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, eax
mov dword [esp + 0x10], eax
cmp edi, 0x20
jb 0x67010ac4
lea eax, [ecx + 0x10]
mov dword [esp + 0x14], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0xc], eax
push 0x10
pop eax
sub eax, ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], eax
movups xmm1, xmmword [esi + edx]
mov edi, dword [esp + 0x14]
add esi, 0x20
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
movups xmm2, xmmword [ecx + edi]
pxor xmm0, xmm1
movups xmmword [edi - 0x10], xmm0
movaps xmm0, xmm2
psrlw xmm2, 8
psllw xmm0, 8
pxor xmm0, xmm2
movups xmmword [edi], xmm0
add edi, 0x20
add eax, edi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x20]
cmp eax, edi
mov eax, dword [esp + 8]
jbe 0x67010a73
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x10]
cmp eax, edi
ja 0x67010ae6
movups xmm1, xmmword [esi + edx]
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
pxor xmm0, xmm1
movups xmmword [esi + ecx], xmm0
mov esi, eax
cmp esi, edi
jae 0x67010b3e
lea eax, [esi + ecx]
sub edx, ecx
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [esp + 0x1c], edx
cmp ecx, 0x10
jae 0x67010b3e
add eax, edx
push 2
push eax
lea eax, [esp + 0x10]
push eax
call fcn.671a4d7a
push dword [esp + 0x2c]
push dword [esp + 0x18]
call fcn.67010940
mov eax, dword [esp + 0x34]
add esi, 2
mov ecx, dword [esp + 0x24]
add eax, 2
mov edx, dword [esp + 0x30]
add ecx, 2
add esp, 0x14
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
cmp esi, edi
jb 0x67010af9
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret