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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040a45d
xor ebx, ebx
cmp dword [0x484424], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41096d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x410a4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x410a4d
push eax
call fcn.0040a3ef
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x484424], eax
call esi
push eax
call fcn.0040a3ef
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x484428], eax
call esi
push eax
call fcn.0040a3ef
mov dword [0x48442c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405d62
test eax, eax
pop ecx
pop ecx
je 0x41093b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404792
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41096d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040a3ef
cmp eax, ebx
pop ecx
mov dword [0x484434], eax
je 0x41096d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a3ef
pop ecx
mov dword [0x484430], eax
mov eax, dword [0x484430]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4109f2
cmp dword [0x484434], ecx
je 0x4109f2
push eax
call fcn.0040a466
push dword [0x484434]
mov esi, eax
call fcn.0040a466
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4109f2
cmp edi, ebx
je 0x4109f2
call esi
cmp eax, ebx
je 0x4109bf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4109bf
test byte [ebp - 0x18], 1
jne 0x4109f2
lea eax, [ebp - 0x10]
push eax
call fcn.00405d99
test eax, eax
pop ecx
je 0x4109da
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404792
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4109e9
or dword [ebp + 0x10], 0x200000
jmp 0x410a2d
or dword [ebp + 0x10], 0x40000
jmp 0x410a2d
mov eax, dword [0x484428]
cmp eax, dword [ebp - 8]
je 0x410a2d
push eax
call fcn.0040a466
cmp eax, ebx
pop ecx
je 0x410a2d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x410a2d
mov eax, dword [0x48442c]
cmp eax, dword [ebp - 8]
je 0x410a2d
push eax
call fcn.0040a466
cmp eax, ebx
pop ecx
je 0x410a2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x484424]
call fcn.0040a466
cmp eax, ebx
pop ecx
je 0x410a4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410a4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414090
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x482534]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x148]
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 0x4140e8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040470b
add esp, 0x144
ret
push 0x3e
lea eax, [esp + 0x10e]
push ebx
push eax
mov word [esp + 0x114], bx
call fcn.00408780
push 0xf4
lea ecx, [esp + 0x24]
push ebx
push ecx
mov dword [esp + 0x28], ebx
call fcn.00408780
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
push ebx
lea edx, [esp + 0x10]
push edx
push 0x40
lea eax, [esp + 0x114]
push eax
push esi
mov dword [esp + 0x20], ebx
call edi
test eax, eax
je 0x414195
cmp dword [esp + 0xc], 0x40
jne 0x414195
cmp word [esp + 0x108], 0x5a4d
jne 0x414195
mov ecx, dword [esp + 0x144]
push ebx
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x144], eax
jne 0x414195
push ebx
lea edx, [esp + 0x10]
push edx
push 0xf8
lea eax, [esp + 0x1c]
push eax
push esi
call edi
test eax, eax
je 0x414195
cmp dword [esp + 0xc], 0xf8
jne 0x414195
cmp dword [esp + 0x10], 0x4550
jne 0x414195
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040470b
add esp, 0x144
ret

Function at 0x4141c0
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 0x4141f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00414090
add esp, 4
test eax, eax
je 0x41427f
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x414286
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 0x41427f
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x414278
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp word [ecx + 0x18], 0x10b
je 0x414263
xor ebp, ebp
jmp 0x414271
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 0x414290
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 0x4142ad
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 0x4142df
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4142df
add edi, 1
cmp edi, ebx
jb 0x4142d0
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x4143e8
cmp eax, 3
jbe 0x414314
xor esi, esi
mov al, byte [edi + 4]
test al, al
mov dword [esp + 0x10], ebp
je 0x414351
cmp al, 0xff
je 0x414351
and esi, 3
add esi, esi
or esi, 1
add ebp, 1
jmp 0x4142c3
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x4142f8
movzx ecx, byte [esi + 0x4763e8]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x4763e0], 0
mov al, byte [eax + 4]
je 0x41433d
test al, al
je 0x41433d
cmp al, 0xff
jne 0x4142f8
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
add ebp, 1
jmp 0x4142c3
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 0x4143b9
movzx edx, byte [esi + 0x4763e8]
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 0x41439c
cmp bl, 0xff
jne 0x4143b5
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, eax
jmp 0x414370
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 0x4142c3
cmp eax, 3
pop edi
pop ebx
jbe 0x4143ff
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 0x416690
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
test esi, esi
mov ebx, eax
jne 0x4166a1
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 0x4166bf
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 0x4166f6
test ecx, ecx
je 0x4166ef
test esi, esi
ja 0x4166b0
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 0x416710
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
test esi, esi
mov ebx, eax
jne 0x416721
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 0x41673f
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 0x416776
test ecx, ecx
je 0x41676f
test esi, esi
ja 0x416730
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 0x417b40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x482534]
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.004174b0
xor edi, edi
add esp, 8
cmp eax, edi
jne 0x417cbb
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 0x417bf3
jb 0x417bef
cmp ebx, 0x40000
jae 0x417bf3
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 0x417ca7
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.00417550
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 0x417ca7
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x417c84
test eax, eax
jne 0x417c6d
cmp edi, dword [esp + 0x4c]
je 0x417c84
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x417ca7
xor edi, edi
jmp 0x417bd0
cmp ecx, dword [esp + 0xb4]
jne 0x417ca2
cmp dword [esp + 0x14], 0
jne 0x417ca2
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x417ca7
cmp eax, 4
je 0x417ca7
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.0040470b
add esp, 0x90
ret
Function at 0x418900
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 + 0x484500], ecx
add edx, 1
cmp edx, 0x100
jb 0x418903
cmp edx, 0x800
jae 0x4189eb
nop
mov eax, dword [edx*4 + 0x484100]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x484500]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x4844fc], eax
jb 0x4189c0
mov dword [0x486500], 0x4163d0
call fcn.00417ab0
test eax, eax
jne 0x418a08
mov dword [0x486500], 0x416e80
pop ecx
ret
Function at 0x418a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x482534]
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 0x418a57
mov eax, edi
jmp 0x418bad
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00417fd0
add esp, 4
cmp eax, ebx
jne 0x418bad
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 0x418aec
jb 0x418ae1
cmp dword [esp + 0xc8], eax
jae 0x418aec
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 0x418b99
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.00417ce0
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 0x418b99
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x418b7e
cmp eax, ebx
jne 0x418b68
cmp edi, dword [esp + 0x4c]
je 0x418b7e
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x418ac0
jmp 0x418b99
cmp ecx, dword [esp + 0xd4]
jne 0x418b94
cmp dword [esp + 0x14], ebx
jne 0x418b94
cmp dword [esp + 0x20], 1
je 0x418b99
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.0040470b
add esp, 0xb0
ret
Function at 0x46c8a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
call fcn.0041c450
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.00408780
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 0x46c903
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 0x46ca40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472c18
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x482534]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x482534]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x18], eax
call fcn.0041f390
xor ebx, ebx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
push ebx
mov dword [esp + 0x80], ebx
call fcn.00404f03
add esp, 4
push eax
call fcn.00404f3f
mov ecx, 0xd
mov esi, 0x47d03c
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
add esp, 4
movsw word es:[edi], word [esi]
mov dword [esp + 0x14], ebx
call fcn.00404f4c
and eax, 0x80000007
jns 0x46cae0
dec eax
or eax, 0xfffffff8
inc eax
js 0x46cb8b
lea ebx, [ebx]
call fcn.00404f4c
cdq
mov ecx, 0x1a
idiv ecx
movzx edi, word [esp + edx*2 + 0x38]
or edx, 0xffffffff
sub edx, dword [esp + 0x30]
cmp edx, 1
ja 0x46cb03
call fcn.0040405a
mov esi, dword [esp + 0x30]
add esi, 1
cmp esi, 0x7ffffffe
jbe 0x46cb17
call fcn.0040405a
mov eax, dword [esp + 0x34]
cmp eax, esi
jae 0x46cbcd
mov eax, dword [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
call fcn.00402e10
mov eax, dword [esp + 0x34]
cmp esi, ebx
jbe 0x46cb67
cmp eax, 8
mov eax, dword [esp + 0x20]
jae 0x46cb48
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
mov word [eax + edx*2], di
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], esi
jae 0x46cb63
lea eax, [esp + 0x20]
mov word [eax + esi*2], bx
mov esi, dword [esp + 0x14]
add esi, 1
mov dword [esp + 0x14], esi
call fcn.00404f4c
and eax, 0x80000007
jns 0x46cb83
dec eax
or eax, 0xfffffff8
inc eax
cmp esi, eax
jle 0x46cae0
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x24]
call fcn.004027b0
cmp dword [esp + 0x34], 8
jb 0x46cbaf
mov eax, dword [esp + 0x20]
push eax
call fcn.00404706
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0040470b
add esp, 0x70
ret
cmp esi, ebx
jne 0x46cb39
cmp eax, 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
jae 0x46cbe6
lea eax, [esp + 0x20]
mov word [eax], bx
jmp 0x46cb67
Function at 0x46cbf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x482534]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
mov edi, ecx
call fcn.0044dc70
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 0x46cc8b
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 0x46cc8b
lea edx, [esp + 0x10]
push edx
push 0x47d0fc
call fcn.00402fb0
add esp, 8
call fcn.0044c720
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040470b
add esp, 0x218
ret
mov ecx, dword [esp + 0x214]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0040470b
add esp, 0x218
ret
Function at 0x46ccb0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x472ce9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x482534]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x482534]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 0x48], 1
call fcn.0041d770
push 0x47d088
push 0x6a
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x46cd4b
mov esi, 8
cmp dword [esp + 0x68], esi
jb 0x46cd1d
mov eax, dword [esp + 0x54]
push eax
call fcn.00404706
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
jb 0x46cd44
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00404706
add esp, 4
xor eax, eax
jmp 0x46cedb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x46cda1
mov esi, 8
cmp dword [esp + 0x68], esi
jb 0x46cd73
mov edx, dword [esp + 0x54]
push edx
call fcn.00404706
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
jb 0x46cd44
mov eax, dword [esp + 0x70]
push eax
call fcn.00404706
add esp, 4
xor eax, eax
jmp 0x46cedb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, edi
jne 0x46cdf9
mov esi, 8
cmp dword [esp + 0x68], esi
jb 0x46cdc7
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00404706
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
jb 0x46cd44
mov edx, dword [esp + 0x70]
push edx
call fcn.00404706
add esp, 4
xor eax, eax
jmp 0x46cedb
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
call esi
cmp esi, edi
mov ebx, eax
je 0x46ce97
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x74]
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
call fcn.004027b0
push 1
push 0x47d098
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 2
call fcn.00402af0
push edi
lea eax, [esp + 0x54]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.00402a30
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x46ce63
lea eax, [esp + 0x24]
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 + 0x18]
push edi
lea ecx, [esp + 0x20]
push ecx
push edx
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46cead
lea esi, [esp + 0x20]
call fcn.004025a0
lea esi, [esp + 0x50]
call fcn.004025a0
lea esi, [esp + 0x6c]
call fcn.004025a0
xor eax, eax
jmp 0x46cedb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea esi, [esp + 0x20]
call fcn.004025a0
lea esi, [esp + 0x50]
call fcn.004025a0
lea esi, [esp + 0x6c]
call fcn.004025a0
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040470b
add esp, 0x38
ret
Function at 0x46cf00
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x472d27
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x482534]
xor eax, esp
mov dword [esp + 0x248], eax
push esi
push edi
mov eax, dword [0x482534]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
call fcn.0041e2d0
xor edi, edi
push 0x208
lea eax, [esp + 0x4a]
push edi
push eax
mov word [esp + 0x50], di
call fcn.00408780
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 0x46cf85
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x48]
push edx
lea esi, [esp + 0x14]
call fcn.00402bc0
mov dword [esp + 0x260], 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 + 0x264], 1
call fcn.0046ca40
add esp, 4
push 1
push 0x47d084
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 0x46d00b
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x40], esi
jb 0x46d026
mov edx, dword [esp + 0x2c]
push edx
call fcn.00404706
add esp, 4
cmp dword [esp + 0x24], esi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
jb 0x46d04a
mov eax, dword [esp + 0x10]
push eax
call fcn.00404706
add esp, 4
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0040470b
add esp, 0x258
ret