joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d030
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
cmp dword [esi + 0x4b0], 0
je 0x47d044
mov eax, dword [esi + 0x4b4]
jmp 0x47d053
mov eax, dword [esi + 0x4a0]
push eax
call fcn.0053020f
add esp, 4
push ebx
mov ebx, dword [esp + 0x14]
cmp word [ebx + 0x10], 0
push ebp
push edi
mov dword [ebx + 0x64], eax
mov dword [esp + 0x14], 0
jbe 0x47d26b
mov edx, dword [esi + 0x4b0]
test edx, edx
je 0x47d0cd
lea eax, [ebx + 0x54]
test eax, eax
mov edi, 2
je 0x47d0c5
mov eax, dword [esi + 0x4b8]
cmp eax, edi
jb 0x47d09d
mov ecx, dword [esi + 0x4b4]
lea ebp, [ecx + 2]
cmp ebp, eax
jbe 0x47d0a9
mov ecx, dword [esi + 0x4b4]
sub eax, ecx
mov edi, eax
je 0x47d0c5
push edi
add ecx, edx
push ecx
lea eax, [ebx + 0x54]
push eax
call fcn.00519ac0
add dword [esi + 0x4b4], edi
add esp, 0xc
shr edi, 1
mov eax, edi
jmp 0x47d0ec
xor edi, edi
shr edi, 1
mov eax, edi
jmp 0x47d0ec
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x47d0ea
push eax
push 1
lea eax, [ebx + 0x54]
push 2
push eax
call fcn.0052edba
add esp, 0x10
jmp 0x47d0ec
xor eax, eax
cmp eax, 1
jne 0x47d276
mov cx, word [ebx + 0x54]
rol cx, 8
movzx eax, cx
cmp ax, 1
mov word [ebx + 0x54], cx
jne 0x47d1f0
mov edx, dword [ebx + 0xc]
xor ebp, ebp
sub edx, dword [ebx + 4]
mov dword [esp + 0xc], ebp
je 0x47d1d3
mov ecx, dword [esi + 0x4b0]
test ecx, ecx
je 0x47d182
mov eax, dword [esi + 0x4b8]
mov ebx, 2
cmp eax, ebx
jb 0x47d146
mov edi, dword [esi + 0x4b4]
lea edx, [edi + 2]
cmp edx, eax
jbe 0x47d152
mov edi, dword [esi + 0x4b4]
sub eax, edi
mov ebx, eax
je 0x47d176
lea eax, [edi + ecx]
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00519ac0
add edi, ebx
add esp, 0xc
shr ebx, 1
mov eax, ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0x4b4], edi
jmp 0x47d1a2
xor ebx, ebx
shr ebx, 1
mov eax, ebx
mov ebx, dword [esp + 0x1c]
jmp 0x47d1a2
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x47d1a0
push eax
push 1
lea edx, [esp + 0x18]
push 2
push edx
call fcn.0052edba
add esp, 0x10
jmp 0x47d1a2
xor eax, eax
cmp eax, 1
jne 0x47d276
mov ax, word [esp + 0x10]
mov edx, dword [ebx + 0xc]
sub edx, dword [ebx + 4]
rol ax, 8
movzx eax, ax
movzx ecx, ax
add dword [esp + 0xc], ecx
add ebp, 1
cmp ebp, edx
mov dword [esp + 0x10], eax
jb 0x47d120
cmp dword [esi + 0x4b0], 0
je 0x47d1e8
mov eax, dword [esi + 0x4b4]
add eax, dword [esp + 0xc]
jmp 0x47d22e
mov eax, dword [esp + 0xc]
push 1
jmp 0x47d244
test ax, ax
jne 0x47d254
mov edi, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
sub edi, dword [ebx + 4]
sub edx, dword [ebx]
imul edi, edx
cmp dword [esi + 0x4b0], 0
je 0x47d214
mov eax, dword [esi + 0x4b4]
jmp 0x47d223
mov eax, dword [esi + 0x4a0]
push eax
call fcn.0053020f
add esp, 4
add eax, edi
cmp dword [esi + 0x4b0], 0
je 0x47d242
mov ecx, dword [esi + 0x4b8]
cmp ecx, eax
ja 0x47d23a
mov eax, ecx
mov dword [esi + 0x4b4], eax
jmp 0x47d254
push 0
mov ecx, dword [esi + 0x4a0]
push eax
push ecx
call fcn.005303b8
add esp, 0xc
mov eax, dword [esp + 0x14]
movzx edx, word [ebx + 0x10]
add eax, 1
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x47d070
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
pop edi
pop ebp
mov eax, 3
pop ebx
add esp, 0xc
ret 4
Function at 0x47d290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x577830]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0x14]
push ebx
push esi
push edi
mov esi, ecx
call fcn.0051d230
mov ebx, esp
xor edi, edi
cmp ebx, edi
je 0x47d466
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x58ad04], edi
mov dword [ebp - 0xc], eax
je 0x47d2dd
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.00470bb0
jmp 0x47d2e3
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0x18], edi
mov dword [ebp - 0x18], edi
jbe 0x47d3eb
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47d305
cmp dword [eax], 0
jne 0x47d419
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
movzx eax, word [eax]
add edi, 0x49c
cmp dword [edi + 0x14], 0
je 0x47d322
push ebx
call fcn.00469830
jmp 0x47d33a
mov edi, dword [edi + 4]
test edi, edi
je 0x47d338
push edi
push eax
push 1
push ebx
call fcn.0052edba
add esp, 0x10
jmp 0x47d33a
xor eax, eax
mov ecx, dword [ebp - 8]
movzx ecx, word [ecx]
cmp eax, ecx
jne 0x47d433
xor edi, edi
test ecx, ecx
jle 0x47d3d5
mov dl, byte [edi + ebx]
lea eax, [edi + ebx]
xor ecx, ecx
test dl, dl
jge 0x47d396
neg dl
movzx edx, dl
add edx, 1
test edx, edx
jle 0x47d3c4
lea ebx, [ebx]
cmp esi, dword [ebp + 0xc]
jae 0x47d450
movzx edx, byte [eax + 1]
mov byte [esi], dl
movzx edx, byte [eax]
neg dl
movzx edx, dl
add ecx, 1
add edx, 1
add esi, 4
cmp ecx, edx
jl 0x47d370
jmp 0x47d3c4
movsx edx, dl
add edx, 1
test edx, edx
jle 0x47d3bf
cmp esi, dword [ebp + 0xc]
jae 0x47d46d
mov dl, byte [eax + ecx + 1]
mov byte [esi], dl
movsx edx, byte [eax]
add ecx, 1
add edx, 1
add esi, 4
cmp ecx, edx
jl 0x47d3a0
movsx eax, byte [eax]
add edi, eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
add edi, 2
cmp edi, edx
jl 0x47d352
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 2
add eax, 1
cmp eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
jb 0x47d2f5
cmp dword [0x58ad04], 0
je 0x47d401
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
call fcn.00470f90
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005120db
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x58ad04], 0
je 0x47d42c
mov ecx, dword [ebp - 0xc]
push ecx
push eax
call fcn.00470f90
mov eax, 0xf4242
jmp 0x47d403
cmp dword [0x58ad04], 0
je 0x47d449
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
call fcn.00470f90
mov eax, 3
jmp 0x47d403
cmp dword [0x58ad04], 0
je 0x47d466
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push ecx
push edx
call fcn.00470f90
mov eax, 4
jmp 0x47d403
cmp dword [0x58ad04], 0
je 0x47d483
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.00470f90
mov eax, 4
jmp 0x47d403
Function at 0x47d490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x577830]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
push ebx
mov ebx, dword [ebp + 0x10]
imul eax, ebx
push esi
push edi
call fcn.0051d230
mov edi, esp
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, esi
cmp dword [0x58ad04], esi
mov dword [ebp - 8], eax
je 0x47d4df
mov edx, dword [ebp - 0xc]
push eax
push edx
call fcn.00470bb0
jmp 0x47d4e5
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp + 0x14], esi
mov dword [ebp - 0x14], esi
jbe 0x47d582
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47d501
cmp dword [eax], 0
jne 0x47d5b0
mov eax, dword [ebp + 8]
movzx esi, word [eax + 0x10]
mov ecx, eax
add ecx, 0x49c
cmp dword [ecx + 0x14], 0
je 0x47d530
test esi, esi
je 0x47d545
mov eax, esi
imul eax, ebx
push edi
mov edi, ecx
call fcn.00469830
mov edi, dword [ebp - 0x18]
xor edx, edx
div esi
jmp 0x47d547
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x47d545
push ecx
push ebx
push esi
push edi
call fcn.0052edba
add esp, 0x10
jmp 0x47d547
xor eax, eax
cmp eax, ebx
jne 0x47d5ca
xor eax, eax
test ebx, ebx
jbe 0x47d570
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x10]
mov esi, dword [ebp + 0xc]
imul edx, eax
mov dl, byte [edx + edi]
mov byte [esi], dl
add esi, 4
add eax, 1
cmp eax, ebx
mov dword [ebp + 0xc], esi
jb 0x47d554
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
jb 0x47d4f1
cmp dword [0x58ad04], 0
je 0x47d598
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push ecx
push edx
call fcn.00470f90
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005120db
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x58ad04], 0
je 0x47d5c3
mov ecx, dword [ebp - 8]
push ecx
push eax
call fcn.00470f90
mov eax, 0xf4242
jmp 0x47d59a
cmp dword [0x58ad04], 0
je 0x47d5e0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push edx
push eax
call fcn.00470f90
mov eax, 3
jmp 0x47d59a
Function at 0x47ffc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebx + 0x16c0]
lea edx, [eax + 1]
add eax, eax
shr ecx, 1
add eax, eax
cmp edx, ecx
mov dword [esp + 0xc], eax
jae 0x47fff6
mov ecx, dword [ebx + 0x16bc]
mov esi, dword [eax + ecx + 4]
add eax, ecx
sub esi, dword [eax]
jmp 0x480005
mov edx, dword [ebx + 0x16bc]
mov esi, dword [ebx + 0x16d0]
sub esi, dword [edx + eax]
mov eax, dword [edi]
cmp esi, eax
je 0x480084
test esi, esi
jne 0x48003e
test eax, eax
je 0x480023
mov eax, dword [edi + 4]
test eax, eax
je 0x480023
push eax
call fcn.0044d390
add esp, 4
mov dword [edi + 4], 0
mov dword [edi], 0
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x480052
mov eax, dword [edi + 4]
test eax, eax
je 0x480052
push eax
call fcn.0044d390
add esp, 4
push esi
mov dword [edi + 4], 0
mov dword [edi], 0
call fcn.0044ce70
add esp, 4
test eax, eax
mov dword [edi + 4], eax
je 0x480075
mov dword [edi], esi
xor eax, eax
jmp 0x480080
mov dword [edi], 0
mov eax, 4
test eax, eax
jne 0x4800c5
mov eax, dword [ebx + 0x16bc]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx]
mov eax, dword [ebx + 0x1698]
push 0
push edx
push eax
call fcn.005303b8
mov ebx, dword [ebx + 0x1698]
add esp, 0xc
test ebx, ebx
je 0x4800c3
mov eax, dword [edi + 4]
test eax, eax
je 0x4800c3
mov edi, dword [edi]
push ebx
push edi
push 1
push eax
call fcn.0052edba
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x483b40
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
je 0x483bc9
lea esp, [esp]
sub esi, 1
cmp dword [0x59e154], 0x270
jl 0x483b64
call fcn.0049a440
mov ecx, dword [0x59e154]
mov eax, dword [ecx*4 + 0x59e15c]
add ecx, 1
mov dword [0x59e154], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp + 4], edx
and dword [esp + 4], 0x70307
mov eax, dword [esp + 0xc]
movd mm0, dword [eax]
movd mm1, dword [esp + 4]
paddusb mm0, mm1
movd dword [eax], mm0
add dword [esp + 0xc], 4
test esi, esi
jne 0x483b50
emms
pop esi
pop ecx
ret
Function at 0x48e6b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x59b59c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 8
xor ebx, ebx
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
jne 0x48e6dd
mov dword [esi + 4], ebx
jmp 0x48e6e8
push str.ScriptRecordDigitSubstitution
push eax
call ebp
mov dword [esi + 4], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x48e6fe
mov dword [esi + 0xc], ebx
jmp 0x48e709
push str.ScriptApplyDigitSubstitution
push eax
call ebp
mov dword [esi + 0xc], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x48e71f
mov dword [esi + 0x14], ebx
jmp 0x48e72a
push str.ScriptFreeCache
push eax
call ebp
mov dword [esi + 0x14], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x48e740
mov dword [esi + 0x1c], ebx
jmp 0x48e74b
push str.ScriptShape
push eax
call ebp
mov dword [esi + 0x1c], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x48e761
mov dword [esi + 0x24], ebx
jmp 0x48e76c
push str.ScriptPlace
push eax
call ebp
mov dword [esi + 0x24], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x28], eax
jne 0x48e782
mov dword [esi + 0x2c], ebx
jmp 0x48e78d
push str.ScriptBreak
push eax
call ebp
mov dword [esi + 0x2c], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x48e7a3
mov dword [esi + 0x34], ebx
jmp 0x48e7ae
push str.ScriptItemize
push eax
call ebp
mov dword [esi + 0x34], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x38], eax
jne 0x48e7c4
mov dword [esi + 0x3c], ebx
jmp 0x48e7cf
push str.ScriptLayout
push eax
call ebp
mov dword [esi + 0x3c], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x40], eax
jne 0x48e7e5
mov dword [esi + 0x44], ebx
jmp 0x48e7f0
push str.ScriptGetProperties
push eax
call ebp
mov dword [esi + 0x44], eax
cmp dword [esi + 4], ebx
je 0x48e824
cmp dword [esi + 0xc], ebx
je 0x48e824
cmp dword [esi + 0x14], ebx
je 0x48e824
cmp dword [esi + 0x1c], ebx
je 0x48e824
cmp dword [esi + 0x24], ebx
je 0x48e824
cmp dword [esi + 0x2c], ebx
je 0x48e824
cmp dword [esi + 0x34], ebx
je 0x48e824
cmp dword [esi + 0x3c], ebx
je 0x48e824
cmp dword [esi + 0x44], ebx
je 0x48e824
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x495660
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
sub esp, 8
cmp byte [edx + 0x34], 0
je 0x495787
push ebx
mov ebx, dword [edx + 0x64]
test ebx, ebx
je 0x495784
mov ecx, dword [edx + 0x60]
push ebp
push esi
shr ecx, 3
cmp byte [edx + 0x68], 0
push edi
jne 0x4956e0
test ecx, ecx
jbe 0x495769
mov edi, ecx
lea ebx, [ebx]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov esi, ecx
mov ebp, edx
shr ecx, 2
shr edx, 2
and esi, 0xff00ff
and ebp, 0xff00ff
and ecx, 0x3fc03fc0
and edx, 0x3fc03fc0
add esi, ebp
add ecx, edx
mov dword [ebx], ecx
mov dword [ebx + 4], esi
add ebx, 8
add eax, 8
sub edi, 1
jne 0x4956a0
jmp 0x495765
test ecx, ecx
mov dword [esp + 0x10], ebx
jbe 0x495769
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov eax, dword [ebx]
mov edx, ecx
and ecx, 0xff00ff
mov esi, edi
and edi, 0xff00ff
add ecx, edi
add ecx, dword [ebx + 4]
shr edx, 2
shr esi, 2
mov edi, edx
mov ebp, esi
and edi, 0xffc03fc0
add edi, eax
shr ecx, 2
and ebp, 0xffc03fc0
add ebp, edi
and edx, 0x3fc03fc0
add edx, eax
mov eax, dword [esp + 0x10]
xor ecx, ebp
and esi, 0x3fc03fc0
and ecx, 0xff00ff
add esi, edx
xor ecx, esi
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
add eax, 8
add ebx, 8
sub dword [esp + 0x14], 1
mov dword [esp + 0x20], eax
jne 0x4956f0
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x68], 0
pop edi
sete al
test al, al
pop esi
mov byte [edx + 0x68], al
pop ebp
jne 0x495784
mov eax, dword [edx + 0x64]
pop ebx
add esp, 8
ret 8
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x495da0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [eax + 0xc]
push ebp
mov ebp, dword [eax + 8]
mov eax, dword [ecx + 8]
cdq
sub eax, edx
push esi
mov esi, eax
push edi
mov edi, dword [ecx + 0xc]
mov eax, edi
cdq
sub eax, edx
sar esi, 1
sar eax, 1
cmp ebp, esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
jle 0x495ddb
mov ebp, esi
mov dword [esp + 0x28], ebp
cmp ebx, eax
jle 0x495de5
mov dword [esp + 0x2c], eax
mov ebx, eax
xor esi, esi
test ebx, ebx
mov dword [esp + 0x1c], esi
jle 0x495ee9
mov dword [esp + 0x10], 1
jmp 0x495e00
mov eax, dword [ecx + 4]
mov edi, dword [ecx + 0x10]
mov edx, eax
imul edx, esi
lea ebx, [edi + edx*8]
mov edx, dword [esp + 0x10]
imul edx, eax
test ebp, ebp
lea edi, [edi + edx*4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
jle 0x495ed3
mov edx, dword [edi + 4]
mov edi, dword [edi]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov eax, ecx
and eax, 0xff00ff
mov ebp, edi
and ebp, 0xff00ff
add eax, ebp
shr ecx, 8
mov ebp, esi
and ebp, 0xff00ff
add eax, ebp
and ecx, 0xff00ff
shr edi, 8
mov ebp, edx
and edi, 0xff00ff
add ecx, edi
mov edi, dword [esp + 0x14]
shr esi, 8
shr edx, 8
and esi, 0xff00ff
add ecx, esi
mov esi, dword [esp + 0x1c]
and ebp, 0xff00ff
add eax, ebp
and edx, 0xff00ff
add ecx, edx
mov edx, dword [esp + 0x34]
mov ebp, dword [edx + 4]
mov edx, dword [edx + 0x10]
imul ebp, esi
shl ecx, 6
shr eax, 2
xor eax, ecx
and eax, 0xff00ff
xor eax, ecx
mov ecx, dword [esp + 0x18]
add ebp, ecx
mov dword [edx + ebp*4], eax
mov ebp, dword [esp + 0x28]
add ecx, 1
add edi, 8
add ebx, 8
cmp ecx, ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
jl 0x495e2c
mov ecx, dword [esp + 0x38]
add dword [esp + 0x10], 2
add esi, 1
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
jl 0x495e00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x499800
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
lea esi, [ebx + 0xc]
push 0x20
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
call fcn.004996a0
mov edi, eax
cmp edi, 0xffffffff
jne 0x499837
mov eax, 0x8007000e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esi]
mov dword [edi + eax], 0x504d444d
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
mov dword [ecx + edi + 4], 0xa793
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0x2ac18000
adc ecx, 0xfe624e21
xor ebp, ebp
push ebp
push 0x989680
push ecx
push eax
call fcn.005310e0
mov edx, dword [esi]
push 0x48
mov dword [edx + edi + 0x14], eax
call fcn.004996a0
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x499828
mov ecx, dword [esi]
mov dword [ecx + edi + 8], 6
mov edx, dword [esi]
mov dword [edx + edi + 0xc], eax
mov dword [esp + 0x34], ebp
mov edx, dword [ebp + 0x5869c4]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call edx
test eax, eax
jl 0x499941
cmp eax, 1
jne 0x4998ca
mov eax, dword [esi]
add dword [eax + edi + 8], 0xffffffff
lea eax, [eax + edi + 8]
jmp 0x4998e1
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
add edx, ecx
add edx, dword [esi]
push 0xc
lea ecx, [esp + 0x28]
call fcn.00499740
add dword [esp + 0x34], 0xc
add ebp, 4
cmp ebp, 0x18
jb 0x4998a1
mov eax, dword [ebx + 0x14]
mov esi, dword [esi]
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x40]
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x499939
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x499923
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
call esi
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x499a90
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push edi
xor edi, edi
cmp dword [esp + 0x1c], edi
jne 0x499aac
pop edi
mov eax, 0x80004005
pop ebp
add esp, 0xc
ret
push esi
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x1c], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
jne 0x499ace
pop esi
pop edi
mov eax, 0x80004005
pop ebp
add esp, 0xc
ret
push ebx
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x499aeb
pop ebx
pop esi
pop edi
mov eax, 0x80004005
pop ebp
add esp, 0xc
ret
push ebx
push esi
push edi
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
je 0x499b33
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x5577e0
push ebx
call sub.VERSION.dll_VerQueryValueA
cmp eax, edi
je 0x499b33
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x499b33
cmp dword [esp + 0x14], 0x34
jb 0x499b33
mov edi, dword [esp + 0x24]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x499b50
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [esi + 0xac]
push edi
mov edi, eax
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, dword [esi + 0xa8]
add edx, dword [esp + 0x38]
shr ecx, 4
xor eax, eax
test ecx, ecx
jbe 0x499b90
lea esi, [edx + 0xc]
cmp dword [esi], edi
je 0x499b9d
add eax, 1
add esi, 0x1c
cmp eax, ecx
jb 0x499b82
pop edi
mov eax, 0x80004005
pop esi
add esp, 0x24
ret 0x10
push ebx
push 0
push 0
push 3
lea ecx, [eax*8]
push 0
sub ecx, eax
mov ebx, dword [edx + ecx*4 + 0x10]
mov esi, dword [edx + ecx*4 + 0x18]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x48]
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
jne 0x499be0
pop ebx
pop edi
or eax, eax
pop esi
add esp, 0x24
ret 0x10
push ebp
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x40], ebp
jne 0x499c09
or eax, eax
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x24
ret 0x10
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, esi
xor edx, edx
div dword [esp + 0x2c]
mov edi, edx
lea ecx, [edi + ebx]
push ecx
sub esi, edi
push esi
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, dword [esp + 0x38]
mov ebp, eax
add esi, 0xc
push ebx
add ebp, edi
call fcn.004996a0
mov edi, eax
cmp edi, 0xffffffff
jne 0x499c7d
pop ebp
pop ebx
pop edi
mov eax, 0x8007000e
pop esi
add esp, 0x24
ret 0x10
mov edx, dword [esi]
add edx, edi
push ebx
mov ecx, ebp
call fcn.00499740
test eax, eax
jl 0x499bff
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [eax + 4], edi
mov dword [eax], ebx
call esi
mov eax, dword [esp + 0x3c]
push eax
call esi
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x24
ret 0x10

Function at 0x49a440
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x59e15c
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [eax]
and ecx, 1
shr edx, 1
xor edx, dword [ecx*4 + 0x553cc8]
add eax, 4
xor edx, dword [eax + 0x630]
cmp eax, 0x59e4e8
mov dword [eax - 4], edx
jb 0x49a445
cmp eax, 0x59eb18
jae 0x49a4ae
lea ebx, [ebx]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [eax]
and ecx, 1
shr edx, 1
xor edx, dword [ecx*4 + 0x553cc8]
add eax, 4
xor edx, dword [eax - 0x390]
cmp eax, 0x59eb18
mov dword [eax - 4], edx
jb 0x49a480
mov edx, dword [eax]
mov ecx, dword [0x59e15c]
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [eax]
and ecx, 1
shr edx, 1
xor edx, dword [ecx*4 + 0x553cc8]
xor edx, dword [eax - 0x38c]
mov dword [eax], edx
mov dword [0x59e154], 0
ret
Function at 0x49aba0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x577830]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x6c]
push ecx
push eax
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0049ac50
push esi
lea eax, [esp + 0x10]
call fcn.0049ad10
mov ecx, dword [esp + 0x6c]
add esp, 0x10
xor ecx, esp
call fcn.005120db
add esp, 0x64
ret