joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40381b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b428
call fcn.00404d8c
mov edi, 0x94
mov eax, edi
call fcn.00404ef0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40dc74], ecx
mov eax, dword [esi + 4]
mov dword [0x40dc80], eax
mov edx, dword [esi + 8]
mov dword [0x40dc84], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40dc78], esi
cmp ecx, 2
je 0x40387b
or esi, 0x8000
mov dword [0x40dc78], esi
shl eax, 8
add eax, edx
mov dword [0x40dc7c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4038b6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4038b6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4038ce
cmp eax, 0x20b
je 0x4038bb
mov dword [ebp - 0x1c], esi
jmp 0x4038e2
cmp dword [ecx + 0x84], 0xe
jbe 0x4038b6
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4038dc
cmp dword [ecx + 0x74], 0xe
jbe 0x4038b6
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00404f47
pop ecx
test eax, eax
jne 0x40390e
cmp dword [0x40dc14], 1
jne 0x4038fb
call fcn.004067b0
push 0x1c
call fcn.00406639
push 0xff
call fcn.0040649e
pop ecx
pop ecx
call fcn.00406f59
mov dword [ebp - 4], esi
call fcn.00406dae
test eax, eax
jge 0x403927
push 0x1b
call fcn.004037f6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f234], eax
call fcn.00406c8c
mov dword [0x40dc0c], eax
call fcn.00406bea
test eax, eax
jge 0x40394d
push 8
call fcn.004037f6
pop ecx
call fcn.004069b7
test eax, eax
jge 0x40395e
push 9
call fcn.004037f6
pop ecx
push 1
call fcn.004064ce
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403974
push eax
call fcn.004037f6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040695a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403995
movzx eax, word [ebp - 0x40]
jmp 0x403998
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402d80
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4039b6
push edi
call fcn.004065f9
call fcn.0040661b
jmp 0x4039e8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00404dc7
ret
Function at 0x404a4d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404ef0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404ae8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40dc74]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404ae8
cmp eax, 1
je 0x404b09
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404ae8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404ab5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404ae4
xor eax, eax
inc eax
jmp 0x404b28
cmp edi, eax
jae 0x404aec
xor eax, eax
jmp 0x404b28
cmp eax, esi
jae 0x404af3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40dc74]
jmp 0x404b0c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406538
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40dcb4], esi
push edi
jne 0x406558
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40dcb0], esi
mov byte [0x40dcac], al
jne 0x4065be
mov ecx, dword [0x40f208]
test ecx, ecx
je 0x40659f
mov eax, dword [0x40f204]
sub eax, 4
cmp eax, ecx
jmp 0x406598
mov eax, dword [eax]
test eax, eax
je 0x40658a
call eax
mov eax, dword [0x40f204]
sub eax, 4
cmp eax, dword [0x40f208]
mov dword [0x40f204], eax
jae 0x406582
mov eax, 0x40d024
mov esi, 0x40d02c
cmp eax, esi
mov edi, eax
jae 0x4065be
mov eax, dword [edi]
test eax, eax
je 0x4065b7
call eax
add edi, 4
cmp edi, esi
jb 0x4065af
mov eax, 0x40d030
mov esi, 0x40d038
cmp eax, esi
mov edi, eax
jae 0x4065dd
mov eax, dword [edi]
test eax, eax
je 0x4065d6
call eax
add edi, 4
cmp edi, esi
jb 0x4065ce
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4065f7
push dword [ebp + 8]
mov dword [0x40dcb4], 1
call fcn.0040649e
pop ebp
ret
Function at 0x406639
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40d128]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40d140]
je 0x40666e
inc eax
cmp eax, 0x13
jb 0x40665f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40d140]
jne 0x406794
mov eax, dword [0x40dc14]
cmp eax, 1
je 0x40676c
cmp eax, edx
jne 0x40669e
cmp dword [0x40d0d4], 1
je 0x40676c
cmp ecx, 0xfc
je 0x406794
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4066d4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00406ff0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004070f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406708
mov eax, edi
push eax
call fcn.004070f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b9d8
push edi
call fcn.004084c0
add esp, 0x10
push edi
call fcn.004070f0
push dword [esi + 0x40d144]
mov ebx, eax
call fcn.004070f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404ef0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00406ff0
push edi
push ebx
call fcn.00407000
push 0x40b9b8
push ebx
call fcn.00407000
push dword [esi + 0x40d144]
push ebx
call fcn.00407000
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408a81
add esp, 0x2c
jmp 0x406794
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40d144]
push dword [esi]
call fcn.004070f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00407848
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40749c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40f0e4]
mov eax, dword [0x40d128]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x407662
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40f100]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x407662
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x407506
xor eax, eax
jmp 0x407676
test al, 0x20
je 0x407517
push 2
push edi
push edi
push ecx
call fcn.00409402
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4075ec
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x407633
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x407579
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40756a
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40754c
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4075b9
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4075c5
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x407540
jmp 0x4075c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40765d
cmp dword [ebp + 0x3a4], edi
je 0x407633
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x407625
mov dword [0x40dc6c], eax
jmp 0x407669
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407617
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4075c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4075c7
push dword [ebp + 0x3a4]
call fcn.004092ed
pop ecx
jmp 0x407673
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40764b
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4074ff
mov dword [0x40dc68], 0x1c
mov dword [0x40dc6c], edi
jmp 0x407673
sub eax, dword [ebp - 0x7c]
jmp 0x407676
and dword [0x40dc6c], 0
mov dword [0x40dc68], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00407848
add ebp, 0x39c
leave
ret
Function at 0x4087f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40881e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x408825
cmp ebx, dword [eax + 4]
jae 0x408825
xor eax, eax
jmp 0x408a15
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408836
xor eax, eax
inc eax
jmp 0x408a14
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40884c
cmp ecx, edx
jae 0x408991
cmp dword [eax + 4], 0
je 0x408855
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40883d
cmp dword [ebp + 8], 0
je 0x408877
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408991
cmp eax, esi
jae 0x408991
mov eax, dword [0x40de00]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40889c
cmp dword [esi*4 + 0x40de08], edi
je 0x408995
inc esi
cmp esi, eax
jl 0x40888a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408a11
cmp dword [ebp - 8], 0x1000000
jne 0x408a11
test byte [ebp - 0xc], 0xcc
je 0x40891a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x408a11
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408a11
cmp word [eax + 0x18], 0x10b
jne 0x408a11
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x408a11
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40891a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40891a
test byte [ecx + 0x27], 0x80
jne 0x408991
push 1
push 0x40de48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40882e
mov ecx, dword [0x40de00]
test ecx, ecx
mov edx, ecx
jle 0x40894e
lea eax, [ecx*4 + 0x40de04]
cmp dword [eax], edi
je 0x40894e
dec edx
sub eax, 4
test edx, edx
jg 0x408942
test edx, edx
jne 0x40897f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40895b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408973
lea eax, [edx*4 + 0x40de08]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408961
cmp ecx, 0x10
jge 0x40897f
inc ecx
mov dword [0x40de00], ecx
push 0
push 0x40de48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40882e
xor eax, eax
jmp 0x408a14
test esi, esi
jle 0x40882e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40de48
call ebx
test eax, eax
jne 0x40882e
cmp dword [esi*4 + 0x40de08], edi
je 0x4089eb
mov eax, dword [0x40de00]
lea esi, [eax - 1]
test esi, esi
jl 0x4089d9
cmp dword [esi*4 + 0x40de08], edi
je 0x4089d5
dec esi
jns 0x4089c9
test esi, esi
jge 0x4089e9
cmp eax, 0x10
jge 0x4089e4
inc eax
mov dword [0x40de00], eax
lea esi, [eax - 1]
jmp 0x4089eb
je 0x408a03
xor ecx, ecx
test esi, esi
jl 0x408a03
lea eax, [ecx*4 + 0x40de08]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4089f1
push 0
push 0x40de48
call ebx
jmp 0x40882e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408a81
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40de4c], ebx
push esi
push edi
jne 0x408b01
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408b3c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40bf94
push edi
call esi
test eax, eax
mov dword [0x40de4c], eax
je 0x408b3c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40de50], eax
call esi
cmp dword [0x40dc74], 2
mov dword [0x40de54], eax
jne 0x408b01
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40de5c], eax
je 0x408b01
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40de58], eax
mov eax, dword [0x40de58]
test eax, eax
je 0x408b46
call eax
test eax, eax
je 0x408b2d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40de5c]
test eax, eax
je 0x408b2d
test byte [ebp - 8], 1
jne 0x408b46
cmp dword [0x40dc80], 4
jb 0x408b40
or byte [ebp + 0x12], 0x20
jmp 0x408b65
xor eax, eax
jmp 0x408b75
or byte [ebp + 0x12], 4
jmp 0x408b65
mov eax, dword [0x40de50]
test eax, eax
je 0x408b65
call eax
mov ebx, eax
test ebx, ebx
je 0x408b65
mov eax, dword [0x40de54]
test eax, eax
je 0x408b65
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40de4c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401805
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov dword [esp + 0x28], 0x5c
div ecx
mov dword [esp + 0x24], 0x65
mov dword [esp + 0x20], 0x70
mov dword [esp + 0x1c], 0x69
mov dword [esp + 0x18], 0x70
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0x10], 0x2e
mov dword [esp + 0xc], 0x5c
mov dword [esp + 8], 0x5c
mov dword [esp + 4], str._c_c_c_c_c_c_c_c_cMSSE__d_server
mov dword [esp], 0x4503e0
mov dword [esp + 0x2c], edx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4016e1
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], 0
sub esp, 0x18
leave
jmp fcn.004017ac

Function at 0x401c80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004029b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004029b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x401ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x45039c]
test esi, esi
jle 0x401de0
mov eax, dword [0x4503a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401d10
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401d8f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401d00
mov dword [esp], ebx
call fcn.00402650
mov edi, eax
test eax, eax
je 0x401e07
mov eax, dword [0x4503a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402760
mov edx, dword [0x4503a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401de7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401d88
sub eax, 4
and eax, 0xfffffffb
jne 0x401d96
add dword [0x45039c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4503a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401d88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401c80
xor esi, esi
jmp 0x401d1a
mov eax, dword [0x4503a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401c80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401c80
lea esi, [esi]
nop

Function at 0x4022c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4503b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4503b0]
sub esp, 4
test ebx, ebx
je 0x402315
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40230e
test esi, esi
je 0x40230e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4022f0
mov dword [esp], 0x4503b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10001840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021b00
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x1002e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb0], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x98
mov ebx, eax
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.1000ae60
add esp, 8
lea ecx, [ebp - 0xa8]
call fcn.100065e0
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x1002ae90]
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb4], 0x1e6531
nop word [eax + eax]
mov cl, byte [ebp - 0xc4]
xor byte [ebp + eax - 0xc3], cl
inc eax
cmp eax, 0x12
jb 0x100018d0
lea edx, [ebp - 0xc3]
mov byte [ebp - 0xb1], 0
lea ecx, [ebp - 0xa8]
call fcn.10004600
mov esi, eax
push 0
push 8
mov eax, dword [esi]
mov eax, dword [eax + 4]
or dword [eax + esi + 0x14], 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + esi + 0x14], eax
lea eax, [ebp - 0xd8]
push eax
call fcn.10007ca5
add esp, 0xc
mov ecx, dword [eax]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
mov eax, dword [eax + 4]
push ebx
mov byte [eax + esi + 0x40], 0x30
call fcn.10001d90
mov ecx, eax
mov byte [ebp - 0xaa], 0
mov dl, 0x43
mov byte [ebp - 0xaa], 0
mov al, 0x1e
mov byte [ebp - 0xac], dl
xor al, dl
lea edx, [ebp - 0xab]
mov byte [ebp - 0xab], al
call fcn.10004600
push edi
lea ecx, [ebp - 0xa8]
call fcn.10004200
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.10006510
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0xac], ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.10007899
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009019
mov esp, ebp
pop ebp
ret
Function at 0x100071b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 0x13
mov al, 0x7d
xor al, byte [ebp - 0x10]
mov bl, 0x7f
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x77
push esi
mov esi, ecx
mov byte [ebp - 1], ah
mov bh, ah
mov byte [ebp - 6], 0
mov dh, dl
mov byte [ebp - 6], 0
xor dl, al
xor bl, al
xor ah, al
mov byte [ebp - 0xd], dl
xor dh, al
mov byte [ebp - 0xb], ah
xor bh, al
mov byte [ebp - 0xc], bl
mov cl, 0x67
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 0x3d
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0xf]
push edi
push eax
mov byte [ebp - 0xa], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x10007283
movaps xmm0, xmmword [0x1002aec0]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x7b615d67
mov dword [ebp - 0x14], 0x6d686c
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x10007240
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10007283
test esi, esi
jne 0x1000726e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x100072ce
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100072d2
cmp edx, esi
jne 0x100072b7
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x100072f2
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100072f6
cmp edx, esi
jne 0x100072db
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x10007316
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000731a
cmp edx, esi
jne 0x100072ff
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret