joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e5990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e59b0
sub eax, esi
cmp byte [eax + edx - 1], 0x5c
pop esi
mov eax, 0x5d6b08
jne 0x4e59cb
mov eax, 0x5cbe80
push 0x5d6afc
push edx
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00559bfd
add esp, 0x18
test eax, eax
js 0x4e5a16
lea ecx, [ebp - 0x108]
push ecx
mov byte [ebp + eax - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4e5a16
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00558b78
mov esp, ebp
pop ebp
ret

Function at 0x4e5a30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, edx
push esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e5a50
sub eax, esi
sar eax, 1
cmp word [edx + eax*2 - 2], 0x5c
pop esi
mov eax, 0x5c0974
jne 0x4e5a72
mov eax, str._s_s
push str.nnotes.dll
push edx
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0055abe8
add esp, 0x18
test eax, eax
js 0x4e5abf
lea edx, [ebp - 0x20c]
xor ecx, ecx
push edx
mov word [ebp + eax*2 - 0x20c], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e5abf
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x4e5f60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00559feb
push 0x5d6c1c
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0055ffbd
push edi
lea edx, [ebp - 0x108]
push esi
push edx
call fcn.00559feb
push 0x5c0144
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0055ffbd
add esp, 0x30
lea ecx, [ebp - 0x34c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e5ff3
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00559feb
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0xc
lea edx, [ebp - 0x34c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4e60e7
lea eax, [ebp - 0x320]
push eax
call fcn.004e5f00
add esp, 4
test eax, eax
jne 0x4e6015
lea ecx, [ebp - 0x320]
push ecx
lea edx, [ebp - 0x108]
push 0x104
push edx
call fcn.0055ffbd
mov al, byte [ebp - 0x34c]
add esp, 0xc
test al, 0x10
je 0x4e60a1
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004e5f60
add esp, 8
test eax, eax
je 0x4e60f2
lea ecx, [ebp - 0x108]
push ecx
call ebx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00559feb
jmp 0x4e6012
test al, 1
je 0x4e60b9
lea ecx, [ebp - 0x108]
push 0x80
push ecx
call fcn.0056006f
add esp, 8
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4e60f2
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.00559feb
jmp 0x4e6012
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4e610c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebx
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x4e6130
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x90
lea eax, [ebp - 0x9c]
push esi
push eax
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xa0], 0x94
call fcn.0055aed0
add esp, 0xc
mov dword [ebp - 0xc], esi
mov word [ebp - 8], 0x500
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0xac]
push ecx
push 8
push eax
mov dword [ebp - 0xb4], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4e61c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x4e626e
mov esi, eax
jmp 0x4e62c2
lea edx, [ebp - 0xa8]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4e61ac
mov edx, dword [ebp - 0xa8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea ecx, [ebp - 0xa4]
push ecx
push edx
push esi
call ebx
test eax, eax
je 0x4e6297
cmp dword [ebp - 0xa4], esi
jne 0x4e62bb
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4e6297
cmp dword [ebp - 0x9c], 6
jb 0x4e62c1
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xb8]
push ecx
push 4
lea edx, [ebp - 0xb0]
push edx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4e627c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x520
je 0x4e62c1
cmp eax, 0x522
je 0x4e62c1
test eax, eax
jg 0x4e62a5
mov esi, eax
jmp 0x4e62c1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4e62c2
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa4]
push ecx
push edx
push eax
call ebx
test eax, eax
jne 0x4e62b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x4e62a5
mov esi, eax
jmp 0x4e62c1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4e62c1
cmp dword [ebp - 0xa4], esi
je 0x4e62c1
mov dword [edi], 1
pop ebx
mov eax, dword [ebp - 0xb4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e62d5
push eax
call edi
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x4e62e2
push eax
call edi
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x4e62ef
push eax
call edi
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x4e6300
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x4e8df0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0055af50
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4e8f59
cmp byte [eax], 0
je 0x4e8f59
push 0x5cf790
push eax
lea eax, [ebp - 0x100c]
push eax
mov byte [ebp - 0x1005], 0
mov dword [ebp - 0x100c], 0
call fcn.0055d2d4
add esp, 0xc
test eax, eax
jne 0x4e8f44
mov eax, dword [ebp - 0x100c]
test eax, eax
je 0x4e8f44
push ebx
push edi
push 2
push 0
push eax
call fcn.0055d8e7
mov ecx, dword [ebp - 0x100c]
push ecx
call fcn.0055df9c
mov edx, dword [ebp - 0x100c]
push 0
push 0
push edx
mov edi, eax
call fcn.0055d8e7
mov ebx, dword [esi + 0x10]
add esp, 0x1c
cmp ebx, edi
ja 0x4e8eb5
cmp dword [esi + 0x14], edi
je 0x4e8eb5
push 1
push edi
mov ecx, esi
call fcn.00422030
test al, al
je 0x4e8eb5
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x4e8eaf
mov eax, dword [esi]
jmp 0x4e8eb1
mov eax, esi
mov byte [eax + ebx], 0
mov eax, dword [ebp - 0x100c]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.0055ddeb
add esp, 0x10
pop edi
pop ebx
test eax, eax
je 0x4e8f08
push eax
lea edx, [ebp - 0x1004]
push edx
mov ecx, esi
call fcn.00416b30
mov eax, dword [ebp - 0x100c]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.0055ddeb
add esp, 0x10
test eax, eax
jne 0x4e8ed8
mov edx, dword [ebp - 0x100c]
push edx
call fcn.0055cfc0
add esp, 4
test eax, eax
jne 0x4e8f35
mov eax, dword [ebp - 0x100c]
push eax
call fcn.0055cf98
add esp, 4
test eax, eax
je 0x4e8f35
mov byte [ebp - 0x1005], 1
mov ecx, dword [ebp - 0x100c]
push ecx
call fcn.0055d18d
add esp, 4
mov al, byte [ebp - 0x1005]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x4f25a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d580
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x62d12c]
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 esi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
push 0x5d78cc
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004eec60
add esp, 0x10
mov eax, dword [ebp - 0x48]
mov edi, 0x10
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], edi
jae 0x4f25fc
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x188]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x18c], eax
cmp eax, 0xffffffff
je 0x4f2725
test byte [ebp - 0x188], 0x10
je 0x4f26fc
mov ecx, 0x5c0494
lea eax, [ebp - 0x15c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4f2651
cmp dl, bl
je 0x4f264d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4f2651
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4f2631
xor eax, eax
jmp 0x4f2656
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4f26fc
mov ecx, 0x5d6c18
lea eax, [ebp - 0x15c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4f2690
cmp dl, bl
je 0x4f268c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4f2690
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4f2670
xor eax, eax
jmp 0x4f2695
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4f26fc
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4f26b0
sub eax, edx
push eax
lea edx, [ebp - 0x15c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00422130
push ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0043e8c0
push eax
lea ecx, [ebp - 0x194]
push ecx
mov ecx, esi
call fcn.00434830
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], edi
jb 0x4f26fc
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00558723
add esp, 4
mov ecx, dword [ebp - 0x18c]
lea eax, [ebp - 0x188]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4f2619
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esi + 8]
cmp dword [ebp - 0x34], edi
jb 0x4f2739
mov eax, dword [ebp - 0x48]
push eax
call fcn.00558723
add esp, 4
mov eax, esi
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.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x4f3b20
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
call fcn.00505950
xor ebx, ebx
cmp byte [esi + 0xc], bl
je 0x4f3b5c
mov ecx, esi
call fcn.00505970
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4f3b43
mov eax, dword [ebp - 0x88]
cmp eax, 1
jne 0x4f3bb6
cmp dword [ebp - 0x94], 4
jne 0x4f3bdb
mov eax, dword [ebp - 0x90]
cmp eax, ebx
jne 0x4f3b9a
mov dword [esi + 0x10], ebx
jmp 0x4f3bdb
cmp eax, 0xa
jne 0x4f3ba8
mov dword [esi + 0x10], 2
jmp 0x4f3bdb
cmp eax, 0x5a
jne 0x4f3bdb
mov dword [esi + 0x10], 3
jmp 0x4f3bdb
cmp eax, 2
jne 0x4f3b43
mov eax, dword [ebp - 0x94]
cmp eax, 4
ja 0x4f3bcf
mov dword [esi + 0x10], 1
jmp 0x4f3bdb
cmp eax, 5
jb 0x4f3bdb
mov dword [esi + 0x10], 4
mov eax, dword [esi + 0x10]
push edi
cmp eax, ebx
je 0x4f3c96
cmp eax, 2
je 0x4f3c96
cmp eax, 3
je 0x4f3c96
cmp eax, 4
je 0x4f3c96
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
cmp eax, 1
jne 0x4f3cf2
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x24], eax
cmp eax, ebx
je 0x4f3c7c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call edi
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x4f3c44
mov ecx, dword [esi + 0x24]
push ecx
jmp 0x4f3c76
mov edx, dword [esi + 0x24]
push str.EnumProcessModules
push edx
call edi
mov dword [esi + 0x2c], eax
cmp eax, ebx
jne 0x4f3c5c
mov eax, dword [esi + 0x24]
push eax
jmp 0x4f3c76
mov ecx, dword [esi + 0x24]
push str.GetModuleBaseNameA
push ecx
call edi
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x4f3cfe
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, esi
call fcn.00505970
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
push 0x5d710c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4f3c7c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
call edi
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x4f3cc3
mov eax, dword [esi + 0x14]
push eax
jmp 0x4f3c76
mov ecx, dword [esi + 0x14]
push str.Process32First
push ecx
call edi
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x4f3cda
mov edx, dword [esi + 0x14]
jmp 0x4f3c75
mov eax, dword [esi + 0x14]
push str.Process32Next
push eax
call edi
mov dword [esi + 0x20], eax
cmp eax, ebx
jne 0x4f3cf2
mov ecx, dword [esi + 0x14]
push ecx
jmp 0x4f3c76
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov ecx, esi
mov byte [esi + 0xc], 1
call fcn.00505970
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x4f3dc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.system.ini
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x5e8923
push str.SCRNSAVE.EXE
push str.boot
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [edi + 0x18]
push 0
push 2
call ecx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f3e1f
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x1c]
lea edx, [ebp - 0x334]
push edx
push esi
mov byte [ebp - 0x335], 0
mov dword [ebp - 0x334], 0x128
call eax
test eax, eax
je 0x4f3eb5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x4f3e50
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x310]
push edx
call ebx
lea ecx, [ebp - 0x108]
lea eax, [ebp - 0x20c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4f3e91
test dl, dl
je 0x4f3e8d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4f3e91
add eax, 2
add ecx, 2
test dl, dl
jne 0x4f3e71
xor eax, eax
jmp 0x4f3e96
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4f3ead
mov ecx, dword [edi + 0x20]
lea eax, [ebp - 0x334]
push eax
push esi
call ecx
test eax, eax
jne 0x4f3e50
jmp 0x4f3eb4
mov byte [ebp - 0x335], 1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x335], 0
mov ecx, dword [ebp - 4]
setne al
pop edi
xor ecx, ebp
pop esi
call fcn.00558b78
mov esp, ebp
pop ebp
ret

Function at 0x4fb8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x634cf8]
cmp eax, 0x1c00
jle 0x4fb8f8
push 0
lea eax, [ebp - 4]
push eax
push 0x632cf8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 8]
push eax
push 0x632cf8
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [0x634cf8], eax
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push ecx
lea edx, [eax + 0x632cf8]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [0x634cf8], eax
mov esp, ebp
pop ebp
ret
Function at 0x4fb940
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x603408
push 0x55b400
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x62d12c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0xc]
xor edi, edi
cmp esi, edi
jne 0x4fb9e1
mov dword [ebp - 4], edi
push str.raising_exception_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push edi
push edi
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.writing_minidump_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
push edi
push edi
lea edx, [ebp - 0x24]
push edx
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x634cfc]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fbda0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x44]
xor edx, edx
mov eax, 0x40000000
div edi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], 1
mov ebx, eax
add ebx, ebx
add ebx, ebx
cmp ebx, esi
jbe 0x4fbe31
mov edx, esi
imul edx, edi
push 0x1c
lea ecx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
test eax, eax
je 0x4fbe24
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4fbe24
div edi
add esi, eax
cmp dword [ebp - 0x14], 0x1000
jne 0x4fbe2d
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 8]
jbe 0x4fbe2d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 8], edx
call fcn.004fbab0
add esp, 4
test al, al
je 0x4fbe2d
inc dword [ebp - 4]
jmp 0x4fbe2d
mov eax, 0x10000
div edi
add esi, eax
cmp esi, ebx
jb 0x4fbdd5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fe6f0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
mov dword [ebp - 0x4c], 0xc3d2e1f0
test edi, edi
je 0x4fe783
push 0x40
lea ecx, [ebp - 0x44]
push 0
push ecx
call fcn.0055aed0
mov eax, 0x40
add esp, 0xc
cmp dword [ebp + 0x1c], eax
jbe 0x4fe759
mov dword [ebp + 0x1c], eax
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.005592a0
mov ecx, 0x40
lea eax, [ebp - 0x44]
call fcn.004fe6c0
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004fe200
add esp, 0x10
cmp esi, 0x40
jl 0x4fe7d3
mov eax, esi
shr eax, 6
mov dword [ebp - 0x48], eax
neg eax
shl eax, 6
add esi, eax
mov dword [ebp - 0x64], esi
lea ebx, [ebx]
mov ecx, 0x10
mov esi, ebx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x40
lea eax, [ebp - 0x44]
call fcn.004fe6c0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x5c]
add ebx, 0x40
call fcn.004fe200
add esp, 4
dec dword [ebp - 0x48]
jne 0x4fe7a0
mov esi, dword [ebp - 0x64]
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0055aed0
push esi
lea ecx, [ebp - 0x44]
push ebx
push ecx
call fcn.005592a0
add esp, 0x18
mov ecx, 0x40
lea eax, [ebp - 0x44]
mov byte [ebp + esi - 0x44], 0x80
call fcn.004fe6c0
inc esi
cmp esi, 0x38
jle 0x4fe822
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x5c]
call fcn.004fe200
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0055aed0
add esp, 0x10
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x44]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004fe200
push 0x40
lea ecx, [ebp - 0x44]
push 0
push ecx
call fcn.0055aed0
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], eax
add esp, 0x10
mov ecx, 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], edx
call fcn.004fe6c0
mov esi, dword [ebp + 0x14]
cmp esi, 0x14
jle 0x4fe885
mov esi, 0x14
mov edx, dword [ebp - 0x68]
push esi
lea ecx, [ebp - 0x44]
push ecx
push edx
call fcn.005592a0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x4fe8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0055aed0
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, 0x40
jle 0x4fe8fd
push 0
push 0
push 0x40
lea ecx, [ebp - 0x44]
push ecx
push eax
push esi
call fcn.004fe6f0
add esp, 0x18
jmp 0x4fe90b
push eax
lea edx, [ebp - 0x44]
push esi
push edx
call fcn.005592a0
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
xor byte [ebp + eax - 0x44], 0x36
inc eax
cmp eax, 0x40
jl 0x4fe910
mov edx, dword [ebp + 0xc]
push 0x40
lea eax, [ebp - 0x44]
push eax
push 0x40
lea ecx, [ebp - 0x84]
push ecx
push edx
push edi
call fcn.004fe6f0
add esp, 0x18
xor ecx, ecx
lea esp, [esp]
xor byte [ebp + ecx - 0x44], 0x6a
inc ecx
cmp ecx, 0x40
jl 0x4fe940
mov edx, dword [ebp + 0x1c]
push 0x40
lea ecx, [ebp - 0x44]
push ecx
push edx
push ebx
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004fe6f0
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00558b78
mov esp, ebp
pop ebp
ret

Function at 0x4ff440
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e61b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x62d12c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__.0
call fcn.00542726
push 4
mov dword [ebp - 4], 0
call fcn.00559a21
mov edi, eax
add esp, 4
test edi, edi
je 0x4ff4c0
call fcn.0054225f
mov dword [edi], eax
call fcn.005420c3
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00541f2c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4ff4b6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00541f54
jmp 0x4ff4c2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret