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

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0x10
test ecx, ecx
mov eax, 0xfffffff5
je 0x48dd9c
cmp dword [esp + 0x18], 2
jne 0x48dd9c
mov eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
cmp eax, 1
jle 0x48de68
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea esi, [esp + 0x30]
dec eax
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x14], 0
cmp eax, 0x80000004
jne 0x48dde1
mov ebx, dword [esi]
jmp 0x48ddf8
push esi
call fcn.0048f0b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x48de4e
mov dword [esp + 0x14], 1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x48de39
mov edi, ebx
mov eax, 0x400
mov dword [esp + 0x10], 0
cmp esi, eax
jae 0x48de1d
mov eax, esi
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edi
push edx
call ebp
mov eax, dword [esp + 0x10]
sub esi, eax
add edi, eax
test esi, esi
ja 0x48de0a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x48de4a
push ebx
call fcn.0049b8cb
add esp, 4
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add esi, 0xc
dec eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
jne 0x48ddcb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x48f850
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 0x30
call fcn.0049bded
mov esi, eax
add esp, 4
test esi, esi
jne 0x48f867
pop edi
pop esi
pop ebx
ret
xor eax, eax
mov ecx, 0xc
push eax
mov edi, esi
push eax
push eax
rep stosd dword es:[edi], eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
mov dword [esi], eax
jne 0x48f892
push esi
call fcn.0049b8cb
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov ebx, dword [esp + 0x10]
test ebx, ebx
ja 0x48f89f
mov ebx, 0x14
lea eax, [ebx*4]
push eax
call fcn.0049bded
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
jne 0x48f8ce
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0049b8cb
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
test ebx, ebx
jbe 0x48f90d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x48fa80
push 0
push 0
call ebp
mov edx, dword [esi + 0x28]
mov dword [edx + edi*4], eax
mov eax, dword [esi + 0x28]
cmp dword [eax + edi*4], 0
je 0x48f907
inc dword [esi + 0x20]
inc edi
cmp edi, ebx
jb 0x48f8e5
pop ebp
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x48f93f
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, dword [esi + 0x28]
push edx
call fcn.0049b8cb
push esi
call fcn.0049b8cb
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov dword [esi + 0x1c], 1
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x492ff0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call fcn.0049d2c7
add esp, 8
push 1
call fcn.0049d1d4
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x493036
push esi
mov esi, eax
shl esi, 7
add esi, eax
inc edx
movsx eax, cl
mov cl, byte [edx]
test cl, cl
lea eax, [esi + eax - 0x61c8ffff]
jne 0x49301d
pop esi
ret
Function at 0x493490
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x10]
mov eax, 0xaaaaaaab
lea ecx, [edi*4]
mul ecx
mov ecx, edx
mov eax, 0x38e38e39
shr ecx, 1
add ecx, 4
mul ecx
shr edx, 4
lea edx, [edx + ecx + 1]
push edx
call fcn.0049bded
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4934cf
pop edi
pop ebp
ret
push ebx
push esi
mov esi, dword [esp + 0x14]
mov ecx, ebp
lea ebx, [esi + edi]
xor edi, edi
mov edx, ebx
sub edx, esi
cmp edx, 3
jl 0x49355f
mov ebp, edx
xor eax, eax
add edi, 4
mov al, byte [esi]
add esi, 3
shr eax, 2
inc ecx
sub ebp, 3
mov dl, byte [eax + 0x4a93c8]
mov byte [ecx - 1], dl
mov al, byte [esi - 3]
xor edx, edx
and eax, 3
mov dl, byte [esi - 2]
shl eax, 4
shr edx, 4
or eax, edx
inc ecx
mov al, byte [eax + 0x4a93c8]
mov byte [ecx - 1], al
mov dl, byte [esi - 2]
xor eax, eax
and edx, 0xf
mov al, byte [esi - 1]
shl edx, 2
shr eax, 6
or edx, eax
inc ecx
mov dl, byte [edx + 0x4a93c8]
mov byte [ecx - 1], dl
mov al, byte [esi - 1]
and eax, 0x3f
inc ecx
cmp edi, 0x48
mov dl, byte [eax + 0x4a93c8]
mov byte [ecx - 1], dl
jl 0x493556
mov byte [ecx], 0xa
inc ecx
xor edi, edi
cmp ebp, 3
jge 0x4934e7
mov ebp, dword [esp + 0x18]
mov edx, ebx
sub edx, esi
je 0x4935c3
xor eax, eax
mov al, byte [esi]
shr eax, 2
inc ecx
cmp edx, 1
mov al, byte [eax + 0x4a93c8]
mov byte [ecx - 1], al
mov dl, byte [esi]
jne 0x493592
and edx, 3
shl edx, 4
inc ecx
mov al, byte [edx + 0x4a93c8]
mov byte [ecx - 1], al
mov byte [ecx], 0x3d
jmp 0x4935bb
xor eax, eax
and edx, 3
mov al, byte [esi + 1]
shl edx, 4
shr eax, 4
or edx, eax
inc ecx
mov dl, byte [edx + 0x4a93c8]
mov byte [ecx - 1], dl
mov al, byte [esi + 1]
and eax, 0xf
mov dl, byte [eax*4 + 0x4a93c8]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
inc ecx
add edi, 4
pop esi
pop ebx
test edi, edi
je 0x4935cd
mov byte [ecx], 0xa
inc ecx
mov eax, dword [esp + 0x14]
mov byte [ecx], 0
test eax, eax
je 0x4935dc
sub ecx, ebp
mov dword [eax], ecx
mov eax, ebp
pop edi
pop ebp
ret
Function at 0x401100
Capabilities:
Add user account
Add user account to group
Delete user account

Disassembly:
sub esp, 0x58
mov eax, dword [0x40c004]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push 1
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x40a530
mov dword [esp + 0x20], 0x40a52c
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x10040
mov dword [esp + 0x38], esi
call sub.NETAPI32.dll_NetUserAdd
test eax, eax
jne 0x4011cf
xor edx, edx
mov word [esp + 0x2c], dx
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov word [esp + 0x52], ax
jmp 0x401190
movzx ecx, word [eax + 0x40a530]
mov word [esp + eax + 0x2c], cx
add eax, 2
cmp cx, si
jne 0x401190
push 1
lea ecx, [esp + 8]
push ecx
push 3
push str.Administrators
lea eax, [esp + 0x3c]
push esi
mov dword [esp + 0x18], eax
call sub.NETAPI32.dll_NetLocalGroupAddMembers
test eax, eax
je 0x4011e1
push 0x40a530
push esi
call sub.NETAPI32.dll_NetUserDel
xor al, al
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0040247a
add esp, 0x58
ret
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
mov al, 1
call fcn.0040247a
add esp, 0x58
ret

Function at 0x401200
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push edi
push 0
push 0x80
push 2
push 0
push 1
push 0xe0000000
push 0x40a388
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40124b
push 0
lea eax, [esp + 0xc]
push eax
push 0x1200
push 0x430040
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401252
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0xc
ret
push ebp
push esi
push 0
push 0x1200
push 0
push 0x40
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012bd
push ebx
push 0x1200
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4012b9
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x1200
push ebx
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
test eax, eax
je 0x4012b2
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x58], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call ebp
pop ebx
push edi
call ebp
pop esi
pop ebp
mov eax, 1
pop edi
add esp, 0xc
ret
Function at 0x4012d0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x240
mov eax, dword [0x40c004]
xor eax, esp
mov dword [esp + 0x23c], eax
mov eax, dword [esp + 0x244]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov dword [esp + 0x10], eax
xor eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x20], 0
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
xor esi, esi
call edi
push eax
call fcn.00402530
add esp, 4
call fcn.00402542
cdq
mov ecx, 0x1a
idiv ecx
push 0x14
mov ebx, edx
call ebp
add bl, 0x61
push 0x1e
mov byte [esp + esi + 0x24], bl
call ebp
inc esi
cmp esi, 0x20
jl 0x401328
push 0x104
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0x5c]
push eax
call edi
mov esi, eax
push 0
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.004025b3
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
mov ebp, eax
push ebp
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call edi
lea edi, [ebp + 0x4a]
mov ecx, 8
lea esi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push 0
lea edi, [ebx + ebp - 0x2a]
mov ecx, 8
lea esi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebp
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 0
push edx
push 0
push 0x40
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401473
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x401468
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push ebx
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
test eax, eax
je 0x401461
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x58], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x401479
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.0040267d
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call esi
push edi
call esi
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040247a
add esp, 0x240
ret
Function at 0x4017a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [0x40c004]
xor eax, esp
mov dword [esp + 0x30], eax
xor eax, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x18], 0
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
xor esi, esi
call edi
push eax
call fcn.00402530
add esp, 4
call fcn.00402542
cdq
mov ecx, 0x1a
idiv ecx
push 0x32
add dl, 0x61
mov byte [esp + esi + 0x1c], dl
call ebx
inc esi
cmp esi, 0x20
jl 0x4017e6
push 0
push 0x80
push 2
push 0
push 1
push 0xe0000000
push 0x431d90
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401866
push 0
lea edx, [esp + 0x14]
push edx
push 0x23400
push 0x40cc40
mov ecx, 8
lea esi, [esp + 0x28]
mov edi, 0x430016
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40187a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0040247a
add esp, 0x34
ret
push ebp
push 0
push 0x23400
push 0
push 0x40
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x4018e2
push 0x23400
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4018df
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x23400
push edi
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
test eax, eax
je 0x4018d8
mov edx, dword [esp + 0x10]
mov dword [eax + 0x58], edx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call ebp
push ebx
call ebp
mov ecx, dword [esp + 0x40]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040247a
add esp, 0x34
ret
Function at 0x40247a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c004]
jne 0x402484
repz ret
jmp fcn.0040295c

Function at 0x40270b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40273c
call fcn.00403c28
mov dword [eax], esi
call fcn.00403c15
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00403bad
add esp, 0x14
push 0x16
pop eax
jmp 0x402791
test dword [ebp + 0xc], 0xfffffff9
jne 0x402718
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402769
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403c3b
pop ecx
call fcn.00403c15
mov eax, dword [eax]
jmp 0x402791
test al, 0x10
jne 0x40278f
test al, 1
je 0x40278f
test byte [ebp + 0xc], 2
je 0x40278f
call fcn.00403c28
mov dword [eax], 5
call fcn.00403c15
mov dword [eax], 0xd
jmp 0x402760
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4073c6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004034dc
and dword [ebp - 4], 0
cmp dword [0x431cc0], 0
mov ebx, eax
jne 0x407477
push 0x40a2c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407528
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a2bc
push edi
call esi
test eax, eax
je 0x407528
push eax
call fcn.0040346a
mov dword [esp], 0x40a2ac
push edi
mov dword [0x431cc0], eax
call esi
push eax
call fcn.0040346a
mov dword [esp], 0x40a298
push edi
mov dword [0x431cc4], eax
call esi
push eax
call fcn.0040346a
mov dword [esp], 0x40a27c
push edi
mov dword [0x431cc8], eax
call esi
push eax
call fcn.0040346a
pop ecx
mov dword [0x431cd0], eax
test eax, eax
je 0x407477
push 0x40a264
push edi
call esi
push eax
call fcn.0040346a
pop ecx
mov dword [0x431ccc], eax
mov eax, dword [0x431ccc]
cmp eax, ebx
je 0x4074cf
cmp dword [0x431cd0], ebx
je 0x4074cf
push eax
call fcn.004034e5
push dword [0x431cd0]
mov esi, eax
call fcn.004034e5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4074cf
test edi, edi
je 0x4074cf
call esi
test eax, eax
je 0x4074c6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4074c6
test byte [ebp - 0xc], 1
jne 0x4074cf
or dword [ebp + 0x10], 0x200000
jmp 0x407508
mov eax, dword [0x431cc4]
cmp eax, ebx
je 0x407508
push eax
call fcn.004034e5
pop ecx
test eax, eax
je 0x407508
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407508
mov eax, dword [0x431cc8]
cmp eax, ebx
je 0x407508
push eax
call fcn.004034e5
pop ecx
test eax, eax
je 0x407508
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431cc0]
call fcn.004034e5
pop ecx
test eax, eax
je 0x407528
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40752a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4051a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0x437fc4
mov ecx, dword [ebp - 0xc]
call fcn.00407490
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
call fcn.004074a0
mov dword [ebp - 0x10], eax
jmp 0x4051ce
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
je 0x40520b
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405209
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4051c5
mov esp, ebp
pop ebp
ret

Function at 0x405210
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0x437fc4
mov ecx, dword [ebp - 0xc]
call fcn.00407490
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
call fcn.004074a0
mov dword [ebp - 0x10], eax
jmp 0x40523e
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
je 0x40527b
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405279
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405235
mov esp, ebp
pop ebp
ret

Function at 0x408c90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x43701c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x22c
push 0x228
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.0040da40
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
cmp dword [ebp - 0x238], 0xffffffff
je 0x408d79
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x408d79
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x218]
jne 0x408d5e
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.0041228d
add esp, 8
test eax, eax
jne 0x408d5e
mov dword [ebp - 0x240], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x228]
mov dword [eax], ecx
push 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00409940
add esp, 8
jmp 0x408d79
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x23c], eax
jmp 0x408d0c
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x240], 0
je 0x408d98
mov byte [ebp - 0x231], 1
jmp 0x408d9f
mov byte [ebp - 0x231], 0
mov al, byte [ebp - 0x231]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c433
mov esp, ebp
pop ebp
ret
Function at 0x409940
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43701c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40996b
xor al, al
jmp 0x409a57
mov dword [ebp - 0x20], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x409989
mov byte [ebp - 0x21], 1
jmp 0x40998d
mov byte [ebp - 0x21], 0
mov al, byte [ebp - 0x21]
mov byte [ebp - 0x23], al
movzx ecx, byte [ebp - 0x23]
test ecx, ecx
je 0x409a4b
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 8]
jne 0x409a25
mov eax, dword [ebp - 0x18]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x28], eax
push str.thread_id:
push 0x4380f8
call fcn.004012e0
add esp, 8
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00404820
mov dword [ebp - 0x34], eax
push 0x402720
mov ecx, dword [ebp - 0x34]
call fcn.004049f0
cmp dword [ebp - 0x28], 0
je 0x409a0d
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x409a03
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x409a0d
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x437fc4
call fcn.00409600
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x409a3c
mov byte [ebp - 0x22], 1
jmp 0x409a40
mov byte [ebp - 0x22], 0
mov al, byte [ebp - 0x22]
mov byte [ebp - 0x23], al
jmp 0x409993
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c433
mov esp, ebp
pop ebp
ret
Function at 0x41bc2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041baa0
Function at 0x401d40
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x46e7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x4871a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov al, 0x28
mov byte [esp + 0x1c], al
mov byte [esp + 0x27], al
mov byte [esp + 0x18], 0x17
mov byte [esp + 0x19], 2
mov byte [esp + 0x1a], 0x23
mov byte [esp + 0x1b], 0x29
mov byte [esp + 0x1d], 0x3f
mov byte [esp + 0x1e], 0x3c
mov byte [esp + 0x1f], 0x21
mov byte [esp + 0x20], 0x15
mov byte [esp + 0x21], 0x11
mov byte [esp + 0x22], 5
mov byte [esp + 0x23], 0xa
mov byte [esp + 0x24], 0x34
mov byte [esp + 0x25], 4
mov byte [esp + 0x26], 0x2d
mov byte [esp + 0x28], 0xb
mov byte [esp + 0x29], 0x35
mov byte [esp + 0x2a], 0x3e
mov byte [esp + 0x2b], 0
mov dword [esp + 0x10], 0x444c5047
xor eax, eax
mov ecx, eax
and ecx, 3
mov dl, byte [esp + ecx + 0x10]
xor byte [esp + eax + 0x18], dl
inc eax
cmp eax, 0x13
jb 0x401df3
mov eax, dword [0x48b9d0]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x401e83
mov ecx, esi
lea edx, [esp + 0x10]
call fcn.0040e0f0
test eax, eax
je 0x401e83
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
mov esi, ecx
test eax, eax
jne 0x401e40
test ecx, ecx
jne 0x401e5e
push eax
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x24]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x401e5e
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
lea edi, [esp + 0x10]
call fcn.0040df40
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov ecx, dword [esp + 0x10]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
add eax, 0x10
push eax
mov ecx, ebp
mov dword [esp + 0x40], 0
call fcn.004016f0
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
add esp, 8
cmp ecx, 0x48b9c0
je 0x401ecf
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401ecf
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004501ef
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044fcda
add esp, 0x2c
ret 8