joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ab83
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 0x41abca
call fcn.0045dee1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41abca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41abe6
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041a683
mov esi, eax
test edi, edi
je 0x41abe4
test ebx, ebx
je 0x41abe4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41cd4c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x548730
call fcn.0052e1e1
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41cd71
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41cdc3
call fcn.0044d833
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b550
mov ecx, dword [esi + 0x6c]
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.0052e2eb
push eax
call fcn.0040b3d0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004082a0
mov eax, esi
call fcn.0052e2b9
ret 8

Function at 0x431480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x43149a
call fcn.0045dee1
mov esi, dword [eax + 0xc]
push dword [0x5ab9f8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4314b8
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4314b0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4314e5
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4314b2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004313ae
mov esi, eax
jmp 0x4314d7
Function at 0x454b54
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 0x454b9c
call fcn.0045dee1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x454b9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x454bdf
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 0x454bc8
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 0x454bc8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x454bdc
mov ecx, dword [esi + 0x68]
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 0x45653d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0045dee1
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x456576
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0045617a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4565d4
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 + 0x78], ebx
test ebx, 0xffff0000
jne 0x4565f8
cmp dword [edi + 0x74], 0
jne 0x4565f8
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0045dee1
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.00456595
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 0x45e585
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x546d59
call fcn.0052e1e1
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040d200
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x45e5e7
call fcn.0045d7a4
cmp eax, 1
jne 0x45e5e7
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004521ab
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00410fc7
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004082a0
mov dword [ebp + 8], closesocket
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004082a0
mov eax, esi
call fcn.0052e2b9
ret 0x10

Function at 0x45e610
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x546d59
call fcn.0052e1e1
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040d200
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x45e672
call fcn.0045d7a4
cmp eax, 1
jne 0x45e672
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004521ab
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00410fc7
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004082a0
mov dword [ebp + 8], closesocket
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004082a0
mov eax, esi
call fcn.0052e2b9
ret 0x14

Function at 0x4a3e61
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4a3e9f
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a3ead
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a3ead
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4a3eaf
cmp dword [esi + 4], 0
je 0x4a3ead
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4d44f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d4510
mov edi, dword [esi + 0xc]
jmp 0x4d4550
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d4529
call fcn.00457f50
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d453e
call fcn.00457f50
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d4550
call fcn.00457f50
call fcn.0045dee1
cmp dword [eax + 0x3c], 0
je 0x4d4565
push edi
mov ecx, ebx
call fcn.004d33ac
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d4412
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d4583
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d458f
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4f972c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00521e29
call fcn.0045d912
cmp dword [eax + 0x14], 0
jne 0x4f9749
mov ecx, esi
pop esi
jmp fcn.004f9231
pop esi
ret

Function at 0x4fcbd8
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004b9299
call fcn.0045d912
cmp dword [eax + 0x14], 0
jne 0x4fcbf5
mov ecx, esi
pop esi
jmp fcn.004fc5ab
pop esi
ret

Function at 0x50f02a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0050ecce
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x50f074
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00418b7c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00413447
jmp 0x50f07f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046ace6
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x50f085
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041c5f5
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x50f0c2
call fcn.0050ecce
mov dword [esi + 0xc], 1
jmp 0x50f0c7
call fcn.0050ecce
cmp dword [esi], 0
je 0x50f110
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x50f0e8
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00418b7c
jmp 0x50f0fa
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.0040b4e0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00413447
jmp 0x50f134
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x50f134
push dword [esi]
push dword [ebp + 8]
call fcn.0046ace6
pop esi
pop ebp
ret 0xc

Function at 0x52bd2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a5d48]
jne 0x52bd34
repz ret
jmp fcn.0053396c
Function at 0x53de5f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a5d48]
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.00533364
and dword [ebp - 0x14], 0
cmp dword [0x5af8d8], 0
mov dword [ebp - 0x18], eax
jne 0x53df12
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x53dfba
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x58097c
push ebx
call edi
test eax, eax
je 0x53dfba
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x58096c
push ebx
mov dword [0x5af8d8], eax
call edi
push eax
call esi
push 0x580958
push ebx
mov dword [0x5af8dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5af8e0], eax
call edi
push eax
call esi
mov dword [0x5af8e8], eax
test eax, eax
je 0x53df12
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5af8e4], eax
mov eax, dword [0x5af8e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x53df6b
cmp dword [0x5af8e8], ecx
je 0x53df6b
push eax
call esi
push dword [0x5af8e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x53df6b
test ebx, ebx
je 0x53df6b
call edi
test eax, eax
je 0x53df62
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x53df62
test byte [ebp - 8], 1
jne 0x53df6b
or dword [ebp + 0x10], 0x200000
jmp 0x53df9e
mov eax, dword [0x5af8dc]
cmp eax, dword [ebp - 0x18]
je 0x53df9e
push eax
call esi
test eax, eax
je 0x53df9e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x53df9e
mov eax, dword [0x5af8e0]
cmp eax, dword [ebp - 0x18]
je 0x53df9e
push eax
call esi
test eax, eax
je 0x53df9e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5af8d8]
call esi
test eax, eax
je 0x53dfba
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x53dfbc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052bd2a
leave
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x401c66
pop dword [ebp - 0x4c]
mov eax, 0xb5eeddec
sub eax, 0xb5aec186
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xe674416c
sub dword [ebp - 0x5c], 0x9821fc21
mov dword [ebp - 0x58], 0x91ef185e
sub dword [ebp - 0x58], 0x5fbbcc19
mov dword [ebp - 0x54], 0x2791de41
add dword [ebp - 0x54], 0x24ba65ed
mov dword [ebp - 0x50], 0xd92c3349
sub dword [ebp - 0x50], 0xd92c3349
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x24fa4ef5
add eax, 0xdb45e15f
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xdbce56e1
add dword [ebp - 0x5c], 0x98a41275
mov dword [ebp - 0x58], 0x8560754
add dword [ebp - 0x58], 0x39165a21
mov dword [ebp - 0x54], 0xd39c5f4c
sub dword [ebp - 0x54], 0x702cf2e0
mov dword [ebp - 0x50], 0x917362b9
sub dword [ebp - 0x50], 0x917362b9
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a9aa
push 0
call eax
mov ecx, 0x5cc456c8
add ecx, 0xa33c01b6
mov ebx, eax
mov esi, 0x7190898e
sub esi, 0x7150198e
add esi, dword [ebp - 0x4c]
mov edx, 0x19ac999
add edx, 0x5e45329f
mov edi, dword [esi]
xor dword [ebp - 4], 0xad9e19f3
sub edi, edx
xor dword [ebp - 0x10], ecx
mov dword [ebx], edi
add dword [ebp - 8], eax
add ebx, 0xe6e5f4db
sub ebx, 0xe6e5f4d7
add esi, 0x1e0a454a
add esi, 0xe1f5baba
loop 0x401d83
add eax, 0x154cb
mov ebx, eax
add eax, 0xc4acba9b
add eax, 0x3b53456a
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x403d50
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x472036
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4a8a30]
cmp eax, dword [ecx + 4]
jle 0x403e22
push 0x4a8a30
call fcn.00452c11
add esp, 4
cmp dword [0x4a8a30], 0xffffffff
jne 0x403e22
mov dword [ebp - 4], 1
xor eax, eax
mov dword [0x4a8a34], 0
mov dword [0x4a8a44], 0
mov dword [0x4a8a48], 0
mov dword [0x4a8a44], 0
mov dword [0x4a8a48], 7
mov word [0x4a8a34], ax
mov byte [ebp - 4], 1
push 0x4804a0
call fcn.00452f23
mov byte [ebp - 4], 0
push 0x4a8a30
call fcn.00452bc7
add esp, 8
cmp dword [0x4a8a44], 0
jne 0x403f57
lea eax, [ebp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403f57
add eax, eax
cmp eax, 0x208
jae 0x403f95
xor ecx, ecx
mov dword [ebp + 0x28], ecx
mov word [ebp + eax + 0x30], cx
xor eax, eax
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x28], ecx
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x2c], 7
lea edx, [ecx + 2]
mov word [ebp + 0x18], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e80
sub ecx, edx
lea eax, [ebp + 0x30]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x18]
call fcn.004034a0
mov dword [ebp - 4], 4
lea eax, [ebp + 0x18]
push 1
sub esp, 0x18
mov dword [ebp - 0x14], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00401e00
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.00406400
add esp, 0x18
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.00406860
mov byte [ebp - 4], 8
lea eax, [ebp]
cmp dword [ebp + 0x14], 8
mov ecx, 0x4a8a34
push dword [ebp + 0x10]
cmovae eax, dword [ebp]
push eax
call fcn.004034a0
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.00403cb0
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x2c]
cmp ecx, 8
jb 0x403f43
mov edx, dword [ebp + 0x18]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f9a
push ecx
push edx
call fcn.00452877
add esp, 8
xor eax, eax
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
push 0x4a8a34
mov ecx, edi
call fcn.00401e00
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x23c]
pop ebp
ret
call fcn.00452a03
call fcn.00457a3f
int3
Function at 0x404a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471cf0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404a97
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404a97
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404a77
cmp esi, edx
jae 0x404a97
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404a65
cmp esi, edx
jae 0x404a97
xor eax, eax
cmp word [esi], ax
cmove esi, 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
xor eax, eax
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 0x4089d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4729cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.00450e43
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x408a81
push eax
push esi
call fcn.00450d01
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00450ac3
int3
Function at 0x40bb00
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47350d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a6024]
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 ebx, ecx
cmp byte [ebp + 8], 0
jne 0x40bc03
mov edx, 0xd8
lea ecx, [ebp - 0x24]
call fcn.00427070
mov dword [ebp - 4], 0
mov edx, 0xd9
lea ecx, [ebp - 0x2c]
call fcn.00427070
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x44
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x40bbc3
mov byte [ebx + 0x18], 1
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bb9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40bbbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x40bcd3
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bbe4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40bc03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x28], 0x48ec3c
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x24]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40bc5f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x48ec3c
test eax, eax
je 0x40bc5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
xor al, al
jmp 0x40bcd3
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40bc38
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x40bc38
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x48ec3c
test eax, eax
je 0x40bcd1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov al, 1
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.00452869
mov esp, ebp
pop ebp
ret 4
Function at 0x40c900
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 8]
mov ecx, 0
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x40c931
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x40c920
pop edi
mov eax, esi
pop esi
ret 8