joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a430
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x43a43b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x43a4f7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
sub edi, 1
jne 0x43a450
pop edi
test esi, esi
je 0x43a51a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
sub esi, 1
jne 0x43a500
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x43ad60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x43ada8
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ad9a
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.004a6100
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ade0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
push edi
mov edi, 1
cmp byte [esi], 0
je 0x43ae1b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
lea ebx, [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ae16
mov byte [ebx], 1
mov edi, dword [ebp - 8]
jmp 0x43ae48
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x43ae2c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.004a6100
lea eax, [ebx + edi]
add esp, 0xc
mov dword [esi + 0x1c], eax
lea ebx, [esi + 8]
cmp edi, 1
jne 0x43ae5f
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ebp - 1]
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x43ae56
cmp byte [ebx], 0
je 0x43ae56
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b830
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x43b9ea
cmp dword [edi + 0x18], 0
je 0x43b9ea
cmp dword [edi + 0x7c], 0
je 0x43b859
call fcn.0043ba00
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.0043b5d0
add esp, 8
test eax, eax
je 0x43b87d
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.004b7dcb
mov esi, eax
add esp, 4
test esi, esi
je 0x43b8c0
push 0x4000
call fcn.004b7dcb
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x43b8cc
push esi
call fcn.004b5dbd
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x43b924
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0043a760
test eax, eax
jne 0x43b924
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x43b948
mov al, byte [edi + 0x39]
jmp 0x43b94b
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov dword [esi + 0x7c], eax
test ebx, ebx
je 0x43b9cb
nop dword [eax]
mov al, byte [ebx]
test al, al
je 0x43b9cb
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fac50]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x43b980
mov eax, dword [ebp - 0xc]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451710
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbe5d
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x516180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402810
movzx eax, al
test eax, eax
je 0x451768
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004029e0
jmp 0x451908
lea ecx, [ebp - 0x40]
call fcn.00402ad0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], 0
je 0x4517dc
push 0
lea ecx, [ebp + 8]
call fcn.00402850
add eax, 1
push eax
lea ecx, [ebp - 0x40]
call fcn.00402820
push fcn.004b5cdd
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00435660
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp + 8]
call fcn.00402af0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp + 8]
call fcn.00451980
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.00451500
add esp, 0x14
jmp 0x4517e8
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x40]
call fcn.00405c50
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403130
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x74], 0
jmp 0x45181a
mov ecx, dword [ebp - 0x74]
add ecx, 1
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
cmp edx, dword [ebp - 0x7c]
jge 0x4518e0
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + eax*4]
push edx
lea ecx, [ebp - 0x28]
call fcn.00402a80
mov byte [ebp - 4], 2
push 0
push 0x4e2f80
lea ecx, [ebp - 0x28]
call fcn.00420d60
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0xffffffff
je 0x4518b7
mov eax, dword [ebp - 0x78]
push eax
push 0
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403c60
mov byte [ebp - 4], 3
push 0xffffffffffffffff
mov edx, dword [ebp - 0x78]
add edx, 1
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403c60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x70]
push edx
mov ecx, dword [ebp - 0x80]
call fcn.0040ed00
mov ecx, eax
call fcn.00405c50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.004029e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.004029e0
jmp 0x4518cf
push 0x4e2f84
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x80]
call fcn.0040ed00
mov ecx, eax
call fcn.004029b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004029e0
jmp 0x451811
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004029e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004029e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a248b
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4586e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc410
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x516180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00458280
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CryptoPP::BaseN_Decoder.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], vtable.CryptoPP::BaseN_Decoder.1.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00458360
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004913f0
lea edx, [ebp + 0xc]
push edx
call fcn.0045acc0
push eax
push 1
lea eax, [ebp + 8]
push eax
call fcn.0045a920
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004579c0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
call fcn.004575a0
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0049e580
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00459670
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x462490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcfbd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x516180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402ea0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402ea0
add esp, 4
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.004630f0
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00451e20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00464db0
mov dword [ebp - 0x20], 0x462270
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.00455690
push eax
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0
call fcn.004b7ae5
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x46253c
lea ecx, [ebp - 0x14]
call fcn.00457340
jmp 0x46254d
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.004a473d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00464db0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x46a440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x46a460
jl 0x46a457
cmp dword [ebp + 0xc], 0
ja 0x46a460
xor eax, eax
xor edx, edx
jmp 0x46a597
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x46a482
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.004605e0
jmp 0x46a597
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.0045e600
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x46a4f1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00450ce0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0045f450
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004568e0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0045f3c0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x46a588
mov ecx, dword [ebp - 8]
call fcn.00466580
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x46a561
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004b6e16
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x46a55f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x46a597
jmp 0x46a50d
cmp dword [ebp - 4], 0
jbe 0x46a588
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.004b6e16
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46c6b0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddb68
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x516180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
push 0x288
call fcn.004b7dcb
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x288
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x46c727
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b5dbd
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004b7dcb
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x46c86f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x190]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x194
push edx
lea ecx, [ebp - 0x28]
call fcn.00421e10
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0xe8]
call fcn.0045cbc0
mov byte [ebp - 4], 1
push 0x30
lea eax, [ebp - 0x35]
push eax
call fcn.0046b910
add esp, 8
push eax
push 0x46e580
push 0x46e240
lea ecx, [ebp - 0xe8]
call fcn.0046c070
mov ecx, eax
call fcn.0046c070
push eax
call fcn.0046a840
add esp, 8
mov dword [ebp - 0x30], 0
jmp 0x46c7bc
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x28]
call fcn.00402850
cmp dword [ebp - 0x30], eax
jae 0x46c826
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x28]
call fcn.00403390
movsx eax, byte [eax]
push eax
push 0
push 2
lea ecx, [ebp - 0x50]
push ecx
call fcn.004a48c7
add esp, 0xc
push eax
lea edx, [ebp - 0xe8]
push edx
call fcn.0046a860
add esp, 8
mov ecx, eax
call fcn.0046bd50
lea ecx, [ebp - 0x28]
call fcn.00402850
sub eax, 1
cmp dword [ebp - 0x30], eax
jae 0x46c824
push 0x4e537c
lea eax, [ebp - 0xe8]
push eax
call fcn.0046a8c0
add esp, 8
jmp 0x46c7b3
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b5dbd
add esp, 4
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xe8]
call fcn.00460280
mov eax, dword [ebp - 0x34]
or eax, 1
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.0045dd00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403510
mov eax, dword [ebp + 8]
jmp 0x46c894
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b5dbd
add esp, 4
push 0x4e519e
mov ecx, dword [ebp + 8]
call fcn.004035a0
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a248b
mov esp, ebp
pop ebp
ret
Function at 0x470440
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
call fcn.00403130
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x470492
push str.Failed_to_open_shared_memory._Error_code:
mov ecx, dword [ebp + 0x1c]
call fcn.004029b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.0040eda0
xor al, al
jmp 0x47050d
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4704d9
push str.Failed_to_map_view_of_file._Error_code:
mov ecx, dword [ebp + 0x1c]
call fcn.004029b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.0040eda0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x47050d
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00402b10
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x474e40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de42d
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x516180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], 0
push str.unknow
lea ecx, [ebp - 0x28]
call fcn.004035a0
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.004a6680
add esp, 0xc
mov dword [ebp - 0x144], 0x11c
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x474ff4
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x148], 5
jne 0x474efa
cmp dword [ebp - 0x14c], 1
jne 0x474efa
push str.winxp
lea ecx, [ebp - 0x28]
call fcn.0040a000
jmp 0x474ff4
cmp dword [ebp - 0x148], 6
jne 0x474f1e
cmp dword [ebp - 0x14c], 0
jne 0x474f1e
push str.winvista
lea ecx, [ebp - 0x28]
call fcn.0040a000
jmp 0x474ff4
cmp dword [ebp - 0x148], 6
jne 0x474f42
cmp dword [ebp - 0x14c], 1
jne 0x474f42
push str.win7
lea ecx, [ebp - 0x28]
call fcn.0040a000
jmp 0x474ff4
cmp dword [ebp - 0x148], 6
jne 0x474f66
cmp dword [ebp - 0x14c], 2
jne 0x474f66
push str.win8
lea ecx, [ebp - 0x28]
call fcn.0040a000
jmp 0x474ff4
cmp dword [ebp - 0x148], 6
jne 0x474f87
cmp dword [ebp - 0x14c], 3
jne 0x474f87
push str.win8.1
lea ecx, [ebp - 0x28]
call fcn.0040a000
jmp 0x474ff4
cmp dword [ebp - 0x140], 0xa
jne 0x474fb4
cmp dword [ebp - 0x13c], 0
jne 0x474fb4
cmp dword [ebp - 0x138], 0x55f0
jb 0x474fb4
push 0x4e6d94
lea ecx, [ebp - 0x28]
call fcn.0040a000
jmp 0x474ff4
cmp dword [ebp - 0x148], 0xa
jne 0x474fd5
cmp dword [ebp - 0x14c], 0
jne 0x474fd5
push str.win10
lea ecx, [ebp - 0x28]
call fcn.0040a000
jmp 0x474ff4
cmp dword [ebp - 0x148], 0xa
jne 0x474ff4
cmp dword [ebp - 0x14c], 0
jle 0x474ff4
push str.win11
lea ecx, [ebp - 0x28]
call fcn.0040a000
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403560
mov edx, dword [ebp - 0x150]
or edx, 1
mov dword [ebp - 0x150], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403510
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a248b
mov esp, ebp
pop ebp
ret

Function at 0x475040
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 1], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x28]
cmp ecx, 9
je 0x475066
movzx edx, word [ebp - 0x28]
cmp edx, 0xc
jne 0x47506a
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x475300
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x47531e
mov ecx, dword [ebp - 8]
call fcn.00475540
jmp 0x475331
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x475331
mov ecx, dword [ebp - 8]
call fcn.004753a0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret