joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1022d440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x1022d44f
mov eax, dword [eax + 4]
jmp 0x1022d452
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1022d4db
push esi
mov esi, dword [0x103b744c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
cmp eax, 2
je 0x1022d4c0
cmp eax, 3
je 0x1022d4c0
cmp eax, 0x7b
je 0x1022d4c0
cmp eax, 0x57
je 0x1022d4c0
cmp eax, 0xa1
je 0x1022d4c0
cmp eax, 0x35
je 0x1022d4c0
cmp eax, 0x20
jne 0x1022d4b5
mov eax, dword [0x103b7454]
mov dword [ecx], eax
mov edx, dword [0x103b7458]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x103b7454]
mov dword [ecx], eax
mov edx, dword [0x103b7458]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x103b7454]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x103b7458]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x1022d508
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x1022d520
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x1022d53b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x1022d550
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x1022d56b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x1022d5a0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x1022d5b3
mov ecx, dword [eax + 4]
jmp 0x1022d5b6
lea ecx, [eax + 4]
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], edx
jb 0x1022d5c4
mov eax, dword [eax + 4]
jmp 0x1022d5c7
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1022d5e5
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [0x103b744c]
mov dword [eax + 4], ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [0x103b744c]
mov dword [eax + 4], ecx
ret
Function at 0x1022d600
Capabilities:
Create directory

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor esi, esi
call fcn.1022d870
mov ebp, eax
mov dword [esp + 0xc], esi
call fcn.1022d870
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x18], 8
mov dword [esp + 0x10], eax
jb 0x1022d62b
mov eax, dword [edi + 4]
jmp 0x1022d62e
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1022d64f
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 1
pop ebp
add esp, 8
ret
mov ebp, dword [0x103b744c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x1022d69f
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.1022d440
add esp, 0xc
cmp dword [esp + 0x1c], 3
jne 0x1022d69f
mov eax, dword [esp + 0x18]
mov edx, dword [0x103b7454]
mov ecx, dword [0x103b7458]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret

Function at 0x1022e78c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1037c990]
jne 0x1022e796
repz ret
jmp fcn.10239929
Function at 0x10249cb2
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.10239ca2
and dword [ebp - 4], 0
cmp dword [0x103b8038], 0
mov ebx, eax
jne 0x10249d63
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10249e14
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10249e14
push eax
call fcn.10239c30
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x103b8038], eax
call esi
push eax
call fcn.10239c30
mov dword [esp], 0x102b1cf8
push edi
mov dword [0x103b803c], eax
call esi
push eax
call fcn.10239c30
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x103b8040], eax
call esi
push eax
call fcn.10239c30
pop ecx
mov dword [0x103b8048], eax
test eax, eax
je 0x10249d63
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10239c30
pop ecx
mov dword [0x103b8044], eax
mov eax, dword [0x103b8044]
cmp eax, ebx
je 0x10249dbb
cmp dword [0x103b8048], ebx
je 0x10249dbb
push eax
call fcn.10239cab
push dword [0x103b8048]
mov esi, eax
call fcn.10239cab
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10249dbb
test edi, edi
je 0x10249dbb
call esi
test eax, eax
je 0x10249db2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10249db2
test byte [ebp - 0xc], 1
jne 0x10249dbb
or dword [ebp + 0x10], 0x200000
jmp 0x10249df4
mov eax, dword [0x103b803c]
cmp eax, ebx
je 0x10249df4
push eax
call fcn.10239cab
pop ecx
test eax, eax
je 0x10249df4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10249df4
mov eax, dword [0x103b8040]
cmp eax, ebx
je 0x10249df4
push eax
call fcn.10239cab
pop ecx
test eax, eax
je 0x10249df4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x103b8038]
call fcn.10239cab
pop ecx
test eax, eax
je 0x10249e14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10249e16
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1024f310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10258fe8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x103b8068]
test eax, eax
jne 0x1024f342
xor esi, esi
jmp 0x1024f34b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x1024f38d
cmp dword [esi + 0x14], 0
jne 0x1024f3cf
cmp dword [esi + 0x10], 0
jne 0x1024f3d5
push 0x1024f070
push 0x103b8064
call fcn.1024f260
mov eax, dword [0x103b8068]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x1024f3bb
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1024f3bb
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x1024f415
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1024f403
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x1024f3d5
cmp dword [esi + 0x14], 0
je 0x1024f367
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1024f43a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1024f46b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1024f46b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1024f46b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x1024f41f
jmp 0x1024f361
jmp 0x1024f310
Function at 0x1024f490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10258fe8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x103b8068]
test eax, eax
jne 0x1024f342
xor esi, esi
jmp 0x1024f34b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x1024f38d
cmp dword [esi + 0x14], 0
jne 0x1024f3cf
cmp dword [esi + 0x10], 0
jne 0x1024f3d5
push 0x1024f070
push 0x103b8064
call fcn.1024f260
mov eax, dword [0x103b8068]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x1024f3bb
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1024f3bb
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x1024f415
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1024f403
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x1024f3d5
cmp dword [esi + 0x14], 0
je 0x1024f367
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1024f43a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1024f46b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1024f46b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1024f46b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x1024f41f
jmp 0x1024f361
jmp 0x1024f310
Function at 0x1c55000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
movdqa xmm0, xmmword [0x44dff0]
push esi
push 0
push 0x80
push 2
movdqu xmmword [0xd050f8], xmm0
push 0
movdqa xmm0, xmmword [0x44e050]
movdqu xmmword [0xd05108], xmm0
push 0
movdqa xmm0, xmmword [0x44e000]
movdqu xmmword [0xd051f8], xmm0
push 0x40000000
movdqa xmm0, xmmword [0x44e030]
push 0xd050f8
mov byte [0xd05118], 0
movdqu xmmword [0xd05208], xmm0
mov word [0xd05218], 0xa
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1c550a4
mov ecx, 0xd051f8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1c55081
push 0
lea eax, [ebp - 4]
sub ecx, edx
push eax
push ecx
push 0xd051f8
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1c550b0
Capabilities:
Create process on windows

Disassembly:
movdqa xmm0, xmmword [str.open]
movdqu xmmword [0xd050f8], xmm0
push 1
movdqa xmm0, xmmword [0x44dfe0]
movdqu xmmword [0xd05108], xmm0
push 0
movdqa xmm0, xmmword [0x44e060]
movdqu xmmword [0xd05118], xmm0
push 0xd05105
movdqa xmm0, xmmword [0x44e020]
movdqu xmmword [0xd05128], xmm0
push 0xd050fd
movdqa xmm0, xmmword [0x44e010]
movdqu xmmword [0xd05138], xmm0
push 0xd050f8
movdqa xmm0, xmmword [0x44e040]
push 0
movdqu xmmword [0xd05148], xmm0
mov dword [0xd05158], 0x7469675f
mov dword [0xd0515c], 0x2e676f6c
mov dword [0xd05160], 0x747874
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x402f60
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4595e8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x4595ec]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00402f50
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4595f0]
mov edx, dword [0x4595f4]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea esp, [esp]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x460dec]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x402fec
mov dword [0x460de8], 0xedeb2e40
jmp 0x403007
cmp eax, 0x3eb
jne 0x403007
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x460878], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x460dec], 0x9e6
mov dword [0x460de4], 0xf4ea3dee
jne 0x403040
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
xor dword [ebp - 4], esi
cmp dword [0x460dec], 0x213
jne 0x4030bc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [ebp - 0x4c4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x460dec], 0xc
jne 0x4030e0
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov eax, ebx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
lea ecx, [edi + ebx]
xor esi, ecx
cmp dword [0x460dec], 0xb03
jne 0x40311b
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x402fc0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403150
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x460dec]
mov ecx, dword [0x46087c]
shr eax, 3
test eax, eax
jbe 0x4031dc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov edi, ecx
mov dword [ebp - 4], eax
lea ebx, [ebx]
cmp dword [0x460dec], 0x959
jne 0x4031ca
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
call esi
push 0
push 0
call esi
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
call fcn.00402f60
add edi, 8
sub dword [ebp - 4], 1
jne 0x403180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40966b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458748]
jne 0x409675
repz ret
jmp fcn.0040ce91

Function at 0x40b57e
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.00407dab
and dword [ebp - 4], 0
cmp dword [0x45e868], 0
mov ebx, eax
jne 0x40b62f
push 0x401ab8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b6e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401aac
push edi
call esi
test eax, eax
je 0x40b6e0
push eax
call fcn.00407d39
mov dword [esp], 0x401a9c
push edi
mov dword [0x45e868], eax
call esi
push eax
call fcn.00407d39
mov dword [esp], 0x401a88
push edi
mov dword [0x45e86c], eax
call esi
push eax
call fcn.00407d39
mov dword [esp], 0x401a6c
push edi
mov dword [0x45e870], eax
call esi
push eax
call fcn.00407d39
pop ecx
mov dword [0x45e878], eax
test eax, eax
je 0x40b62f
push 0x401a54
push edi
call esi
push eax
call fcn.00407d39
pop ecx
mov dword [0x45e874], eax
mov eax, dword [0x45e874]
cmp eax, ebx
je 0x40b687
cmp dword [0x45e878], ebx
je 0x40b687
push eax
call fcn.00407db4
push dword [0x45e878]
mov esi, eax
call fcn.00407db4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b687
test edi, edi
je 0x40b687
call esi
test eax, eax
je 0x40b67e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b67e
test byte [ebp - 0xc], 1
jne 0x40b687
or dword [ebp + 0x10], 0x200000
jmp 0x40b6c0
mov eax, dword [0x45e86c]
cmp eax, ebx
je 0x40b6c0
push eax
call fcn.00407db4
pop ecx
test eax, eax
je 0x40b6c0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b6c0
mov eax, dword [0x45e870]
cmp eax, ebx
je 0x40b6c0
push eax
call fcn.00407db4
pop ecx
test eax, eax
je 0x40b6c0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e868]
call fcn.00407db4
pop ecx
test eax, eax
je 0x40b6e0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b6e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x458267b
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x16574f87
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401717
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xec8b556c
push ebp
mov ebp, esp