joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca00
Capabilities:
Get thread local storage value
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [0x511134]
test ecx, ecx
je 0x40ca1d
call fcn.00412980
mov dword [0x511134], 0
mov eax, dword [0x511910]
mov dword [0x511910], 0
test eax, eax
je 0x40ca3b
push 4
push eax
call fcn.00489270
add esp, 8
call fcn.0042fab0
push dword [0x511914]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov esi, dword [edi + 0x48]
cmp byte [esi + 0x14], 0
je 0x40ca9d
mov ecx, esi
call fcn.004169c0
mov eax, dword [esi + 8]
test eax, eax
je 0x40ca97
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ca80
mov eax, dword [esi + 8]
test eax, eax
je 0x40ca97
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov word [esi + 0x14], 0
mov ecx, dword [edi + 0x48]
mov dword [edi + 0x48], 0
pop edi
pop esi
test ecx, ecx
je 0x40cab3
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00416d20
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40cac8
mov byte [eax + 4], 1
call fcn.004159c0
jmp fcn.00415bb0
Function at 0x40db10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8506
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x50b0cc]
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
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
jb 0x40db55
mov eax, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40db74
xor al, al
jmp 0x40dcd3
lea eax, [ebp - 0x18]
mov dword [ebx], 0
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
mov ecx, edi
mov dword [ebp - 0x18], 0
xor bl, bl
call fcn.004030c0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x40dbb6
test eax, eax
jne 0x40dcc8
push dword [ebp - 0x18]
call fcn.004892a6
push dword [ebp - 0x18]
mov edi, eax
push 0
push edi
call fcn.004a2b40
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
add esp, 0x10
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
call fcn.004030c0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40dcb9
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x40dc2c
cmp byte [edi], 0
jne 0x40dc10
xor ecx, ecx
push ecx
push edi
mov ecx, esi
call fcn.00403680
jmp 0x40dcaf
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dc15
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00403680
jmp 0x40dcaf
cmp eax, 7
je 0x40dc36
cmp eax, 2
jne 0x40dcb2
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
inc eax
mov dword [ebp - 0x28], 0xf
shr eax, 1
push eax
push edi
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
call fcn.00403680
lea eax, [ebp - 0x3c]
cmp esi, eax
je 0x40dc9a
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x40dc72
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403a20
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x40dc8a
mov eax, dword [esi]
jmp 0x40dc8c
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
call fcn.004039b0
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x40dcaf
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.00403a20
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov bl, 1
mov dword [ecx], eax
test edi, edi
je 0x40dcc8
push 1
push edi
call fcn.00489270
add esp, 8
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00488d6f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40dd00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x50b0cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp dword [eax + 0x14], 0x10
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], 0
jb 0x40dd2a
mov eax, dword [eax]
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0x2001b
push 0
push 0
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40dd5e
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x40dd69
mov esi, dword [esi]
cmp dword [edi + 0x14], 0x10
jb 0x40dd71
mov edi, dword [edi]
push ebx
inc eax
mov bl, 1
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00488d6f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40fb90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40fb9b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40fc57
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 + 0x4f2210]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f2210]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f2210]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f2210]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f2210]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f2210]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f2210]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f2210]
sub edi, 1
jne 0x40fbb0
pop edi
test esi, esi
je 0x40fc7a
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 + 0x4f2210]
sub esi, 1
jne 0x40fc60
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x410420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x50b0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x410466
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410461
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x41048e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x410477
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.004a25c0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
Function at 0x4104b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50b0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x4104f5
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4104f0
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x410522
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x410506
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.004a25c0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x410540
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x41052d
cmp byte [esi + 8], 0
je 0x41052d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
Function at 0x4106b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x50b0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x4106f9
cmp byte [edi + 1], 0
je 0x4106e7
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4106ff
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x410722
cmp byte [edi + 1], 0
je 0x41071b
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x410725
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x410734
mov eax, dword [edi + 0x1c]
mov ebx, 0xffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
cmp eax, ebx
jae 0x410739
mov ebx, eax
mov dword [ebp - 0x18], eax
push esi
push 0x404
call fcn.004a8be2
mov esi, eax
add esp, 4
test esi, esi
jne 0x410761
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ebx, eax
jbe 0x410859
mov edx, dword [ebp - 0x10]
add eax, 0x400
cmp eax, ebx
mov ecx, eax
mov eax, 0x404
cmova ecx, ebx
sub edx, ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0x404
mov dword [ebp - 0x1c], edx
mov ebx, ecx
cmova ebx, eax
cmp byte [edi], 0
je 0x4107c0
cmp byte [edi + 1], 0
je 0x410859
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4107c3
mov dword [edi + 0x1c], edx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x14], ebx
je 0x4107eb
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4107e6
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x410814
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x4107fe
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.004a25c0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x410859
lea eax, [ebx - 3]
test eax, eax
js 0x410844
dec eax
cmp byte [eax + esi], 0x50
jne 0x410840
cmp byte [eax + esi + 1], 0x4b
jne 0x410840
cmp byte [eax + esi + 2], 5
jne 0x410840
cmp byte [eax + esi + 3], 6
je 0x410876
test eax, eax
jns 0x410824
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x410859
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
cmp eax, ebx
jb 0x410775
push esi
call fcn.004a55a7
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x410847
Function at 0x411370
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
jne 0x41138b
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 0
je 0x411380
cmp dword [edi + 0x7c], 0
je 0x41139c
call fcn.004117e0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.004110e0
add esp, 8
test eax, eax
je 0x4113c0
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.004a8be2
mov esi, eax
add esp, 4
test esi, esi
je 0x411403
push 0x4000
call fcn.004a8be2
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 0x41140f
push esi
call fcn.004a55a7
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x41146a
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0040fe90
test eax, eax
jne 0x41146a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x41148d
mov al, byte [edi + 0x39]
jmp 0x411490
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov ecx, 0xc
xor eax, eax
cmp byte [esi + 0x6c], al
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x41150e
nop
mov al, byte [ebx]
test al, al
je 0x41150e
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, dword [esi + 0x70]
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4f2210]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f2210]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x4114c0
mov eax, dword [ebp - 0xc]
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x411a2b
cmp dword [esi + 4], 0xffffffff
jne 0x411a2b
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411991
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4119c8
cmp eax, 0x2f
je 0x4119c8
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4119b5
mov eax, dword [0x4f1600]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x4119ee
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4119ee
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.004102f0
add esp, 8
test eax, eax
jne 0x411a0e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
mov ecx, eax
call fcn.00410880
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
pop edi
cmove ecx, edx
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc

Function at 0x412170
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x50b0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x4121a2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4121a2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x41228c
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x4121bf
cmp ax, 0x5c
jne 0x4121c1
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4121b3
cmp edi, ebx
je 0x41220a
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004a25c0
add esp, 0xc
cmp edi, 0x208
jae 0x41229c
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.00412170
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x412230
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x412220
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x412232
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412250
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x41228c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
call fcn.004893d2
int3
Function at 0x412ce0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c856b
mov eax, dword fs:[0]
push eax
mov eax, 0x13bc
call fcn.00489a30
mov eax, dword [0x50b0cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13b4], esi
push 0
push 0x4e5512
lea ecx, [ebp - 0x13b0]
mov dword [ebp - 0x13b8], 0
mov dword [ebp - 0x139c], 0xf
mov dword [ebp - 0x13a0], 0
mov byte [ebp - 0x13b0], 0
call fcn.00403680
mov dword [ebp - 4], 0
call fcn.0045e797
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x139c]
cmp eax, 0x10
jb 0x412d80
inc eax
lea ecx, [ebp - 0x13b0]
push eax
push dword [ebp - 0x13b0]
call fcn.00403a20
mov dword [ebp - 0x139c], 0xf
mov dword [ebp - 0x13a0], 0
mov byte [ebp - 0x13b0], 0
call fcn.0045e797
mov edx, eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x1394], edx
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x1394], edx
inc ecx
cmp ecx, 0x270
jl 0x412db4
movsd xmm2, qword [0x4fb720]
lea ecx, [ebp - 0x13c8]
movsd xmm1, qword [0x4fb710]
mov dword [ebp - 0x1398], 0x270
call fcn.00414210
lea ecx, [ebp - 0x1398]
call fcn.004144d0
movsd xmm1, qword [ebp - 0x13c0]
mov ecx, esi
subsd xmm1, qword [ebp - 0x13c8]
mulsd xmm1, xmm0
addsd xmm1, qword [ebp - 0x13c8]
call fcn.00412ad0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
Function at 0x413ef0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x50b0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.004a2b40
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x413f7e
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x413f53
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x413f66
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x413faf
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x413faf
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x413fa0
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x413faf
cmp eax, 2
mov eax, 5
je 0x413fb4
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret
Function at 0x4144d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x38
movsd xmm0, qword [0x4fb750]
push esi
push edi
sub esp, 8
mov esi, ecx
movsd qword [esp], xmm0
call fcn.004a91d5
fdivr qword [0x4fb738]
fstp qword [esp]
call fcn.004c62b0
movsd xmm1, qword [0x4fb710]
mov eax, 1
fstp qword [esp + 0x40]
cvttsd2si edi, qword [esp + 0x40]
add esp, 8
xorps xmm2, xmm2
cmp edi, eax
cmovl edi, eax
test edi, edi
jle 0x4145a4
mov eax, dword [esi]
cmp eax, 0x270
jne 0x414538
mov ecx, esi
call fcn.004145c0
jmp 0x414546
cmp eax, 0x4e0
jb 0x414546
mov ecx, esi
call fcn.00414610
mov eax, dword [esi]
mov ecx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [esi + 0x1384]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4fb7c0]
mulsd xmm0, xmm1
mulsd xmm1, qword [0x4fb750]
addsd xmm2, xmm0
sub edi, 1
jne 0x414526
divsd xmm2, xmm1
pop edi
pop esi
movaps xmm0, xmm2
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
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
sub esi, 1
jne 0x4145d0
pop esi
ret

Function at 0x414610
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
sub ecx, 1
jne 0x414620
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
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
sub edi, 1
jne 0x414662
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