joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d0700
Capabilities:
Enumerate files on windows

Disassembly:
push 0x294
mov eax, 0x607b6f
call fcn.005cba3f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x144]
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x2a0], 0
push 0x6099b4
call fcn.0040fa60
and dword [ebp - 4], 0
lea eax, [ebp - 0x114]
mov edi, 0x104
push edi
push 0
push eax
call fcn.005d4960
push ebx
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.005e58c6
push 0x67f618
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.005ee191
add esp, 0x24
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x5d087b
test byte [ebp - 0x29c], 0x10
jne 0x5d085e
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x15c]
call fcn.0040fa60
push ebx
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 1
call fcn.0040fa60
push 0x60bb70
mov byte [ebp - 4], 2
call fcn.005edff0
pop ecx
push eax
push 0x60bb70
lea ecx, [ebp - 0x12c]
call fcn.00408a30
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00408880
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.005d0a8f
pop ecx
test al, al
je 0x5d083c
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x144]
call fcn.00408880
push 0x611bc4
call fcn.005edff0
pop ecx
push eax
push 0x611bc4
lea ecx, [ebp - 0x144]
call fcn.00408a30
push 0
push 1
lea ecx, [ebp - 0x12c]
call fcn.004087c0
push 0
push 1
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0
call fcn.004087c0
lea eax, [ebp - 0x29c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5d0786
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [ebp - 0x144]
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.004081f0
push ebx
push 1
lea ecx, [ebp - 0x144]
call fcn.004087c0
mov eax, esi
call fcn.005cb9fa
ret
Function at 0x5d08fa
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x840
mov eax, 0x607bad
call fcn.005cba3f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x828]
mov edi, 0x6099b4
xor ebx, ebx
push edi
mov dword [ebp - 0x84c], ebx
call fcn.0040fa60
push edi
lea ecx, [ebp - 0x810]
mov dword [ebp - 4], ebx
call fcn.0040fa60
push 0x3e8
lea eax, [ebp - 0x3f8]
mov byte [ebp - 4], 1
push ebx
push eax
mov dword [ebp - 0x848], 2
call fcn.005d4960
add esp, 0xc
mov dword [ebp - 0x844], 0x3e7
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x848]
push eax
push str.MinidumpDir
push str.SYSTEMControlSet001ControlCrashControl
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp byte [ebp - 0x3f8], bl
jne 0x5d0997
mov eax, ebx
jmp 0x5d09a4
lea eax, [ebp - 0x3f8]
push eax
call fcn.005edff0
pop ecx
push eax
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x810]
call fcn.00408c90
cmp dword [ebp - 0x800], 0
je 0x5d0a4f
push 0x400
lea eax, [ebp - 0x7f8]
push ebx
push eax
call fcn.005d4960
add esp, 0xc
lea ecx, [ebp - 0x7f8]
cmp dword [ebp - 0x7fc], 0x10
lea eax, [ebp - 0x810]
cmovae eax, dword [ebp - 0x810]
push dword [ebp - 0x800]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x7f8], 0
jne 0x5d0a20
cmp dword [ebp - 0x7fc], 0x10
lea eax, [ebp - 0x810]
cmovae eax, dword [ebp - 0x810]
jmp 0x5d0a26
lea eax, [ebp - 0x7f8]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.005d0700
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00413a30
push ebx
push 1
lea ecx, [ebp - 0x840]
call fcn.004087c0
lea eax, [ebp - 0x828]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
push eax
mov byte [esi], bl
call fcn.004081f0
push ebx
push 1
lea ecx, [ebp - 0x810]
call fcn.004087c0
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.004087c0
mov eax, esi
call fcn.005cb9fa
ret 4

Function at 0x5d0a8f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x2000080
push 3
push ebx
push ebx
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d0ac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x5d0b24
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xa00000
ja 0x5d0b1a
push edi
call fcn.005d9999
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x5d0b1a
push edi
push ebx
push eax
mov dword [ebp - 8], ebx
call fcn.005d4960
add esp, 0xc
lea eax, [ebp - 8]
push ebx
mov ebx, dword [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push str.GoodZipSvarerHaveException
push edi
push ebx
call fcn.005d0fda
push dword [ebp - 4]
mov bl, al
call fcn.005d9994
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d1074
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
xor ebx, ebx
push esi
inc eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x5d10fd
push dword [ebp - 4]
call fcn.005d9999
push dword [ebp - 4]
mov esi, eax
push ebx
push esi
call fcn.005d4960
add esp, 0x10
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test esi, esi
je 0x5d10fd
push dword [ebp + 0x14]
push esi
call fcn.005edf64
test eax, eax
movzx ebx, bl
push 1
pop eax
push esi
cmove ebx, eax
call fcn.005d9994
add esp, 0xc
test bl, bl
jne 0x5d1116
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.CheckRegSZValue_false__
call esi
push dword [ebp + 0xc]
call esi
push 0x67f6c0
call esi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5d1120
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x69def4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x10
pop ecx
push 0x88
mov dword [ebp - 0x198], eax
lea edi, [ebp - 0xcc]
lea eax, [ebp - 0x8c]
mov esi, str.SOFTWARERegisteredApplications
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005d4960
push 0xc8
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.005d4960
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.005edfa4
lea eax, [ebp - 0x194]
push 0x609b38
push eax
call fcn.005edf33
lea eax, [ebp - 0x194]
push ebx
push eax
call fcn.005edf33
add esp, 0x30
lea eax, [ebp - 0xcc]
cmp dword [ebp + 0x10], 0
push ebx
push eax
je 0x5d11ef
mov edi, reloc.WS2_32.dll_bind
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov esi, dword [ebp - 0x198]
push esi
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
lea eax, [ebp - 0xcc]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x5d11fa
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005caa5c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5d120d
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x69def4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x44]
mov esi, 0x60cf90
mov dword [ebp - 0x370], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp + 0x18]
movsd dword es:[edi], dword [esi]
push 0x2e
mov dword [ebp - 0x368], eax
lea eax, [ebp - 0x32]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push eax
call fcn.005d4960
mov esi, 0xc8
lea eax, [ebp - 0x1d4]
push esi
push edi
push eax
call fcn.005d4960
push esi
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.005d4960
push 0x190
lea eax, [ebp - 0x364]
push edi
push eax
call fcn.005d4960
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.005edfa4
lea eax, [ebp - 0x1d4]
push 0x609b38
push eax
call fcn.005edf33
add esp, 0x40
lea eax, [ebp - 0x1d4]
push ebx
push eax
call fcn.005edf33
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.005edfa4
lea eax, [ebp - 0x10c]
push str.Capabilities
push eax
call fcn.005edf33
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.005edfa4
lea eax, [ebp - 0x364]
push str.FileAssociations
push eax
call fcn.005edf33
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x364]
add esp, 0x28
cmp dword [ebp + 0x1c], edi
mov edi, reloc.WS2_32.dll_bind
push eax
push edi
je 0x5d13c1
call esi
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
mov esi, dword [ebp - 0x368]
push esi
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x10c]
push 1
push str.AppDesc
push eax
push edi
call esi
mov ebx, dword [ebp - 0x36c]
push ebx
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push str.AppIcon
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
mov ebx, dword [ebp - 0x370]
push ebx
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push str.AppName
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x364]
push eax
push edi
call esi
jmp 0x5d13cd
call esi
lea eax, [ebp - 0x10c]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005caa5c
mov esp, ebp
pop ebp
ret 0x18
Function at 0x5d13e0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x69def4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x324]
push edi
mov edi, dword [ebp + 0xc]
push 0x190
push 0
push eax
call fcn.005d4960
mov ebx, 0xc8
lea eax, [ebp - 0xcc]
push ebx
push 0
push eax
call fcn.005d4960
push ebx
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.005d4960
push edi
push esi
lea eax, [ebp - 0x194]
push 0x609b88
push eax
call fcn.0040f920
push esi
lea eax, [ebp - 0x324]
push str.SOFTWARE_sCapabilitiesFileAssociations
push eax
call fcn.0040f920
add esp, 0x40
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.005edfa4
lea eax, [ebp - 0xcc]
push 0x609b38
push eax
call fcn.005edf33
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.005edf33
add esp, 0x18
lea eax, [ebp - 0xcc]
mov esi, reloc.WS2_32.dll_bind
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x194]
push eax
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x194]
push eax
push 1
push edi
lea eax, [ebp - 0x324]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005caa5c
mov esp, ebp
pop ebp
ret 8

Function at 0x5d15cc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x69def4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.005d4960
add esp, 0xc
mov dword [ebp - 0x218], 0x114
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x214], 6
jb 0x5d1691
lea eax, [ebp - 0x21c]
push eax
push 0x613ee0
push 3
push esi
push 0x613f00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x5d1691
lea eax, [ebp - 0x104]
mov dword [ebp - 0x220], esi
push 0x609b1c
push eax
call fcn.005edfa4
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x220]
pop ecx
pop ecx
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x104]
push edx
push 1
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x220], esi
jne 0x5d1685
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x104]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
push esi
push 0x3003
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005caa5c
mov esp, ebp
pop ebp
ret
Function at 0x5d2450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov esi, dword [edi + 8]
mov ecx, dword [esi + 8]
call fcn.005d3790
push dword [ebp + 0xc]
mov ecx, dword [esi + 8]
call fcn.005d3740
push dword [ebp + 0x10]
mov ecx, dword [esi + 8]
call fcn.005d37e0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
je 0x5d248c
mov ecx, dword [edi + 8]
mov dword [ecx + 0xc], eax
mov esi, dword [edi + 8]
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x5d24e0
push 0
push 0
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
je 0x5d24d0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x5d24d0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
mov eax, dword [edi + 8]
pop edi
pop esi
mov al, byte [eax + 4]
pop ebp
ret 0xc
Function at 0x5d26f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x69def4]
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 - 0x638], esi
lea eax, [esi + 8]
mov dword [esi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x63c], esi
jb 0x5d274a
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], ecx
cmp dword [esi + 0x34], 8
mov dword [ebp - 4], ecx
jb 0x5d2767
mov eax, dword [esi + 0x20]
jmp 0x5d276a
lea eax, [esi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x5d2784
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x5d279e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x68]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x5d27b8
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push ecx
mov byte [ebp - 4], 4
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ecx
call fcn.005dec47
push eax
call fcn.005e0667
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005d4960
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x5d2877
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.005d4960
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x5d2868
test eax, eax
je 0x5d2868
add eax, eax
cmp eax, 0x412
jae 0x5d2863
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x5d286e
call fcn.005cb0a3
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x20]
call fcn.0040ada0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x5d28a3
cmp dword [esi + 0x34], 8
jb 0x5d2889
mov ecx, dword [esi + 0x20]
jmp 0x5d288c
lea ecx, [esi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x5d28a3
push 1
push 0x609b38
lea ecx, [esi + 0x20]
call fcn.0040f7f0
cmp dword [esi + 0x30], 0
jne 0x5d28b8
push 3
push 0x67f9e4
lea ecx, [esi + 0x20]
call fcn.00407210
mov dword [esi + 4], 0
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.005caa5c
mov esp, ebp
pop ebp
ret
Function at 0x5d28e0
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x60], 0
je 0x5d28fc
cmp dword [edi + 0x64], 8
lea eax, [edi + 0x50]
jb 0x5d28f5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x80]
test eax, eax
je 0x5d2919
push eax
call fcn.005caaab
add esp, 4
mov dword [edi + 0x80], 0
mov eax, dword [edi + 0x7c]
lea esi, [edi + 0x68]
cmp eax, 8
jb 0x5d292f
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407310
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x5d2945
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x50]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x5d2960
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407310
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x5d2976
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x38]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x5d2991
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407310
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x5d29a7
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x5d29c2
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407310
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x5d29d8
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov eax, dword [edi + 0x1c]
cmp eax, 8
jb 0x5d29f2
inc eax
lea ecx, [edi + 8]
push eax
push dword [edi + 8]
call fcn.00407310
mov dword [edi + 0x1c], 7
cmp dword [edi + 0x1c], 8
mov dword [edi + 0x18], 0
jb 0x5d2a11
mov eax, dword [edi + 8]
xor ecx, ecx
pop edi
pop esi
mov word [eax], cx
ret
xor eax, eax
mov word [edi + 8], ax
pop edi
pop esi
ret
Function at 0x5d3f40
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
je 0x5d3f7e
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 4
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x5d3f7e
mov eax, dword [ebp - 4]
xor edx, edx
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret

Function at 0x5f10a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f0f20

Function at 0x5f6044
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f5d04
Function at 0x40b91c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004043b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b9b7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x412da8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40b9b7
cmp eax, 1
je 0x40b9d8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b9b7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b984
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b9b3
xor eax, eax
inc eax
jmp 0x40b9f7
cmp edi, eax
jae 0x40b9bb
xor eax, eax
jmp 0x40b9f7
cmp eax, esi
jae 0x40b9c2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x412da8]
jmp 0x40b9db
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004101
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
mov al, 0x10
pushfd
push edi
jmp 0x1c53060
dec bl
mov bl, 2
mov al, ah
dec al
inc ecx
lea esp, [esp + 4]
ja 0x1002b0f
mov al, 0x10
push 0xbc0d7bf
mov byte [esp], cl
push edi
push dword [esp + 4]
lea esp, [esp + 0xc]
call fcn.01090e0a
pushfd
adc al, al
pushal
lea esp, [esp + 0x24]
jae 0x1004116
pushfd
push dword [esp]
lea esp, [esp + 8]
jne 0x1015dcf
pushal
stosb byte es:[edi], al
mov word [esp], 0xae89
pushfd
pushfd
lea esp, [esp + 0x28]
jmp 0xfeea21
lea esp, [esp + 4]
jne 0x1015dcf
push 0xd0112cd0
pushfd
pushal
mov word [esp + 4], ax
stosb byte es:[edi], al
mov byte [esp + 0x24], ah
mov word [esp + 0xc], 0x2cec
push 0xede9a942
push eax
lea esp, [esp + 0x30]
jmp 0xfeea21
lea esp, [esp + 0x28]
call fcn.01090e0a
push 0x4be0cf76
pushal
push edi
adc al, al
pushfd
lea esp, [esp + 0x2c]
jae 0x1004116
push esi
jmp 0x108b414

Function at 0x10885ac
Capabilities:
Encode data using xor

Disassembly:
add esi, 8
sub esp, 0xfffffffc
add dword [ebp - 4], ecx
btc edi, 0x1b
adc bh, ch
shld di, ax, cl
shl di, cl
sub ecx, 8
clc
shr ecx, 1
btr di, 0xc
bswap di
rcl di, cl
mov edi, dword [esi]
cmp bl, 0x4d
add edi, dword [ebp + 0x10]
bts bx, 0xe
jmp 0x1007ad4

Function at 0x108a9d6
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 8]
ja 0xfeb3bb