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

Disassembly:
push 0x83c
mov eax, 0x5d0505
call fcn.00492e9f
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x848], 0
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x844], eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00402120
xor ecx, ecx
lea eax, [ebp - 0x82c]
push eax
push 0x20119
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 4], ecx
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
call esi
test eax, eax
je 0x41e3d3
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00404a00
push 0
jmp 0x41e510
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x82c]
call esi
test eax, eax
je 0x41e400
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e3be
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x41e433
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x41e3be
lea eax, [ebp - 0x830]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x41e485
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x82c]
call esi
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.00404a00
jmp 0x41e50f
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.005a8e00
add esp, 0xc
mov dword [ebp - 0x840], 0x400
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x844]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x838]
call esi
push dword [ebp - 0x82c]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.005abff2
pop ecx
mov ecx, edi
test eax, eax
je 0x41e474
lea eax, [ebp - 0x810]
push eax
call fcn.00402120
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00402230
mov eax, edi
call fcn.00492e49
ret
Function at 0x41e525
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x838
mov eax, 0x5d0538
call fcn.00492e9f
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x844], esi
call fcn.00402120
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], esi
push eax
push 0x20119
push esi
push str.SoftWare
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x82c], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x41e5b0
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00404a00
push 0
jmp 0x41e69f
lea eax, [ebp - 0x830]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x41e5d9
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e59b
lea eax, [ebp - 0x82c]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x838]
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x41e620
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.00404a00
jmp 0x41e69e
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.005a8e00
add esp, 0xc
mov dword [ebp - 0x83c], 0x400
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x840]
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.005abff2
pop ecx
mov ecx, edi
test eax, eax
je 0x41e612
lea eax, [ebp - 0x810]
push eax
call fcn.00402120
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00402230
mov eax, edi
call fcn.00492e49
ret
Function at 0x41e6b4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x5d056b
call fcn.00492e9f
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.00402120
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 0x41e738
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00404a00
push 0
jmp 0x41e836
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 0x41e76c
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e723
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 0x41e7a7
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x41e723
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.005a8e00
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.005abff2
pop ecx
mov ecx, edi
test eax, eax
jne 0x41e829
lea eax, [ebp - 0x828]
push eax
call fcn.00404a00
jmp 0x41e835
lea eax, [ebp - 0x810]
push eax
call fcn.00402120
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00402230
mov eax, edi
call fcn.00492e49
ret
Function at 0x41ea3d
Capabilities:
Check os version

Disassembly:
push 0x34c
mov eax, 0x5d063f
call fcn.00492e9f
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.005a8e00
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x640078
mov ecx, esi
call fcn.00402120
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 0x41eb34
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41eb2d
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 0x41eb66
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x41ec32
cmp eax, 1
jne 0x41eb5c
mov edi, str.WindowsXP
jmp 0x41ec22
mov edi, str.WindowsServer2003
jmp 0x41ec22
cmp eax, 6
jne 0x41ec32
mov eax, dword [ebp - 0x348]
sub eax, ebx
je 0x41ec0f
sub eax, 1
je 0x41ec08
mov edi, dword [ebp - 0x338]
sub eax, 1
jne 0x41ec38
cmp edi, 0x1ebb
jne 0x41eba4
mov edi, str.Windows8
jmp 0x41ec22
lea eax, [edi - 0x1ee6]
cmp eax, 0x25
jbe 0x41eb9d
cmp edi, 0x1f13
je 0x41eb9d
cmp dword [ebp - 0x340], 0xa
jne 0x41ebdc
cmp dword [ebp - 0x344], 0
jne 0x41ec38
push str.Windows10
call fcn.005abff2
pop ecx
push eax
push str.Windows10
jmp 0x41ebff
cmp dword [ebp - 0x340], 6
jne 0x41ec38
cmp dword [ebp - 0x344], 3
jne 0x41ec38
push str.Windows8.1
call fcn.005abff2
pop ecx
push eax
push str.Windows8.1
mov ecx, esi
call fcn.004022f0
jmp 0x41ec38
mov edi, str.Windows7
jmp 0x41ec22
cmp dword [ebp - 0x354], 1
mov edi, str.WindowsVista
je 0x41ec22
mov edi, str.WindowsServer2008
push edi
call fcn.005abff2
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004022f0
mov edi, dword [ebp - 0x338]
push 0x640078
mov ecx, esi
call fcn.0042051f
test eax, eax
jne 0x41eca6
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.005a8e00
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.004061d0
add esp, 0x20
cmp word [ebp - 0x218], 0
jne 0x41ec8a
mov eax, ebx
jmp 0x41ec97
lea eax, [ebp - 0x218]
push eax
call fcn.005abff2
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004022f0
cmp dword [ebp + 0xc], 0
je 0x41ecd4
cmp word [ebp - 0x320], 0
je 0x41ecc5
lea eax, [ebp - 0x320]
push eax
call fcn.005abff2
pop ecx
mov ebx, eax
push ebx
lea eax, [ebp - 0x320]
mov ecx, esi
push eax
call fcn.00404690
mov eax, esi
call fcn.00492e49
ret
Function at 0x41edee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x656514]
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.005a8e00
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.00402120
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00492e23
mov esp, ebp
pop ebp
ret

Function at 0x41f0b1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005a8e00
lea eax, [ebp - 0x20c]
push str.C:loggswb.log
push eax
call fcn.005abfd0
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.00492e23
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x656514]
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.005a8e00
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.005a8e00
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.005abfd0
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.005abfd0
lea eax, [ebp - 0x61c]
push eax
call fcn.005ac375
lea eax, [ebp - 0x414]
push eax
call fcn.005ac375
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.005abf90
add esp, 0x38
test eax, eax
je 0x41f448
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f448
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005a8e00
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x41f3d1
push edi
push 0x5d8c38
push eax
call fcn.004061d0
add esp, 0xc
jmp 0x41f3e1
push esi
push edi
push str._s.bak_d
push eax
call fcn.004061d0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f3ff
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.005ada8f
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 0x41f446
call ebx
cmp esi, 0xa
jge 0x41f448
inc esi
jmp 0x41f3a0
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492e23
mov esp, ebp
pop ebp
ret
Function at 0x41f4e2
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 0x41f5ba
lea eax, [ebp - 8]
push eax
push ebx
push edi
push str.SoftWare
push dword [ebp - 4]
call esi
test eax, eax
je 0x41f53b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f5ba
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 0x41f55f
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f5b0
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 0x41f57d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f5ab
push dword [ebp + 0x18]
call fcn.005abff2
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 0x41f5c1
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 0x41f67e
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 0x41f61f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f67d
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 0x41f645
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x41f67b
push dword [ebp + 0x14]
call fcn.005abff2
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 0x41f95b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x2a0
mov eax, 0x5d0751
call fcn.00492e9f
lea eax, [ebp + 8]
xor edi, edi
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], edi
call fcn.00404460
xor ebx, ebx
mov esi, 0x5d8c8c
inc ebx
push esi
mov byte [ebp - 4], bl
call fcn.005abff2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00404690
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 0x41fad8
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41fad8
push 0x2e
pop eax
cmp word [ebp - 0x27c], ax
je 0x41f9bb
cmp word [ebp - 0x27a], 0
je 0x41f9bb
cmp word [ebp - 0x27a], ax
jne 0x41f9fa
cmp word [ebp - 0x278], 0
je 0x41f9bb
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
cmp word [ebp - 0x27c], ax
jne 0x41fa17
mov eax, edi
jmp 0x41fa24
lea eax, [ebp - 0x27c]
push eax
call fcn.005abff2
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004022f0
test byte [ebp - 0x2a8], 0x10
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
je 0x41fa8e
call fcn.00404460
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.004047c0
push 0x6411b8
call fcn.005abff2
pop ecx
push eax
push 0x6411b8
lea ecx, [ebp - 0x28]
call fcn.00404690
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00404460
call fcn.0041f95b
jmp 0x41fab9
call fcn.00404460
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.004047c0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00404460
call fcn.0041fb24
add esp, 0x18
lea ecx, [ebp - 0x28]
push edi
push ebx
call fcn.00402230
push edi
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00402230
jmp 0x41f9bb
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 0x41fb0a
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.00402230
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.00402230
call fcn.00492e49
ret
Function at 0x41fb71
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x656514]
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.005a8e00
lea eax, [ebp - 0x61c]
push str.C:log_
push eax
call fcn.005abfd0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sgswb.log
push eax
call fcn.004061d0
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.005a8e00
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.005a8e00
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.005a9145
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 0x41fd25
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005abff2
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.005abfd0
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.004061d0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push 0xfff
push 0x662b30
call fcn.00420900
xor eax, eax
add esp, 0x30
mov word [0x664b2e], ax
lea eax, [ebp - 0x414]
push eax
call esi
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x5d9074
push eax
cmovne edi, ebx
call fcn.005adc3e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41fd24
test edi, edi
jne 0x41fcd1
push esi
push 2
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0xfeff
push ebx
push eax
call fcn.005b6566
add esp, 0x10
mov edi, 0x662b30
push edi
call fcn.005abff2
push esi
add eax, eax
push eax
push ebx
push edi
call fcn.005b6566
push esi
push 2
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], 0xd
push ebx
push eax
call fcn.005b6566
push esi
push 2
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], 0xa
push ebx
push eax
call fcn.005b6566
push esi
call fcn.005b62ae
add esp, 0x38
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00492e23
mov esp, ebp
pop ebp
ret
Function at 0x420085
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 0x420095
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 0x4200d5
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 0x420145
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 0x42014e
pop esi
ret

Function at 0x42086c
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 0x420883
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8