joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446f40
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
add dword [eax + 4], edx
mov edx, dword [ecx + 4]
add esi, edx
mov dword [eax], esi
lea edx, [ecx + 0x10]
mov dword [esp + 0x10], 3
mov edi, edi
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
xor ebx, ebp
mov esi, ebx
mov edi, ebp
shr edi, 4
and edi, 0x1f
mov ecx, 0x20
sub ecx, edi
shr esi, cl
mov ecx, edi
mov edi, dword [edx - 8]
shl ebx, cl
mov ecx, 0x20
or esi, ebx
sub esi, edi
mov dword [eax + 4], esi
mov edi, esi
shr edi, 7
xor esi, ebp
and edi, 0x1f
sub ecx, edi
mov ebx, esi
shr ebx, cl
mov ecx, edi
shl esi, cl
mov ecx, dword [edx - 4]
or ebx, esi
add ecx, ebx
mov ebx, dword [eax + 4]
xor ebx, ecx
mov dword [eax], ecx
mov ebp, dword [edx]
mov edi, ecx
shr edi, 4
and edi, 0x1f
mov esi, ebx
mov ecx, 0x20
sub ecx, edi
shr esi, cl
mov ecx, edi
shl ebx, cl
mov ecx, 0x20
or esi, ebx
mov ebx, dword [eax]
sub esi, ebp
xor ebx, esi
mov edi, esi
mov dword [eax + 4], esi
shr edi, 7
and edi, 0x1f
sub ecx, edi
mov esi, ebx
shr esi, cl
mov ecx, edi
shl ebx, cl
mov ecx, dword [edx + 4]
or esi, ebx
mov ebx, dword [eax + 4]
add ecx, esi
mov edi, ecx
xor ebx, ecx
mov dword [eax], ecx
mov ebp, dword [edx + 8]
shr edi, 4
and edi, 0x1f
mov esi, ebx
mov ecx, 0x20
sub ecx, edi
shr esi, cl
mov ecx, edi
shl ebx, cl
mov ecx, 0x20
or esi, ebx
mov ebx, dword [eax]
sub esi, ebp
mov edi, esi
shr edi, 7
and edi, 0x1f
mov dword [eax + 4], esi
xor ebx, esi
sub ecx, edi
mov esi, ebx
shr esi, cl
mov ecx, edi
shl ebx, cl
mov ecx, dword [edx + 0xc]
add edx, 0x20
or esi, ebx
mov ebx, dword [eax + 4]
add ecx, esi
xor ebx, ecx
mov dword [eax], ecx
mov ebp, dword [edx - 0x10]
mov edi, ecx
shr edi, 4
and edi, 0x1f
mov esi, ebx
mov ecx, 0x20
sub ecx, edi
shr esi, cl
mov ecx, edi
shl ebx, cl
mov ecx, 0x20
or esi, ebx
mov ebx, dword [eax]
sub esi, ebp
mov edi, esi
xor ebx, esi
shr edi, 7
mov dword [eax + 4], esi
and edi, 0x1f
sub ecx, edi
mov esi, ebx
shr esi, cl
mov ecx, edi
mov edi, dword [edx - 0xc]
shl ebx, cl
mov ecx, dword [esp + 0x10]
or esi, ebx
add esi, edi
dec ecx
mov dword [eax], esi
mov dword [esp + 0x10], ecx
jne 0x446f60
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4470a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov ebp, 0xc
jmp 0x4470b0
mov ebx, dword [edi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + ebp*8 + 4]
mov edx, dword [edi]
sub edx, ecx
mov esi, ebx
shr esi, 7
and esi, 0x1f
mov eax, edx
mov ecx, 0x20
sub ecx, esi
shl eax, cl
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x10]
or eax, edx
xor eax, ebx
mov dword [edi], eax
mov edx, dword [ecx + ebp*8]
lea esi, [edx + ebx]
mov edx, eax
shr edx, 4
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
mov ebx, esi
shl ebx, cl
mov ecx, edx
shr esi, cl
or ebx, esi
xor ebx, eax
dec ebp
mov dword [edi + 4], ebx
jne 0x4470b0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
sub dword [edi], ecx
mov edx, dword [eax]
mov eax, ebx
pop esi
sub eax, edx
pop ebp
mov dword [edi + 4], eax
pop ebx
ret
Function at 0x4544b0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x4b83f8]
and eax, 0xff00
cmp eax, 0x2300
je 0x4544fd
shr edi, 2
xor edx, edx
test edi, edi
jle 0x4544fd
push ebx
mov edi, edi
mov ecx, dword [esi + edx*4]
mov eax, ecx
shl ecx, 0x10
shr eax, 0x10
or eax, ecx
mov ecx, eax
shr ecx, 8
mov ebx, eax
shl ebx, 8
xor ecx, ebx
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x4544d0
pop ebx
pop edi
ret
Function at 0x457e40
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x45bbe5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4957f7
call fcn.00478b01
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x45bc0a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45bc50
lea ecx, [ebp - 0x10]
call fcn.0040140f
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00458d74
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401112
mov eax, esi
call fcn.00478bd9
ret 8

Function at 0x462dcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x462e13
call fcn.0045c98e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x462e13
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x462e2f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00462944
mov esi, eax
test edi, edi
je 0x462e2d
test ebx, ebx
je 0x462e2d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46580e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x465832
cmp dword [edi + 0x54], 0
jne 0x465832
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0045c98e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004657cf
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4676ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x467734
call fcn.0045c98e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x467734
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x467777
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x467760
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x467760
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x467774
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x478af2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bad80]
jne 0x478afc
repz ret
jmp fcn.00481b3c
Function at 0x48adb5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0047f6fe
and dword [ebp - 4], 0
cmp dword [0x4d9d00], 0
mov ebx, eax
jne 0x48ae66
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x48af17
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a320c
push edi
call esi
test eax, eax
je 0x48af17
push eax
call fcn.0047f68c
mov dword [esp], 0x4a31fc
push edi
mov dword [0x4d9d00], eax
call esi
push eax
call fcn.0047f68c
mov dword [esp], 0x4a31e8
push edi
mov dword [0x4d9d04], eax
call esi
push eax
call fcn.0047f68c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d9d08], eax
call esi
push eax
call fcn.0047f68c
pop ecx
mov dword [0x4d9d10], eax
test eax, eax
je 0x48ae66
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047f68c
pop ecx
mov dword [0x4d9d0c], eax
mov eax, dword [0x4d9d0c]
cmp eax, ebx
je 0x48aebe
cmp dword [0x4d9d10], ebx
je 0x48aebe
push eax
call fcn.0047f707
push dword [0x4d9d10]
mov esi, eax
call fcn.0047f707
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48aebe
test edi, edi
je 0x48aebe
call esi
test eax, eax
je 0x48aeb5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48aeb5
test byte [ebp - 0xc], 1
jne 0x48aebe
or dword [ebp + 0x10], 0x200000
jmp 0x48aef7
mov eax, dword [0x4d9d04]
cmp eax, ebx
je 0x48aef7
push eax
call fcn.0047f707
pop ecx
test eax, eax
je 0x48aef7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x48aef7
mov eax, dword [0x4d9d08]
cmp eax, ebx
je 0x48aef7
push eax
call fcn.0047f707
pop ecx
test eax, eax
je 0x48aef7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d9d00]
call fcn.0047f707
pop ecx
test eax, eax
je 0x48af17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48af19
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40611c
pop dword [ebp - 0x18]
mov eax, 0xf85d2ea7
sub eax, 0xf81ccd8b
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xbd570d4d
sub dword [ebp - 0x28], 0x6f04c802
mov dword [ebp - 0x24], 0x8f96f9ce
sub dword [ebp - 0x24], 0x5d63ad89
mov dword [ebp - 0x20], 0x3882002f
add dword [ebp - 0x20], 0x13ca43ff
mov dword [ebp - 0x1c], 0x5613b69e
sub dword [ebp - 0x1c], 0x5613b69e
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x65f4b181
add dword [ebp - 0x28], 0xe7db7d5
mov dword [ebp - 0x24], 0xbcd97af9
add dword [ebp - 0x24], 0x8492e67c
mov dword [ebp - 0x20], 0x9af92aac
add dword [ebp - 0x20], 0xc87641c0
mov dword [ebp - 0x1c], 0xce26e105
sub dword [ebp - 0x1c], 0xce26e105
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x375ab
push 0
call eax
mov ecx, 0x4734542e
add ecx, 0xb8cbf6ce
mov edx, eax
mov ebx, 0xa073721f
add ebx, 0x5fcd8de1
add ebx, dword [ebp - 0x18]
mov edi, 0x93b15796
xor dword [ebp - 0xc], ebx
mov esi, dword [ebx]
add dword [ebp - 0xc], ebx
xor esi, edi
mov dword [edx], esi
xor dword [ebp - 4], 0xa68d38f5
add edx, 0xc1dde66e
sub edx, 0xc1dde66a
add ebx, 0xcca03ae5
add ebx, 0x335fc51f
loop 0x40622e
add eax, 0x16b5db6c
add eax, 0xe94b4357
mov ebx, eax
add eax, 0x1bcb363e
add eax, 0xe434c9c7
mov ecx, 0x910bb851
add ecx, 0x6f3447af
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401360
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x20
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401385
xor eax, eax
pop esi
add esp, 0x20
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40137e
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
neg esi
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
sbb esi, esi
push 0
and esi, 2
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40137e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x514
setne cl
pop esi
mov eax, ecx
add esp, 0x20
ret

Function at 0x401400
Capabilities:
Enumerate processes

Disassembly:
mov ecx, dword [esi + 4]
sub esp, 0x22c
push ebx
push edi
mov edi, dword [esi]
cmp edi, ecx
je 0x40142f
mov eax, ecx
sub eax, ecx
sar eax, 2
lea ebx, [eax*4]
push ebx
push ecx
push edi
call fcn.00416880
add esp, 0xc
add ebx, edi
mov dword [esi + 4], ebx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40144d
pop edi
xor al, al
pop ebx
add esp, 0x22c
ret 4
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401505
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x5c
push 0
lea ecx, [esp + 0x38]
push ecx
call ebp
test eax, eax
jne 0x401485
lea eax, [esp + 0x30]
jmp 0x401488
add eax, 2
mov edx, dword [esp + 0x23c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4014f0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
cmp ecx, eax
jae 0x4014d3
mov ecx, dword [esi]
lea edx, [esp + 0x14]
cmp ecx, edx
ja 0x4014d3
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x4014c3
mov eax, esi
call fcn.00402850
mov eax, dword [esi + 4]
test eax, eax
je 0x4014ec
mov ecx, dword [esi]
mov edx, dword [ecx + edi*4]
mov dword [eax], edx
jmp 0x4014ec
cmp eax, dword [esi + 8]
jne 0x4014df
mov eax, esi
call fcn.00402850
mov eax, dword [esi + 4]
test eax, eax
je 0x4014ec
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
add dword [esi + 4], 4
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401470
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
xor ecx, ecx
cmp eax, dword [esi + 4]
pop edi
setne al
pop ebx
add esp, 0x22c
ret 4
Function at 0x401df0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x42e2e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push 0x3ed
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [edi + 0x40]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x466
push ecx
call esi
mov edx, dword [edi + 0x40]
push 0
push 0
push 0x467
push edx
call esi
mov eax, dword [edi + 4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x43a2e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x43a2e4
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], 0
cmp dword [esp + 0x3c], 0
push 0
jne 0x401e99
push 0x89
call fcn.004085a0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x401eba
mov eax, 0x89
jmp 0x401eb1
push 0x8a
call fcn.004085a0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x401eba
mov eax, 0x8a
lea ebx, [esp + 0xc]
call fcn.00408880
mov ecx, dword [esp + 0xc]
mov edx, dword [edi + 4]
push 0x40
push 0x435060
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov word [esp + 0x10], ax
push 4
mov eax, str.path
lea esi, [esp + 0x14]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
call fcn.00409020
mov ecx, esi
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [edi + 0x44]
mov byte [esp + 0x3c], 1
call fcn.004028a0
mov eax, dword [edi + 0x48]
cmp dword [esp + 0x3c], eax
mov esi, 8
setne al
test al, al
sete bl
cmp dword [esp + 0x24], esi
jb 0x401f33
mov eax, dword [esp + 0x10]
push eax
call fcn.00416629
add esp, 4
xor ecx, ecx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], cx
test bl, bl
je 0x401f6c
add edi, 0x70
cmp dword [edi + 0x14], esi
jb 0x401f58
mov edi, dword [edi]
push 1
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
pop esi
pop ebx
test ecx, ecx
jg 0x401f97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x402000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42df18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 8], vtable.CAboutDlg.0
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea edi, [esp + 0xc]
call fcn.00402640
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x40205e
push eax
call fcn.004163cc
mov ecx, dword [esp + 0x28]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret
Function at 0x4023c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x20c
push esi
push 0x208
mov esi, eax
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.00417d10
mov edx, dword [esp + 0x220]
mov eax, dword [edx + 4]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 5
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
je 0x40242f
xor ecx, ecx
push ecx
mov eax, 0x435060
mov word [esi], cx
call fcn.00409020
mov eax, esi
pop esi
add esp, 0x20c
ret 4
xor edx, edx
lea eax, [esp + 8]
mov word [esi], dx
lea edx, [eax + 2]
jmp 0x402440
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402440
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
call fcn.00409020
mov eax, esi
pop esi
add esp, 0x20c
ret 4

Function at 0x402e40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp dword [eax + 0x14], 8
push esi
jb 0x402e4b
mov ecx, dword [eax]
jmp 0x402e4d
mov ecx, eax
mov edx, dword [eax + 0x10]
lea edx, [ecx + edx*2]
mov eax, 0x811c9dc5
cmp ecx, edx
je 0x402e72
lea esp, [esp]
movzx esi, word [ecx]
imul eax, eax, 0x1000193
add ecx, 2
xor eax, esi
cmp ecx, edx
jne 0x402e60
and eax, 0x7fffffff
push 0x1f31d
push eax
call fcn.00416e0f
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
mov eax, edx
jns 0x402e9c
add eax, 0x7fffffff
pop esi
ret

Function at 0x403d60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42da9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00415ab7
push 4
mov dword [esp + 0x18], 0
call fcn.004167fb
mov edi, eax
add esp, 4
test edi, edi
je 0x403dd4
push ebx
call fcn.00415433
mov dword [edi], eax
call fcn.004151f2
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0041551c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403dc8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00415544
pop ebx
jmp 0x403dd6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x406f30
Capabilities:
Create process memory minidump

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x406f46
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov eax, dword [esp + 0x24]
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406f83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x406fc9
pop edi
and eax, 0xffff
pop esi
or eax, 0x80070000
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push edi
push edi
push edi
push ecx
push esi
push ebx
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], 0x406f00
mov dword [esp + 0x2c], edi
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x408330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
mov ecx, dword [eax]
push ebx
mov ebx, dword [eax + 4]
push ebp
push edi
push ecx
xor ebp, ebp
lea ecx, [esp + 0x1c]
push ecx
mov edi, 0x20019
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004089d0
test eax, eax
je 0x408378
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40836c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov eax, 0x1826
pop ebx
add esp, 0x1c
ret
push esi
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
push str.dump
mov edi, 4
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x4083ac
cmp dword [esp + 0x14], edi
je 0x4083c4
cmp esi, ebp
je 0x4083b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebp
mov eax, 0x1826
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x1044
mov dword [esp + 0x24], 0x1204
mov dword [esp + 0x28], 0x1826
cmp eax, edi
jae 0x4083ee
mov edi, dword [esp + eax*4 + 0x1c]
jmp 0x4083f3
mov edi, 2
cmp esi, ebp
je 0x4083fe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret