joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa0b17e
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x405b8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x18], esi
call fcn.00a0cbbc
lea ebx, [esi + 0x60]
xor ebp, ebp
mov ecx, ebx
mov dword [esp + 0x1c], ebp
call fcn.00a09b3e
lea ecx, [esi + 0x130]
mov byte [esp + 0x1c], 1
call fcn.00a09b3e
lea ecx, [esi + 0x200]
mov byte [esp + 0x1c], 2
call fcn.00a09b3e
lea edi, [esi + 0x2e8]
mov dword [edi + 4], ebp
mov dword [edi], 0x40678c
lea eax, [esi + 0x2d0]
xor edx, edx
mov ecx, eax
mov dword [esi], 0x406de0
mov dword [esi + 0x2dc], ebp
push 0xf3efe3
mov dword [ecx], edx
mov byte [esp + 0x20], 4
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
mov ecx, edi
call fcn.00a0ca42
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x2e4], ebp
mov dword [esi + 0x2e0], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x403064
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov al, byte [0x431c94]
push esi
push edi
mov edx, ecx
push 0x40
mov byte [ebp - 0x158], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
push dword [edx + 0xf8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push eax
call fcn.0040e3b0
lea eax, [ebp - 0x158]
push str.NomadNet.exe__NOAUP
push eax
call fcn.0040e3c0
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040e550
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.0040e550
add esp, 0x28
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], edi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x158]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403102
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
leave
ret

Function at 0x403106
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov al, byte [0x431c94]
push esi
push edi
mov edx, ecx
push 0x40
mov byte [ebp - 0x158], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
push dword [edx + 0xf8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
xor esi, esi
push eax
call fcn.0040e3b0
lea eax, [ebp - 0x158]
push str.patch.exe
push eax
call fcn.0040e3c0
lea eax, [ebp - 0x158]
push eax
call fcn.00401268
add esp, 0x14
test eax, eax
je 0x4031d3
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040e550
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.0040e550
add esp, 0x18
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], edi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x158]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4031d1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop esi
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x403cc5
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x780
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x403d08
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x36f]
mov byte [ebp - 0x370], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x370]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x403d0f
xor eax, eax
jmp 0x403e4d
push 0x44
xor eax, eax
pop ecx
lea edi, [ebp - 0x167]
mov byte [ebp - 0x168], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x26b]
mov byte [ebp - 0x26c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x26c]
push esi
push eax
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x403e4b
lea eax, [ebp - 0x168]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jbe 0x403d7a
lea eax, [ebp - 0x168]
push str._rundll32.exe
push eax
call edi
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403dac
lea eax, [ebp - 0x168]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x403dac
lea eax, [ebp - 0x168]
push str._rundll32.exe
push eax
call edi
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x77f]
mov byte [ebp - 0x780], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x780]
push str.__s___s_MagicDel__s__s.new
push eax
call fcn.0040e8a1
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040e550
push 0x44
lea eax, [ebp - 0x54]
pop esi
push esi
push ebx
push eax
call fcn.0040e550
add esp, 0x30
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0x80
mov dword [ebp - 0x54], esi
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x780]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, ebx
je 0x403e4b
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40496c
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push 1
pop esi
xor eax, eax
push 0x21
lea edi, [ebp - 0x87]
pop ecx
mov byte [ebp - 0x88], 0x88
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x21
xor eax, eax
pop ecx
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], 0x88
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call sub.LZ32.dll_LZOpenFileA
mov ebx, eax
test ebx, ebx
jl 0x4049f9
lea eax, [ebp - 0x110]
push 0x1001
push eax
push dword [ebp + 0xc]
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
test edi, edi
jl 0x4049ef
push edi
push ebx
call sub.LZ32.dll_LZCopy
test eax, eax
jge 0x4049e7
xor esi, esi
push edi
call sub.LZ32.dll_LZClose
jmp 0x4049f1
xor esi, esi
push ebx
call sub.LZ32.dll_LZClose
jmp 0x4049fb
xor esi, esi
test esi, esi
jne 0x404a08
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d9d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x423ec8
call fcn.0040da7c
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi + 0xac]
cmp eax, ebx
jne 0x404df0
push 8
call fcn.0041f415
mov esi, eax
pop ecx
cmp esi, ebx
je 0x404dd7
push 8
push ebx
push esi
call fcn.0040e550
add esp, 0xc
jmp 0x404dd9
xor esi, esi
cmp esi, ebx
je 0x404df0
mov eax, dword [edi + 0xac]
lea ecx, [edi + 0xa4]
push esi
push eax
call fcn.0041ab88
mov eax, dword [edi + 0xac]
cmp eax, ebx
je 0x404f67
mov ecx, edi
call fcn.004053a0
movzx eax, al
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0xb8]
call fcn.00406576
mov eax, dword [edi + 0xac]
mov ecx, dword [edi + 0xa8]
mov dword [ebp - 4], ebx
mov esi, dword [ecx + eax*4 - 4]
cmp dword [esi], ebx
jne 0x404e8d
mov al, byte [edi + 0xfc]
test al, al
jne 0x404e5e
push 0xd0
call fcn.0041f415
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x404e81
push ebx
mov ecx, eax
push dword [ebp + 8]
push 3
call fcn.004077d2
jmp 0x404e83
cmp al, 1
jne 0x404e85
push 0x2c
call fcn.0041f415
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x404e81
push dword [ebp + 8]
mov ecx, eax
call fcn.0040b1cd
jmp 0x404e83
xor eax, eax
mov dword [esi], eax
cmp dword [esi], ebx
je 0x404f5b
mov eax, dword [0x42e988]
mov dword [ebp + 8], eax
mov ebx, 0x104
lea ecx, [ebp + 8]
push ebx
mov byte [ebp - 4], 3
call fcn.0041f31c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.0041f36b
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0xf4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041f11b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0041f3b3
mov ecx, dword [esi]
push 0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041f11b
mov ebx, dword [eax]
mov eax, dword [ebp - 0x10]
push dword [edi + 0x144]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov ecx, edi
mov byte [ebp - 4], 5
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
call fcn.004053a0
mov ecx, dword [esi]
push eax
mov eax, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x14]
call dword [eax + 8]
lea ecx, [ebp - 0x1c]
mov edi, eax
mov byte [ebp - 4], 4
call fcn.0041ef7c
test edi, edi
je 0x404f43
mov al, byte [ebp + 0xc]
mov byte [esi + 5], 1
mov byte [esi + 4], al
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0041ef7c
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0041ef7c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404f7b
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40560e
Capabilities:
Delete file

Disassembly:
mov eax, 0x424010
call fcn.0040da7c
sub esp, 0x20
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040cd9e
mov eax, dword [0x42e988]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
push 0x42e4c8
lea eax, [ebp + 8]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.0041f181
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040ce61
lea ecx, [ebp + 8]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0041ef7c
test esi, esi
je 0x4056d4
lea ecx, [ebp - 0x2c]
call fcn.0040d081
mov esi, eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d150
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0041f025
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0041ef7c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x405666
mov eax, dword [ebp - 0x2c]
push 0x10
lea ecx, [ebp - 0x2c]
call dword [eax + 0x38]
test eax, eax
jne 0x4056bc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x405666
lea ecx, [ebp - 0x2c]
call fcn.0040d048
test eax, eax
jne 0x405666
lea eax, [ebp - 0x10]
push eax
call fcn.0040560e
pop ecx
jmp 0x405666
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041ef7c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040cddb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x405813
Capabilities:
Copy file

Disassembly:
mov eax, 0x424058
call fcn.0040da7c
sub esp, 0x14
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x10], edi
cmp eax, edi
jle 0x4058ce
push ebx
mov eax, dword [esi + 0x68]
lea eax, [edi + eax + 8]
push eax
lea eax, [esi + 0x9c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041f11b
mov ecx, edi
and dword [ebp - 4], 0
add ecx, dword [esi + 0x68]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041f11b
mov ebx, dword [eax]
lea eax, [esi + 0x9c]
push str.Backup_
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.0041f181
mov ecx, edi
mov byte [ebp - 4], 2
add ecx, dword [esi + 0x68]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041f11b
mov eax, dword [eax]
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x14]
call fcn.0041ef7c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041ef7c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041ef7c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041ef7c
inc dword [ebp - 0x10]
add edi, 0x10
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x6c]
jl 0x405828
pop ebx
mov ecx, esi
call fcn.004058e6
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x408a89
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x408b03
cmp byte [edi], 0
je 0x408b03
cmp dword [ebp + 0xc], 0
je 0x408b03
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x408b03
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x408ac8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x408ace
push edi
call sub.WS2_32.dll_inet_addr
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x408aff
push esi
call sub.WS2_32.dll_closesocket
cmp eax, 0xffffffff
je 0x408b03
mov eax, esi
jmp 0x408b05
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x409806
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x34], ebx
je 0x409929
cmp dword [esi + 4], ebx
je 0x409929
mov eax, dword [esi + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x409838
push eax
call edi
mov dword [esi + 0x40], ebx
mov al, byte [esi + 0xbc]
cmp al, 1
jbe 0x40985b
movzx eax, al
dec eax
push ebx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [esi + 0x40], eax
je 0x409929
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x409868
push eax
call edi
mov dword [esi + 0x44], ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x44], eax
je 0x409929
cmp dword [esi + 0xac], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], ebx
je 0x4098d4
cmp byte [esi + 0xbc], bl
mov dword [ebp - 4], ebx
jbe 0x4098f4
mov eax, dword [esi + 0x34]
mov ecx, dword [ebp - 4]
mov dword [eax + ecx*4], ebx
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x408a5b
push ebx
push ebx
call edi
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 4]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 4]
mov ecx, edx
cmp dword [eax + ecx*4], ebx
je 0x409929
movzx eax, byte [esi + 0xbc]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x409898
jmp 0x4098f4
mov eax, dword [esi + 0x34]
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x408a5b
push ebx
push ebx
call edi
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [esi + 4]
cmp dword [eax], ebx
je 0x409929
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x408a7d
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x3c], eax
je 0x409929
mov eax, dword [esi + 0xc8]
cmp eax, ebx
je 0x409929
push dword [esi + 0xb4]
push 4
push dword [0x431d6c]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40992e
Capabilities:
Delete file

Disassembly:
mov eax, 0x424840
call fcn.0040da7c
sub esp, 0x18
push esi
mov esi, ecx
movzx eax, byte [esi + 0xbc]
shl eax, 2
push eax
push 1
push dword [esi + 0x34]
call fcn.0040e550
add esp, 0xc
push 0x2bf20
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4099cc
cmp dword [esi + 0xc0], eax
jne 0x4099cc
cmp dword [ebp + 8], eax
jne 0x4099c7
push str..dwn
lea ecx, [ebp - 0x18]
call fcn.0040b3f7
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x54]
call fcn.0040b58f
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040b6c3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0040b487
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040b487
mov ecx, esi
call fcn.00409a07
push 1
pop eax
jmp 0x4099ce
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b321
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x40b336
push eax
call fcn.0041f43e
and dword [esi + 8], 0
pop ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40b348
push eax
call fcn.0041f43e
and dword [esi + 0xc], 0
pop ecx
cmp dword [esi + 4], 0
je 0x40b37f
lea eax, [esi + 0x24]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xea60
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40b37a
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 1
pop eax
jmp 0x40b381
xor eax, eax
pop esi
ret 4

Function at 0x40c390
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
push ebx
mov ebx, dword [esp + 8]
mov al, byte [edx + 0xff]
push ebp
mov ebp, eax
xor ecx, ecx
push esi
push edi
mov cl, byte [edx + ebp]
mov edi, ebx
mov esi, ecx
mov ecx, 0x40
add esi, 0x426bbc
sub edx, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov esi, 0x100
mov al, byte [edx + ecx]
mov bl, byte [ecx]
xor bl, al
mov byte [ecx], bl
inc ecx
dec esi
jne 0x40c3c5
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x40c4e0
Capabilities:
Check for time delay via gettickcount
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
xor ebp, ebp
test eax, eax
jle 0x40c55e
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x20]
and ecx, 7
lea edx, [eax + ebp]
mov eax, dword [esp + 0x1c]
mov ebx, dword [ecx*4 + 0x426d60]
sub eax, ebp
cmp ebx, eax
mov edi, ebx
jl 0x40c51d
mov edi, eax
xor eax, eax
test edi, edi
jle 0x40c53a
mov ecx, dword [esi + 0x1c]
mov cl, byte [ecx + eax]
xor byte [eax + edx], cl
mov ecx, dword [esi + 0x1c]
add byte [ecx + eax], 7
add ecx, eax
inc eax
cmp eax, edi
jl 0x40c523
inc dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x10]
mov edx, eax
sub edx, edi
cmp edx, 0x64
ja 0x40c56b
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
cmp ebp, eax
jl 0x40c4fb
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x40c580
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x110
push ebx
push esi
push edi
mov edi, dword [esp + 0x124]
push 2
push 0
mov esi, ecx
push edi
call fcn.0040e2ef
push edi
call fcn.0040e16c
push 0
push 0
push edi
mov ebx, eax
call fcn.0040e2ef
mov eax, dword [esp + 0x13c]
add esp, 0x1c
cmp eax, 2
jne 0x40c62d
push edi
push 0x10c
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040e055
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
xor eax, 0xcdefab89
add esp, 0x10
xor ecx, 0xcdefab89
add ebx, 0xfffffef4
test eax, eax
jle 0x40c681
cmp eax, ebx
jge 0x40c681
test ecx, ecx
jle 0x40c681
add ecx, eax
cmp ecx, ebx
jne 0x40c681
mov dword [esi + 0xc], eax
inc eax
push eax
call fcn.0041f415
add esp, 4
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
lea ecx, [esp + 0x10]
jmp 0x40c6c4
cmp eax, 1
jne 0x40c67d
push edi
push 0x108
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040e055
mov eax, dword [esp + 0x120]
add esp, 0x10
xor eax, 0xcdefab89
jle 0x40c681
add ebx, 0xfffffef8
cmp eax, ebx
jge 0x40c681
mov dword [esi + 0xc], eax
inc eax
push eax
call fcn.0041f415
add esp, 4
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
lea ecx, [esp + 0x10]
jmp 0x40c6c4
test eax, eax
je 0x40c68f
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret 8
add ebx, 0xfffffefc
mov dword [esi + 0xc], ebx
inc ebx
push ebx
call fcn.0041f415
mov dword [esi + 8], eax
push edi
push 0x104
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0040e055
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
lea ecx, [esp + 0x10]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call fcn.0040c390
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
add esp, 8
test eax, eax
je 0x40c6e2
mov ecx, dword [esi + 0xc]
mov byte [ecx + eax], 0
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x110
ret 8
Function at 0x40c700
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [eax], edi
cmp esi, edi
mov dword [ecx], edi
je 0x40c8a3
cmp byte [esi], 0
je 0x40c8a3
lea ecx, [ebp - 0x50]
mov dword [ebp + 8], edi
call fcn.0040c3e0
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x426d5c
push esi
mov ebx, eax
call fcn.0040dd0c
mov esi, eax
add esp, 8
cmp esi, edi
mov dword [ebp - 0x28], esi
jne 0x40c783
lea edx, [ebp - 0x14]
push 0x42abc0
push edx
mov dword [ebp - 0x14], edi
call fcn.00410291
push 2
push edi
push esi
call fcn.0040e2ef
push esi
call fcn.0040e16c
push 0
push 0
push esi
mov edi, eax
call fcn.0040e2ef
mov eax, dword [ebp + 0x14]
add esp, 0x1c
test eax, eax
je 0x40c7d0
test edi, edi
jle 0x40c7d8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x12c
jbe 0x40c7ed
lea ecx, [ebp - 0x1c]
push 0x42abc0
push ecx
mov dword [ebp - 0x1c], 1
call fcn.00410291
cmp edi, 0x100
jg 0x40c7ac
lea eax, [ebp - 0x18]
push 0x42abc0
push eax
mov dword [ebp - 0x18], 0
call fcn.00410291
mov edx, dword [ebp + 0x14]
push edi
push esi
push edx
lea ecx, [ebp - 0x50]
call fcn.0040c460
test eax, eax
jne 0x40c814
lea eax, [ebp - 0x20]
push 0x42abc0
push eax
mov dword [ebp - 0x20], 1
call fcn.00410291
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x38]
cmp eax, 0x12c
jbe 0x40c839
lea ecx, [ebp - 0x24]
push 0x42abc0
push ecx
mov dword [ebp - 0x24], 1
call fcn.00410291
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x40c880
mov eax, dword [ebp - 0x44]
test eax, eax
jle 0x40c880
push esi
push eax
push 1
push ecx
call fcn.0040e055
push esi
call fcn.0040da9b
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
add esp, 0x14
lea ecx, [ebp - 0x50]
push edx
push eax
call fcn.0040c4e0
test eax, eax
jne 0x40c8b8
jmp 0x40c894
test esi, esi
je 0x40c88d
push esi
call fcn.0040da9b
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c8b8
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c410
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
lea ecx, [ebp - 0x50]
call fcn.0040c410
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10