joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45fb8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov dword [esp + 8], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x14], 3
jg 0x455b26
jl 0x455ad2
cmp edi, esi
jae 0x455b26
mov edx, dword [esp + 0x4c]
cmp ecx, edx
mov ecx, dword [esp + 0x48]
jg 0x455aea
jl 0x455ae4
cmp esi, ecx
jae 0x455aea
lea edi, [esp + 0x30]
jmp 0x455afe
cmp eax, edx
jg 0x455afa
jl 0x455af4
cmp edi, ecx
jae 0x455afa
lea edi, [esp + 0x40]
jmp 0x455afe
lea edi, [esp + 0x20]
mov esi, dword [esp + 0x1c]
push edi
mov ecx, esi
call fcn.004562c0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi + 0xc], edx
mov dword [esp + 8], 1
jmp 0x455b78
mov edx, dword [esp + 0x4c]
cmp eax, edx
mov eax, dword [esp + 0x48]
jg 0x455b3e
jl 0x455b38
cmp edi, eax
jae 0x455b3e
lea edi, [esp + 0x20]
jmp 0x455b52
cmp ecx, edx
jg 0x455b4e
jl 0x455b48
cmp esi, eax
jae 0x455b4e
lea edi, [esp + 0x40]
jmp 0x455b52
lea edi, [esp + 0x30]
mov esi, dword [esp + 0x1c]
push edi
mov ecx, esi
call fcn.004562c0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi + 0xc], edx
mov dword [esp + 8], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x14], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x456bf0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1000
call fcn.00456620
push esi
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 8]
push 0x800
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x47200c
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov edi, dword [esp + 0x101c]
mov esi, dword [sym.imp.MSVCRT.dll_wcsncat]
push 0x800
lea ecx, [esp + 0x18]
push edi
push ecx
call esi
push 0x800
lea edx, [esp + 0x24]
push 0x471fe0
push edx
call esi
push 0x800
lea eax, [esp + 0x30]
push edi
push eax
call esi
push 0x800
lea ecx, [esp + 0x3c]
push str.vL
push ecx
call esi
mov edx, dword [esp + 0x1048]
push 0x800
lea eax, [esp + 0x48]
push edx
push eax
call esi
add esp, 0x48
lea ecx, [esp + 8]
push 0x800
push 0x471fa0
push ecx
call esi
add esp, 0xc
lea edx, [esp + 8]
push 0x14
push edi
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
cmp eax, 6
pop esi
jne 0x456cc6
push 5
push 0
push 0
push str.http:__down.360safe.com_setup.exe
push str.open
push 0
call dword [0x4730c0]
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
Function at 0x457410
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 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427004]
jne 0x401010
repz ret
jmp fcn.0040176d

Function at 0x40655b
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.004032f4
and dword [ebp - 4], 0
cmp dword [0x4290dc], 0
mov ebx, eax
jne 0x40660c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4066bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4066bd
push eax
call fcn.00403282
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4290dc], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4290e0], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4290e4], eax
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x4290ec], eax
test eax, eax
je 0x40660c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x4290e8], eax
mov eax, dword [0x4290e8]
cmp eax, ebx
je 0x406664
cmp dword [0x4290ec], ebx
je 0x406664
push eax
call fcn.004032fd
push dword [0x4290ec]
mov esi, eax
call fcn.004032fd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406664
test edi, edi
je 0x406664
call esi
test eax, eax
je 0x40665b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40665b
test byte [ebp - 0xc], 1
jne 0x406664
or dword [ebp + 0x10], 0x200000
jmp 0x40669d
mov eax, dword [0x4290e0]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40669d
mov eax, dword [0x4290e4]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4290dc]
call fcn.004032fd
pop ecx
test eax, eax
je 0x4066bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4066bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420ba4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x437044]
push dword [0x436d60]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x420c33
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp ebx, 0x19f
jne 0x420c47
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x420c6b
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00420c28
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, ebx
jl 0x420c4f
pop esi
pop edi
cmp ebx, 0x2d
jne 0x420c82
or dword [0x437054], 0xffffffff
mov dword [0x437050], 0xa62e7790
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1447442b
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4bde7999
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x70
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x80]
push edi
mov ebx, ecx
mov ecx, 0x11
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x14]
inc eax
push eax
mov dword [esp + 0x40], 0x44
call fcn.004694cd
mov edi, eax
mov eax, dword [esi + 0x18]
mov ebp, 0x10
add esp, 4
cmp eax, ebp
jb 0x401be5
mov ecx, dword [esi + 4]
jmp 0x401be8
lea ecx, [esi + 4]
mov edx, edi
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x401bf0
mov edx, ebx
lea ecx, [esp + 0x20]
call fcn.00401af0
cmp dword [eax + 0x18], ebp
jb 0x401c0f
mov ecx, dword [eax + 4]
jmp 0x401c12
lea ecx, [eax + 4]
cmp dword [ebx + 0x18], ebp
jb 0x401c1c
mov eax, dword [ebx + 4]
jmp 0x401c1f
lea eax, [ebx + 4]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x40]
push edx
push ecx
push 0
push 0
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov eax, dword [esp + 0x38]
setne bl
cmp eax, ebp
jb 0x401c56
mov eax, dword [esp + 0x24]
push eax
call fcn.004694c8
add esp, 4
push edi
call fcn.004694c8
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x70
ret 4
Function at 0x4029a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4780eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x4bc364]
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x12c], eax
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 0xff
mov dword [esp + 0xc], 1
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x148]
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x13c], ebx
jb 0x402a0c
mov eax, dword [eax + 4]
jmp 0x402a0f
add eax, 4
lea ecx, [esp + 8]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a7e
mov eax, dword [esp + 0x14c]
cmp dword [eax + 0x18], 0x10
jb 0x402a3c
mov eax, dword [eax + 4]
jmp 0x402a3f
add eax, 4
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402a7e
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402a66
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004015a0
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x402a91
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], ebx
mov esi, dword [esp + 0x144]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004014b0
cmp dword [esp + 0x2c], 0x10
jb 0x402ac8
mov eax, dword [esp + 0x18]
push eax
call fcn.004694c8
add esp, 4
mov ecx, dword [esp + 0x134]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
pop ebx
call fcn.0044ea94
add esp, 0x138
ret 0xc
Function at 0x402af0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4bc364]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10c], eax
cmp dword [esi + 0x38], 0x10
mov dword [esp + 8], 0
mov ebp, 0x497890
jb 0x402b1e
mov eax, dword [esi + 0x24]
jmp 0x402b21
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402b87
cmp dword [esi + 0x38], 0x10
jb 0x402b37
mov esi, dword [esi + 0x24]
jmp 0x402b3a
add esi, 0x24
mov eax, dword [esp + 0x118]
cmp dword [eax + 0x18], 0x10
jb 0x402b4c
mov eax, dword [eax + 4]
jmp 0x402b4f
add eax, 4
mov edx, dword [str.SKUInfo]
push esi
push 0xff
lea ecx, [esp + 0x14]
push ecx
push 0x497890
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b74
sub eax, edx
mov dword [esp + 8], eax
je 0x402b87
lea ebp, [esp + 0xc]
mov esi, dword [esp + 0x114]
mov eax, ebp
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ba5
sub eax, edx
push eax
push ebp
mov ecx, esi
call fcn.004015a0
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
pop ebp
call fcn.0044ea94
add esp, 0x108
ret 8
Function at 0x406c90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47856b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x4bc364]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x284], eax
xor ebx, ebx
xor eax, eax
mov ecx, 0x93
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
lea edi, [esi + 4]
jb 0x406ce6
mov eax, dword [edi]
jmp 0x406ce8
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x406cfb
push 0x5c
push 1
mov ecx, esi
call fcn.00404a20
push 0x497c68
call fcn.0044ef7d
add esp, 4
push eax
push 0x497c68
mov ecx, esi
call fcn.00404900
cmp dword [esi + 0x18], 8
jb 0x406d1d
mov edi, dword [edi]
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
je 0x406e61
mov edi, 7
mov edi, edi
test byte [esp + 0x30], 0x10
je 0x406e3e
lea ecx, [esp + 0x5c]
push 0x497c64
push ecx
call fcn.0044f553
add esp, 8
test eax, eax
je 0x406e3e
lea edx, [esp + 0x5c]
push 0x497c5c
push edx
call fcn.0044f553
add esp, 8
test eax, eax
je 0x406e3e
lea eax, [esp + 0x5c]
push 0x497c4c
push eax
call fcn.0044f553
add esp, 8
test eax, eax
je 0x406e3e
lea ecx, [esp + 0x5c]
push ecx
call fcn.0044ef7d
add esp, 4
push eax
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [esp + 0x5c]
push eax
call fcn.0044ef7d
add esp, 4
cmp eax, 2
je 0x406dd6
lea ecx, [esp + 0x5c]
push ecx
call fcn.0044ef7d
add esp, 4
cmp eax, 5
jne 0x406e3e
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.0044ef7d
add esp, 4
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ca0
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x298], ebx
call fcn.00406820
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x294], 0xffffffff
jb 0x406e31
mov edx, dword [esp + 0x18]
push edx
call fcn.004694c8
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406d40
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x406e6c
xor eax, eax
jmp 0x406e84
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esp + 0x28c]
sbb eax, eax
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x284]
neg eax
call fcn.0044ea94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a40
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497ea0
push 0x44e19c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x38]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x407a90
xor al, al
jmp 0x407b02
mov edx, dword [ebp - 0x48]
mov byte [edx], 0xc3
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
push 0x140
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x407abc
xor al, al
jmp 0x407b02
mov byte [ebp - 0x3d], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
push 0x407aee
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4786f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4bc364]
push ebx
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x2c], eax
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
mov esi, dword [esp + 0x48]
mov edi, esi
mov dword [esp + 0x3c], ebp
and edi, 0xf
call fcn.00472a96
mov ebx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
push eax
call fcn.004082b0
add esp, 4
shr esi, 4
inc esi
push eax
movzx ecx, si
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
cmp eax, ebp
je 0x408e9f
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x408e9f
mov esi, eax
xor ecx, ecx
mov ax, word [esi]
add esi, 2
cmp ax, bp
je 0x408e99
cmp ecx, edi
movzx ebx, ax
je 0x408ef2
lea esi, [esi + ebx*2]
inc ecx
cmp ecx, 0x10
jl 0x408e84
mov esi, dword [esp + 0x44]
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push edx
mov ecx, esi
mov word [esi + 4], bp
call fcn.00404b90
cmp dword [esp + 0x2c], 8
jb 0x408ed4
mov eax, dword [esp + 0x18]
push eax
call fcn.004694c8
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
call fcn.0044ea94
add esp, 0x30
ret
lea edx, [ebx + ebx + 2]
push edx
call fcn.004694cd
push ebx
mov edi, eax
push esi
push edi
call fcn.0044f5b5
push edi
mov word [edi + ebx*2], bp
call fcn.0044ef7d
add esp, 0x14
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00404ca0
push edi
call fcn.004694c8
mov esi, dword [esp + 0x48]
add esp, 4
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x1c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push eax
mov ecx, esi
mov word [esi + 4], bp
call fcn.00404b90
cmp dword [esp + 0x2c], 8
jb 0x408ed4
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x408ecc

Function at 0x40b310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b329
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40b33d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40b35e
cmp esi, eax
jae 0x40b337
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40b350
cmp esi, eax
jae 0x40b337
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40e2a0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8
Function at 0x40e2c0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x40e2f0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40e302
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40e890
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4bc364]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x40e8fa
test ecx, ecx
je 0x40e8ec
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x40e908
test ecx, ecx
je 0x40e9ab
push ecx
jmp 0x40e9a5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x40e972
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040e890
mov edi, eax
test edi, edi
jne 0x40e9c4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x40e934
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x40e989
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40e9ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.0044ea94
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40e9d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.0044ea94
add esp, 0x11c
ret 4