joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x57d54a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57d551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x57e8af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x59b348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x59b348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x59a178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57e8b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x13420c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xeea000]
push edi
jmp 0x13420da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x13420e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x13420d0
mov eax, 1
add ebx, ebx
jne 0x13420f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1342104
jne 0x1342123
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1342123
dec eax
add ebx, ebx
jne 0x1342110
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x13420e8
add ebx, ebx
jne 0x134211f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1342175
xor ecx, ecx
sub eax, 3
jb 0x134213b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x13421aa
sar eax, 1
mov ebp, eax
jmp 0x1342146
add ebx, ebx
jne 0x1342146
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1342114
inc ecx
add ebx, ebx
jne 0x1342154
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1342114
add ebx, ebx
jne 0x1342161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1342156
jne 0x1342172
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1342156
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1342194
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1342186
jmp 0x13420d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1342194
add edi, ecx
jmp 0x13420d6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x13421b2
cmp byte [edi], 0x11
jne 0x13421b2
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 0x13421b7
lea edi, [esi + 0xf3b000]
mov eax, dword [edi]
or eax, eax
je 0x134222f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1dacd3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1daceb8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x13421e4
mov ecx, edi
jns 0x1342213
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 + 0x1dacebc]
or eax, eax
je 0x1342229
mov dword [ebx], eax
add ebx, 4
jmp 0x1342201
call dword [esi + 0x1dacecc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1342260
cmp al, 0xef
ja 0x1342253
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1342235
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1342242
mov ebp, dword [esi + 0x1dacec0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1342294
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x408e5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004056d6
and dword [ebp - 0x14], 0
cmp dword [0x411ca0], 0
mov dword [ebp - 0x18], eax
jne 0x408f0f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408fb7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408fb7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411ca0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411ca4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411ca8], eax
call edi
push eax
call esi
mov dword [0x411cb0], eax
test eax, eax
je 0x408f0f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411cac], eax
mov eax, dword [0x411cac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408f68
cmp dword [0x411cb0], ecx
je 0x408f68
push eax
call esi
push dword [0x411cb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408f68
test ebx, ebx
je 0x408f68
call edi
test eax, eax
je 0x408f5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408f5f
test byte [ebp - 8], 1
jne 0x408f68
or dword [ebp + 0x10], 0x200000
jmp 0x408f9b
mov eax, dword [0x411ca4]
cmp eax, dword [ebp - 0x18]
je 0x408f9b
push eax
call esi
test eax, eax
je 0x408f9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408f9b
mov eax, dword [0x411ca8]
cmp eax, dword [ebp - 0x18]
je 0x408f9b
push eax
call esi
test eax, eax
je 0x408f9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411ca0]
call esi
test eax, eax
je 0x408fb7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408fb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402d39
leave
ret

Function at 0x414dde
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor dword [edi], ecx
sub eax, 1
add edi, 4
dec ebx
cmp edi, esi
jne fcn.00414dde
sub edx, 0x2a683990
add ebx, 0x8cc906bf
ret
Function at 0x546710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe9000]
push edi
jmp 0x54672a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x546731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x546720
mov eax, 1
add ebx, ebx
jne 0x546743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x546754
jne 0x546773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x546773
dec eax
add ebx, ebx
jne 0x546760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x546738
add ebx, ebx
jne 0x54676f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5467c5
xor ecx, ecx
sub eax, 3
jb 0x54678b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5467fa
sar eax, 1
mov ebp, eax
jmp 0x546796
add ebx, ebx
jne 0x546796
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x546764
inc ecx
add ebx, ebx
jne 0x5467a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x546764
add ebx, ebx
jne 0x5467b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5467a6
jne 0x5467c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5467a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5467e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5467d6
jmp 0x546726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5467e4
add edi, ecx
jmp 0x546726
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x546802
cmp byte [edi], 0x11
jne 0x546802
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 0x546807
lea edi, [esi + 0x13f000]
mov eax, dword [edi]
or eax, eax
je 0x54687f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a7bac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a7d28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x546834
mov ecx, edi
jns 0x546863
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 + 0x1a7d2c]
or eax, eax
je 0x546879
mov dword [ebx], eax
add ebx, 4
jmp 0x546851
call dword [esi + 0x1a7d3c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5468b0
cmp al, 0xef
ja 0x5468a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x546885
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x546892
mov ebp, dword [esi + 0x1a7d30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5468e4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x401c20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401c6b
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 0x401c64
test esi, esi
je 0x401c64
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c40
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e50
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 0x401ea0
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 0x401f78
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401ede
cmp eax, 4
jne 0x401f00
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 0x401eee
cmp edx, 4
je 0x401eee
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.00401e50

Function at 0x438cb3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
pop ebx
add edx, 0xd79fd4d9
sub edi, 1
call fcn.00438cf5
and edi, edi
dec edi
xor dword [ecx], ebx
or edi, edi
mov edx, 0xfe8a1e15
or edi, edx
add ecx, 1
add edi, edx
cmp ecx, esi
jne fcn.00438cb3
mov edi, 0x39b7ffe1
ret
Function at 0x402420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4324f3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x454680]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 2
push 0
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 2
jne 0x402482
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x28]
je 0x402482
cmp dword [eax], 0
je 0x402482
push 0
push 0
push 0
push eax
push 0
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4024ac
push eax
call fcn.00413220
add esp, 4
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.pp::core::SmartHandleBase_void___class_pp::core::DefaultHandleDeleter_.0
test eax, eax
je 0x402503
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4024fc
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4024f1
cmp byte [esi + 4], 0
je 0x4024de
cmp eax, dword [esi + 8]
je 0x4024ea
cmp eax, 0xffffffff
je 0x4024ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
push dword [esi + 0x10]
call fcn.00413220
add esp, 4
mov dword [esi + 0x10], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x402b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4326b1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x454680]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x454680]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], 0
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x38], 1
push dword [ecx + 0xc]
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
mov eax, dword [esp + 0x1c]
test eax, eax
cmovne esi, eax
mov dword [esp + 0x10], esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push eax
mov ecx, edi
mov byte [edi], 0
call fcn.00401b7d
mov dword [esp + 0x10], 1
mov byte [esp + 0x28], 0
test esi, esi
je 0x402c2c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00413211
add esp, 0x20
ret 4
Function at 0x402c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x432701
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x454680]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x454680]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], 0
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x38], 1
push dword [ecx + 0xc]
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push eax
mov eax, dword [esp + 0x1c]
test eax, eax
cmovne esi, eax
mov dword [esp + 0x10], esi
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push eax
mov ecx, edi
mov word [edi], dx
call fcn.00401433
mov dword [esp + 0x10], 1
mov byte [esp + 0x28], 0
test esi, esi
je 0x402cfe
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00413211
add esp, 0x20
ret 4
Function at 0x404e90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x14
mov eax, dword [0x454680]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x20]
push ebp
cmp dword [ebx + 0x14], 8
push esi
push edi
mov edi, dword [ebx + 0x10]
mov ebp, ecx
mov dword [esp + 0x14], edi
jb 0x404eb9
mov esi, dword [ebx]
jmp 0x404ebb
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x404ed7
movzx eax, byte [esi + ecx]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, edi
jb 0x404ec6
mov esi, dword [ebp + 0x14]
mov ecx, esi
and ecx, edx
cmp dword [ebp + 0x18], ecx
ja 0x404eec
shr esi, 1
or eax, 0xffffffff
sub eax, esi
add ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea esi, [eax + ecx*8]
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
mov ecx, eax
mov dword [esp + 0x18], edx
cmp eax, edx
jne 0x404f0d
mov eax, edx
jmp 0x404f12
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x405022
cmp dword [ebx + 0x14], 8
lea edx, [ecx + 8]
jb 0x404f27
mov esi, dword [ebx]
jmp 0x404f29
mov esi, ebx
cmp dword [edx + 0x14], 8
mov ebp, dword [edx + 0x10]
jb 0x404f34
mov edx, dword [edx]
mov edi, dword [esp + 0x14]
cmp ebp, edi
cmovb edi, ebp
test edi, edi
jne 0x404f68
xor eax, eax
test eax, eax
jne 0x404f58
mov edx, dword [esp + 0x14]
cmp ebp, edx
jb 0x404f58
cmp ebp, edx
setne al
test eax, eax
je 0x404f81
mov ecx, dword [ecx]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
jmp 0x404f05
mov ax, word [edx]
cmp ax, word [esi]
jne 0x404f79
add edx, 2
add esi, 2
dec edi
jmp 0x404f3f
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x404f43
cmp dword [ecx + 0x1c], 8
mov edi, dword [ecx + 0x18]
lea edx, [ecx + 8]
jb 0x404f8f
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
jb 0x404f97
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x14]
cmp ebp, edi
mov esi, edi
cmovb esi, ebp
test esi, esi
jne 0x404fe0
xor eax, eax
test eax, eax
jne 0x404ff9
cmp ebp, edi
jb 0x404ff9
cmp ebp, edi
setne al
test eax, eax
jne 0x404ff9
mov eax, dword [esp + 0x28]
pop edi
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
pop esi
mov ecx, dword [ecx]
pop ebp
mov dword [eax], ecx
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00413211
add esp, 0x14
ret 8
mov ax, word [ebx]
cmp ax, word [edx]
jne 0x404ff1
add ebx, 2
add edx, 2
dec esi
jmp 0x404fa4
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x404fa8
mov eax, dword [esp + 0x18]
pop edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
pop esi
mov ecx, dword [ecx]
pop ebp
mov dword [eax], ecx
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00413211
add esp, 0x14
ret 8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov dword [eax], edx
call fcn.00413211
add esp, 0x14
ret 8