joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x408344]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405cd2
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405ccd
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405ccd
mov esi, edx
add edx, 0x10
jmp 0x405cb6
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x405de6
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405de6
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405de4
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x405de4
mov cl, byte [edx]
sub cl, 0x3c
jne 0x405d1a
jmp 0x405de4
sub cl, 3
jne 0x405d34
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x405ddf
inc cl
jne 0x405d48
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x405ddf
inc cl
jne 0x405d5c
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x405d6f
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x405d79
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x405dd6
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x405d8c
cmp byte [ebp - 0x25], 0
jne 0x405dd4
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x405dc2
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x405d9d
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x405de6
jmp 0x405de4
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x405d0c
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4062bc
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.00406298
call fcn.00403430
mov dword [0x408344], eax
lea edx, [eax + 0x18]
mov dword [0x4083a4], edx
pop edx
call fcn.00406118
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x408370], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x408384], eax
mov dword [0x4083ac], eax
call fcn.00403060
cmp eax, 3
setb byte [0x40834d]
call fcn.00404080
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x406548
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x4081ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4081f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4081e0
mov eax, 1
add ebx, ebx
jne 0x408203
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4081f8
jne 0x408214
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4081f8
xor ecx, ecx
sub eax, 3
jb 0x408228
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40829a
mov ebp, eax
add ebx, ebx
jne 0x408233
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408240
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408264
inc ecx
add ebx, ebx
jne 0x408250
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408245
jne 0x408261
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408245
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408284
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408275
jmp 0x4081e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408284
add edi, ecx
jmp 0x4081e6
pop esi
mov edi, esi
mov ecx, 0x1f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4082a2
cmp byte [edi], 0
jne 0x4082a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4082a7
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x40831f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x82dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x837c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4082d4
mov ecx, edi
jns 0x408303
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8380]
or eax, eax
je 0x408319
mov dword [ebx], eax
add ebx, 4
jmp 0x4082f1
call dword [esi + 0x8390]
mov ebp, dword [esi + 0x8384]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x408353
sub esp, 0xffffff80
jmp 0x4012e5
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x25bc008], 0x8088405
inc edx
mov dword [ebx + 0x25bc008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
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 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x25a3a63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x25a3a6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x25a4473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x25be2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x25be2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x25bd10c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x25a447a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd9f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x443004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x18], ebx
mov dword [ebx + 0x10], 0
jb 0x401b96
mov eax, dword [ebx]
jmp 0x401b98
mov eax, ebx
mov byte [eax], 0
mov dword [ebp - 4], 0
lea eax, [ebx + 0x50]
mov dword [ebp - 0x10], eax
lea edi, [eax + 4]
mov dword [ebx + 0x18], 0
lea esi, [edi + 4]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebp - 0x10], edi
mov dword [eax], 0
push 0
fldz
fstp dword [edi]
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b2b0
mov dword [esi], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 2
mov ecx, edi
fld1
push 8
fstp dword [edi]
call fcn.0040a710
mov byte [ebp - 4], 3
lea eax, [ebx + 0x74]
mov dword [ebp - 0x14], eax
lea edi, [eax + 4]
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
mov dword [eax], 0
push 0
fldz
fstp dword [edi]
mov dword [ebp - 0x10], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b2b0
mov dword [esi], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 5
mov ecx, edi
fld1
push 8
fstp dword [edi]
call fcn.0040a710
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
mov dword [ebx + 0xc0], 0
mov eax, ebx
mov dword [ebx + 0xc4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fdc8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x443004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x401ff0
mov eax, dword [edi]
jmp 0x401ff2
mov eax, edi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0
push esi
mov byte [eax], 0
call fcn.00409370
mov dword [ebp - 4], 0
lea ecx, [edi + 0x90]
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
movzx eax, byte [esi + 0x28]
mov byte [edi + 0x28], al
movzx eax, byte [esi + 0x29]
mov byte [edi + 0x29], al
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
movzx eax, byte [esi + 0x38]
mov byte [edi + 0x38], al
movzx eax, byte [esi + 0x39]
mov byte [edi + 0x39], al
movzx eax, byte [esi + 0x3a]
mov byte [edi + 0x3a], al
movzx eax, byte [esi + 0x3b]
mov byte [edi + 0x3b], al
movzx eax, byte [esi + 0x3c]
mov byte [edi + 0x3c], al
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
movzx eax, byte [esi + 0x50]
mov byte [edi + 0x50], al
movzx eax, byte [esi + 0x51]
mov byte [edi + 0x51], al
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [edi + 0x68], eax
movzx eax, byte [esi + 0x6c]
mov byte [edi + 0x6c], al
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
movzx eax, byte [esi + 0x78]
mov byte [edi + 0x78], al
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x7c], eax
movzx eax, byte [esi + 0x80]
mov byte [edi + 0x80], al
movzx eax, byte [esi + 0x81]
mov byte [edi + 0x81], al
movzx eax, byte [esi + 0x82]
mov byte [edi + 0x82], al
mov eax, dword [esi + 0x88]
mov dword [edi + 0x88], eax
mov eax, dword [esi + 0x8c]
mov dword [edi + 0x8c], eax
lea eax, [esi + 0x90]
push 0xffffffffffffffff
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
push 0
push eax
call fcn.00409370
mov eax, dword [esi + 0xa8]
mov dword [edi + 0xa8], eax
mov eax, dword [esi + 0xac]
mov dword [edi + 0xac], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402580
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4025c4
push str.ERROR:_kernel32.dll_library_failed_to_load__r_n
call fcn.00402820
add esp, 4
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a002
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetActiveProcessorGroupCount
push esi
call edi
test eax, eax
je 0x402692
call eax
mov ecx, dword [0x4443d4]
mov word [ecx], ax
cmp ax, 0x20
jbe 0x40261d
movzx eax, ax
push eax
push str.ERROR:_pActiveGroupsAndProcs__wActiveGroupCount___d_r_n
call fcn.00402820
push 0x20
push str.ERROR:_Incorrect_value__there_can_be_max__d_groups_in_the_system_r_n
call fcn.00402820
add esp, 0x10
xor al, al
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a002
mov esp, ebp
pop ebp
ret
push str.GetActiveProcessorCount
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x40266b
mov ecx, dword [0x4443d4]
xor eax, eax
xor edi, edi
mov dword [0x4443d0], 0
cmp ax, word [ecx]
jae 0x402704
movzx eax, di
push edi
lea esi, [ecx + eax*4]
call ebx
mov dword [esi + 4], eax
inc edi
add dword [0x4443d0], eax
mov ecx, dword [0x4443d4]
cmp di, word [ecx]
jb 0x402648
jmp 0x402704
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_GetActiveProcessorCount_address_not_obtained_with_error:__d.__r_n
call fcn.00402820
add esp, 8
xor al, al
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a002
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4443d4]
mov ecx, 1
mov word [eax], cx
mov dword [eax + 4], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x4443d4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
mov dword [0x4443d0], eax
cmp dword [0x4443d0], 1
jae 0x4026fe
mov eax, dword [0x4443d4]
push dword [eax + 4]
push str.ERROR:_Processor_count___d_n
call fcn.00402820
push str.ERROR:_Incorrect_value__there_has_to_be_at_least_1_processor_in_the_system_n
call fcn.00402820
add esp, 0xc
xor al, al
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a002
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4443d4]
cmp word [ecx], 1
ja 0x402713
cmp dword [0x4443d0], 0x40
jbe 0x40272f
mov eax, dword [0x4443d0]
push eax
mov eax, dword [0x4443d4]
movzx eax, word [eax]
push eax
push str.WARNING:_Complete_CPU_utilization_cannot_currently_be_gathered_within_DISKSPD_for_this_system._n_________Use_alternate_mechanisms_to_gather_this_data_such_as_perfmon_logman._n_________Active_KGroups__u___1_and_or_processor_count__u___64._n
call fcn.00402820
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0041a002
mov esp, ebp
pop ebp
ret
Function at 0x4052d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x4053a7
cmp byte [eax + 1], 0x3a
jne 0x4053a7
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00420ac2
add esp, 0xc
test eax, eax
je 0x405327
mov eax, 0x6f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a002
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp - 0x108], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x108]
je 0x405379
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edi, edi
cmp byte [esi], 0x5c
jne 0x405372
cmp edi, 3
jl 0x405372
lea eax, [ebp - 0x108]
mov byte [esi], 0
push eax
call ebx
cmp eax, 0xffffffff
jne 0x40536f
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40538e
mov byte [esi], 0x5c
inc esi
inc edi
cmp byte [esi], 0
jne 0x405341
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a002
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a002
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 0x32
xor ecx, ebp
call fcn.0041a002
mov esp, ebp
pop ebp
ret 4
Function at 0x405740
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 2
test eax, eax
je 0x4057b3
push ebx
jmp 0x405760
mov eax, dword [edi]
lea ebx, [esi*4]
cmp dword [ebx + eax], 0
jne 0x405786
push 0x7c2
push str.....IORequestGeneratorIORequestGenerator.cpp
push str.NULL___vhThreads_x_
call fcn.0042231d
add esp, 0xc
mov eax, dword [edi]
push 0
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x4057a5
push esi
push str.Warning:_unable_to_terminate_worker_thread__u_n
call fcn.00402820
add esp, 8
mov eax, dword [edi + 4]
inc esi
sub eax, dword [edi]
sar eax, 2
cmp esi, eax
jb 0x405760
pop ebx
pop edi
pop esi
pop ebp
ret 4