joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cecc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a38
mov eax, dword [ebp - 8]
call fcn.00404a38
mov eax, dword [ebp - 0xc]
call fcn.00404a38
xor eax, eax
push ebp
push 0x41cfdd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0041ccf8
lea eax, [ebp - 8]
call fcn.0041ccf8
cmp dword [ebp - 4], 0
je 0x41cf2d
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x41cff4
call fcn.00404894
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, 0x41d000
call fcn.00404894
mov eax, dword [ebp - 0x14]
call fcn.00404a48
push eax
push 0x80000001
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x41cfba
mov eax, dword [ebp - 0xc]
call fcn.00404848
test eax, eax
jns 0x41cf69
call fcn.00403a44
push eax
lea eax, [ebp - 0xc]
call fcn.00404aa0
mov edx, 1
dec edx
test eax, eax
je 0x41cf81
cmp edx, dword [eax - 4]
jb 0x41cf86
call fcn.00403a44
inc edx
lea eax, [eax + edx - 1]
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00404a48
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41cfb1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x41cfba
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cfe4
lea eax, [ebp - 0x14]
call fcn.00404588
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045ac
ret

Function at 0x41d014
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a38
mov eax, dword [ebp - 8]
call fcn.00404a38
mov eax, dword [ebp - 0xc]
call fcn.00404a38
xor eax, eax
push ebp
push 0x41d0d4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a48
push eax
push 0x80000001
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x41d0b9
mov eax, dword [ebp - 0xc]
call fcn.00404848
test eax, eax
jns 0x41d075
call fcn.00403a44
push eax
lea eax, [ebp - 0xc]
call fcn.00404aa0
mov edx, 1
dec edx
test eax, eax
je 0x41d08d
cmp edx, dword [eax - 4]
jb 0x41d092
call fcn.00403a44
inc edx
lea eax, [eax + edx - 1]
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00404a48
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d0db
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045ac
ret
Function at 0x4201ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x420264
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404770
lea eax, [ebp - 0xc]
mov edx, 0x42027c
call fcn.00404850
mov eax, dword [ebp - 0xc]
call fcn.00404a48
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00407ba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42026b
lea eax, [ebp - 0xc]
call fcn.00404588
ret

Function at 0x420484
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404848
add eax, 1
jno 0x4204a4
call fcn.00403a4c
test eax, eax
jns 0x4204ad
call fcn.00403a44
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00404aa0
mov edx, 1
dec edx
test eax, eax
je 0x4204de
cmp edx, dword [eax - 4]
jb 0x4204e3
call fcn.00403a44
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404848
mov ecx, eax
mov edx, dword [ebp - 0x10]
pop eax
call fcn.0040275c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
test eax, eax
jns 0x420517
call fcn.00403a44
push eax
call sub.user32.dll_SetClipboardData
mov esp, ebp
pop ebp
ret

Function at 0x420ad0
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xc6ef3720
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
shl eax, 4
mov edx, dword [ebp + 8]
add eax, dword [edx - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
add edx, dword [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx]
shr edx, 5
mov ecx, dword [ebp + 8]
add edx, dword [ecx - 4]
xor eax, edx
mov edx, dword [ebp - 8]
sub dword [edx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shl eax, 4
mov edx, dword [ebp + 8]
add eax, dword [edx - 0x10]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
add edx, dword [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 8]
mov edx, dword [edx]
shr edx, 5
mov ecx, dword [ebp + 8]
add edx, dword [ecx - 0xc]
xor eax, edx
mov edx, dword [ebp - 4]
sub dword [edx], eax
sub dword [ebp - 0x10], 0x9e3779b9
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x21
jne 0x420aea
mov esp, ebp
pop ebp
ret
Function at 0x420f1c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a38
xor eax, eax
push ebp
push 0x420f91
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x420fa4
call fcn.00404b8c
test eax, eax
jne 0x420f5a
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x420fa4
call fcn.00404894
push 5
push 0x420fac
push 0x420fb0
mov eax, dword [ebp - 4]
call fcn.00404a48
push eax
push 0x420fb4
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420f98
lea eax, [ebp - 4]
call fcn.00404588
ret

Function at 0x4210b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405944
xor eax, eax
push ebp
push 0x4211d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00408ec8
mov eax, dword [ebp - 0x18]
call fcn.00404848
add eax, 8
jno 0x4210fc
call fcn.00403a4c
call fcn.004025c8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
call fcn.00404848
mov edx, eax
add edx, 8
jno 0x421118
call fcn.00403a4c
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
call fcn.00402e24
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.0040275c
mov eax, dword [ebp - 0x18]
call fcn.00404848
test eax, eax
jns 0x421143
call fcn.00403a44
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 4]
lea eax, [ebp - 0x10]
mov ecx, 4
call fcn.0040275c
lea eax, [ebp - 0x18]
call fcn.00404aa0
mov edx, 1
dec edx
test eax, eax
je 0x421170
cmp edx, dword [eax - 4]
jb 0x421175
call fcn.00403a44
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404848
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 8]
pop eax
call fcn.0040275c
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0x420ff4
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4211d7
lea eax, [ebp - 0x18]
call fcn.00404588
lea eax, [ebp - 8]
mov edx, dword [0x40674c]
call fcn.004058e0
ret

Function at 0x42947c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4294b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404678
jmp 0x4294be
mov eax, ebx
mov edx, esi
call fcn.004045dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4294c8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4294e9
mov al, byte [esp]
jmp 0x4294eb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x429b70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4299e8
mov eax, dword [0x4354bc]
cmp byte [eax], 0
je 0x429bec
mov eax, dword [0x4353d8]
call fcn.00402be4
call fcn.004026bc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00426e70
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x429c34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x429c22
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4353b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x436668]
call fcn.00405998
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x42a8d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x42a934
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004047f8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00426b88
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a93b
lea eax, [ebp - 0xc]
call fcn.00404588
ret
Function at 0x401d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401dc6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401dc6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401db6
cmp esi, edx
jae 0x401dc6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401da4
cmp esi, edx
jae 0x401dc6
cmp word [esi], 0
je 0x401dc6
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x402be0
Capabilities:
Create process on windows
Get token membership

Disassembly:
push ebp
lea ebp, [esp - 0x1050]
mov eax, 0x1050
call fcn.0040b9d0
push 0xffffffffffffffff
push 0x424410
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x43606c]
xor eax, ebp
mov dword [ebp + 0x104c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push ecx
call fcn.004030a0
push eax
call fcn.004059b0
push eax
call fcn.004059b0
add esp, 8
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp + 0x40], 0
lea eax, [ebp + 0x3c]
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x44], edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp + 0x44]
mov word [ebp + 0x48], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402c7a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402c93
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x3c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402c97
call esi
mov edi, eax
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x402cac
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp + 0x3c], 0
test edi, edi
jne 0x402d61
cmp dword [ebp + 0x40], edi
je 0x402cea
call fcn.00402150
jmp 0x402d3c
push 0x800
lea eax, [ebp + 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402d3a
push 0x38
lea eax, [ebp + 4]
mov dword [ebp], 0x3c
push 0
push eax
call fcn.0040c520
add esp, 0xc
mov dword [ebp + 0xc], str.runas
lea eax, [ebp + 0x4c]
mov dword [ebp + 0x1c], 5
mov dword [ebp + 0x10], eax
lea eax, [ebp]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x402d3a
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104c]
xor ecx, ebp
call fcn.0040a8c6
lea esp, [ebp + 0x1050]
pop ebp
ret 0x10
push 0x434e4c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
call fcn.0040c67a
int3
Function at 0x4076a0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x448]
sub esp, 0x448
push 0xffffffffffffffff
push 0x424a20
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x43606c]
xor eax, ebp
mov dword [ebp + 0x444], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov eax, dword [ebp + 0x450]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x34]
push eax
push 0x104
mov dword [ebp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x407833
test eax, eax
je 0x407833
lea eax, [ebp + 0x23c]
push eax
push 0
push 0x4314b8
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x407833
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407833
push 0
lea eax, [ebp + 0x30]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407833
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407833
lea eax, [ebp + 0x23c]
push eax
lea ecx, [ebp + 0x18]
call fcn.00407a50
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x18]
cmp dword [ebp + 0x2c], 8
lea edx, [ebp + 0x18]
mov eax, dword [ebp + 0x28]
cmovae ecx, dword [ebp + 0x18]
cmovae edx, dword [ebp + 0x18]
push ecx
lea eax, [ecx + eax*2]
push eax
push edx
lea ecx, [ebp]
call fcn.00408560
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
mov byte [ebp - 4], 1
call fcn.00407a90
mov edx, dword [ebp + 0x14]
cmp edx, 0x10
jb 0x4077f6
mov ecx, dword [ebp]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4077ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407858
push edx
push ecx
call fcn.0040a8d7
add esp, 8
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x40782c
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407822
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785d
push edx
push ecx
call fcn.0040a8d7
add esp, 8
mov eax, 1
jmp 0x407835
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x444]
xor ecx, ebp
call fcn.0040a8c6
lea esp, [ebp + 0x448]
pop ebp
ret
call fcn.0040f746
call fcn.0040f746
int3
Function at 0x4081a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424a70
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43606c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040a8e5
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00408af8
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4082c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424a98
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43606c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.0040a8e5
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00408af8
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 1
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00405220
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4083bc
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4083bc
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], bl
jne 0x4083dc
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.00401b90
cmp byte [ebp + 0xc], 0
je 0x4083eb
push edi
call fcn.00409e3a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41a53d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a3bc
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403203
pop dword [ebp - 0x50]
mov eax, 0x420ece13
add eax, 0xbe3163f0
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xd2e47950
sub dword [ebp - 0x60], 0x84923405
mov dword [ebp - 0x5c], 0x91ea691f
sub dword [ebp - 0x5c], 0x5fb71cda
mov dword [ebp - 0x58], 0x1bd7d009
add dword [ebp - 0x58], 0x30747425
mov dword [ebp - 0x54], 0xc07fdc81
sub dword [ebp - 0x54], 0xc07fdc81
lea eax, [ebp - 0x60]
push eax
mov eax, 0x63e2b1c6
sub eax, 0x63a2313a
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xc2d157ad
add dword [ebp - 0x60], 0xb1a111a9
mov dword [ebp - 0x5c], 0xd7bee2ef
sub dword [ebp - 0x5c], 0x9652817a
mov dword [ebp - 0x58], 0x55053ea5
sub dword [ebp - 0x58], 0xf195d239
mov dword [ebp - 0x54], 0xe22759be
sub dword [ebp - 0x54], 0xe22759be
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x37939
push 0
call eax
mov ecx, 0x83a2894c
sub ecx, 0x83a23d5e
mov ebx, eax
mov esi, 0xf62e9543
add esi, 0xa127abd
add esi, dword [ebp - 0x50]
mov edx, 0xd1a90234
xor dword [ebp - 8], 0xf8268e10
mov edi, dword [esi]
sub dword [ebp - 0x44], esi
add edi, edx
sub dword [ebp - 8], 0xb0b7662d
mov dword [ebx], edi
add dword [ebp - 0x18], 0x45e813ea
add ebx, 4
add esi, 0xf3e214ca
add esi, 0xc1deb3a
loop 0x40331a
add eax, 0x1228b
xor ebx, ebx
add ebx, eax
add eax, 0x750f00fb
add eax, 0x8af0ff0a
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10001384
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x134
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x28], eax
sub eax, ecx
mov dword [esi + 4], ecx
sub eax, 5
xor ecx, ecx
mov byte [esi + 0x19], al
mov cl, ah
add esp, 0xc
mov byte [esi + 0x1a], cl
xor ecx, ecx
shr eax, 0x10
mov byte [esi + 0x1b], al
mov cl, ah
lea eax, [ebp + 8]
mov byte [esi + 0x18], 0xe9
push eax
push 0x40
push edi
push esi
mov byte [esi + 0x1c], cl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [esi + 0x30], 0
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1000187a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov al, byte [0x100043f0]
push ebx
push esi
push edi
push 0x40
mov byte [ebp - 0x11c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x18], str.iexplore.exe
push eax
push 0
mov dword [ebp - 0x14], str.explorer.exe
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x11c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x10001909
and byte [ebx], 0
inc ebx
and dword [ebp - 4], 0
lea esi, [ebp - 0x18]
mov edi, dword [esi]
push edi
call sub.MSVCRT.dll_strlen
push eax
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0x10
test eax, eax
je 0x1000190d
inc dword [ebp - 4]
add esi, 4
cmp dword [ebp - 4], 2
jb 0x100018e5
xor eax, eax
jmp 0x1000196a
push 4
and dword [ebp - 8], 0
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push str.alrexc
push str.SOFTWARE3721AutoLive
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x10001967
mov esi, str.WININET.DLL
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10001628
push str.HttpAddRequestHeadersA
push esi
mov esi, 0x100042b8
push esi
call fcn.10001480
push esi
call fcn.100013e1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret