joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d3f56
Capabilities:
Encode data using xor

Disassembly:
push ebp
scasd eax, dword es:[edi]
or cl, byte [ecx - 0x1d82ece5]
fsub dword [edx + edx*8]
mov bh, 0xa3
sti
xor al, 0x97
adc eax, 0xdaa261
sub dl, bh
push esi
std
dec edx
inc eax
jp 0x5d3f63
int 0x26
mov ebx, 0x551773bd
and al, bl
jne 0x5d3fa1
mov dh, 0x8a
and al, 0x57
cmpsd dword [esi], dword es:[edi]
mov edx, 0x102a332e
lds esp, [ebx + edx*8 + 0x2a9a076f]
movsd dword es:[edi], dword [esi]
mov dword [eax], ebx
popal
movsb byte es:[edi], byte [esi]
xor eax, 0xc4d205c3
push 0xffffffffffffff8d
xchg byte [esi + eax - 0x17], ah
sahf
invalid

Function at 0x65795d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f3f8
cmp edx, dword [eax]
je 0x65797f
add eax, 8
inc ecx
cmp eax, 0x65f488
jl 0x657970
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f3f8]
jne 0x657aad
mov eax, dword [0xa5bdd8]
cmp eax, 1
je 0x657a87
test eax, eax
jne 0x6579b0
cmp dword [0x65f324], 1
je 0x657a87
cmp edx, 0xfc
je 0x657aad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6579e7
lea eax, [ebp - 0x1a4]
push 0x65c9e0
push eax
call fcn.00658340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006587d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x657a2a
lea eax, [ebp - 0x1a4]
push eax
call fcn.006587d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c9dc
push edi
call fcn.0065a6a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c9c0
push eax
call fcn.00658340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00658350
lea eax, [ebp - 0xa0]
push 0x65c9bc
push eax
call fcn.00658350
push dword [esi + 0x65f3fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00658350
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c994
push eax
call fcn.0065a614
add esp, 0x2c
pop edi
jmp 0x657aad
lea eax, [ebp + 8]
lea esi, [esi + 0x65f3fc]
push 0
push eax
push dword [esi]
call fcn.006587d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100093c0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x100098e0
test edx, edx
je 0x100098e0
call fcn.100093d7
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x10009920
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.100093c0
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x10009991
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x10009956
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

Function at 0x100191d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1010f770]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
sub esp, 0x18
mov eax, esp
push str.CLSID_sInprocServer32
movdqu xmmword [eax], xmm0
movq xmm0, qword [ebp + 0x18]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movdqu xmm0, xmmword [ebp + 8]
sub esp, 0x18
mov eax, esp
push str.CLSID_s
movdqu xmmword [eax], xmm0
movq xmm0, qword [ebp + 0x18]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 0x1c], 8
jb 0x10019272
push dword [ebp + 8]
call fcn.1005f16c
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1005f171
mov esp, ebp
pop ebp
ret

Function at 0x1001abd0
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.1001ace0
push 0
test eax, eax
je 0x1001ac09
push 0
push dword [ebp + 8]
push 0x1001c490
push 0
push 0
call fcn.1005ff20
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.100605ea
int3
Function at 0x1001f760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1010f770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x1001f81b
test edx, edx
je 0x1001f81b
test esi, esi
je 0x1001f81b
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1001f7bd
mov esi, 0x80070005
jmp 0x1001f7f4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001f7c2
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x8000ffff
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001f809
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f171
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80004003
pop edi
xor ecx, ebp
pop esi
call fcn.1005f171
mov esp, ebp
pop ebp
ret

Function at 0x10020550
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1010f770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0
push 0
push eax
call fcn.10065910
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10020614
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10020614
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x100205c0
lea eax, [ebp - 0x20c]
test eax, eax
je 0x10020606
cmp word [ebp - 0x20c], 0x5a
jne 0x10020606
cmp word [ebp - 0x20a], 0x68
jne 0x10020606
cmp word [ebp - 0x208], 0x75
jne 0x10020606
cmp word [ebp - 0x206], 0x44
jne 0x10020606
cmp word [ebp - 0x204], 0x6f
jne 0x10020606
cmp word [ebp - 0x202], 0x6e
je 0x1002062d
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x100205c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f171
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1005f171
mov esp, ebp
pop ebp
ret
Function at 0x10020ec0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1010f770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push 0
push 0x410
mov edi, edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x208
mov esi, eax
call fcn.1005e9d1
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10065910
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
cmp word [ebp - 0x210], 0
jne 0x10020f45
xor eax, eax
jmp 0x10020f5f
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10020f50
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.1001a3a0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005f171
mov esp, ebp
pop ebp
ret
Function at 0x10022210
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x1010f770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x808], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x80c], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0x810], 0
call fcn.10065910
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10022273
mov esi, dword [esi]
mov ecx, dword [ebp - 0x80c]
cmp dword [ecx + 0x14], 8
jb 0x10022281
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x808]
cmp dword [eax + 0x14], 8
jb 0x1002228f
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x10022297
mov ebx, dword [ebx]
push esi
push 0x400
lea edx, [ebp - 0x804]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x804], ax
jne 0x100222cd
xor ecx, ecx
jmp 0x100222e5
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100222d6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.1001a3a0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005f171
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10024510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6fba
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1010f770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.1005edc2
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x100245b6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.100625b2
push 0x1010db0c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.1006607b
push edi
push esi
call fcn.1005ec95
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005f171
mov esp, ebp
pop ebp
ret 4

Function at 0x10024ff0
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1010f770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [0x10111538]
mov ebx, eax
test edi, edi
je 0x10025036
mov ecx, ebx
sub ecx, dword [0x10114ab4]
cmp ecx, 0x3e8
jae 0x10025036
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f171
mov esp, ebp
pop ebp
ret
push esi
push 0x3c
mov dword [ebp - 8], 0
call fcn.1006062f
mov esi, eax
add esp, 4
test esi, esi
jne 0x10025061
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f171
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
lea eax, [ebp - 8]
push 0
push eax
push esi
call edi
cmp eax, 0x7a
jne 0x100250b6
push esi
call fcn.1005f7c4
mov eax, dword [ebp - 8]
add esp, 4
cmp eax, 0xb2c
ja 0x100250c3
push eax
call fcn.1006062f
mov esi, eax
add esp, 4
test esi, esi
jne 0x100250ad
mov eax, dword [0x10111538]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f171
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push esi
call edi
test eax, eax
je 0x100250d4
push esi
call fcn.1005f7c4
add esp, 4
mov dword [0x10111538], 1
mov eax, 1
jmp 0x10025108
mov edx, dword [esi]
xor ecx, ecx
test edx, edx
je 0x100250f3
lea eax, [esi + 4]
nop
cmp dword [eax], 0
jne 0x100250eb
cmp dword [eax + 4], 0
je 0x100250ba
inc ecx
add eax, 0x38
cmp ecx, edx
jb 0x100250e0
push esi
call fcn.1005f7c4
add esp, 4
mov dword [0x10111538], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov dword [0x10114ab4], ebx
xor ecx, ebp
pop ebx
call fcn.1005f171
mov esp, ebp
pop ebp
ret
Function at 0x100253c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
lea ecx, [ecx]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x100253e0
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
dec ecx
nop
xor eax, eax
xor esi, esi
mov dword [ebp - 4], eax
test ecx, ecx
je 0x100254fc
nop
mov ecx, dword [ebx + 4]
dec ecx
shl esi, cl
add esi, esi
mov dword [ebp - 8], esi
jmp 0x10025440
mov edi, dword [ebx]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x1002548c
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
dec esi
jne 0x10025453
jmp 0x1002549a
cmp eax, 0x4e0
jb 0x1002549a
mov ecx, edi
call fcn.100255d0
mov eax, dword [edi]
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [ebx + 8]
ja 0x10025440
mov esi, dword [ebp - 8]
mov ecx, dword [ebx + 4]
or esi, eax
mov eax, dword [ebp - 4]
dec ecx
shl eax, cl
mov ecx, dword [ebp + 8]
add eax, eax
or eax, dword [ebx + 8]
dec ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x10025430
xor edx, edx
div dword [ebp + 8]
mov ecx, eax
mov edi, edx
xor edx, edx
mov eax, esi
div dword [ebp + 8]
cmp eax, ecx
jb 0x1002551c
mov ecx, dword [ebp + 8]
dec ecx
cmp edi, ecx
jne 0x10025420
mov eax, esi
xor edx, edx
div dword [ebp + 8]
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10025530
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov edi, edi
mov ecx, dword [edi + 4]
dec ecx
shl ebx, cl
add ebx, ebx
jmp 0x10025550
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x10025564
mov ecx, esi
call fcn.10025690
jmp 0x10025572
cmp eax, 0x4e0
jb 0x10025572
mov ecx, esi
call fcn.100255d0
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [edi + 8]
ja 0x10025550
mov eax, dword [ebp - 4]
or ebx, ecx
add eax, dword [edi + 4]
mov dword [ebp - 4], eax
cmp eax, 0x20
jb 0x10025540
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
dec ecx
jne 0x100255e0
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi]
lea esi, [esi + 4]
xor ecx, dword [esi]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
dec edi
jne 0x10025620
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
lea esp, [esp]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
dec esi
jne 0x100256a0
pop esi
ret
Function at 0x100257b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1010f770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10114b24]
mov dword [ebp - 0x214], 0
push esi
mov esi, ecx
push edi
test al, 1
jne 0x1002580b
or eax, 1
mov dword [0x10114b3c], 7
mov dword [0x10114b24], eax
xor eax, eax
push 0x100d7e60
mov dword [0x10114b38], 0
mov word [0x10114b28], ax
call fcn.1005fc2b
add esp, 4
cmp dword [0x10114b38], 0
jne 0x100258f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10065910
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x210], 0
jne 0x10025856
xor ecx, ecx
jmp 0x1002586f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10025860
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, 0x10114b28
push eax
call fcn.1001a3a0
mov edx, 0x10114b28
lea ecx, [ebp - 0x22c]
call fcn.100256e0
mov edi, eax
cmp edi, 0x10114b28
je 0x100258d9
cmp dword [0x10114b3c], 8
jb 0x100258b2
push dword [0x10114b28]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [0x10114b3c], 7
push edi
mov ecx, 0x10114b28
mov dword [0x10114b38], 0
mov word [0x10114b28], ax
call fcn.1001ed20
cmp dword [ebp - 0x218], 8
jb 0x100258f0
push dword [ebp - 0x22c]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x10114b28
mov word [esi], ax
call fcn.10019d50
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1005f171
mov esp, ebp
pop ebp
ret
Function at 0x10025930
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x10025a4d
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10025944
sub edx, ecx
sar edx, 1
je 0x10025a4d
cmp word [ebx + 2], 0x3a
jne 0x10025a4d
cmp word [ebx + 4], 0x5c
jne 0x10025a4d
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10025976
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005e9d1
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x100259c6
push 2
push 0x101028f0
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp - 4], 1
push 0x5c
push eax
call fcn.10062d70
mov esi, eax
add esp, 8
test esi, esi
je 0x10025a3a
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100259fc
test al, 0x10
jne 0x10025a05
push 0
push edi
call ebx
test eax, eax
je 0x10025a33
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.10062d70
mov esi, eax
add esp, 8
test esi, esi
jne 0x100259e7
push edi
call fcn.1005fc40
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push edi
call fcn.1005fc40
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10025e50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov ecx, 0x5a4d
mov dword [ebp - 4], eax
cmp word [eax], cx
je 0x10025e76
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x10025e96
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call edi
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x10025edd
push 4
push 0x3000
push dword [ebx + 0x50]
push eax
call edi
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x10025edd
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x10025f12
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push 0x1000
mov dword [edi + 4], esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x10025e10
mov dword [edi + 0x18], 0x10025e20
mov dword [edi + 0x1c], 0x10025e40
mov dword [edi + 0x20], 0
push dword [ebx + 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
mov esi, eax
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
push ecx
push eax
push esi
call fcn.100659a0
mov ecx, dword [ebp - 4]
mov edx, ebx
push edi
mov eax, dword [ecx + 0x3c]
add eax, esi
mov esi, dword [ebp - 8]
mov dword [edi], eax
mov dword [eax + 0x34], esi
call fcn.10025a60
mov edx, esi
add esp, 0x10
sub edx, dword [ebx + 0x34]
je 0x10025f93
mov ecx, edi
call fcn.10025bf0
mov ecx, edi
call fcn.10025c90
test eax, eax
je 0x10025fc6
mov ecx, edi
call fcn.10025b10
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10025fdd
push 0
push 1
add eax, esi
push esi
call eax
test eax, eax
jne 0x10025fd6
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.100260a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret