joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4108c7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040a52d
xor ebx, ebx
cmp dword [0x488424], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41099d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x410a7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x410a7d
push eax
call fcn.0040a4bf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x488424], eax
call esi
push eax
call fcn.0040a4bf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x488428], eax
call esi
push eax
call fcn.0040a4bf
mov dword [0x48842c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405baa
test eax, eax
pop ecx
pop ecx
je 0x41096b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004047c6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41099d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040a4bf
cmp eax, ebx
pop ecx
mov dword [0x488434], eax
je 0x41099d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a4bf
pop ecx
mov dword [0x488430], eax
mov eax, dword [0x488430]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x410a22
cmp dword [0x488434], ecx
je 0x410a22
push eax
call fcn.0040a536
push dword [0x488434]
mov esi, eax
call fcn.0040a536
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x410a22
cmp edi, ebx
je 0x410a22
call esi
cmp eax, ebx
je 0x4109ef
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4109ef
test byte [ebp - 0x18], 1
jne 0x410a22
lea eax, [ebp - 0x10]
push eax
call fcn.00405be1
test eax, eax
pop ecx
je 0x410a0a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004047c6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x410a19
or dword [ebp + 0x10], 0x200000
jmp 0x410a5d
or dword [ebp + 0x10], 0x40000
jmp 0x410a5d
mov eax, dword [0x488428]
cmp eax, dword [ebp - 8]
je 0x410a5d
push eax
call fcn.0040a536
cmp eax, ebx
pop ecx
je 0x410a5d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x410a5d
mov eax, dword [0x48842c]
cmp eax, dword [ebp - 8]
je 0x410a5d
push eax
call fcn.0040a536
cmp eax, ebx
pop ecx
je 0x410a5d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x488424]
call fcn.0040a536
cmp eax, ebx
pop ecx
je 0x410a7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410a7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4140c0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x486534]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414117
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0040473f
mov esp, ebp
pop ebp
ret
push 0x3e
lea eax, [esp + 0x116]
push ebx
push eax
mov word [esp + 0x11c], bx
call fcn.004087b0
push 0xf4
lea ecx, [esp + 0x2c]
push ebx
push ecx
mov dword [esp + 0x30], ebx
call fcn.004087b0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
push ebx
lea edx, [esp + 0x14]
push edx
push 0x40
lea eax, [esp + 0x11c]
push eax
push esi
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x4141c4
cmp dword [esp + 0x10], 0x40
jne 0x4141c4
cmp word [esp + 0x110], 0x5a4d
jne 0x4141c4
mov ecx, dword [esp + 0x14c]
push ebx
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x14c], eax
jne 0x4141c4
push ebx
lea edx, [esp + 0x14]
push edx
push 0xf8
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
je 0x4141c4
cmp dword [esp + 0x10], 0xf8
jne 0x4141c4
cmp dword [esp + 0x18], 0x4550
mov edi, 1
je 0x4141c6
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x154]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040473f
mov esp, ebp
pop ebp
ret

Function at 0x4141f0
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
mov edi, eax
push esi
push edi
xor ebp, ebp
call ebx
cmp eax, 0xffffffff
jne 0x414228
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004140c0
add esp, 4
test eax, eax
je 0x4142af
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4142b6
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x4142af
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4142a8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp word [ecx + 0x18], 0x10b
je 0x414293
xor ebp, ebp
jmp 0x4142a1
mov ecx, dword [ecx + 0x58]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
mov ebp, 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x4142c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x4142dd
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x41430f
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41430f
add edi, 1
cmp edi, ebx
jb 0x414300
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x414418
cmp eax, 3
jbe 0x414344
xor esi, esi
mov al, byte [edi + 4]
test al, al
mov dword [esp + 0x10], ebp
je 0x414381
cmp al, 0xff
je 0x414381
and esi, 3
add esi, esi
or esi, 1
add ebp, 1
jmp 0x4142f3
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x414328
movzx ecx, byte [esi + 0x47d3e8]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x47d3e0], 0
mov al, byte [eax + 4]
je 0x41436d
test al, al
je 0x41436d
cmp al, 0xff
jne 0x414328
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
add ebp, 1
jmp 0x4142f3
movzx ecx, byte [edi + 2]
xor edx, edx
mov dh, al
movzx eax, byte [edi + 1]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
lea ebx, [ebx]
sub edx, ebp
sub edx, 5
test esi, esi
mov eax, edx
je 0x4143e9
movzx edx, byte [esi + 0x47d3e8]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x4143cc
cmp bl, 0xff
jne 0x4143e5
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, eax
jmp 0x4143a0
mov ebx, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x18
and cl, 1
sub cl, 1
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [edi + 3], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 2], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x4142f3
cmp eax, 3
pop edi
pop ebx
jbe 0x41442f
mov edx, dword [esp + 0x18]
xor esi, esi
mov dword [edx], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x18]
lea ecx, [eax - 1]
shl esi, cl
mov eax, ebp
and esi, 7
mov dword [edx], esi
pop esi
pop ebp
add esp, 8
ret

Function at 0x4166c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
test esi, esi
mov ebx, eax
jne 0x4166d1
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi], 0
mov edi, edi
cmp esi, 0x400000
mov eax, 0x400000
ja 0x4166ef
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x416726
test ecx, ecx
je 0x41671f
test esi, esi
ja 0x4166e0
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x416740
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
test esi, esi
mov ebx, eax
jne 0x416751
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [edi], 0
mov edi, edi
cmp esi, 0x400000
mov eax, 0x400000
ja 0x41676f
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4167a6
test ecx, ecx
je 0x41679f
test esi, esi
ja 0x416760
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x417b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x486534]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x14]
mov ebx, edx
mov edx, dword [eax + 0x10]
push ecx
push edx
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], ebx
call fcn.004174e0
xor edi, edi
add esp, 8
cmp eax, edi
jne 0x417ceb
mov eax, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x50], eax
mov eax, 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], eax
cmp dword [esp + 0xac], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x40000
ja 0x417c23
jb 0x417c1f
cmp ebx, 0x40000
jae 0x417c23
mov dword [esp + 0x14], ebx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
call eax
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x417cd7
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xb8]
push 1
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x3c]
call fcn.00417580
mov esi, eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], eax
add esp, 0x14
sub ebx, eax
sbb dword [esp + 0xac], 0
test esi, esi
jne 0x417cd7
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x417cb4
test eax, eax
jne 0x417c9d
cmp edi, dword [esp + 0x4c]
je 0x417cb4
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x417cd7
xor edi, edi
jmp 0x417c00
cmp ecx, dword [esp + 0xb4]
jne 0x417cd2
cmp dword [esp + 0x14], 0
jne 0x417cd2
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x417cd7
cmp eax, 4
je 0x417cd7
mov esi, 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040473f
add esp, 0x90
ret
Function at 0x418930
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x488500], ecx
add edx, 1
cmp edx, 0x100
jb 0x418933
cmp edx, 0x800
jae 0x418a1b
nop
mov eax, dword [edx*4 + 0x488100]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x488500]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x4884fc], eax
jb 0x4189f0
mov dword [0x48a500], 0x416400
call fcn.00417ae0
test eax, eax
jne 0x418a38
mov dword [0x48a500], 0x416eb0
pop ecx
ret
Function at 0x418a40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x486534]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
xor ebx, ebx
mov edi, 1
cmp dword [eax + 0x14], edi
mov esi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
je 0x418a87
mov eax, edi
jmp 0x418bdd
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00418000
add esp, 4
cmp eax, ebx
jne 0x418bdd
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], edi
lea esp, [esp]
cmp dword [esp + 0xcc], ebx
mov eax, 0x40000
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
ja 0x418b1c
jb 0x418b11
cmp dword [esp + 0xc8], eax
jae 0x418b1c
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x418bc9
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
lea esi, [esp + 0x38]
call fcn.00417d10
mov esi, eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x24], eax
add esp, 0x10
sub dword [esp + 0xc8], eax
sbb dword [esp + 0xcc], ebx
cmp esi, ebx
jne 0x418bc9
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x418bae
cmp eax, ebx
jne 0x418b98
cmp edi, dword [esp + 0x4c]
je 0x418bae
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x418af0
jmp 0x418bc9
cmp ecx, dword [esp + 0xd4]
jne 0x418bc4
cmp dword [esp + 0x14], ebx
jne 0x418bc4
cmp dword [esp + 0x20], 1
je 0x418bc9
mov esi, 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040473f
add esp, 0xb0
ret
Function at 0x473950
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
call fcn.0041c4b0
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.004087b0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
add esp, 0xc
lea eax, [esp]
push eax
mov dword [esp + 4], 0x3c
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], str.open
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 1
mov dword [esp + 8], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4739b3
add esp, 0x3c
ret
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add esp, 0x3c
ret

Function at 0x473ca0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x486534]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
mov edi, ecx
call fcn.00453950
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SoftwareBaiduBaiduSd
push 0x80000002
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x473d3b
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.SupplyID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x473d3b
lea edx, [esp + 0x10]
push edx
push 0x47f14c
call fcn.00402fb0
add esp, 8
call fcn.00452d20
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040473f
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0040473f
add esp, 0x210
ret
Function at 0x473d60
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x479d79
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x486534]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x486534]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov dword [esp + 0x44], 1
call fcn.0041d8a0
push 0x47f0d8
push 0x6a
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x473dfb
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x473dcd
mov eax, dword [esp + 0x50]
push eax
call fcn.0040473a
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
jb 0x473df4
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0040473a
add esp, 4
xor eax, eax
jmp 0x473f8b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x473e51
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x473e23
mov edx, dword [esp + 0x50]
push edx
call fcn.0040473a
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
jb 0x473df4
mov eax, dword [esp + 0x6c]
push eax
call fcn.0040473a
add esp, 4
xor eax, eax
jmp 0x473f8b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, edi
jne 0x473ea9
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x473e77
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040473a
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
jb 0x473df4
mov edx, dword [esp + 0x6c]
push edx
call fcn.0040473a
add esp, 4
xor eax, eax
jmp 0x473f8b
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
call esi
cmp esi, edi
mov ebx, eax
je 0x473f47
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x70]
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
call fcn.004027b0
push 1
push 0x47f0e8
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
call fcn.00402af0
push edi
lea eax, [esp + 0x50]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x24]
call fcn.00402a30
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x473f13
lea eax, [esp + 0x20]
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x1c]
push ecx
push edx
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x473f5d
lea esi, [esp + 0x1c]
call fcn.004025a0
lea esi, [esp + 0x4c]
call fcn.004025a0
lea esi, [esp + 0x68]
call fcn.004025a0
xor eax, eax
jmp 0x473f8b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea esi, [esp + 0x1c]
call fcn.004025a0
lea esi, [esp + 0x4c]
call fcn.004025a0
lea esi, [esp + 0x68]
call fcn.004025a0
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0040473f
add esp, 0x34
ret
Function at 0x473fb0
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x479db7
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x486534]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x486534]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
call fcn.0041f1b0
xor edi, edi
push 0x208
lea eax, [esp + 0x4a]
push edi
push eax
mov word [esp + 0x50], di
call fcn.004087b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x48]
push ecx
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x44]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x474035
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x48]
push edx
lea esi, [esp + 0x14]
call fcn.00402bc0
mov dword [esp + 0x25c], edi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x260], 1
call fcn.00473af0
add esp, 4
push 1
push 0x47f0d4
mov ecx, esi
call fcn.00402af0
push edi
lea ecx, [esp + 0x2c]
push ecx
or eax, 0xffffffff
call fcn.00402a30
push 0xffffffffffffffff
push edi
mov eax, esi
mov ecx, ebx
call fcn.004027b0
mov eax, dword [esp + 0x10]
mov esi, 8
cmp dword [esp + 0x24], esi
jae 0x4740bb
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x40], esi
jb 0x4740d6
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040473a
add esp, 4
cmp dword [esp + 0x24], esi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
jb 0x4740fa
mov eax, dword [esp + 0x10]
push eax
call fcn.0040473a
add esp, 4
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0040473f
add esp, 0x254
ret
Function at 0x474800
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x486534]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
xor bl, bl
test esi, esi
jne 0x474833
xor al, al
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040473f
add esp, 0x230
ret
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x47485d
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040473f
add esp, 0x230
ret
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4748a0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x474880
push esi
lea ecx, [esp + 0x34]
push ecx
call ebp
test eax, eax
je 0x47489d
lea edx, [esp + 0xc]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x474880
jmp 0x47489f
mov bl, 1
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop edi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0040473f
add esp, 0x230
ret
Function at 0x478700
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x486534]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
mov edi, ecx
call fcn.00453950
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push 0x47e48c
push 0x80000002
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47879b
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.InstallDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47879b
lea edx, [esp + 0x10]
push edx
push 0x47e4d4
call fcn.00402fb0
add esp, 8
call fcn.00452d20
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040473f
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0040473f
add esp, 0x210
ret