joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407250
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x41bcc0]
push ebx
xor ebx, ebx
mov dword [0x41bcd4], 0x5a
cmp eax, ebx
mov dword [0x41bcd8], ebx
mov dword [0x41bc50], ebx
mov dword [0x412020], 3
mov dword [0x41bc48], ebx
je 0x407292
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x41bcc0], ebx
push ebx
push ebx
call fcn.00408530
add esp, 8
test al, al
je 0x4072ba
lea eax, [esp + 4]
push eax
push ebx
push 1
push 0x406b30
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41bcc0], eax
mov eax, dword [0x41bcc0]
mov byte [0x41205e], 1
cmp eax, ebx
mov byte [0x41bc78], 0xff
mov dword [0x41b504], 0xa
mov byte [0x41bc79], 1
mov byte [0x41bc9b], bl
mov dword [0x41b624], ebx
mov dword [0x41b308], ebx
jne 0x4072f9
call fcn.00406a20
call fcn.0040b9a0
xor ecx, ecx
push ebx
mov dword [0x4192a4], ecx
mov dword [0x4192a8], ecx
mov dword [0x4192ac], ecx
mov dword [0x4192b0], ecx
mov dword [0x4192b4], ecx
call fcn.00403700
add esp, 4
pop ebx
pop ecx
ret
Function at 0x4091f0
Capabilities:
Create process on windows

Disassembly:
push edi
xor eax, eax
push 0x416f68
push 0x416f20
push eax
push eax
mov ecx, 0x11
mov edi, 0x416f20
push eax
push eax
rep stosd dword es:[edi], eax
push eax
push eax
mov edi, 1
push str.ipconfig.exe__renew
push eax
mov dword [0x416f20], 0x44
mov dword [0x416f4c], edi
mov word [0x416f50], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409269
mov eax, dword [0x41b624]
push 0
push 3
mov dword [0x416f78], eax
mov dword [0x41b624], 0
mov dword [0x41bce8], edi
call fcn.004036d0
add esp, 4
push eax
call fcn.004038a0
add esp, 8
pop edi
ret
Function at 0x409bb0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, 0x416f8f
or ecx, 0xffffffff
test byte [eax - 1], 1
jne 0x409bd0
cmp byte [eax], 6
jne 0x409bd0
cmp dword [eax + 5], ecx
je 0x409bd0
mov edx, dword [eax + 1]
test edx, edx
jne 0x409bdc
add eax, 0x10
cmp eax, 0x416fcf
jl 0x409bb9
jmp 0x409c18
mov eax, dword [0x412018]
mov dword [0x416f80], 0
test eax, eax
jne 0x409c13
push 0
push 0x2d
call fcn.004036d0
add esp, 4
push eax
push 0x1b
call fcn.004036d0
add esp, 4
push eax
mov eax, dword [0x41b648]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00409290
lea ecx, [esp]
mov dword [0x416f80], 0
push ecx
push 0
push 1
push 0x409ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41bcbc], eax
pop ecx
ret
Function at 0x40a0d0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push ebx
push esi
push edi
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x234]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a1a1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x224
push ecx
push ebx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x40a19a
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea edx, [esp + 0x12c]
push 0x5c
push edx
call esi
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
inc eax
push str.natsrv.dll
push eax
call edi
add esp, 0x10
test eax, eax
je 0x40a172
lea eax, [esp + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x40a19a
lea ecx, [esp + 0x12c]
push 0x5c
push ecx
call esi
inc eax
push str.natsrv.dll
push eax
call edi
add esp, 0x10
test eax, eax
jne 0x40a147
lea edx, [esp + 0x12c]
push 0
push edx
call fcn.00406100
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x224
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x224
ret

Function at 0x40a1b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push edi
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebp
push ebp
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a279
lea eax, [esp + 0xc]
push esi
push eax
push ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40a271
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x13c]
mov dword [esp + 0x138], ebp
push str.sgserv.exe
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ecx
call esi
add esp, 8
test eax, eax
je 0x40a26c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x138]
push 0x224
push edx
push eax
push ecx
call fcn.0040a0d0
add esp, 0x10
test eax, eax
jne 0x40a26c
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40a271
lea eax, [esp + 0x34]
push str.sgserv.exe
push eax
call esi
add esp, 8
test eax, eax
jne 0x40a227
mov ebp, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov dword [0x41bcb0], ebp
mov dword [0x41bce4], ebp
pop edi
test ebp, ebp
pop ebp
pop ebx
push 0
jne 0x40a2a2
push str.sygatemark0
call fcn.00406100
add esp, 8
add esp, 0x34c
ret
push str.sygatemark_0
call fcn.00406100
add esp, 8
add esp, 0x34c
ret
Function at 0x40a340
Capabilities:
Get local ipv4 addresses

Disassembly:
mov eax, dword [0x41bc38]
sub esp, 0xc
test eax, 0x4000000
jne 0x40a45b
mov eax, dword [0x41bc80]
test eax, eax
je 0x40a45b
mov ecx, dword [0x412484]
dec ecx
mov dword [0x412484], ecx
jne 0x40a45b
add eax, 0xc
push ebx
push ebp
mov dword [esp + 0xc], eax
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0
mov dword [0x412484], 2
mov dword [esp + 0x18], 0
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
mov dword [esp + 0x20], esi
call sub.iphlpapi.dll_GetAdaptersInfo
test esi, esi
je 0x40a43b
lea eax, [esi + 8]
push 0
push eax
call fcn.00406100
lea ecx, [esi + 0x10c]
push 0
push ecx
call fcn.00406100
lea edi, [esi + 0x1b0]
push 0
push edi
call fcn.00406100
lea ebp, [esi + 0x1c0]
push 0
push ebp
call fcn.00406100
lea ebx, [esi + 0x1d8]
push 0
push ebx
call fcn.00406100
push edi
call fcn.00406600
mov edi, eax
add esp, 0x2c
test edi, edi
je 0x40a435
cmp dword [esi + 0x1a0], 0x17
jne 0x40a435
push ebx
call fcn.00406600
add esp, 4
cmp eax, edi
jne 0x40a435
push ebp
call fcn.00406600
add esp, 4
cmp eax, 0xffffffff
je 0x40a45f
mov esi, dword [esi]
test esi, esi
jne 0x40a3bf
mov eax, dword [0x41bc80]
mov cl, byte [eax + 0xb]
and cl, 0xfb
mov byte [eax + 0xb], cl
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
mov dword [edx], edi
mov eax, dword [0x41bc80]
mov cl, byte [eax + 0xb]
or cl, 4
jmp 0x40a446

Function at 0x40a480
Capabilities:
Get local ipv4 addresses

Disassembly:
push ecx
push ebx
lea eax, [esp + 4]
push esi
push eax
push 0
mov dword [esp + 0x10], 0
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea edx, [esp + 8]
mov esi, eax
push edx
push esi
mov ebx, esi
call sub.iphlpapi.dll_GetAdaptersInfo
test esi, esi
je 0x40a4ea
push edi
mov edi, dword [esp + 0x14]
lea eax, [esi + 0x1b0]
push eax
call fcn.00406600
add esp, 4
test eax, eax
je 0x40a4e3
and eax, 0xff
cmp eax, 0xa9
je 0x40a4e3
cmp eax, 0x7f
je 0x40a4e3
inc dword [edi]
mov esi, dword [esi]
test esi, esi
jne 0x40a4bd
pop edi
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop esi
pop ebx
pop ecx
ret
Function at 0x40acf0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x41b62c]
push esi
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push 0x13e
push eax
call esi
mov ecx, dword [0x41b62c]
push 1
push 0x131
push ecx
call esi
mov edx, dword [0x41b62c]
push 1
push 0x143
push edx
call esi
mov eax, dword [0x41b62c]
push 1
push 0x130
push eax
call esi
mov ecx, dword [0x41b62c]
push 1
push 0x12f
push ecx
call esi
mov eax, dword [0x41bc6c]
test eax, eax
jne 0x40ad74
mov eax, dword [0x41bc1c]
test eax, eax
jne 0x40ad74
mov edx, dword [0x41b648]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
call esi
mov eax, dword [0x41b648]
push 5
push eax
call esi
pop esi
ret
mov ecx, dword [0x41b648]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x40b9a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push str.login2.dat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x41b60c], eax
jne 0x40b9d3
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
add esp, 0x14
ret
push ebx
push esi
push edi
mov ecx, 0xa
mov esi, 0x41b538
mov edi, 0x41b568
rep movsd dword es:[edi], dword [esi]
mov cl, byte [0x41b2e1]
movsw word es:[edi], word [esi]
test cl, 8
movsb byte es:[edi], byte [esi]
jne 0x40ba11
xor ecx, ecx
mov dword [0x41b583], ecx
mov dword [0x41b587], ecx
mov dword [0x41b58b], ecx
mov dword [0x41b58f], ecx
jmp 0x40ba35
call fcn.0040e6e0
xor edx, edx
mov eax, dword [0x41b60c]
mov dword [0x41b583], edx
mov dword [0x41b587], edx
mov dword [0x41b58b], edx
mov dword [0x41b58f], edx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x41b608
push 0x2b
push 0x41b568
push eax
mov dword [0x41b608], 0x2b
call ebx
mov eax, dword [0x41b60c]
push 0
push 0x41b608
push 1
push 0x41b2e1
push eax
mov dword [0x41b608], 1
call ebx
push 0x41b594
mov dword [0x41b608], 0x14
call fcn.00403ed0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x41b60c]
and ecx, 3
push 0x41b608
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x41b608]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call ebx
mov ecx, dword [0x41b60c]
push 0
push 0x41b608
push 0x20
push 0x41b278
push ecx
mov dword [0x41b608], 0x20
call ebx
mov edx, dword [0x41b60c]
push 0
push 0x41b608
push 4
push 0x41bc58
push edx
mov dword [0x41b608], 4
call ebx
mov eax, dword [0x41b60c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x40bb20
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
lea edx, [esp + 4]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 4]
push eax
lea ecx, [esp + 0x10]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x18
ret
Function at 0x40e560
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x83c
lea eax, [esp + 0x3c]
push esi
push edi
push 0x738
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40e587
pop edi
xor al, al
pop esi
add esp, 0x83c
ret
or ecx, 0xffffffff
mov edi, str.micsy
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.stem.
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x50]
and ecx, 3
push 4
rep movsb byte es:[edi], byte [esi]
mov edi, 0x414a54
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [esp + 0x5c]
push bind
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop ebx
cmp esi, 0xffffffff
jne 0x40e637
pop edi
xor al, al
pop esi
add esp, 0x83c
ret
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
push eax
rep stosd dword es:[edi], eax
push 0x41b608
lea ecx, [esp + 0x10]
push 0x3c
push ecx
push esi
mov dword [0x41b608], 0x3c
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x40e678
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x83c
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41b608]
test eax, eax
jne 0x40e692
pop edi
xor al, al
pop esi
add esp, 0x83c
ret
lea edx, [esp + 8]
mov byte [esp + 0x43], 0
push edx
call fcn.004011c0
mov ecx, dword [eax]
add esp, 4
mov dword [0x41b553], ecx
mov edx, dword [eax + 4]
pop edi
mov dword [0x41b557], edx
pop esi
mov ecx, dword [eax + 8]
mov dword [0x41b55b], ecx
mov edx, dword [eax + 0xc]
mov al, 1
mov dword [0x41b55f], edx
add esp, 0x83c
ret
Function at 0x40e6e0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x83c
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
mov edx, dword [0x41b58b]
rep stosd dword es:[edi], eax
mov ecx, dword [0x41b587]
mov eax, dword [0x41b583]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov eax, dword [0x41b58f]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.004012b0
mov edx, dword [eax]
add esp, 4
mov dword [0x41b583], edx
mov ecx, dword [eax + 4]
push 0x738
mov dword [0x41b587], ecx
lea ecx, [esp + 0x48]
mov edx, dword [eax + 8]
push ecx
mov dword [0x41b58b], edx
mov eax, dword [eax + 0xc]
mov dword [0x41b58f], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40e85a
or ecx, 0xffffffff
mov edi, str.micsy
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.stem.
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x50]
and ecx, 3
push 4
rep movsb byte es:[edi], byte [esi]
mov edi, 0x414a54
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [esp + 0x5c]
push 0xc0000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop ebx
cmp esi, 0xffffffff
je 0x40e85a
push 0
push 0x41b608
push 0x10
push 0x41b583
push esi
mov dword [0x41b608], 0x10
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x40e83a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x83c
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [0x41b583], ecx
mov dword [0x41b587], ecx
mov dword [0x41b58b], ecx
mov dword [0x41b58f], ecx
pop edi
pop esi
add esp, 0x83c
ret
Function at 0x40e930
Capabilities:
Read file on windows
Reference cloudflare dns server

Disassembly:
push ecx
push esi
push edi
mov edi, str.1.1.1.1
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, 0x41b610
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
push bind
push str.edata.dat
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e9bd
xor ecx, ecx
lea edx, [esp + 8]
mov dword [0x41b610], ecx
mov dword [esp + 8], 0x10
mov dword [0x41b614], ecx
mov dword [0x41b618], ecx
mov dword [0x41b61c], ecx
push ecx
push edx
push 0x10
push 0x41b610
push esi
mov word [0x41b620], cx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ecx
ret

Function at 0x40e9d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push esi
push edi
push 0x41b594
call fcn.00403ed0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
push 2
push 0
and ecx, 3
push 0
push 0xc0000000
push str.edata.dat
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ea51
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
push eax
push edx
lea eax, [esp + 0x14]
push ecx
push eax
push esi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x24
ret

Function at 0x40ea60
Capabilities:
Read file on windows
Reference cloudflare dns server

Disassembly:
sub esp, 8
push esi
push 0
push 0
push 3
push 0
push 0
push bind
push str.sclient.dat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40eaf5
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0xc]
push 4
push ecx
push esi
mov dword [esp + 0x1c], 4
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
not eax
mov edx, eax
shr edx, 0x1e
lea eax, [edx + eax*4]
test eax, eax
mov dword [esp + 4], eax
je 0x40eaf5
cmp eax, 0xffffffff
je 0x40eaf5
lea eax, [esp + 4]
push edi
push eax
call fcn.00403ed0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x412030
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 8
ret
Function at 0x40ed10
Capabilities:
Hide graphical window
Terminate thread

Disassembly:
mov eax, dword [0x41bc3c]
test eax, eax
jne 0x40ed2d
cmp dword [0x41b504], 0xa
jne 0x40ed2c
push 3
call fcn.0040a500
add esp, 4
ret
mov eax, dword [0x41bc60]
mov dword [0x41bc3c], 0
test eax, eax
je 0x40ed55
mov ecx, dword [0x41bc64]
mov eax, 1
cmp ecx, eax
jl 0x40ed2c
mov dword [0x416f80], eax
ret
mov eax, dword [0x41bc4c]
test eax, eax
je 0x40ed81
mov ecx, dword [0x41bcf4]
mov eax, 1
cmp ecx, eax
jne 0x40ed2c
push eax
mov dword [0x41bcf8], 5
call fcn.004086c0
add esp, 4
ret
cmp dword [0x41b504], 1
jne 0x40ed2c
jmp fcn.0040abd0
Function at 0x40284f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x45a655
call fcn.0043f241
lea ecx, [ebp - 0x18]
call fcn.0042e4ee
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
call fcn.00402abf
or dword [ebp - 4], 0xffffffff
call fcn.0042e504
and dword [ebp - 0x14], 0
push 0x21
push 1
mov edi, 0x400000
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402978
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40296f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x402978
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x402978
mov dword [ebp - 4], 3
shr esi, 1
lea edi, [eax + esi*2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, edi
je 0x402915
cmp word [esi], bx
jne 0x402911
cmp dword [ebp - 0x1c], ebx
je 0x40290b
push dword [ebp - 0x1c]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.00402a29
lea eax, [esi + 2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
jmp 0x402911
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
inc esi
inc esi
jmp 0x4028e1
or dword [ebp - 4], 0xffffffff
jmp 0x402976
mov dword [ebp - 0x14], 1
jmp 0x402980
call fcn.004030e7
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x4029a9
call fcn.0043f2e6
ret 4
Function at 0x40c84c
Capabilities:
Move file

Disassembly:
push 0x1c
mov eax, 0x45c12e
call fcn.0043f241
lea ecx, [ebp - 0x28]
call fcn.0042e4ee
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0041845d
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.00412642
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
push 0x465758
lea ecx, [ebp - 0x14]
call fcn.00415db0
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x40c8c5
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.00417d30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0041253c
or dword [ebp - 4], 0xffffffff
call fcn.0042e504
mov eax, dword [ebp - 0x1c]
jmp 0x40c948
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
call fcn.0041c140
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x40c89b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c8ee
and dword [ebp - 0x14], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x18]
push eax
mov esi, dword [ebp + 0x18]
mov ecx, esi
call fcn.00401ad5
push str..exe
mov ecx, esi
call fcn.00408a6c
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40c89b
call fcn.004030e7
mov dword [ebp - 0x1c], eax
jmp 0x40c89b
call fcn.0043f2e6
ret 0x14