joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62e100
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x72af34]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x62e14b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0062e29f
test al, al
jne 0x62e145
sub edx, 2
cmp edx, edi
jne 0x62e12b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x62e16d
lea eax, [edi + 2]
cmp edx, eax
je 0x62e16d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0062e04c
add esp, 0x10
jmp 0x62e267
push esi
lea ecx, [ebp - 0x255]
call fcn.0062e29f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x62e1b0
push dword [ebp - 0x25c]
jmp 0x62e15d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x62e1ed
cmp word [ebp - 0x226], 0
je 0x62e20e
cmp word [ebp - 0x226], ax
jne 0x62e1ed
cmp word [ebp - 0x224], 0
je 0x62e20e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0062e04c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x62e25a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x62e1c7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x62e242
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x62e267
push 0x62de7c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00621600
add esp, 0x10
jmp 0x62e237
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005efadc
leave
ret
Function at 0x62eb8b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x62ec28
push ebx
push esi
call fcn.0062eb54
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0062d394
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x62ebd5
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x62ec27
push edi
push eax
call fcn.00627398
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x62ebf5
call fcn.00626c99
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x62ec26
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0062d394
add esp, 0x20
test eax, eax
jne 0x62ec14
push edi
call fcn.00626c99
jmp 0x62ec1c
push ebx
call fcn.00626c99
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x62ec2b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x62ec3c
pop esi
ret
push ebx
push edi
push esi
call fcn.0062eb54
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00627398
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x62ec64
push ebx
push esi
push edi
call fcn.00604770
add esp, 0xc
push 0
call fcn.00626c99
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x62f3b0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0062eed7
Function at 0x63770f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0063768b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x637887
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x637887
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x637836
jg 0x637768
test eax, eax
je 0x63782c
push 1
push 0x1000
call fcn.006273e6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x63778e
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x637823
push 0x8000
push ebx
call fcn.00622788
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x6377ba
jg 0x6377b5
cmp ecx, 0x1000
jb 0x6377ba
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0062979b
add esp, 0x10
cmp eax, 0xffffffff
je 0x6377ff
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x6377b5
jl 0x6377e6
test ecx, ecx
jne 0x6377a7
push dword [ebp - 0xc]
push ebx
call fcn.00622788
push esi
call fcn.00626c99
add esp, 0xc
xor edi, edi
jmp 0x637898
cmp byte [edi + 0x24], 0
je 0x637816
cmp dword [edi + 0x20], 5
jne 0x637816
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x637821
mov edi, dword [edi + 0x18]
jmp 0x637823
xor edi, edi
push esi
call fcn.00626c99
pop ecx
jmp 0x637898
test ecx, ecx
jg 0x6377f8
jl 0x637836
test eax, eax
jae 0x6377f8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0062b475
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x637859
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x6377f8
jmp 0x637890
push ebx
call fcn.0062cbb2
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x6377f8
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x637898
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x637895
mov edi, dword [edi + 0x18]
jmp 0x637898
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0062b475
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x637f80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x637fad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x637fad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401005
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x401010
call sub.KERNEL32.dll_AllocConsole
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov dword [0x40401e], eax
push 0
push 0x20
push 3
push 0
push 0
push 0x80000000
push str.plik.txt
call sub.KERNEL32.dll_CreateFileW
mov dword [0x404012], eax
cmp eax, 0xffffffff
jne 0x401075
push 0
push 0
push 0x14
push str.Blad_otwarcia_pliku.
push dword [0x40401e]
call sub.KERNEL32.dll_WriteConsoleA
push 0
push 0
push 2
push 0x403040
push dword [0x40401e]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x401151
push 0
push dword [0x404012]
call sub.KERNEL32.dll_GetFileSize
mov dword [0x404016], eax
push 4
push 0x1000
push eax
push 0
call sub.KERNEL32.dll_VirtualAlloc
or eax, eax
jne 0x4010c8
push 0
push 0
push 0x16
push str.Blad_alokacji_pamieci.
push dword [0x40401e]
call sub.KERNEL32.dll_WriteConsoleA
push 0
push 0
push 2
push 0x403040
push dword [0x40401e]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x401131
mov dword [0x40401a], eax
push 0
push 0
push dword [0x404016]
push eax
push dword [0x404012]
call sub.KERNEL32.dll_ReadFile
cmp eax, 0xffffffff
jne 0x401116
push 0
push 0
push 0x13
push str.Blad_odczytu_pliku.
push dword [0x40401e]
call sub.KERNEL32.dll_WriteConsoleA
push 0
push 0
push 2
push 0x403040
push dword [0x40401e]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x401131
push 0
push 0
push dword [0x404016]
push dword [0x40401a]
push dword [0x40401e]
call sub.KERNEL32.dll_WriteConsoleW
push 0x8000
push 0x404016
push dword [0x40401a]
call sub.KERNEL32.dll_VirtualFree
push dword [0x404012]
call sub.KERNEL32.dll_CloseHandle
call sub.KERNEL32.dll_FreeConsole
push 0
call sub.KERNEL32.dll_ExitProcess
int3
Function at 0x409e20
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x200
lea eax, [esp]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x409ecb
push ebx
push esi
lea ecx, [esp + 8]
push edi
push ecx
lea edx, [esp + 0x110]
push 0x40e244
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x40e23c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x210]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test eax, eax
pop ebx
je 0x409eb5
lea eax, [esp + 0x100]
lea ecx, [esp]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
add esp, 0x200
ret
lea edx, [esp]
lea eax, [esp + 0x100]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
add esp, 0x200
ret

Function at 0x104d8f90
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x104d8f96
pop ebp
sub ebp, 6
sub ebp, 0x4d8f90
jmp 0x104d8ff4
mov al, byte [esp + 0x28]
cmp al, 1
je 0x104d900b
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x104d9014
mov eax, 0x4d8f90
add eax, ebp
add eax, 0xaa
mov ecx, 0x5b6
mov edx, 0xeefca812
xor byte [eax], dl
inc eax
dec ecx
jne 0x104d902b
jmp 0x104d903e
cdq
fistp word [ecx + 0x12122e9b]
adc dl, byte [ebx + 0x1212ead3]
adc dl, byte [ecx]
fild qword [edx + 0x12121214]
test al, 0x3a
adc dl, byte [edx]
adc ah, ch
invalid
Function at 0x405710
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40572e
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40576f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402449
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
test ebx, ebx
jne 0x402462
push 1
pop eax
jmp 0x4024d7
mov eax, dword [0x408498]
push 0
mov dword [ebp - 0x100], eax
push 0
lea eax, [ebp - 0x104]
push 0
push eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x104], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4024d0
test eax, eax
je 0x402462
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x402462
mov eax, ebx
push 0
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4024d0
cmp eax, 0xffffffff
je 0x4024d0
add esi, eax
cmp esi, ebx
jb 0x402462
xor eax, eax
cmp esi, ebx
sete al
pop esi
pop ebx
leave
ret

Function at 0x402c3a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402caf
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], bl
mov dword [ebp + 8], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x402ca7
lea eax, [ebp - 0xc]
push 0xa
push eax
call fcn.00401bc2
pop ecx
lea eax, [ebp + 8]
pop ecx
push ebx
push eax
lea eax, [ebp - 0xc]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
jne 0x402c85
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402f20
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x407144
push str.GetLastError
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.ExitProcess
push ebx
call esi
push eax
call edi
push str.GetCurrentThreadId
push ebx
call esi
push eax
call edi
push str.CreateMutexA
push ebx
call esi
push eax
call edi
push str.GetModuleFileNameA
push ebx
call esi
push eax
call edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push str.Sleep
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push 0x104
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [ebp - 8]
jmp loc.00412000
Function at 0x402ebc
Capabilities:
Get common file path
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x23c], eax
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f600
xor eax, eax
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x230], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
or edi, 0xffffffff
test esi, esi
je 0x402f50
cmp word [esi], cx
je 0x402f50
lea eax, [ebp - 0x220]
push eax
push ebx
push esi
jmp 0x402fa8
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x402f99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x402f7d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x402f84
mov esi, 0x80004005
push esi
push 0x284
push str.c:_agent_work66_s_srclibsdutilpathutil.cpp
call fcn.004038ba
jmp 0x403122
lea eax, [ebp - 0x220]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00402e55
mov esi, eax
test esi, esi
js 0x403122
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x220]
call fcn.00403533
test eax, eax
jne 0x402fe3
push eax
push dword [ebp - 0x228]
call fcn.0040415f
mov esi, eax
test esi, esi
js 0x403122
mov ebx, dword [ebp - 0x22c]
test ebx, ebx
jne 0x402ff2
mov ebx, 0x44a534
and dword [ebp - 0x22c], 0
lea eax, [ebp - 0x21c]
inc dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp - 0x234]
push 0x2e
pop eax
cmp ax, word [ecx]
mov eax, 0x44a534
je 0x403024
mov eax, 0x44a804
push ecx
push eax
movzx eax, word [ebp - 0x210]
push ebx
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x224]
push 0x44a808
push eax
call fcn.00402022
mov esi, eax
add esp, 0x30
test esi, esi
js 0x403116
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4030e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x50
je 0x4030b2
cmp esi, 5
jne 0x4030ca
push 0x64
add byte [eax], al
add byte [eax], al
push edx
add dword [eax], eax
add al, 0
add byte [edx + 0x52], bl
Function at 0x4030b4
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2110
push ebx
push esi
push edi
push edx
or edx, 0xb6cc
call fcn.004030d6
add byte [edi + 0x41], al
dec esi
cmp byte [edx], bh
cmp eax, 0x834a3642
add esp, 4
sub edx, 0x1361
pop edx
push esi

Function at 0x4030d6
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
sub edx, 0x1361
pop edx
push esi
push edi
add esp, 4
sub esi, 0x5521
and esi, 0x1f8b
pop esi
mov dword [ebp - 0x1084], 1
push edi
push ebx
add esp, 4
sub edi, 0x11242
or edi, 0x8d04
xor edi, 0x997
sub edi, 0x1522c
pop edi
push edx
push edx
add esp, 4
add edx, 0x493
pop edx
push edx
or edx, 0x14bd2
pop edx
imul eax, dword [ebp - 0x1084], 0xfe
add eax, 0x56f3663b
imul ecx, dword [ebp - 0x1084], 0xfe
sub eax, ecx
xor eax, 0x10014
imul eax, dword [ebp - 0x1084]
imul edx, dword [ebp - 0x1084], 0xfe
sub eax, edx
mov dword [ebp - 0x1088], eax
push edi
call fcn.00403176
add byte [esi], bh
inc edx
aas
Function at 0x403176
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
or edi, 0x1865d
call 0x40318f
add byte [ecx + 0x3b], cl
dec edi
inc edi
inc eax
inc esp
inc ecx
dec edx
inc eax
add esp, 4
sub edi, 0x17748
pop edi
mov dword [ebp - 0x108], 1
push ecx
push edi
add esp, 4
or ecx, 0xcec4
and ecx, 0x2547
pop ecx
push ecx
sub ecx, 0xdc46
sub ecx, 0x11fc9
or ecx, 0x35d5
pop ecx
push edi
push eax
add esp, 4
add edi, 0xb773
pop edi
imul eax, dword [ebp - 0x108], 0xfe
add eax, 0x56f3663b
imul ecx, dword [ebp - 0x108], 0xfe
sub eax, ecx
xor eax, 0x153c
imul eax, dword [ebp - 0x108]
imul edx, dword [ebp - 0x108], 0xfe
sub eax, edx
mov dword [ebp - 0x10c], eax
push edi
push ebx
add esp, 4
add edi, 0xfbf0
add edi, 0x12f4
or edi, 0x16866
and edi, 0x1285e
pop edi
push esi
add esi, 0x12959
or esi, 0x15439
add esi, 0x504e
pop esi
push esi
xor esi, 0x16d9f
jmp 0x40324d
pop esi
push eax
push ecx
add esp, 4
xor eax, 0xb2de
or eax, 0xa4b2
sub eax, 0x11aa9
pop eax
push ecx
push edi
add esp, 4
and ecx, 0x15260
pop ecx
mov dword [ebp - 0x24], 1
push esi
call 0x403287
add byte [ecx + 0x48], al
inc ecx
dec esp
inc ebx
inc ecx
xor eax, dword [ebx + 0x525e04c4]
push ecx
add esp, 4
and edx, 0xb559
sub edx, 0xe1e7
sub edx, 0xda77
pop edx
push ebx
or ebx, 0x7239
pop ebx
imul eax, dword [ebp - 0x24], 0xfe
add eax, 0x56f3663b
imul ecx, dword [ebp - 0x24], 0xfe
sub eax, ecx
xor eax, 0
imul eax, dword [ebp - 0x24]
imul edx, dword [ebp - 0x24], 0xfe
sub eax, edx
mov dword [ebp - 0x28], eax
jmp 0x40348c
mov edx, dword [ebp - 0x1088]
mov eax, dword [ebp - 0x1084]
mov dword [ebp - 0x165c], edx
mov dword [ebp - 0x1658], eax
push eax
push edx
add esp, 4
xor eax, 0x16771
pop eax
push ebx
push edi
add esp, 4
sub ebx, 0x266f
or ebx, 0xdad1
pop ebx
push ecx
sub ecx, 0x38c8
jmp 0x406d91
and ecx, 0x233d
and ecx, 0x5c73
pop ecx
push ebx
sub ebx, 0x84cc
or ebx, 0x198c
add ebx, 0x9396
jmp 0x4034ef
pop ebx
push ecx
push ecx
add esp, 4
xor ecx, 0xcdd1
pop ecx
push eax
push edi
add esp, 4
xor eax, 0x726d
pop eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xfe
imul edx, dword [ebp - 0x24], 0xfe
add edx, 0x56f3663b
imul eax, dword [ebp - 0x24], 0xfe
sub edx, eax
xor ecx, edx
imul ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1e6c], ecx
Function at 0x40318f
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
or edi, 0x1865d
call 0x40318f
add byte [ecx + 0x3b], cl
dec edi
inc edi
inc eax
inc esp
inc ecx
dec edx
inc eax
add esp, 4
sub edi, 0x17748
pop edi
mov dword [ebp - 0x108], 1
push ecx
push edi
add esp, 4
or ecx, 0xcec4
and ecx, 0x2547
pop ecx
push ecx
sub ecx, 0xdc46
sub ecx, 0x11fc9
or ecx, 0x35d5
pop ecx
push edi
push eax
add esp, 4
add edi, 0xb773
pop edi
imul eax, dword [ebp - 0x108], 0xfe
add eax, 0x56f3663b
imul ecx, dword [ebp - 0x108], 0xfe
sub eax, ecx
xor eax, 0x153c
imul eax, dword [ebp - 0x108]
imul edx, dword [ebp - 0x108], 0xfe
sub eax, edx
mov dword [ebp - 0x10c], eax
push edi
push ebx
add esp, 4
add edi, 0xfbf0
add edi, 0x12f4
or edi, 0x16866
and edi, 0x1285e
pop edi
push esi
add esi, 0x12959
or esi, 0x15439
add esi, 0x504e
pop esi
push esi
xor esi, 0x16d9f
jmp 0x40324d
pop esi
push eax
push ecx
add esp, 4
xor eax, 0xb2de
or eax, 0xa4b2
sub eax, 0x11aa9
pop eax
push ecx
push edi
add esp, 4
and ecx, 0x15260
pop ecx
mov dword [ebp - 0x24], 1
push esi
call 0x403287
add byte [ecx + 0x48], al
inc ecx
dec esp
inc ebx
inc ecx
xor eax, dword [ebx + 0x525e04c4]
push ecx
add esp, 4
and edx, 0xb559
sub edx, 0xe1e7
sub edx, 0xda77
pop edx
push ebx
or ebx, 0x7239
pop ebx
imul eax, dword [ebp - 0x24], 0xfe
add eax, 0x56f3663b
imul ecx, dword [ebp - 0x24], 0xfe
sub eax, ecx
xor eax, 0
imul eax, dword [ebp - 0x24]
imul edx, dword [ebp - 0x24], 0xfe
sub eax, edx
mov dword [ebp - 0x28], eax
jmp 0x40348c
mov edx, dword [ebp - 0x1088]
mov eax, dword [ebp - 0x1084]
mov dword [ebp - 0x165c], edx
mov dword [ebp - 0x1658], eax
push eax
push edx
add esp, 4
xor eax, 0x16771
pop eax
push ebx
push edi
add esp, 4
sub ebx, 0x266f
or ebx, 0xdad1
pop ebx
push ecx
sub ecx, 0x38c8
jmp 0x406d91
and ecx, 0x233d
and ecx, 0x5c73
pop ecx
push ebx
sub ebx, 0x84cc
or ebx, 0x198c
add ebx, 0x9396
jmp 0x4034ef
pop ebx
push ecx
push ecx
add esp, 4
xor ecx, 0xcdd1
pop ecx
push eax
push edi
add esp, 4
xor eax, 0x726d
pop eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xfe
imul edx, dword [ebp - 0x24], 0xfe
add edx, 0x56f3663b
imul eax, dword [ebp - 0x24], 0xfe
sub edx, eax
xor ecx, edx
imul ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1e6c], ecx