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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb7dd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xb7dd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb7dd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xb7dd94
push eax
push esi
call fcn.00b8020b
add esp, 8
pop esi
ret 0x10

Function at 0xb7dda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb7de22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xb7de15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xb96320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b7fdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xb7ddda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xb7de30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb7dec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xb7deb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xb96320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b7fdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xb7deab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xb7de6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xb7e000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xb7e131
push esi
call fcn.00b81145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00b70080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xb7e131
push 0
push ebp
call fcn.00b703a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00b70260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xb7e08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00b702f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb7e121
push 0xb96918
push edi
call fcn.00b7f3f0
push eax
push ebx
push esi
call fcn.00b7df60
push 0xb968f8
push edi
call fcn.00b7f3f0
push eax
push ebx
push esi
call fcn.00b7df60
push 0xb968d8
push edi
call fcn.00b7f3f0
push eax
push ebx
push esi
call fcn.00b7df60
push 0xb968c0
push edi
call fcn.00b7f3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00b7df60
push 0xb968a0
push edi
call fcn.00b7f3f0
push eax
push ebx
push esi
call fcn.00b7df60
push 0xb96888
push edi
call fcn.00b7f3f0
push eax
push ebx
push esi
call fcn.00b7df60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xb7f1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b7f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b7f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b7f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b7f140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb7fbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb7fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb9187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb7fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb7fc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4014f3
Capabilities:
Get file size

Disassembly:
mov eax, 0x4815c0
call fcn.0046746c
sub esp, 0x134
push ebx
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4015c9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 4
push ebx
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4015c2
push esi
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x4015b8
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
mov byte [ebp - 0x3d], bl
call fcn.00401884
push 0x103
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00401a14
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.004674c0
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.00401093
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x14]
push esi
call fcn.00401495
add esp, 0xc
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40168b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4016e8
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4016e0
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.004015ee
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4016ee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.004675be
mov esi, eax
pop ecx
test esi, esi
je 0x40173c
xor edx, edx
test ebx, ebx
jbe 0x40173c
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x401726
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404507
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40463a
cmp byte [ebp + 0xc], bl
jne 0x404583
lea eax, [esi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40463a
mov edi, dword [edi]
lea ecx, [ebp + 8]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40462c
call fcn.00467800
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.004054cf
push dword [ebp + 0xc]
jmp 0x404617
lea eax, [esi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40463a
mov edi, dword [edi]
lea ecx, [ebp - 4]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404629
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], edi
cmp word [edi], 0xfeff
jne 0x4045cb
lea eax, [edi + 2]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x4045d4
xor esi, esi
jmp 0x404605
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00467c10
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp + 8]
push esi
call fcn.00467800
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.004054cf
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x40463c
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4052c9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x405338
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x40531b
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x40531b
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x40531b
mov byte [ebp - 1], 1
jmp 0x405338
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x405338
cmp byte [ebp - 1], bl
jne 0x405338
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x405322
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x4097fa
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401166
mov ecx, eax
call fcn.0042aa0b
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40983b
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00409890
test eax, eax
jne 0x409887
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x409857
push esi
push edi
mov ecx, ebx
call fcn.00409890
test eax, eax
jne 0x409887
push 0x4aa144
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.0043584b
add esp, 0xc
test eax, eax
jge 0x409887
push edi
push esi
push 4
call fcn.0043584b
add esp, 0xc
test eax, eax
jge 0x409887
xor eax, eax
jmp 0x40988a
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x40c743
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
jne 0x40c76c
push ebx
push ebx
call fcn.00468cf7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40c784
push ebx
push ebx
call fcn.00468cf7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40c79c
push ebx
push ebx
call fcn.00468cf7
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x40c7b2
push ebx
push ebx
call fcn.00468cf7
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00467d30
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40cdb9
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x482559
call fcn.0046746c
sub esp, 0x47c
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.0040d006
test al, al
je 0x40cdec
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40cf8e
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x487]
mov byte [ebp - 0x488], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x488]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.0040d02e
push 1
lea eax, [ebp + 0xb]
pop edi
lea ecx, [ebp - 0x60]
push edi
push eax
lea eax, [ebp - 0x488]
push eax
call fcn.00401884
lea eax, [ebp - 0x60]
lea ecx, [esi + 0xd4]
push eax
mov dword [ebp - 4], ebx
call fcn.00401d3d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00401093
lea eax, [ebp + 0xf]
push edi
push eax
lea ecx, [ebp - 0x88]
push dword [ebp + 0xc]
call fcn.00401884
lea eax, [ebp - 0x88]
lea ecx, [esi + 0xfc]
push eax
mov dword [ebp - 4], edi
call fcn.00401d3d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401093
push 0x2c
call fcn.004675be
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov dword [ebp - 4], 2
je 0x40ceb5
lea ecx, [esi + 0xd4]
call fcn.0040afcb
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push 4
push esi
push eax
call fcn.0040cf9e
jmp 0x40ceb7
xor eax, eax
mov dword [esi + 0x124], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push ebx
push esi
push 0x40cd63
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 4
mov dword [ebp + 8], eax
call fcn.004675be
pop ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push 0xff
push 0xffffffffffffffff
push ebx
mov dword [eax], ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x40cf40
push edi
push ebx
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40cf33
cmp dword [ebp - 0x34], 0x8032
jne 0x40cf27
mov ecx, dword [esi + 0x124]
call fcn.0040d4a3
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40cf01
push 0xff
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x14]
jmp 0x40cef3
push dword [ebp - 0x14]
call fcn.00439080
mov esi, dword [esi + 0x124]
pop ecx
cmp esi, ebx
pop edi
je 0x40cf63
lea ecx, [esi + 8]
call fcn.0040d1b6
push esi
call fcn.00439080
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40cf6d
xor eax, eax
jmp 0x40cf8e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x18], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40d435
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x40d44e
xor esi, esi
jmp 0x40d47b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00467c10
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40d499
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x40d440
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e11a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x482733
call fcn.0046746c
sub esp, 0x27c
push ebx
push esi
lea eax, [ebp - 0x184]
push edi
xor ebx, ebx
push eax
mov esi, ecx
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x80]
lea ecx, [esi + 8]
push eax
mov dword [ebp - 0x10], ecx
call fcn.0040e2d9
mov edi, eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040ed02
mov edi, dword [edi + 4]
lea eax, [ebp - 0x288]
push eax
push ebx
lea eax, [ebp - 0x184]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.0040d1b6
lea eax, [ebp - 0x288]
push ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0x48b718
mov dword [ebp - 0x1c], 0x48b710
call fcn.0040e7ea
mov edi, 0x48b70c
mov dword [ebp - 0x30], edi
cmp byte [esi + 0x28], bl
mov dword [ebp - 4], 2
je 0x40e237
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040e2d9
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040ed02
push dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x184]
push eax
call esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040d1b6
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040e408
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 4
call fcn.0040ed02
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
lea eax, [ebp - 0x184]
push eax
call esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040d1b6
lea eax, [ebp - 0x184]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040e27b
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
mov dword [esi + 0xc], 0x48b718
mov dword [esi + 0x14], 0x48b710
call fcn.0040e8b9
mov dword [esi], edi
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0040d1b6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40fbde
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov byte [ebp - 0x1c], 0x49
cmp byte [ebp + 0xc], al
mov dword [ebp - 4], eax
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], al
je 0x40fc44
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x57
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x7a
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], al
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402e7f
mov eax, dword [ebp + 8]
leave
ret 8
Function at 0x413299
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4133cc
cmp byte [ebp + 0xc], bl
jne 0x413315
lea eax, [esi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4133cc
mov edi, dword [edi]
lea ecx, [ebp + 8]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x4133be
call fcn.00467800
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00404325
push dword [ebp + 0xc]
jmp 0x4133a9
lea eax, [esi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4133cc
mov edi, dword [edi]
lea ecx, [ebp - 4]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4133bb
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], edi
cmp word [edi], 0xfeff
jne 0x41335d
lea eax, [edi + 2]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x413366
xor esi, esi
jmp 0x413397
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00467c10
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp + 8]
push esi
call fcn.00467800
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.00404325
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x4133ce
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x413a11
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x413a80
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x413a63
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x413a63
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x413a63
mov byte [ebp - 1], 1
jmp 0x413a80
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x413a80
cmp byte [ebp - 1], bl
jne 0x413a80
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x413a6a
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4