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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1003f4da
cmp byte [esi + 0x3d], 0
je 0x1003f4da
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1003f4c8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1003f490
sub eax, 1
je 0x1003f494
sub eax, 2
jne 0x1003f4c8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1003f4b1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10063889
add esp, 0x10
cmp edi, eax
jne 0x1003f4c8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret

Function at 0x10046c22
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x10046c99
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10046c5f
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x10046c5f
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x10046c8c
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x10046c8f
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10046c85
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1007c4ac]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x10046c42
test eax, eax
je 0x10046ce0
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.10046f11
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1007c4ac]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1006eb85
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006e9fb
Function at 0x10079040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007906d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007906d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x23ff605b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x53ee5fa5
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x48ea56c7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
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
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x48f43266
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0xca80b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0xca8200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xca80d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xca80c2
add dl, dl
jne 0xca80e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xca8134
xor eax, eax
add dl, dl
jne 0xca80ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xca81d5
add dl, dl
jne 0xca80fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca8108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca8113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca811e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xca812a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xca80cd
mov eax, 1
add dl, dl
jne 0xca8142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca814d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xca8139
sub eax, ebx
mov ebx, 1
jne 0xca8180
mov ecx, 1
add dl, dl
jne 0xca8166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xca8171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xca815d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xca80cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xca8197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xca81a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xca818e
cmp eax, 0x7d00
jae 0xca81c5
cmp eax, 0x500
jb 0xca81c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xca80cd
cmp eax, 0x7f
ja 0xca81c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xca80cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xca81f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xca80cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x75d438e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x4e481acf
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x4071f1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00406eb1
Function at 0x40a180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40a188
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a19b
test al, 0x10
je 0x40a19b
mov al, 1
ret
xor al, al
ret

Function at 0x40e300
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
cmp eax, 2
je 0x40e367
cmp eax, 1
je 0x40e367
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
shrd ecx, eax, 0x14
shr eax, 0x14
test eax, eax
jne 0x40e401
cmp ecx, 0x2200
ja 0x40e401
push eax
push ecx
call fcn.00440bc0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
shrd ecx, eax, 0x14
shr eax, 0x14
test eax, eax
jne 0x40e401
cmp ecx, 0x2200
ja 0x40e401
test eax, eax
jne 0x40e3ee
cmp ecx, 0x1c00
ja 0x40e3ee
test eax, eax
jne 0x40e3db
cmp ecx, 0xe00
ja 0x40e3db
test eax, eax
jne 0x40e3c8
cmp ecx, 0xa00
ja 0x40e3c8
mov eax, 0x300
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret
mov eax, 0x400
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret
mov eax, 0x800
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret
mov eax, 0xc00
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x1000
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret

Function at 0x40e850
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax + 0x14], 8
mov edi, edx
mov ebx, ecx
jb 0x40e872
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR120.dll__wtoi]
mov esi, eax
add esp, 4
cmp esi, 0x100
jb 0x40e8e7
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0x2000
push eax
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x40]
shrd ecx, eax, 0x14
shr eax, 0x14
cmp ecx, 0x2000
lea eax, [ebp - 0x50]
mov dword [ebp - 0xc], ecx
cmovle eax, edx
cmp esi, dword [eax]
ja 0x40e8e7
mov ecx, dword [ebx]
lea eax, [ebp - 0xc]
push eax
push str.advancedSettings.memorySize
mov dword [ebp - 0xc], esi
call fcn.0040c970
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret
push 0x10
push str.parameter_error_
mov ecx, edi
call fcn.00404400
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443690
mov esp, ebp
pop ebp
ret
Function at 0x411fa0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
sub eax, edi
sar eax, 6
cmp ebx, eax
jge 0x412187
mov esi, dword [ebp + 0x18]
mov edx, ebx
shl edx, 6
mov dword [ebp + 0xc], edx
lea esp, [esp]
push dword [edx + edi]
mov ecx, esi
call fcn.00434a50
test al, al
je 0x411feb
mov ecx, dword [ebp + 0xc]
mov dword [ecx + edi + 0x3c], 3
jmp 0x412007
mov eax, dword [ebp + 0xc]
mov ecx, esi
push dword [eax + edi]
call fcn.00434af0
mov ecx, dword [ebp + 0xc]
test al, al
je 0x412007
mov dword [ecx + edi + 0x3c], 4
cmp byte [ebp + 0x10], 0
mov eax, dword [ecx + edi]
mov esi, eax
je 0x41201a
or esi, 0x1000000
jmp 0x412028
cmp byte [ebp + 0x14], 0
je 0x412028
mov esi, eax
or esi, 0x5000000
push eax
lea eax, [ebp - 0x1c]
mov dword [ecx + edi + 0x3c], 0
mov ecx, dword [ebp + 0x18]
push eax
call fcn.00434170
cmp dword [eax + 0x14], 8
jb 0x412045
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [ebp - 8], 8
jb 0x412062
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
cmp eax, 5
jne 0x41208c
mov dword [edx + edi + 0x3c], 1
mov ecx, dword [edx + edi + 0x1c]
test ecx, ecx
je 0x412165
lea eax, [edx + 0x20]
add eax, edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp + 0xc]
push str.TheRender
push str.RenderWindow
push 0
push dword [eax + edi + 0x1c]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edx, dword [ebp + 0xc]
mov dword [edx + edi + 0x24], eax
test eax, eax
je 0x412165
push 0x44dfb4
push str.subWin
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edx, dword [ebp + 0xc]
mov ecx, eax
cmp dword [edx + edi + 0x24], 0
mov dword [edx + edi + 0x28], ecx
je 0x412165
lea eax, [edx + 0x2c]
add eax, edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [ebp + 0xc]
cmp dword [edx + edi + 0x3c], 1
je 0x412165
push dword [edx + edi]
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
push eax
call fcn.00434170
cmp dword [eax + 0x14], 8
jb 0x41211e
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [ebp - 8], 8
jb 0x41213b
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, 5
setne cl
inc ecx
mov dword [edx + edi + 0x3c], ecx
mov eax, dword [ebp + 8]
inc ebx
mov dword [edx + edi], esi
add edx, 0x40
mov esi, dword [ebp + 0x18]
mov dword [ebp + 0xc], edx
mov edi, dword [eax]
mov eax, dword [eax + 4]
sub eax, edi
sar eax, 6
cmp ebx, eax
jl 0x411fd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x416f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4460b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x417117
cmp byte [edi + 0x45], 0
je 0x417117
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x416ff0
xor al, al
jmp 0x417119
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.0041bec0
mov dword [esp + 0x40], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmp ebx, 0x10
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x41704f
dec eax
je 0x417053
sub eax, 2
je 0x4170fd
xor bl, bl
jmp 0x4170ff
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, ecx
sub esi, eax
je 0x41708b
push dword [edi + 0x50]
cmp ebx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x417048
cmp byte [edi + 0x45], 0
je 0x4170fd
test esi, esi
jne 0x417004
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x4170f2
lea esi, [ecx + 8]
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00404370
test al, al
je 0x417004
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
cmovae ecx, dword [esp + 0x18]
movq qword [ecx + eax], xmm0
lea eax, [esp + 0x18]
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], esi
cmovae eax, dword [esp + 0x18]
mov byte [eax + esi], 0
jmp 0x417004
push str.string_too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x417113
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x417119
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00443690
mov esp, ebp
pop ebp
ret
Function at 0x41fdb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44692a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], eax
mov byte [esi + 0x30], al
sub esp, 8
mov byte [ebp - 4], 2
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
call fcn.00420a10
mov dword [esi + 0x48], eax
lea eax, [esi + 0x50]
mov byte [ebp - 4], 3
push 2
push eax
call dword [sym.imp.MSVCP120.dll__Mtx_init]
add esp, 8
test eax, eax
je 0x41fe3e
push eax
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
lea eax, [esi + 0x54]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.MSVCP120.dll__Cnd_init]
add esp, 4
test eax, eax
je 0x41fe5d
push eax
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
mov dword [esi + 0x58], 0
mov byte [esi + 0x5c], 0
mov byte [ebp - 4], 6
lea ecx, [esi + 0x64]
mov word [esi + 0x60], 0
call fcn.00422a40
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x6c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421c50
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446b7b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004216f0
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x230]
push eax
push 0
mov dword [ebp - 0x230], 0
call esi
test eax, eax
je 0x421ca9
cmp eax, 0x6f
jne 0x421cd8
push dword [ebp - 0x230]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x234], edi
test edi, edi
je 0x421cd8
lea eax, [ebp - 0x230]
push eax
push edi
call esi
test eax, eax
je 0x421cf6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret
xor eax, eax
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x1b], eax
mov esi, edi
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
jmp 0x421d10
mov eax, dword [esi + 0x194]
lea ecx, [ebp - 0x1c]
cmp eax, dword [ecx]
jne 0x421d2c
mov eax, dword [esi + 0x198]
cmp eax, dword [ecx + 4]
je 0x421e3b
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push eax
call sub.MSVCR120.dll_memset
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push 0x4506e4
push 0xffffffffffffffff
lea eax, [ebp - 0x22c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
xor eax, eax
mov dword [ebp - 0x238], 7
add esp, 0x34
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
cmp word [ebp - 0x22c], ax
je 0x421dd1
lea eax, [ebp - 0x22c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421dc2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00404400
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24c]
mov edi, dword [ebx]
push eax
push dword [edi + 4]
push edi
call fcn.00421e70
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [ebx + 4]
sub ecx, eax
cmp ecx, 1
jb 0x421e5e
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [eax], edx
cmp dword [ebp - 0x238], 8
jb 0x421e3b
push dword [ebp - 0x24c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [esi]
test esi, esi
jne 0x421d10
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
cmp dword [ebx + 4], eax
setne al
jmp 0x421cda
push str.list_T__too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
int3