joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003dd0c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003dd86
lea eax, [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1003dd72
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1003dd70
push 0x36de
push 1
push 0x4570
push 0x245d
push 1
push 0x4352
push 0x7299
push 0x5f74
call fcn.1003b543
add esp, 0x20
jmp 0x1003dd84
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1003ddcf
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
push 0x3b77
push 0x72ed
push 0x53cc
push dword [ebp - 0x14]
push 0x6de8
push 0x2c18
push 0x295f
push dword [ebp - 0x18]
push 0x7ba
push 0x1aaa
push 0x1ea3
push 1
call fcn.1002c67f
add esp, 0x30
mov esp, ebp
pop ebp
ret
Function at 0x1003de52
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f809
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003dfce
lea eax, [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1003deb2
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
jmp 0x1003dfcc
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1003dee0
push 0x4580
push 1
push 0x6317
push 0
push 0x1ee6
push 1
push 0x209f
call fcn.10029ced
add esp, 0x1c
mov dword [ebp - 0x2c], 0x3234
mov dword [ebp - 0x40], 0x10008bec
cmp dword [ebp - 0x2c], 0x32cd
jle 0x1003df8c
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
and dword [ebp - 0x24], 0
jmp 0x1003df14
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x330
jge 0x1003df8c
and dword [ebp - 0x18], 0
jmp 0x1003df2a
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2588
jge 0x1003df8a
and dword [ebp - 0x1c], 0
jmp 0x1003df40
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1805
jge 0x1003df88
and dword [ebp - 0x20], 0
jmp 0x1003df56
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5bac
jge 0x1003df86
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
shl eax, cl
xor eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
push dword [ebp - 0x50]
push dword [ebp - 0x54]
mov ecx, 0x10617278
call fcn.10021772
jmp 0x1003df4f
jmp 0x1003df39
jmp 0x1003df23
jmp 0x1003df0d
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x2f16
jge 0x1003dfa6
mov edx, dword [ebp - 0x40]
mov ecx, 0x10617278
call fcn.10025ce5
jmp 0x1003dfc2
or dword [ebp - 4], 0xffffffff
jmp 0x1003dfcc
jmp 0x1003e005
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1003dfee
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1003e005
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10041f05
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10041f4a
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10041f2f
push 0
push 0
call dword [sym.imp.GDI32.dll_CopyEnhMetaFileA]
jmp 0x10041f48
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10041f48
push 0x16cd
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x10041f6b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x3746
push 0
call fcn.10046d9c
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x10043d79
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10043de2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10043dcc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.1004aeac
jmp 0x10043de0
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10043de0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x10043dff
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
push 0
push dword [ebp - 0x24]
push 0x7dc3
push 0xb77
call fcn.10044e6b
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1006ab75
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10074740]
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.1005ba58
mov dword [ebp - 0x14], eax
cmp dword [0x1061839c], esi
jne 0x1006ac68
push 0x800
push esi
push 0x100075a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006abf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006ad48
push esi
push esi
push 0x100075a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006ad48
push 0x100075b8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006ad48
push eax
call ebx
push 0x100075c4
push edi
mov dword [0x1061839c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100075d4
push edi
mov dword [0x106183a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100075e8
push edi
mov dword [0x106183a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106183ac], eax
test eax, eax
je 0x1006ac65
push 0x10007604
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106183a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006ac8d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006ac80
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006aca2
push 4
pop eax
jmp 0x1006ad4a
cmp dword [ebp - 0x14], esi
je 0x1006aca2
push dword [0x1061839c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006ac87
mov eax, dword [0x106183a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006ad00
cmp dword [0x106183ac], edi
je 0x1006ad00
push eax
call ebx
push dword [0x106183ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006ad00
test eax, eax
je 0x1006ad00
call ecx
test eax, eax
je 0x1006acf5
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 0x1006acf5
test byte [ebp - 8], 1
jne 0x1006ad00
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006ad30
mov eax, dword [0x106183a0]
cmp eax, edi
je 0x1006ad2d
push eax
call ebx
test eax, eax
je 0x1006ad2d
call eax
mov esi, eax
test esi, esi
je 0x1006ad2d
mov eax, dword [0x106183a4]
cmp eax, edi
je 0x1006ad2d
push eax
call ebx
test eax, eax
je 0x1006ad2d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1061839c]
call ebx
test eax, eax
je 0x1006ad48
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006ad4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10058dc3
mov esp, ebp
pop ebp
ret
Function at 0x4ff84b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004ff8ca
jae 0x4ff857
xor ecx, ecx
call fcn.004ff8ca
jae 0x4ff881
xor eax, eax
call fcn.004ff8ca
jae 0x4ff892
mov al, 0x10
call fcn.004ff8ca
adc al, al
jae 0x4ff873
jne 0x4ff8bf
stosb byte es:[edi], al
jmp 0x4ff858
call fcn.004ff8d6
dec ecx
loop 0x4ff89e
mov eax, ebp
call fcn.004ff8d4
jmp 0x4ff8c0
lodsb al, byte [esi]
shr eax, 1
je 0x4ff8e6
adc ecx, 2
mov ebp, eax
jmp 0x4ff8c0
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004ff8d4
cmp eax, 0x7d00
jae 0x4ff8be
cmp eax, 0x500
jae 0x4ff8bf
cmp eax, 0x7f
ja 0x4ff8c0
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4ff858
pop ebp
ret 8
Function at 0x401f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 1
call dword [0x401048]
push 1
push 1
call dword [0x401048]
mov eax, dword [0x406064]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x406064]
mov dl, byte [ecx + 0xf]
mov byte [ebp - 4], dl
jmp 0x401fc3
call fcn.00401f63
mov dword [ebp - 8], 0x5f8
jmp 0x401f83
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x401faa
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], dl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x401f7a
push 0x5f8
mov eax, dword [0x406064]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404b36
add esp, 0xc
jmp 0x401fc5
jmp 0x401f6c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402600
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x402618
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x402672
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x402639
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x402663
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x402659
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x402661
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x402630
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x42ecfc], ecx
jmp 0x40260f
mov esp, ebp
pop ebp
ret

Function at 0x4034e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov ecx, 5
mov esi, 0x42e9dc
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x14], 0x52
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x42f100]
push ecx
call dword [fcn.004010ac]
mov dword [0x42f118], eax
push 0x42e9cc
call fcn.00403250
add esp, 4
push eax
mov edx, dword [0x42f100]
push edx
call dword [fcn.004010ac]
mov dword [0x42f10c], eax
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0x4e72454b
mov dword [ebp - 0x1c], 0x32336c65
lea ecx, [ebp - 0x20]
push ecx
call dword [fcn.004010a8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4053dd
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x4053e3
pop ebp
sub ebp, 0x4053e3
mov ebx, section..youshi
mov ecx, 0x3af
nop
xor byte [ebx], 0x33
inc ebx
loop 0x4053f4
popal
nop
ret

Function at 0x40540c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x405412
pop ebp
sub ebp, 0x405412
mov ebx, section..youshi
mov ecx, 0x3af
nop
xor byte [ebx], 0x14
inc ebx
loop 0x405423
popal
nop
ret
Function at 0x91b228
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x91b22e
pop ebp
sub ebp, 6
sub ebp, 0x51b228
jmp 0x91b28c
jmp 0x91b295
mov eax, 0x51b228
add eax, ebp
add eax, 0x93
mov ecx, 0x624
mov edx, 0x329759a5
xor byte [eax], dl
inc eax
dec ecx
jne 0x91b2ac
jmp 0x91b2bf
iretd
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x419b00
Capabilities:
Check for software breakpoints

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret

Function at 0x401119
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x401139
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x401126
ret
Function at 0x402340
Capabilities:
Access the windows event log

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41344d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x41d014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x30], ecx
push 0x417198
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push 0x28
push str.Description:_A_.NET_application_failed._n
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00404c50
push 0xd
push str.Application:
lea ecx, [ebp - 0x2c]
call fcn.00404c50
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4023d4
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, eax
call fcn.00404c50
push 1
push 0x417194
mov ecx, eax
call fcn.00404c50
push 6
push str.Path:
lea ecx, [ebp - 0x2c]
call fcn.00404c50
mov esi, eax
mov eax, dword [ebp - 0x30]
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x402413
sub edx, edi
mov ecx, esi
sar edx, 1
push edx
push eax
call fcn.00404c50
push 1
push 0x417194
mov ecx, eax
call fcn.00404c50
push 9
push str.Message:
lea ecx, [ebp - 0x2c]
call fcn.00404c50
cmp dword [0x41d4d8], 8
mov ecx, 0x41d4c4
push dword [0x41d4d4]
cmovae ecx, dword [0x41d4c4]
push ecx
mov ecx, eax
call fcn.00404c50
push 1
push 0x417194
mov ecx, eax
call fcn.00404c50
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x2c]
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 1
push 0
push 0x3ff
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4024e7
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4024dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4024dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004100c0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004100b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x404a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4136b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x41d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ecx + eax], 0x416e6c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.004021b0
push 8
call fcn.004100ce
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.0040fa34
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov ebx, dword [esi + 4]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4151fc]
mov ecx, ebx
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 3
push eax
call fcn.004052e0
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x4151fc]
mov ecx, edi
call esi
movzx eax, ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4151fc]
mov ecx, ebx
call esi
mov edi, eax
test edi, edi
je 0x404bde
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4151fc]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp dword [ecx + 0x38], 0
mov word [ecx + 0x40], ax
jne 0x404bfc
mov eax, dword [ecx + 0xc]
push 0
or eax, 4
push eax
call fcn.004021b0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 4]
mov dword [edx + eax], 0x416e78
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x416e74
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404e30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4136e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x416eb8
call fcn.004100ce
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040fa34
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406330
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4138f5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x41de44
mov dword [ebp - 0x10], 0x41de44
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push eax
call fcn.00405e00
lea ecx, [ebp - 0x1c]
lea esi, [eax + 1]
push esi
call fcn.00406590
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
push ecx
push dword [ebp + 8]
mov edx, esi
mov esi, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00405dc0
mov eax, dword fs:[0x2c]
add esp, 0x10
mov ebx, dword [eax]
mov edi, dword [ebx + 4]
test edi, edi
jne 0x4063e3
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 0xc
push eax
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
jmp 0x4063f1
push esi
mov ecx, edi
call dword [0x4151fc]
call edi
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x41dec0], 0
je 0x40643a
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edi, dword [0x41de5c]
add esp, 4
cmp edi, eax
jne 0x40641f
cmp dword [ebx + 4], 0
je 0x40643a
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00405d90
push edi
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 0x10
test esi, esi
je 0x406470
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x406466
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406466
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004100c0
add esp, 8
push 0x41de44
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret