joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cdbe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x5c0f71
call fcn.004b8fda
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.00420790
xor ecx, ecx
lea eax, [ebp - 0x834]
push eax
push 0xf013f
push ecx
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x82c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43ce42
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00423070
push 0
jmp 0x43cf40
xor ecx, ecx
lea eax, [ebp - 0x830]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push esi
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
test eax, eax
je 0x43ce76
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43ce2d
xor ecx, ecx
lea eax, [ebp - 0x82c]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push ebx
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x43ceb1
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x43ce2d
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.005991a0
add esp, 0xc
mov dword [ebp - 0x838], 0x400
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.0059c41c
pop ecx
mov ecx, edi
test eax, eax
jne 0x43cf33
lea eax, [ebp - 0x828]
push eax
call fcn.00423070
jmp 0x43cf3f
lea eax, [ebp - 0x810]
push eax
call fcn.00420790
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.004208a0
mov eax, edi
call fcn.004b8f84
ret
Function at 0x43d147
Capabilities:
Check os version

Disassembly:
push 0x34c
mov eax, 0x5c1045
call fcn.004b8fda
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x330]
xor ebx, ebx
mov dword [ebp - 0x358], esi
push 0x118
push ebx
mov dword [ebp - 0x350], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x334], 0x11c
call fcn.005991a0
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x625cd8
mov ecx, esi
call fcn.00420790
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x34c], eax
movzx eax, byte [ebp - 0x21a]
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x32c]
push str.ntdll.dll
mov dword [ebp - 4], ebx
mov dword [ebp - 0x350], 1
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x348], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x43d23e
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43d237
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x340]
push ecx
call eax
movzx eax, word [ebp - 0x33c]
mov dword [ebp - 0x33c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x34c]
cmp eax, 5
jne 0x43d270
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x43d33c
cmp eax, 1
jne 0x43d266
mov edi, str.WindowsXP
jmp 0x43d32c
mov edi, str.WindowsServer2003
jmp 0x43d32c
cmp eax, 6
jne 0x43d33c
mov eax, dword [ebp - 0x348]
sub eax, ebx
je 0x43d319
sub eax, 1
je 0x43d312
mov edi, dword [ebp - 0x338]
sub eax, 1
jne 0x43d342
cmp edi, 0x1ebb
jne 0x43d2ae
mov edi, str.Windows8
jmp 0x43d32c
lea eax, [edi - 0x1ee6]
cmp eax, 0x25
jbe 0x43d2a7
cmp edi, 0x1f13
je 0x43d2a7
cmp dword [ebp - 0x340], 0xa
jne 0x43d2e6
cmp dword [ebp - 0x344], 0
jne 0x43d342
push str.Windows10
call fcn.0059c41c
pop ecx
push eax
push str.Windows10
jmp 0x43d309
cmp dword [ebp - 0x340], 6
jne 0x43d342
cmp dword [ebp - 0x344], 3
jne 0x43d342
push str.Windows8.1
call fcn.0059c41c
pop ecx
push eax
push str.Windows8.1
mov ecx, esi
call fcn.00420960
jmp 0x43d342
mov edi, str.Windows7
jmp 0x43d32c
cmp dword [ebp - 0x354], 1
mov edi, str.WindowsVista
je 0x43d32c
mov edi, str.WindowsServer2008
push edi
call fcn.0059c41c
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00420960
mov edi, dword [ebp - 0x338]
push 0x625cd8
mov ecx, esi
call fcn.0043ec1f
test eax, eax
jne 0x43d3b0
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.005991a0
mov eax, dword [ebp - 0x34c]
push edi
push dword [ebp - 0x348]
push eax
lea eax, [ebp - 0x218]
push str.Windows_d._d._d
push eax
call fcn.00424850
add esp, 0x20
cmp word [ebp - 0x218], 0
jne 0x43d394
mov eax, ebx
jmp 0x43d3a1
lea eax, [ebp - 0x218]
push eax
call fcn.0059c41c
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00420960
cmp dword [ebp + 0xc], 0
je 0x43d3de
cmp word [ebp - 0x320], 0
je 0x43d3cf
lea eax, [ebp - 0x320]
push eax
call fcn.0059c41c
pop ecx
mov ebx, eax
push ebx
lea eax, [ebp - 0x320]
mov ecx, esi
push eax
call fcn.00422d00
mov eax, esi
call fcn.004b8f84
ret
Function at 0x43d4f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.005991a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00420790
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret

Function at 0x43d7bb
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005991a0
lea eax, [ebp - 0x20c]
push str.C:loggswb.log
push eax
call fcn.0059c3fa
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret

Function at 0x43d9fe
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x620], ebx
call fcn.005991a0
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.005991a0
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x61c]
push eax
call fcn.0059c79f
lea eax, [ebp - 0x414]
push eax
call fcn.0059c79f
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0059c3ba
add esp, 0x38
test eax, eax
je 0x43db52
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43db52
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005991a0
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x43dadb
push edi
push 0x5c8c60
push eax
call fcn.00424850
add esp, 0xc
jmp 0x43daeb
push esi
push edi
push str._s.bak_d
push eax
call fcn.00424850
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43db09
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0059e0b5
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x43db50
call ebx
cmp esi, 0xa
jge 0x43db52
inc esi
jmp 0x43daaa
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret
Function at 0x43dbec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
mov ebx, 0xf013f
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x43dcc4
lea eax, [ebp - 8]
push eax
push ebx
push edi
push str.SoftWare
push dword [ebp - 4]
call esi
test eax, eax
je 0x43dc45
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43dcc4
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x43dc69
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43dcba
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x43dc87
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43dcb5
push dword [ebp + 0x18]
call fcn.0059c41c
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x18]
push 1
push edi
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43dccb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov ebx, 0xf013f
mov dword [ebp - 0xc], edi
push ebx
push edi
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43dd88
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x43dd29
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43dd87
push edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x43dd4f
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x43dd85
push dword [ebp + 0x14]
call fcn.0059c41c
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43dfe5
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x2a0
mov eax, 0x5c112a
call fcn.004b8fda
lea eax, [ebp + 8]
xor edi, edi
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], edi
call fcn.00422ad0
xor ebx, ebx
mov esi, 0x5c8cb4
inc ebx
push esi
mov byte [ebp - 4], bl
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00422d00
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43e162
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x43e162
push 0x2e
pop eax
cmp word [ebp - 0x27c], ax
je 0x43e045
cmp word [ebp - 0x27a], 0
je 0x43e045
cmp word [ebp - 0x27a], ax
jne 0x43e084
cmp word [ebp - 0x278], 0
je 0x43e045
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
cmp word [ebp - 0x27c], ax
jne 0x43e0a1
mov eax, edi
jmp 0x43e0ae
lea eax, [ebp - 0x27c]
push eax
call fcn.0059c41c
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00420960
test byte [ebp - 0x2a8], 0x10
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
je 0x43e118
call fcn.00422ad0
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.00422e30
push 0x626e18
call fcn.0059c41c
pop ecx
push eax
push 0x626e18
lea ecx, [ebp - 0x28]
call fcn.00422d00
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00422ad0
call fcn.0043dfe5
jmp 0x43e143
call fcn.00422ad0
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.00422e30
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00422ad0
call fcn.0043e1ae
add esp, 0x18
lea ecx, [ebp - 0x28]
push edi
push ebx
call fcn.004208a0
push edi
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.004208a0
jmp 0x43e045
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x43e194
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
push ebx
lea ecx, [ebp - 0x58]
call fcn.004208a0
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.004208a0
call fcn.004b8f84
ret
Function at 0x43e271
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
xor edi, edi
push edi
push eax
call fcn.005991a0
lea eax, [ebp - 0x61c]
push str.C:log_
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sgswb.log
push eax
call fcn.00424850
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.005991a0
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.005991a0
add esp, 0x38
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.005993a8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x43e425
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0059c41c
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.00424850
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push 0xfff
push 0x6603c8
call fcn.0043f000
xor eax, eax
add esp, 0x30
mov word [0x6623c6], ax
lea eax, [ebp - 0x414]
push eax
call esi
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x5c909c
push eax
cmovne edi, ebx
call fcn.0059e264
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43e424
test edi, edi
jne 0x43e3d1
push esi
push 2
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0xfeff
push ebx
push eax
call fcn.005a6ba4
add esp, 0x10
mov edi, 0x6603c8
push edi
call fcn.0059c41c
push esi
add eax, eax
push eax
push ebx
push edi
call fcn.005a6ba4
push esi
push 2
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], 0xd
push ebx
push eax
call fcn.005a6ba4
push esi
push 2
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], 0xa
push ebx
push eax
call fcn.005a6ba4
push esi
call fcn.005a68ec
add esp, 0x38
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret
Function at 0x43e785
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

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

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

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x43e84e
pop esi
ret

Function at 0x43ef6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x43ef83
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x43f586
Capabilities:
Create directory

Disassembly:
push 0x458
mov eax, 0x5c1233
call fcn.004b8fda
mov esi, dword [ebp + 8]
test esi, esi
jne 0x43f5a3
xor eax, eax
jmp 0x43f6aa
push 0x100
xor ebx, ebx
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.005991a0
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0059ca70
push esi
mov edi, ebx
call fcn.0059cb70
add esp, 0x18
mov esi, eax
call fcn.0043f88b
push eax
lea ecx, [ebp - 0x464]
call fcn.0043f14e
push 0x100
lea eax, [ebp - 0x210]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.005991a0
add esp, 0xc
cmp byte [ebp + esi - 0x111], 0x5c
je 0x43f60c
mov byte [ebp + esi - 0x110], 0x5c
cmp byte [ebp - 0x110], 0
mov esi, dword [ebp - 0x464]
je 0x43f69f
mov al, byte [ebp + edi - 0x110]
cmp al, 0x3a
jne 0x43f62f
push 2
pop eax
jmp 0x43f693
cmp al, 0x5c
jne 0x43f690
push edi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005986a0
add esp, 0xc
cmp edi, 0x100
jae 0x43f6bf
lea eax, [ebp - 0x210]
mov byte [ebp + edi - 0x210], bl
push eax
lea ecx, [ebp - 0x464]
call fcn.0043f236
mov esi, dword [ebp - 0x464]
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x43f690
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43f6b2
xor eax, eax
inc eax
add edi, eax
cmp byte [ebp + edi - 0x110], 0
jne 0x43f61f
lea ecx, [esi - 0x10]
call fcn.0043fc9d
xor eax, eax
inc eax
call fcn.004b8f84
ret 4
lea ecx, [esi - 0x10]
call fcn.0043fc9d
jmp 0x43f59c
call fcn.004b8c63
int3

Function at 0x43ff2b
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0x300]
or eax, 0xffffffff
cmp edx, eax
je 0x43ff3d
cmp edx, 1
jne 0x43ff58
xor eax, eax
push eax
push eax
push ecx
push 0x43fce0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x44001d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [eax + 0x210]
mov esi, dword [edi]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x4400ea
lea edi, [esi + 0x28]
lea ecx, [ebx + 0xa8]
mov dword [ebp + 8], edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x62b4c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub edi, 0xffffff80
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x62b4c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x62b4c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x62b4c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0xa8]
push edi
push eax
call fcn.005a87a0
mov edi, dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
jne 0x4400c6
lea eax, [ebx + 0x28]
push edi
push eax
call fcn.005a87a0
pop ecx
pop ecx
test eax, eax
je 0x440107
mov eax, 0x1b0
lea ecx, [ebx + 0xa8]
add edi, eax
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], edi
cmp esi, dword [eax + 0x214]
jne 0x440050
mov edi, dword [ebp - 8]
lea eax, [ebx + 0xa8]
push eax
call fcn.0059cb70
pop ecx
test eax, eax
je 0x440107
push ebx
mov ecx, edi
call fcn.00440a49
mov al, 1
jmp 0x440109
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44098c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 0x114
push edi
push ebx
xor edi, edi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.005991a0
add esp, 0xc
mov dword [ebp - 0x118], ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4409ed
mov ecx, esi
call fcn.004403e3
jmp 0x440a02
mov ebx, edi
test edi, edi
jne 0x440a02
mov ecx, esi
call fcn.004402be
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x4409ef
mov eax, dword [esi + 0x214]
mov ecx, 0x1b0
sub eax, dword [esi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret

Function at 0x441a74
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x1c]
push eax
xor eax, eax
push eax
push esi
push 0x441a62
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
test eax, eax
je 0x441aaa
cmp eax, 0xffffffff
je 0x441aaa
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x44914c
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x44992e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
mov eax, esi
setne dl
mov dword [esi + 4], edx
pop esi
pop ebp
ret 4