joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f400
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec980
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x52c0cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x40f441
mov eax, dword [esi]
jmp 0x40f443
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x4fabc0
push 1
push 0
push 0x4fac10
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40f4c3
cmp dword [edi + 0x14], 8
jb 0x40f47e
mov edi, dword [edi]
mov eax, dword [ebp - 0x14]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x4fac00
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40f4c3
cmp dword [esi + 0x14], 8
jb 0x40f4a5
mov esi, dword [esi]
mov eax, dword [ebp - 0x18]
push 2
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 0x28]
cmp eax, 8
jb 0x40f4e4
inc eax
lea ecx, [ebp + 0x14]
push eax
push dword [ebp + 0x14]
call fcn.00407100
xor eax, eax
mov dword [ebp + 0x28], 7
mov word [ebp + 0x14], ax
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x24], 0
cmp eax, 8
jb 0x40f50d
inc eax
lea ecx, [ebp + 0x2c]
push eax
push dword [ebp + 0x2c]
call fcn.00407100
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.004abe1b
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x4137c0
Capabilities:
Get thread local storage value
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [0x53234c]
test ecx, ecx
je 0x4137dd
call fcn.0041acd0
mov dword [0x53234c], 0
mov eax, dword [0x533958]
mov dword [0x533958], 0
test eax, eax
je 0x4137fb
push 4
push eax
call fcn.004ac305
add esp, 8
call fcn.00439e60
push dword [0x53395c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov esi, dword [edi + 0x48]
cmp byte [esi + 0x14], 0
je 0x41385d
mov ecx, esi
call fcn.00421fd0
mov eax, dword [esi + 8]
test eax, eax
je 0x413857
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x413840
mov eax, dword [esi + 8]
test eax, eax
je 0x413857
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 0x413873
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.004222e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413888
mov byte [eax + 4], 1
jmp fcn.004212c0

Function at 0x413a70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed06a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52c0cc]
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 dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00468e87
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 0x413b30
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004c49cd
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x5288a8
push eax
call fcn.004c53ca
push edi
push esi
call fcn.004691cf
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.004abe1b
mov esp, ebp
pop ebp
ret 4
Function at 0x415b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed2e6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x52c0cc]
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 0x415b65
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 0x415b84
xor al, al
jmp 0x415ce3
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.00406cf0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x415bc6
test eax, eax
jne 0x415cd8
push dword [ebp - 0x18]
call fcn.004ac313
push dword [ebp - 0x18]
mov edi, eax
push 0
push edi
call fcn.004c5270
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.00406cf0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415cc9
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x415c3c
cmp byte [edi], 0
jne 0x415c20
xor ecx, ecx
push ecx
push edi
mov ecx, esi
call fcn.00406ed0
jmp 0x415cbf
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415c25
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00406ed0
jmp 0x415cbf
cmp eax, 7
je 0x415c46
cmp eax, 2
jne 0x415cc2
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.00406ed0
lea eax, [ebp - 0x3c]
cmp esi, eax
je 0x415caa
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x415c82
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407160
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x415c9a
mov eax, dword [esi]
jmp 0x415c9c
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
call fcn.00409890
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x415cbf
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.00407160
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov bl, 1
mov dword [ecx], eax
test edi, edi
je 0x415cd8
push 1
push edi
call fcn.004ac305
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.004abe1b
mov esp, ebp
pop ebp
ret 0x14
Function at 0x415d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x52c0cc]
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 0x415d3a
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 0x415d6e
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abe1b
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x415d79
mov esi, dword [esi]
cmp dword [edi + 0x14], 0x10
jb 0x415d81
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.004abe1b
mov esp, ebp
pop ebp
ret 0x14
Function at 0x418000
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x418800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x52c0cc]
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 0x418846
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 0x418841
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x41886e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x418857
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.004c5810
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.004abe1b
mov esp, ebp
pop ebp
ret
Function at 0x418890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x52c0cc]
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 0x4188d5
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 0x4188d0
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x418902
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4188e6
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.004c5810
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x418920
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.004abe1b
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x41890d
cmp byte [esi + 8], 0
je 0x41890d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004abe1b
mov esp, ebp
pop ebp
ret
Function at 0x418ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x52c0cc]
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 0x418b19
cmp byte [edi + 1], 0
je 0x418b07
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x418b1f
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abe1b
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x418b42
cmp byte [edi + 1], 0
je 0x418b3b
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x418b45
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x418b54
mov eax, dword [edi + 0x1c]
mov ebx, 0xffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
cmp eax, ebx
jae 0x418b59
mov ebx, eax
mov dword [ebp - 0x18], eax
push esi
push 0x404
call fcn.004cbeb9
mov esi, eax
add esp, 4
test esi, esi
jne 0x418b81
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abe1b
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ebx, eax
jbe 0x418c79
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 0x418be0
cmp byte [edi + 1], 0
je 0x418c79
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 0x418be3
mov dword [edi + 0x1c], edx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x14], ebx
je 0x418c0b
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 0x418c06
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x418c34
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x418c1e
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.004c5810
mov eax, dword [ebp - 0x14]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x418c79
lea eax, [ebx - 3]
test eax, eax
js 0x418c64
dec eax
cmp byte [eax + esi], 0x50
jne 0x418c60
cmp byte [eax + esi + 1], 0x4b
jne 0x418c60
cmp byte [eax + esi + 2], 5
jne 0x418c60
cmp byte [eax + esi + 3], 6
je 0x418c96
test eax, eax
jns 0x418c44
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x418c79
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
cmp eax, ebx
jb 0x418b95
push esi
call fcn.004c80e7
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.004abe1b
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x418c67
Function at 0x419760
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 0x41977b
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 0
je 0x419770
cmp dword [edi + 0x7c], 0
je 0x41978c
call fcn.00419bd0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.004194d0
add esp, 8
test eax, eax
je 0x4197b0
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.004cbeb9
mov esi, eax
add esp, 4
test esi, esi
je 0x4197f3
push 0x4000
call fcn.004cbeb9
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 0x4197ff
push esi
call fcn.004c80e7
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 0x41985a
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00418300
test eax, eax
jne 0x41985a
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 0x41987d
mov al, byte [edi + 0x39]
jmp 0x419880
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 0x4198fe
nop
mov al, byte [ebx]
test al, al
je 0x4198fe
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, dword [esi + 0x70]
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x511ad0]
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 + 0x511ad0]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x4198b0
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 0x419cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x419d76
cmp dword [esi + 4], 0xffffffff
jne 0x419d76
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 0x419d02
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x419d39
cmp eax, 0x2f
je 0x419d39
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x419d26
mov eax, dword [0x513494]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00418760
add esp, 8
pop edi
test eax, eax
jne 0x419d58
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.00418ca0
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x52c0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x41a4e2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a4e2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x41a5cc
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x41a4ff
cmp ax, 0x5c
jne 0x41a501
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41a4f3
cmp edi, ebx
je 0x41a54a
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004c5810
add esp, 0xc
cmp edi, 0x208
jae 0x41a5dc
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.0041a4b0
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x41a570
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 0x41a560
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41a572
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 0x41a590
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 0x41a5cc
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.004abe1b
mov esp, ebp
pop ebp
ret
call fcn.004ac462
int3
Function at 0x41afb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed462
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x52c0cc]
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 - 0x12c], esi
push 0x110
lea eax, [ebp - 0x120]
mov dword [ebp - 0x128], 0
push 0
push eax
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x124], 0x114
call fcn.004c5270
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x41b047
mov eax, dword [esi]
jmp 0x41b049
mov eax, esi
mov byte [eax], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x128], 1
cmp eax, 5
jne 0x41b093
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x41b07b
push 1
push 0x51402c
jmp 0x41b0bc
cmp eax, 1
je 0x41b072
cmp eax, 2
jne 0x41b0b5
push 0x51402c
mov ecx, esi
call fcn.00409330
jmp 0x41b0c3
cmp eax, 6
jne 0x41b0b5
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x41b072
cmp eax, 1
jne 0x41b0b5
push 0x514030
mov ecx, esi
call fcn.00409330
jmp 0x41b0c3
push 1
push 0x514030
mov ecx, esi
call fcn.00406ed0
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.004abe1b
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed4eb
mov eax, dword fs:[0]
push eax
mov eax, 0x13bc
call fcn.004acac0
mov eax, dword [0x52c0cc]
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 0x513319
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.00406ed0
mov dword [ebp - 4], 0
call fcn.00469577
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x139c]
cmp eax, 0x10
jb 0x41b390
inc eax
lea ecx, [ebp - 0x13b0]
push eax
push dword [ebp - 0x13b0]
call fcn.00407160
mov dword [ebp - 0x139c], 0xf
mov dword [ebp - 0x13a0], 0
mov byte [ebp - 0x13b0], 0
call fcn.00469577
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 0x41b3c4
movsd xmm2, qword [0x519af0]
lea ecx, [ebp - 0x13c8]
movsd xmm1, qword [0x519ae0]
mov dword [ebp - 0x1398], 0x270
call fcn.0041df10
lea ecx, [ebp - 0x1398]
call fcn.0041eed0
movsd xmm1, qword [ebp - 0x13c0]
mov ecx, esi
subsd xmm1, qword [ebp - 0x13c8]
mulsd xmm1, xmm0
addsd xmm1, qword [ebp - 0x13c8]
call fcn.0041ae60
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.004abe1b
mov esp, ebp
pop ebp
ret