joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b3e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x4357fc
push dword [esp + 0x18]
push dword [0x443068]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41b4fb
push esi
push dword [0x443068]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41b4fb
push esi
push dword [0x443068]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41b4fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41b4fb
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41b4f3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41b4ec
push edi
push esi
push eax
call fcn.00422950
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41b4e5
push ebp
push dword [esp + 0x14]
call fcn.0041b346
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x434278]
call esi
test edi, edi
je 0x41b4e5
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x41b4d3
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x41b4d3
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x434278]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
jmp 0x41b4fd
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x41bc0f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041fb60
cmp word [0x452892], 0
je 0x41bcab
push esi
push 6
push dword [0x440724]
mov esi, 0x452892
push esi
call fcn.0040d3ba
push eax
call fcn.00413038
test eax, eax
jne 0x41bcaa
push 0x451890
call fcn.0041b929
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.00411638
lea eax, [ebp - 0x1024]
push eax
call fcn.00424b33
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00420d40
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
leave
ret
Function at 0x41bcef
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x44073c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x41bd3a
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x461ce8], ax
xor eax, eax
mov word [0x461cea], ax
mov dword [0x44073c], 0x461ce8
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004114f3
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x44072c
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x41bf80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041fb60
cmp byte [0x453898], 0
je 0x41c02e
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041d3f4
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c02e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c025
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41c009
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00411638
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x41c0e4
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041fb60
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41c0ff
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41c10c
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41c1e8
movzx eax, word [esi]
test ax, ax
je 0x41c1e8
push ebp
mov ebp, dword [esp + 0x201c]
push edi
mov dword [esp + 0x10], ebx
mov edi, eax
add esi, 2
cmp di, 0x3d
jne 0x41c157
test ebp, ebp
je 0x41c163
test ebx, ebx
jne 0x41c163
test ecx, ecx
je 0x41c14e
mov byte [ecx], 1
mov ebx, dword [esp + 0x201c]
jmp 0x41c187
cmp di, 0xd
je 0x41c19c
cmp di, 0xa
je 0x41c19f
mov eax, dword [esp + 0x201c]
mov word [eax], di
add eax, 2
mov edi, dword [esp + 0x202c]
mov dword [esp + 0x201c], eax
lea eax, [edi - 2]
cmp dword [esp + 0x10], eax
jge 0x41c197
movzx eax, word [esi]
inc dword [esp + 0x10]
mov edi, eax
test ax, ax
jne 0x41c136
jmp 0x41c19f
mov byte [edx], 1
jmp 0x41c1a6
add esi, 2
mov edi, dword [esp + 0x202c]
mov eax, dword [esp + 0x201c]
xor ecx, ecx
mov word [eax], cx
test ebp, ebp
je 0x41c1e2
xor eax, eax
mov word [ebp], ax
test ebx, ebx
je 0x41c1e2
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.00411638
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41c1ea
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18
Function at 0x41e703
Capabilities:
Hide graphical window

Disassembly:
and dword [0x45188c], 0
push 1
push dword [esp + 8]
mov byte [0x44a46d], 1
mov byte [0x44a46e], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004012b3
cmp dword [0x461cd4], 0
jne 0x41e743
cmp byte [0x44a47b], 0
je 0x41e74c
cmp dword [0x44a474], 0
jne 0x41e75f
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41e85b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041fb60
cmp byte [0x453898], 0
je 0x41e8ea
cmp word [0x45389a], 0
je 0x41e8ea
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x45389a
call fcn.0041d3f4
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41e8e9
push dword [ebp + 8]
call fcn.00424b33
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4

Function at 0x41e8ee
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041fb60
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.004113a7
mov esi, eax
test esi, esi
je 0x41e946
movzx ecx, word [esi]
push ecx
jmp 0x41e931
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004114c3
test al, al
jne 0x41e92a
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
Function at 0x4206eb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42072a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42072a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42072a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42072a
cmp dword [ecx + 0x74], 0xe
jbe 0x42072a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432ea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x432ecd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x432ecd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100011d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, 2
cmp dword [ebp - 0x88], esi
jne 0x1000126e
mov dword [0x1000c31c], 0
call fcn.100059a0
test eax, eax
je 0x10001349
mov dword [0x1000c4e8], 0x10005b10
mov dword [0x1000c4ec], 0x10005b30
mov dword [0x1000c330], esi
mov dword [0x1000c334], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100060c4
mov esp, ebp
pop ebp
ret
push str.WNASPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1000c31c], eax
test eax, eax
je 0x10001229
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetASPI32SupportInfo
push eax
call esi
mov edx, dword [0x1000c31c]
push str.SendASPI32Command
push edx
mov dword [0x1000c4e8], eax
call esi
mov dword [0x1000c4ec], eax
mov eax, dword [0x1000c31c]
push str.GetASPI32Buffer
push eax
call esi
mov ecx, dword [0x1000c31c]
push str.FreeASPI32Buffer
push ecx
mov dword [0x1000c4f4], eax
call esi
mov edx, dword [0x1000c31c]
push str.TranslateASPI32Address
push edx
mov dword [0x1000c500], eax
call esi
mov dword [0x1000c4f8], eax
mov eax, dword [0x1000c31c]
push str.GetASPI32DLLVersion
push eax
call esi
cmp dword [0x1000c4e8], 0
mov dword [0x1000c4f0], eax
je 0x10001313
cmp dword [0x1000c4ec], 0
je 0x1000132e
mov dword [0x1000c330], 1
jmp 0x10001250
mov dword [0x1000c320], 0xfffffffe
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100060c4
mov esp, ebp
pop ebp
ret
mov dword [0x1000c320], 0xfffffffd
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100060c4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1000c320], 0xffffffff
mov dword [0x1000c4e8], 0x100011a0
mov dword [0x1000c4ec], 0x100011b0
mov dword [0x1000c4f4], 0x100011c0
mov dword [0x1000c500], 0x100011c0
mov dword [0x1000c4f8], 0x100011c0
mov dword [0x1000c4f0], 0x100011c0
mov dword [0x1000c330], 0
xor eax, eax
pop esi
call fcn.100060c4
mov esp, ebp
pop ebp
ret
Function at 0x10003e10
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10003dce
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10003dec
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10003e4a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte gs:[eax], al
add byte [eax], al
inc eax
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10003e31
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10003e3a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10003e44
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10003e26
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10003db0
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10003e97
dec eax
je 0x10003e8e
sub eax, 3
je 0x10003e85
mov dword [ebp - 4], 0x40
jmp 0x10003eb4
mov dword [ebp - 4], 4
jmp 0x10003e9a
mov dword [ebp - 4], 0x20
jmp 0x10003e9a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10003ee6
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10003e66
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.100036f7
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100059a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1000c4c8], 0
mov dword [ebp - 4], 0
je 0x100059bc
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0x4e4
push 0
push 0x1000be38
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
mov eax, 0x1000be44
mov ecx, 0x1a
jmp 0x100059e0
mov dword [eax], 0xffffffff
add eax, 0x30
dec ecx
jne 0x100059e0
push ebx
push esi
push edi
mov bl, 2
lea eax, [ebx + 0x41]
movsx ecx, al
push ecx
lea edx, [ebp - 8]
push str._c:_
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x10005a3b
movzx eax, bl
lea edi, [eax + eax*2]
shl edi, 4
lea esi, [edi + 0x1000be3c]
mov cl, bl
call fcn.10005c40
cmp dword [edi + 0x1000be40], 0
je 0x10005a3b
inc dword [ebp - 4]
inc bl
cmp bl, 0x1a
jb 0x100059f1
call fcn.10005ad0
mov ecx, dword [ebp - 4]
pop edi
mov byte [0x1000be38], al
mov eax, 1
pop esi
mov dword [0x1000c4c8], eax
pop ebx
test ecx, ecx
jle 0x10005a65
mov dword [0x1000c4cc], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x100060c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100060ce
repz ret
jmp fcn.10006464
Function at 0x401020
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x40c904], 0
je 0x401051
cmp dword [0x40c924], 0
jbe 0x401051
mov eax, dword [0x40c904]
push eax
call dword [0x40c934]
add esp, 4
mov dword [0x40c924], 0
mov byte [ebp - 0x19], 0
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_70.0.3538.77_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401082
xor al, al
jmp 0x40118d
push 0
push 0x80000000
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4010ae
jmp 0x40116a
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], 4
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x20000013
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 8], 0xc8
jne 0x40116a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 4
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20000005
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x18], 0
jbe 0x40116a
mov eax, dword [ebp - 0x18]
mov dword [0x40c924], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
call dword [0x40c920]
add esp, 4
mov dword [0x40c904], eax
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
push 0
mov eax, dword [0x40c904]
push eax
call fcn.00404a20
add esp, 0xc
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [0x40c904]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40116a
mov byte [ebp - 0x19], 1
cmp dword [ebp - 0x24], 0
je 0x40117a
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], 0
je 0x40118a
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402644
mov esp, ebp
pop ebp
ret
Function at 0x4011a0
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x570
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x40c924], 0
jne 0x4011c3
xor al, al
jmp 0x4013ef
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.00404a20
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [0x40c928]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
push eax
call dword [0x40c908]
test eax, eax
je 0x401211
xor al, al
jmp 0x4013ef
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x56c], eax
cmp dword [ebp - 0x56c], 0
jne 0x401246
xor al, al
jmp 0x4013ef
push 0
lea edx, [ebp - 0x514]
push edx
mov eax, dword [0x40c924]
push eax
mov ecx, dword [0x40c904]
push ecx
mov edx, dword [ebp - 0x56c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x56c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x20c], 0
push 0x103
push 0
lea ecx, [ebp - 0x20b]
push ecx
call fcn.00404a20
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
mov eax, dword [0x40c90c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x558], 0
push 0x40
push 0
lea edx, [ebp - 0x554]
push edx
call fcn.00404a20
add esp, 0xc
mov dword [ebp - 0x568], 0
xor eax, eax
mov dword [ebp - 0x564], eax
mov dword [ebp - 0x560], eax
mov dword [ebp - 0x55c], eax
push 0x2e
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00401000
add esp, 8
mov dword [ebp - 0x570], eax
push 0
lea edx, [ebp - 0x510]
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov byte [ebp - 0x40c], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x40b]
push ecx
call fcn.00404a20
add esp, 0xc
push str.regsvr32.exe__s__
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x510]
push eax
lea ecx, [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x409a88
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x40c930], 0
je 0x4013ed
push str..dll
mov eax, dword [ebp - 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4013bc
lea ecx, [ebp - 0x568]
push ecx
lea edx, [ebp - 0x558]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
push 0
call dword [0x40c930]
jmp 0x4013ed
lea ecx, [ebp - 0x568]
push ecx
lea edx, [ebp - 0x558]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call dword [0x40c930]
test eax, eax
jne 0x4013ed
xor al, al
jmp 0x4013ef
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402644
mov esp, ebp
pop ebp
ret
Function at 0x401400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0
push 0x40
push 0x3000
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40144a
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x40144c
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x401450
Capabilities:
Check for debugger via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 8], 0
je 0x40147a
mov byte [ebp - 1], 1
jmp 0x40147e
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x401490
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4014a8
mov al, 1
jmp 0x4014aa
xor al, al
pop ebp
ret
Function at 0x4014b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], str.processhacker.exe
mov dword [ebp - 0x3c], str.taskmgr.exe
mov dword [ebp - 0x38], str.systemexplorer.exe
mov dword [ebp - 0x34], str.tcpview.exe
mov dword [ebp - 0x30], str.tcpview64.exe
mov dword [ebp - 0x2c], str.procexp.exe
mov dword [ebp - 0x28], str.procexp64.exe
mov dword [ebp - 0x24], str.procmon.exe
mov dword [ebp - 0x20], str.procmon64.exe
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x168], 0x128
lea ecx, [ebp - 0x168]
push ecx
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401551
mov byte [ebp - 0x16a], 1
jmp 0x401558
mov byte [ebp - 0x16a], 0
mov al, byte [ebp - 0x16a]
mov byte [ebp - 0x169], al
movzx ecx, byte [ebp - 0x169]
test ecx, ecx
je 0x401668
mov dword [ebp - 0x178], 0
mov edx, dword [ebp - 0x178]
cmp dword [ebp + edx*4 - 0x40], 0
je 0x40162f
mov dword [ebp - 0x170], 0
lea eax, [ebp - 0x144]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
add ecx, dword [ebp - 0x170]
movsx edx, byte [ecx]
test edx, edx
je 0x4015ee
mov eax, dword [ebp - 0x174]
add eax, dword [ebp - 0x170]
movsx ecx, byte [eax]
push ecx
call fcn.00402954
add esp, 4
mov edx, dword [ebp - 0x174]
add edx, dword [ebp - 0x170]
mov byte [edx], al
mov eax, dword [ebp - 0x170]
add eax, 1
mov dword [ebp - 0x170], eax
jmp 0x4015a4
mov ecx, dword [ebp - 0x178]
mov edx, dword [ebp + ecx*4 - 0x40]
push edx
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40161b
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x401677
mov edx, dword [ebp - 0x178]
add edx, 1
mov dword [ebp - 0x178], edx
jmp 0x40157d
lea eax, [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x401650
mov byte [ebp - 0x16b], 1
jmp 0x401657
mov byte [ebp - 0x16b], 0
mov dl, byte [ebp - 0x16b]
mov byte [ebp - 0x169], dl
jmp 0x401564
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402644
mov esp, ebp
pop ebp
ret
Function at 0x4016c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 1
push 0x105
call dword [0x40c920]
add esp, 4
mov dword [0x40c910], eax
push 0x105
push 0
mov eax, dword [0x40c910]
push eax
call fcn.00404a20
add esp, 0xc
mov dword [ebp - 8], 0x104
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40174e
lea edx, [ebp - 8]
push edx
mov eax, dword [0x40c910]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x409b58
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402644
mov esp, ebp
pop ebp
ret