joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a40d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
mov eax, 0x4026c4
call fcn.0040a3e1
test al, al
pop ecx
pop ecx
je 0x40a584
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40a584
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x40a47c
push esi
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a57b
cmp word [ebp - 0x230], 0x2e
jne 0x40a4aa
cmp word [ebp - 0x22e], si
je 0x40a563
cmp word [ebp - 0x22e], 0x2e
jne 0x40a4aa
cmp word [ebp - 0x22c], si
je 0x40a563
mov eax, dword [ebp - 0x25c]
and eax, 0x10
je 0x40a4bb
test byte [ebp + 0x14], 2
jne 0x40a4c5
cmp eax, esi
jne 0x40a509
test byte [ebp + 0x14], 4
je 0x40a509
cmp dword [ebp + 0x10], 0
jbe 0x40a509
push dword [edi + esi*4]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x40a4e7
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x40a4cb
jmp 0x40a509
push dword [ebp + 0x1c]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
add esp, 0xc
test al, al
je 0x40a57b
cmp dword [ebp + 0x28], 0
je 0x40a509
push dword [ebp + 0x28]
call ebx
test byte [ebp - 0x25c], 0x10
je 0x40a563
test byte [ebp + 0x14], 1
je 0x40a563
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x230]
call fcn.0040a3e1
test al, al
pop ecx
pop ecx
je 0x40a563
cmp dword [ebp + 0x24], 0
je 0x40a53e
push dword [ebp + 0x24]
call ebx
push dword [ebp + 0x28]
lea eax, [ebp - 0x464]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push eax
call fcn.0040a40d
add esp, 0x24
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a460
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a589
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x40a61d
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40a614
cmp dword [ebp - 8], edi
jne 0x40a614
mov eax, dword [ebp - 0xc]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x40a5d3
mov dword [esi], edi
mov al, 1
jmp 0x40a61f
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [esi], eax
je 0x40a614
push edi
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a606
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x40a5cf
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret

Function at 0x40a654
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea ecx, [ebp - 8]
push ecx
push 1
push 0
push dword [ebp + 8]
mov dword [ebp - 8], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a691
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 8]
call fcn.0040a622
add esp, 0x10
mov ebx, eax
jmp 0x40a694
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x40a70a
test bl, 1
jne 0x40a70a
cmp dword [ebp - 4], 1
je 0x40a6aa
cmp dword [ebp - 4], 2
jne 0x40a70a
xor ecx, ecx
cmp ebx, ecx
jne 0x40a6b5
mov word [edi], cx
jmp 0x40a706
shr ebx, 1
dec ebx
mov eax, ebx
cmp word [edi + eax*2], cx
je 0x40a6cc
inc eax
cmp dword [ebp + 0x10], eax
jbe 0x40a70a
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x40a706
cmp dword [ebp - 4], 2
jne 0x40a706
push edi
call fcn.0040d1b9
mov esi, eax
test esi, esi
pop ecx
je 0x40a6f3
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40a6f6
or ebx, 0xffffffff
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x40a70d
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x40b86f
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040e800
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x40b88f
push dword [ebp + 0xc]
call fcn.004076eb
pop ecx
jmp 0x40b891
xor eax, eax
push edi
push 0x4400000
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x40b8b5
xor eax, eax
jmp 0x40b9c7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, 0x2001
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp byte [esi], 0
jne 0x40b931
xor eax, eax
jmp 0x40b9c5
mov eax, dword [ebp - 8]
test eax, eax
je 0x40b94f
cmp dword [ebp + 0xc], eax
mov byte [ebp + eax - 0x1010], 0
ja 0x40b913
mov eax, dword [ebp - 0xc]
add dword [ebp + 0xc], eax
add eax, eax
push eax
push esi
push 0
mov dword [ebp - 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
je 0x40b8da
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
lea eax, [esi + edi]
push eax
call fcn.0040d7c0
mov eax, dword [ebp - 8]
sub dword [ebp + 0xc], eax
add esp, 0xc
add edi, eax
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
je 0x40b8e1
lea eax, [edi + edi + 2]
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jne 0x40b96d
and dword [ebp - 4], eax
jmp 0x40b9b6
and dword [ebp + 0xc], 0
test esi, esi
mov dword [ebp - 4], 1
mov byte [esi + edi], 0
mov ecx, eax
je 0x40b9ac
test edi, edi
jbe 0x40b9ac
and word [ecx], 0
test edi, edi
jbe 0x40b9ac
mov edx, dword [ebp + 0xc]
movzx dx, byte [edx + esi]
mov word [ecx], dx
mov edx, dword [ebp + 0xc]
cmp byte [edx + esi], 0
je 0x40b9ac
inc dword [ebp + 0xc]
inc ecx
inc ecx
cmp dword [ebp + 0xc], edi
jb 0x40b98e
and word [eax + edi*2], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40b9ca
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1210
call fcn.0040e800
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
add edx, 0xe
push eax
call fcn.0040779f
lea eax, [ebp - 0x210]
push eax
call fcn.004076eb
xor ebx, ebx
push 0x423560
mov word [ebp + eax*2 - 0x212], bx
call fcn.004076eb
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.0040d0d3
cmp dword [ebp - 8], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
jbe 0x40ba64
movsx ax, byte [esi]
sub ax, 2
movzx ecx, ax
mov eax, dword [ebp - 4]
push 3
xor edx, edx
pop edi
div edi
sub edx, ebx
je 0x40ba50
dec edx
je 0x40ba48
dec edx
jne 0x40ba56
add ecx, 0xfffe
jmp 0x40ba56
add ecx, 0xfffb
jmp 0x40ba56
add ecx, 0xffff
mov byte [esi], cl
inc esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x40ba21
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x210]
push eax
push dword [0x4104d4]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x40ba87
xor eax, eax
jmp 0x40bafc
push ebx
push 0x4400100
push ebx
push ebx
push ebx
push 0x402410
push 0x402a18
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
je 0x40ba83
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040d023
cmp edi, ebx
pop ecx
je 0x40ba83
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1210]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
cmp esi, ebx
je 0x40bafa
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x1210], bl
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x1210]
call fcn.0040d11e
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40bb01
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
push 0x40eea8
call fcn.0040e4a8
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
cmp edi, ebx
jl 0x40bb80
cmp word [ebp - 0x1c], 0xffff
jne 0x40bb80
call esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x15f90
ja 0x40bb9b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40bb61
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40bb42
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov eax, dword [eax + 0x427568]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, eax
cmp edi, ebx
jl 0x40bb9b
jmp 0x40bb23
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x40bba1
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040e4e3
ret
Function at 0x40bca6
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x41005c], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x40bcc6
call fcn.0040bc05
test eax, eax
mov dword [ebp - 8], eax
jne 0x40bcd8
mov esi, ebx
call fcn.0040bba7
test eax, eax
mov dword [ebp - 8], eax
je 0x40bd8d
push 0x402a58
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebx]
mov edx, dword [ecx]
sub esp, 0x10
mov edi, esp
mov word [ebp - 0x18], 3
mov dword [ebp - 0x10], 1
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x88]
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x94]
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40bd74
push esi
push 0x402a6c
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x40bd38
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10
push dword [0x4138ac]
mov eax, 0x1388
push dword [0x41edb8]
push eax
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
mov ebx, dword [ebx]
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0xf0]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bfb9
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
test eax, eax
push ebx
push esi
push edi
jne 0x40bfdb
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov edi, dword [eax + 0x427570]
mov dword [ebp - 4], edi
jmp 0x40bfe0
mov dword [ebp - 4], eax
mov edi, eax
movzx esi, byte [ebp + 8]
imul esi, esi, 0x14
xor ebx, ebx
inc ebx
test dword [esi + 0x427574], edi
je 0x40c042
cmp edi, ebx
jne 0x40c027
cmp dword [0x427564], ebx
jne 0x40c046
mov eax, dword [esi + 0x427568]
test eax, eax
je 0x40c046
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
jge 0x40c03e
and dword [esi + 0x427568], 0
and dword [esi + 0x427574], 0xfffffffe
cmp edi, 2
jne 0x40c042
cmp dword [esi + 0x42756c], 0
jne 0x40c03e
and dword [esi + 0x427574], 0xfffffffd
jmp 0x40c07d
mov eax, ebx
jmp 0x40c0b7
cmp edi, ebx
jne 0x40c078
lea edi, [esi + 0x427568]
mov eax, edi
call fcn.0040bca6
cmp dword [0x427564], ebx
mov dword [ebp - 8], eax
jne 0x40c072
test eax, eax
je 0x40c072
mov edi, dword [edi]
mov eax, dword [edi]
push edi
call dword [eax + 4]
or dword [esi + 0x427574], ebx
jmp 0x40c0b4
and dword [edi], 0
mov edi, dword [ebp - 4]
cmp edi, 2
jne 0x40c0b4
xor eax, eax
push eax
push eax
push eax
push ebx
push 0x4025fc
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0x42756c], eax
je 0x40c0b4
push 4
lea ecx, [ebp + 8]
push ecx
push 0x41
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
or dword [esi + 0x427574], 2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c6d9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push 0x400
lea eax, [ebp - 0x800]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
cmp word [0x402c6a], 0
je 0x40c722
push 0x402c6a
lea ecx, [ebp - 0x800]
call fcn.0040772d
test eax, eax
pop ecx
je 0x40c727
xor eax, eax
inc eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [0x402c4c], 0
je 0x40c744
push 0x402c4c
mov ecx, eax
call fcn.0040772d
pop ecx
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
leave
ret

Function at 0x40c796
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ebx, 0x402b58
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x40c7db
push dword [ebp + 8]
lea esi, [ebp - 4]
push 0x402dac
mov eax, 0x400
call fcn.00408cb0
test eax, eax
pop ecx
pop ecx
jne 0x40c80e
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push ebx
push 0x80000002
call edi
test eax, eax
je 0x40c7f7
xor eax, eax
jmp 0x40c80e
push dword [ebp + 8]
lea esi, [ebp - 4]
push 0x402dac
mov eax, 0x400
call fcn.00408cb0
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ce5f
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040e800
call fcn.0040c64e
test eax, eax
je 0x40ce7a
call fcn.0040ce11
push ebx
push esi
push edi
call fcn.0040c6d9
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
test eax, eax
mov esi, 0x400
je 0x40cef4
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push ebx
push 9
call fcn.0040c2d9
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push ebx
call edi
lea eax, [ebp - 0x1000]
push eax
call fcn.0040c796
test eax, eax
pop ecx
je 0x40cef4
push ebx
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40cef4
lea eax, [ebp - 0x1000]
push eax
call fcn.00409b7e
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040c74f
test eax, eax
je 0x40cf1a
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040c2d9
add esp, 0xc
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0x10
call fcn.00409ad8
cmp eax, ebx
push esi
je 0x40cf3a
lea ecx, [ebp - 0x800]
push ecx
push dword [eax*4 + 0x41003c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40cf54
lea eax, [ebp - 0x800]
push eax
push ebx
call edi
mov ecx, 0x402c38
lea eax, [ebp - 0x800]
call fcn.0040777b
push 1
lea eax, [ebp - 0x800]
push eax
push 0x402dac
push 0x402b58
push 0x80000001
call fcn.00408d8c
add esp, 0x14
test eax, eax
je 0x40cfac
lea eax, [ebp - 0x800]
push eax
call fcn.00409b7e
test eax, eax
pop ecx
push 4
je 0x40cfa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
call fcn.0040c2d9
add esp, 0xc
jmp 0x40ceed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40cfb7
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040c2d9
add esp, 0xc
mov dword [0x410054], ebx
jmp 0x40ce75

Function at 0x40dfb6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40dfc0
repz ret
jmp fcn.0040e25b

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..retplne
mov ebx, 0x40de38
nop
mov ecx, 0x27135dbd
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..reloc
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xc337b95
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x100047a6
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push edi
mov edi, ecx
jne 0x100047b5
push 0xd
pop eax
jmp 0x100047db
push dword [esp + 0xc]
call fcn.100139ae
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
ret 0xc
Function at 0x10005680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x10025a88
call fcn.100252dc
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x424], edi
push 0x60
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x100056e2
push 2
push edi
push dword [ebp + 8]
call ebx
mov esi, eax
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x100056e2
call fcn.100041b9
mov edi, eax
jmp 0x100057cf
push dword [ebp + 0x10]
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x100056fe
call fcn.100041b9
jmp 0x100057c2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x100056f4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp + 8], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000572b
mov edi, 0x8007000e
jmp 0x100057c4
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, edi
ja 0x100057fb
jb 0x10005746
cmp eax, 0xffffffff
ja 0x100057fb
cmp eax, 0x400
jbe 0x1000575b
push eax
lea ecx, [ebp - 0x424]
call fcn.10004197
jmp 0x10005777
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x10005777
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x10005721
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp + 0x10]
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100056f4
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.10005554
mov edi, eax
test esi, esi
je 0x100057cf
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x100057e8
lea ecx, [ebp - 0x424]
call fcn.10004182
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
push 0x80070216
call fcn.10004b8e
int3

Function at 0x10006cb7
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 0x10006d0b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006d0b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10006cfd
cmp esi, ecx
jae 0x10006d0b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10006ceb
cmp esi, ecx
jae 0x10006d0b
cmp word [esi], 0
je 0x10006d0b
mov eax, esi
jmp 0x10006d0d
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100080aa
Capabilities:
Set registry value

Disassembly:
mov eax, 0x10025d26
call fcn.100252dc
mov eax, dword [0x100364d4]
sub esp, 0x10
cmp dword [0x100364d8], 0
push esi
mov esi, ecx
jne 0x100080d7
cmp eax, 2
jne 0x100080d7
call fcn.1000914e
mov eax, dword [0x100364d4]
cmp eax, 1
je 0x100080e5
cmp eax, 4
jne 0x10008167
push edi
call fcn.10002f60
push eax
lea ecx, [ebp - 0x10]
call fcn.10001cd2
xor edi, edi
lea ecx, [ebp - 0x10]
push 0x66
mov dword [ebp - 4], edi
call fcn.100066f0
push str.none
push dword [ebp - 0x10]
call fcn.10014358
pop ecx
pop ecx
test eax, eax
jne 0x1000815e
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push 0x2001f
push dword [esi + 8]
lea ecx, [ebp - 0x1c]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10004cc2
mov esi, 0x1002cf6c
push esi
call fcn.100139ae
pop ecx
inc eax
add eax, eax
push eax
push esi
push 1
push edi
push 0x1002e9cc
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x1c]
call fcn.10004e0a
lea ecx, [ebp - 0x10]
call fcn.10001cb7
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1000a481
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x4b4
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [0x100364d0]
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0x24]
mov dword [0x100364d0], 2
push eax
mov esi, ebp
push ebp
jmp 0x1000a525
lea eax, [esp + 0x10]
push 0x1002ef04
push eax
call fcn.10014675
push dword [esp + 0x4cc]
lea eax, [esp + 0x1c]
push eax
call fcn.10014675
add esp, 0x10
lea eax, [esp + 0x10]
push ebp
push eax
push SysStringLen
call fcn.1000a39a
lea eax, [esp + 0x10]
push eax
call fcn.100139ae
pop ecx
dec eax
jmp 0x1000a4f7
cmp word [esp + eax*2 + 0x10], 0x5c
je 0x1000a4fe
sub eax, 1
jne 0x1000a4ef
jmp 0x1000a505
xor ecx, ecx
mov word [esp + eax*2 + 0x10], cx
lea eax, [esp + 0x10]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
inc esi
push eax
lea eax, [esp + 0x24]
push eax
push esi
push SysStringLen
mov dword [esp + 0x2c], 0x258
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000a4ae
mov dword [0x100364d0], edi
pop edi
pop esi
pop ebp
add esp, 0x4b4
ret 4

Function at 0x1000a552
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x1000a560
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000a57e
test eax, eax
jne 0x1000a57e
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret