joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58f980
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
push 0x6157fc
mov esi, ecx
call fcn.00403360
mov eax, dword [esi]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or edx, eax
jge 0x58f9af
push 0x104
mov ecx, esi
call fcn.00402400
push str.PETEMP_OW
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi]
test eax, eax
jne 0x58f9c6
xor ecx, ecx
jmp 0x58f9d8
push dword [eax - 8]
push eax
call fcn.005360d5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x58fa01
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x58fa01
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x58f9ff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
ret
push 0x80070057
call fcn.00401e70
int3

Function at 0x58fae0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x606040]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.005363c5
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.005360d5
add esp, 0x14
lea eax, [eax*2 + 2]
cmp eax, 0x20a
jae 0x58fbb1
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
xor eax, eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], eax
mov eax, 0x414
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x224], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00535334
mov esp, ebp
pop ebp
ret
call fcn.005388f5
int3
Function at 0x58fbc0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3813
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x606040]
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 dword [ebp - 0x10], esp
mov edi, ecx
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00539180
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x58fc42
push 0x5fd754
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x373
push eax
call fcn.00539115
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push str.CanonIJScan
push eax
call esi
push 0x607588
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x21c]
push eax
push 0xffffffffffffffff
push edi
push 0x5df290
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0x82
push 4
lea esi, [eax + 1]
neg esi
push 0
sbb esi, esi
push 0
and esi, eax
lea eax, [ebp - 0x21c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x58fcc1
push 0x5fd754
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x396
push eax
call fcn.00539115
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x208
lea eax, [ebp - 0x424]
inc esi
push 0
push eax
call fcn.00539180
push esi
lea eax, [ebp - 0x424]
push 0x5dd8d8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push eax
push edi
push 0x5df290
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x58fd35
push 0x5fd754
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x3aa
push eax
call fcn.00539115
mov eax, 0x58fd31
ret
mov al, 1
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.00535334
mov esp, ebp
pop ebp
ret
Function at 0x5900a0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3879
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x606040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x124]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x120]
or edi, 0xffffffff
cmp eax, 6
jne 0x59015a
cmp dword [ebp - 0x11c], 1
jbe 0x59015c
push 5
push 0
push 0
push dword [ebp + 8]
push 0x5df11c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x59013c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00535334
mov esp, ebp
pop ebp
ret
jae 0x590103
call fcn.0040a74d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x590178
push 0x80004005
call fcn.00401e70
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x12c], esi
mov byte [ebp - 4], 1
mov ecx, 1
mov dword [ebp - 0x128], 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5901c0
push 0x104
lea ecx, [ebp - 0x12c]
call fcn.00402400
mov esi, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
push eax
push esi
push 0x5df11c
push str..pdf
push 2
push 0x20
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.005360d5
add esp, 8
test eax, eax
js 0x590253
cmp eax, dword [esi - 8]
jg 0x590253
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
js 0x59022d
cmp dword [ebp - 0x128], ecx
je 0x59022d
add esi, 0xfffffff0
mov byte [ebp - 4], cl
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x590103
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x590103
add esi, 0xfffffff0
mov byte [ebp - 4], cl
or edi, 0xffffffff
mov eax, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x59024c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x59011b
push 0x80070057
call fcn.00401e70
int3
Function at 0x590260
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x606040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00539180
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x5df290
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
pop esi
test eax, eax
jne 0x5902b6
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00535334
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x5902a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00535334
mov esp, ebp
pop ebp
ret

Function at 0x590300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWARECanonIJ_Scan_Utility
push SysReAllocString
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x590339
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0
push 0
push str.OCRLang
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x590332
mov ax, word [ebp - 8]
mov word [edi], ax
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10450058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x104501a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1045007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1045006a
add dl, dl
jne 0x10450089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104500dc
xor eax, eax
add dl, dl
jne 0x10450096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1045017d
add dl, dl
jne 0x104500a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104500b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104500bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104500c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104500d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10450075
mov eax, 1
add dl, dl
jne 0x104500ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104500f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104500e1
sub eax, ebx
mov ebx, 1
jne 0x10450128
mov ecx, 1
add dl, dl
jne 0x1045010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10450119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10450105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10450075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1045013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1045014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10450136
cmp eax, 0x7d00
jae 0x1045016d
cmp eax, 0x500
jb 0x10450168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10450075
cmp eax, 0x7f
ja 0x10450170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10450075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1045019e
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 0x10450075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40eaa7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestMacroForEach.exe_gMozillaPoisonSize], eax
call fcn.0040ae7c
pop ecx
mov ecx, dword [sym.TestMacroForEach.exe_gMozillaPoisonSize]
mov dword [sym.TestMacroForEach.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40eadf
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestMacroForEach.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x7c2b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x365000]
push edi
jmp 0x7c2b2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7c2b31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c2b20
mov eax, 1
add ebx, ebx
jne 0x7c2b43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7c2b54
jne 0x7c2b73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c2b73
dec eax
add ebx, ebx
jne 0x7c2b60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7c2b38
add ebx, ebx
jne 0x7c2b6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7c2bc5
xor ecx, ecx
sub eax, 3
jb 0x7c2b8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7c2bfa
sar eax, 1
mov ebp, eax
jmp 0x7c2b96
add ebx, ebx
jne 0x7c2b96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c2b64
inc ecx
add ebx, ebx
jne 0x7c2ba4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c2b64
add ebx, ebx
jne 0x7c2bb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7c2ba6
jne 0x7c2bc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7c2ba6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7c2be4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7c2bd6
jmp 0x7c2b26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7c2be4
add edi, ecx
jmp 0x7c2b26
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7c2c02
cmp byte [edi], 0x11
jne 0x7c2c02
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 0x7c2c07
lea edi, [esi + 0x3bb000]
mov eax, dword [edi]
or eax, eax
je 0x7c2c7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x69f2dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x69f458]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7c2c34
mov ecx, edi
jns 0x7c2c63
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 + 0x69f45c]
or eax, eax
je 0x7c2c79
mov dword [ebx], eax
add ebx, 4
jmp 0x7c2c51
call dword [esi + 0x69f46c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7c2cb0
cmp al, 0xef
ja 0x7c2ca3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7c2c85
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7c2c92
mov ebp, dword [esi + 0x69f460]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x7c2ce4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x406910
Capabilities:
Read file via mapping

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
mov ebx, ecx
call fcn.00401050
mov dword [ebx], vtable.CBPakMemMap.0
mov ebp, dword [esi + 0xc]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x406938
mov edx, dword [eax + 4]
add edx, 9
jmp 0x40693d
mov edx, 9
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 4]
add eax, edx
xor edx, edx
div dword [0x894304]
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
mov edi, edx
je 0x40695e
mov edx, dword [ecx + 4]
add edx, 9
jmp 0x406963
mov edx, 9
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x406972
mov ecx, dword [eax + 4]
add ecx, 9
jmp 0x406977
mov ecx, 9
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + 8]
mov eax, dword [eax + 4]
sub ebp, edx
sub eax, edi
add ebp, edi
push ebp
add eax, ecx
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x2c]
push eax
push 0
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, edi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
mov eax, ebx
pop ebx
ret 4
Function at 0x409ab0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x7358d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov esi, ecx
push ebx
mov dword [esp + 0x14], esi
call fcn.00412570
xor edi, edi
mov dword [esi], vtable.CBPersistBinManager.0
mov dword [esp + 0x1c], edi
mov dword [esi + 0x30], vtable.CBArray_unsigned_short_int__.0
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0x64
mov dword [esi + 0x40], edi
push edi
mov dword [esi + 0x5c], vtable.CBHashTable_struct_TSectData___class_CBPersistObject__.0
mov ecx, dword [0x86fb70]
mov eax, dword [ecx]
push edi
push 0x1f40
mov byte [esp + 0x28], 1
call dword [eax + 8]
mov dword [esi + 0x68], eax
mov dword [esi + 0x60], 0x7d0
mov dword [esi + 0x64], edi
xor eax, eax
lea ebx, [ebx]
mov ecx, dword [esi + 0x68]
mov dword [eax + ecx], edi
add eax, 4
cmp eax, 0x1f40
jb 0x409b30
mov dword [esi + 0x6c], 0x411460
mov dword [esi + 0x70], 0x437aa0
push edi
mov dword [esi + 0x74], vtable.CBHashTable_unsigned_long_int__unsigned_short_int__.0
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
push edi
push 0x400
mov byte [esp + 0x28], 2
call dword [edx + 8]
mov dword [esi + 0x80], eax
mov dword [esi + 0x78], 0x100
mov dword [esi + 0x7c], edi
xor eax, eax
mov edi, edi
mov ecx, dword [esi + 0x80]
mov dword [eax + ecx], edi
add eax, 4
cmp eax, 0x400
jb 0x409b80
mov dword [esi + 0x84], fcn.00408940
mov dword [esi + 0x88], fcn.00410ab0
mov ebp, dword [esp + 0x24]
push ebp
mov byte [esp + 0x20], 3
mov dword [esi + 0x44], edi
mov dword [esi + 0xc], 1
call fcn.0040fbd0
add esp, 4
cmp ebx, edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x8c], edi
je 0x409bef
push edi
mov ecx, esi
call fcn.004092d0
mov edx, dword [esi + 0x44]
push edx
mov ecx, esi
call fcn.004114d0
cmp dword [esi + 4], edi
jne 0x409c1a
push edi
push 0xd0003
push ebp
call fcn.00401710
mov ebp, eax
add esp, 0xc
cmp ebp, edi
je 0x409c1a
push ebp
mov ecx, esi
call fcn.004099c0
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x409cd0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x7358d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
mov dword [esp + 0x10], esi
call fcn.00412570
mov dword [esi], vtable.CBPersistBinManager.0
mov dword [esp + 0x18], edi
mov dword [esi + 0x30], vtable.CBArray_unsigned_short_int__.0
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0x64
mov dword [esi + 0x40], edi
push edi
mov dword [esi + 0x5c], vtable.CBHashTable_struct_TSectData___class_CBPersistObject__.0
mov ecx, dword [0x86fb70]
mov eax, dword [ecx]
push edi
mov ebx, 1
push 0x1f40
mov byte [esp + 0x24], bl
call dword [eax + 8]
mov dword [esi + 0x68], eax
mov dword [esi + 0x60], 0x7d0
mov dword [esi + 0x64], edi
xor eax, eax
lea esp, [esp]
mov ecx, dword [esi + 0x68]
mov dword [eax + ecx], edi
add eax, 4
cmp eax, 0x1f40
jb 0x409d50
mov dword [esi + 0x6c], 0x411460
mov dword [esi + 0x70], 0x437aa0
push edi
mov dword [esi + 0x74], vtable.CBHashTable_unsigned_long_int__unsigned_short_int__.0
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
push edi
push 0x400
mov byte [esp + 0x24], 2
call dword [edx + 8]
mov dword [esi + 0x80], eax
mov dword [esi + 0x78], 0x100
mov dword [esi + 0x7c], edi
xor eax, eax
mov edi, edi
mov ecx, dword [esi + 0x80]
mov dword [eax + ecx], edi
add eax, 4
cmp eax, 0x400
jb 0x409da0
mov dword [esi + 0x84], fcn.00408940
mov dword [esi + 0x88], fcn.00410ab0
mov dword [esi + 0xc], ebx
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x44], edi
mov edx, dword [ebx]
mov ecx, ebx
mov byte [esp + 0x18], 3
call dword [edx + 0x34]
push eax
call fcn.0040fbd0
add esp, 4
push ebx
mov ecx, esi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x8c], edi
call fcn.004099c0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x412ac0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov edx, 1
mov dword [ecx + 4], eax
mov dword [ecx + 0x9cc], 0
mov dword [ecx + 0x9d0], 0x9908b0df
mov dword [ecx + 8], eax
mov dword [ecx + 0x9c8], edx
push edi
lea ebx, [ebx]
mov eax, dword [ecx + 0x9c8]
mov edi, dword [ecx + eax*4 + 4]
imul edi, edi, 0x10dcd
mov dword [ecx + eax*4 + 8], edi
add dword [ecx + 0x9c8], edx
cmp dword [ecx + 0x9c8], 0x270
jb 0x412af0
pop edi
ret 4

Function at 0x412b20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [ecx + 0x9c8], 0x270
jb 0x412bdf
push ebx
push esi
push edi
lea edi, [ecx + 8]
mov edx, edi
mov esi, 0xe3
lea ecx, [ecx]
mov eax, dword [edx + 4]
xor eax, dword [edx]
add edx, 4
and eax, 0x7fffffff
xor eax, dword [edx - 4]
mov ebx, eax
shr eax, 1
and ebx, 1
xor eax, dword [ecx + ebx*4 + 0x9cc]
xor eax, dword [edx + 0x630]
sub esi, 1
mov dword [edx - 4], eax
jne 0x412b40
lea edx, [ecx + 0x394]
mov esi, 0x18c
mov eax, dword [edx + 4]
xor eax, dword [edx]
add edx, 4
and eax, 0x7fffffff
xor eax, dword [edx - 4]
mov ebx, eax
shr eax, 1
and ebx, 1
xor eax, dword [ecx + ebx*4 + 0x9cc]
xor eax, dword [edx - 0x390]
sub esi, 1
mov dword [edx - 4], eax
jne 0x412b77
mov eax, dword [ecx + 0x9c4]
xor eax, dword [edi]
pop edi
and eax, 0x7fffffff
xor eax, dword [ecx + 0x9c4]
pop esi
mov edx, eax
and edx, 1
mov edx, dword [ecx + edx*4 + 0x9cc]
xor edx, dword [ecx + 0x638]
shr eax, 1
xor edx, eax
mov dword [ecx + 0x9c4], edx
mov dword [ecx + 0x9c8], 0
pop ebx
mov eax, dword [ecx + 0x9c8]
mov edx, dword [ecx + eax*4 + 8]
add eax, 1
mov dword [ecx + 0x9c8], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov ecx, edx
and ecx, 0xff3a58ad
shl ecx, 7
xor edx, ecx
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x413f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x735f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], vtable.CBArray_class_CBStr_.0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x34]
mov eax, edi
neg eax
sbb eax, eax
lea edx, [esp + 0xc]
and eax, edx
push eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x30], esi
call fcn.00413d40
cmp edi, esi
mov ebp, eax
je 0x413fb0
cmp ebp, esi
jbe 0x413fb0
push ebx
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x14]
call dword [edx + 0x14]
mov eax, dword [eax]
push eax
call fcn.0071ed91
mov edx, dword [edi]
add esp, 4
push esi
mov ecx, edi
mov ebx, eax
call dword [edx + 0x14]
add esi, 1
cmp esi, ebp
mov dword [eax], ebx
jb 0x413f83
xor esi, esi
pop ebx
mov eax, dword [esp + 0x10]
cmp eax, esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], vtable.CBArray_class_CBStr_.0
je 0x413fe5
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00412de0
push ecx
push 8
push eax
call fcn.0071f0d2
push esi
call fcn.0040fa80
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x415050
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x735ff8
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
mov dword [esp + 0x18], 0
call dword [eax + 0x60]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x20]
mov edx, edi
mov dword [edx], eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0x10], ecx
mov dword [edi + 0x14], 0
cmp dword [esi + 8], 0
jne 0x4150b0
mov dword [esi + 8], edi
jmp 0x4150b6
mov edx, dword [esi + 0xc]
mov dword [edx + 0x14], edi
add dword [esi + 4], 1
test eax, eax
mov dword [esi + 0xc], edi
mov dword [esp + 0x18], 0xffffffff
je 0x4150de
test cl, 2
je 0x4150de
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
mov ecx, dword [esp + 0x30]
test ebx, ebx
jne 0x4150f7
test ebp, ebp
je 0x4150f7
test cl, 4
je 0x4150f7
mov ecx, dword [0x86fb70]
mov eax, dword [ecx]
push ebp
call dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x14