joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4140b0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x473534]
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 0x414107
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 0x4141b4
cmp dword [esp + 0x10], 0x40
jne 0x4141b4
cmp word [esp + 0x110], 0x5a4d
jne 0x4141b4
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 0x4141b4
push ebx
lea edx, [esp + 0x14]
push edx
push 0xf8
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
je 0x4141b4
cmp dword [esp + 0x10], 0xf8
jne 0x4141b4
cmp dword [esp + 0x18], 0x4550
mov edi, 1
je 0x4141b6
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 0x4141e0
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 0x414218
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.004140b0
add esp, 4
test eax, eax
je 0x41429f
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4142a6
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 0x41429f
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x414298
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp word [ecx + 0x18], 0x10b
je 0x414283
xor ebp, ebp
jmp 0x414291
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 0x4142b0
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 0x4142cd
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 0x4142ff
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4142ff
add edi, 1
cmp edi, ebx
jb 0x4142f0
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x414408
cmp eax, 3
jbe 0x414334
xor esi, esi
mov al, byte [edi + 4]
test al, al
mov dword [esp + 0x10], ebp
je 0x414371
cmp al, 0xff
je 0x414371
and esi, 3
add esi, esi
or esi, 1
add ebp, 1
jmp 0x4142e3
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x414318
movzx ecx, byte [esi + 0x46c3e8]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x46c3e0], 0
mov al, byte [eax + 4]
je 0x41435d
test al, al
je 0x41435d
cmp al, 0xff
jne 0x414318
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
add ebp, 1
jmp 0x4142e3
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 0x4143d9
movzx edx, byte [esi + 0x46c3e8]
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 0x4143bc
cmp bl, 0xff
jne 0x4143d5
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, eax
jmp 0x414390
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 0x4142e3
cmp eax, 3
pop edi
pop ebx
jbe 0x41441f
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 0x4166b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
test esi, esi
mov ebx, eax
jne 0x4166c1
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 0x4166df
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 0x416716
test ecx, ecx
je 0x41670f
test esi, esi
ja 0x4166d0
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 0x416730
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
test esi, esi
mov ebx, eax
jne 0x416741
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 0x41675f
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 0x416796
test ecx, ecx
je 0x41678f
test esi, esi
ja 0x416750
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 0x417b60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x473534]
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.004174d0
xor edi, edi
add esp, 8
cmp eax, edi
jne 0x417cdb
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 0x417c13
jb 0x417c0f
cmp ebx, 0x40000
jae 0x417c13
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 0x417cc7
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.00417570
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 0x417cc7
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x417ca4
test eax, eax
jne 0x417c8d
cmp edi, dword [esp + 0x4c]
je 0x417ca4
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x417cc7
xor edi, edi
jmp 0x417bf0
cmp ecx, dword [esp + 0xb4]
jne 0x417cc2
cmp dword [esp + 0x14], 0
jne 0x417cc2
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x417cc7
cmp eax, 4
je 0x417cc7
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 0x418920
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 + 0x475500], ecx
add edx, 1
cmp edx, 0x100
jb 0x418923
cmp edx, 0x800
jae 0x418a0b
nop
mov eax, dword [edx*4 + 0x475100]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x475500]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x4754fc], eax
jb 0x4189e0
mov dword [0x477500], 0x4163f0
call fcn.00417ad0
test eax, eax
jne 0x418a28
mov dword [0x477500], 0x416ea0
pop ecx
ret
Function at 0x418a30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x473534]
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 0x418a77
mov eax, edi
jmp 0x418bcd
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00417ff0
add esp, 4
cmp eax, ebx
jne 0x418bcd
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 0x418b0c
jb 0x418b01
cmp dword [esp + 0xc8], eax
jae 0x418b0c
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 0x418bb9
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.00417d00
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 0x418bb9
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x418b9e
cmp eax, ebx
jne 0x418b88
cmp edi, dword [esp + 0x4c]
je 0x418b9e
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x418ae0
jmp 0x418bb9
cmp ecx, dword [esp + 0xd4]
jne 0x418bb4
cmp dword [esp + 0x14], ebx
jne 0x418bb4
cmp dword [esp + 0x20], 1
je 0x418bb9
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 0x4625d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
call fcn.0041c4a0
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 0x462633
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 0x462920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x473534]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
mov edi, ecx
call fcn.00445a10
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 0x4629bb
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 0x4629bb
lea edx, [esp + 0x10]
push edx
push 0x46e14c
call fcn.00402fb0
add esp, 8
call fcn.004447a0
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 0x4629e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4689f9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x473534]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473534]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov dword [esp + 0x44], 1
call fcn.0041d080
push 0x46e0d8
push 0x6a
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x462a7b
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x462a4d
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 0x462a74
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0040473a
add esp, 4
xor eax, eax
jmp 0x462c0b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x462ad1
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x462aa3
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 0x462a74
mov eax, dword [esp + 0x6c]
push eax
call fcn.0040473a
add esp, 4
xor eax, eax
jmp 0x462c0b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, edi
jne 0x462b29
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x462af7
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 0x462a74
mov edx, dword [esp + 0x6c]
push edx
call fcn.0040473a
add esp, 4
xor eax, eax
jmp 0x462c0b
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
call esi
cmp esi, edi
mov ebx, eax
je 0x462bc7
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 0x46e0e8
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 0x462b93
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 0x462bdd
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 0x462c0b
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 0x462c30
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x468a37
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x473534]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x473534]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
call fcn.0041e580
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 0x462cb5
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.00462770
add esp, 4
push 1
push 0x46e0d4
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 0x462d3b
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x40], esi
jb 0x462d56
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 0x462d7a
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 0x463480
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x473534]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
xor bl, bl
test esi, esi
jne 0x4634b3
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 0x4634dd
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 0x463520
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x463500
push esi
lea ecx, [esp + 0x34]
push ecx
call ebp
test eax, eax
je 0x46351d
lea edx, [esp + 0xc]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x463500
jmp 0x46351f
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 0x467380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x473534]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
mov edi, ecx
call fcn.00445a10
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push 0x46d48c
push 0x80000002
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46741b
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 0x46741b
lea edx, [esp + 0x10]
push edx
push 0x46d4d4
call fcn.00402fb0
add esp, 8
call fcn.004447a0
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 0x40144e
Capabilities:
Resume thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jbe 0x401581
cmp dword [ebp - 0x24], 0
je 0x401581
push 0
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x28], 0
push 0
push 0
call dword [sym.imp.USER32.dll_EnableWindow]
test eax, eax
jne 0x401581
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0x4b
je 0x401581
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
jmp 0x401501
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0xcfb
jge 0x401515
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x4014f8
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0x4b
je 0x401581
cmp dword [ebp - 0x2c], 0
jbe 0x401581
mov ecx, 0x20
add ecx, 0x20
push ecx
mov ecx, 0x1000
push ecx
mov ecx, 0x1400
push ecx
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WS2_32.dll_send]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x276d
jne 0x401581
mov ebx, dword [ebp - 0x24]
mov eax, 0
dec eax
call ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x24]
mov dword [0x40c784], ecx
mov dword [ebp + 8], 1
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8