joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10aa0
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x10a70
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.ntoskrnl.exe_wcscpy]
add esp, 8
lea ecx, [ebp - 0xf8]
push ecx
call fcn.00016620
lea edx, [ebp - 0xf8]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x22
lea edx, [ebp - 0x108]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
je 0x10b03
xor al, al
jmp 0x10b57
push 0x10a84
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.ntoskrnl.exe_wcscpy]
add esp, 8
lea edx, [ebp - 0x80]
push edx
call fcn.00016620
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
je 0x10b55
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
xor al, al
jmp 0x10b57
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x10e70
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push edi
mov ecx, 0x34
xor eax, eax
mov edi, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xc3d2e1f0
pop edi
pop ebp
ret 4
Function at 0x143b0
Capabilities:
Map section object
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0x21], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00014350
push 0
push 0
push 0
push 1
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x144bb
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00014350
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 0x8000000
push 2
push 0
lea eax, [ebp - 0x20]
push eax
push 0xf0005
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x144af
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 2
push 0
push 1
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x144a3
cmp dword [ebp - 0x30], 0
je 0x144a3
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x14497
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp dword [ecx], 0x4550
jne 0x14497
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov al, 1
jmp 0x144be
mov ecx, dword [ebp - 0x30]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0x21]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x14730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00014350
push 0
push 0
push 0x20
push 0
push 1
push 0x80
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x100002
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x1479d
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x14830
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 8], 6
ja 0x14863
cmp dword [ebp - 8], 6
jne 0x1485a
cmp dword [ebp - 4], 1
ja 0x14863
mov dword [ebp - 0xc], 0
jmp 0x1486a
mov dword [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x14880
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp dword [ebp - 4], 0
je 0x1495c
mov edx, dword [ebp - 4]
shl edx, 1
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1495c
push 0
mov eax, dword [ebp - 4]
shl eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jne 0x14952
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0
jmp 0x148fe
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx]
jae 0x14952
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x11c
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx + ecx + 0x1a]
lea edx, [eax + ecx + 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
add esp, 8
test eax, eax
jne 0x14950
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 8]
mov dword [ebp - 0xc], eax
jmp 0x14952
jmp 0x148f5
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x14e00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x14e37
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x14e37
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x14e37
mov eax, dword [ebp - 4]
add eax, 0x28
jmp 0x14e39
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x15130
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp dword [ebp - 4], 0
jne 0x151c0
mov dword [ebp - 4], 0x10000
mov ecx, dword [ebp - 4]
shl ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x15188
jmp 0x151be
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jge 0x151af
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x151be
cmp dword [ebp - 4], 0x400000
jb 0x15168
jmp 0x15200
mov eax, dword [ebp - 4]
shl eax, 1
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x15200
push 0
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jge 0x15200
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x1524a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, 1
test edx, edx
je 0x15240
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
cmp ecx, dword [ebp + 8]
jne 0x15229
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x15233
jmp 0x15240
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx]
mov dword [ebp - 0x10], edx
jmp 0x1520c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x158f0
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov byte [ebp - 0x235], 0
push 0x158e0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ntoskrnl.exe_wcscpy]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.ntoskrnl.exe_wcscat]
add esp, 8
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00014350
push 0
push 0
push 0
push 1
push 1
push 0
push 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x234]
push eax
push 1
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x15ac7
mov dword [ebp - 0x244], 0
push 0
push 0
lea edx, [ebp - 0x234]
push edx
call fcn.00014350
mov eax, dword [ebp - 0x21c]
push eax
push 0x8000000
push 2
push 0
lea ecx, [ebp - 0x234]
push ecx
push 0xf0005
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x15aa7
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
push 2
push 0
push 1
lea eax, [ebp - 0x248]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x24c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x15a9a
cmp dword [ebp - 0x24c], 0
je 0x15a9a
push 5
push 0x18
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x15a8b
cmp dword [ebp + 0x14], 0
je 0x15a56
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x260]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x15a67
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x260]
jbe 0x15a70
mov eax, dword [ebp - 0x260]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00013a40
mov byte [ebp - 0x235], 1
mov ecx, dword [ebp - 0x24c]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp + 0x18], 0
je 0x15aba
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x21c]
mov dword [eax], ecx
jmp 0x15ac7
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0x235]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40121b
Capabilities:
Check mutex on windows
Copy file
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x4e8]
sub esp, 0x568
mov eax, dword [0x44c360]
push ebx
push edi
push 0x40
mov dword [ebp + 0x4e4], eax
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp + 0x2dc], bl
lea edi, [ebp + 0x2dd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
mov byte [ebp + 0x3e0], bl
xor eax, eax
lea edi, [ebp + 0x3e1]
rep stosd dword es:[edi], eax
push str.SDMBUpdate
stosw word es:[edi], ax
push ebx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x40139e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401395
push esi
mov esi, 0x104
push esi
lea eax, [ebp + 0x2dc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x3e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x3e0]
push eax
push str._sSDMBUpdate.exe
push esi
push eax
call fcn.0041388c
add esp, 0x10
lea eax, [ebp + 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea eax, [ebp + 0x3e0]
push eax
lea eax, [ebp + 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x7f
xor eax, eax
pop ecx
mov byte [ebp - 0x28], bl
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp + 0x1d8], bl
lea edi, [ebp + 0x1d9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x1d8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp + 0x1d8]
push eax
push esi
lea eax, [ebp + 0x3e0]
push eax
push str._s__d___s_
lea eax, [ebp - 0x28]
push 0x200
push eax
call fcn.0041388c
add esp, 0x18
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x80], 0x44
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
jmp 0x40139e
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x4e4]
pop edi
mov al, 1
pop ebx
call fcn.004137fe
add ebp, 0x4e8
leave
ret
Function at 0x401f25
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x744
mov eax, dword [0x44c360]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 0x40
mov esi, ecx
xor eax, eax
pop ecx
xor ebx, ebx
mov byte [ebp - 0x108], bl
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push 0x43c9b0
push eax
call fcn.00414ba4
lea ecx, [ebp - 0x108]
lea eax, [esi + 0x174]
push ecx
push eax
call fcn.00414280
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x20c], bl
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x1c]
push ecx
add eax, 0x120
push eax
push 0x43c9a8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041388c
add esp, 0x24
lea eax, [ebp - 0x20c]
lea ecx, [esi + 0x5f0]
push eax
call fcn.00406306
test al, al
je 0x402157
lea ecx, [esi + 0x5f0]
lea edi, [esi + 0x5d8]
call fcn.00406022
lea ecx, [esi + 0x5f0]
mov dword [edi], eax
call fcn.00405f34
mov edi, dword [edi]
cmp edi, ebx
mov dword [esi + 0x5e0], eax
mov dword [esi + 0x5e4], ebx
jne 0x402015
lea eax, [esi + 0x174]
push 0x43c990
push eax
call fcn.00414280
pop ecx
pop ecx
jmp 0x402137
mov eax, dword [esi + 0x5e0]
mov ecx, dword [esi + 0x5e4]
shrd eax, ecx, 1
shr ecx, 1
push ecx
push eax
push edi
lea eax, [ebp - 0x108]
push 0x43c968
push eax
call fcn.00414ba4
lea eax, [ebp - 0x108]
push eax
lea eax, [esi + 0x174]
push eax
call fcn.00414280
add esp, 0x1c
jmp 0x402137
mov byte [ebp - 0x743], bl
mov byte [ebp - 0x742], bl
mov byte [ebp - 0x744], 1
mov eax, dword [edi + 0x318]
mov dword [ebp - 0x734], eax
mov eax, dword [edi + 0x31c]
mov dword [ebp - 0x730], eax
lea ebx, [edi + 0x214]
lea eax, [ebp - 0x728]
push ebx
push eax
mov dword [ebp - 0x72c], 1
call fcn.00414280
lea eax, [edi + 0x110]
push eax
lea eax, [ebp - 0x624]
push eax
call fcn.00414280
push ebx
call fcn.004141f0
lea ecx, [ebp - 0x624]
sub ecx, eax
lea eax, [ebp - 0x624]
push eax
mov dword [ebp + 8], ecx
call fcn.004141f0
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov byte [ecx + eax], bl
lea eax, [edi + 0x214]
push eax
push dword [edi + 8]
lea eax, [esi + 0x6f8]
push eax
push 0x43c95c
lea eax, [ebp - 0x520]
push 0x104
push eax
call fcn.0041388c
add esp, 0x30
lea eax, [esi + 0x5f4]
push eax
lea eax, [ebp - 0x520]
push eax
mov ecx, esi
call fcn.0040198d
lea eax, [ebp - 0x520]
push eax
mov ecx, esi
call fcn.004019ed
push 1
lea eax, [ebp - 0x744]
push eax
lea ecx, [esi + 0xc90]
call fcn.00406a38
lea ecx, [esi + 0x5f0]
call fcn.0040613e
mov edi, eax
cmp edi, ebx
jne 0x402056
lea ecx, [esi + 0xc90]
call fcn.00406517
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, 1
pop ebx
call fcn.004137fe
leave
ret 4

Function at 0x4027b2
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x5f0]
call fcn.00405fdb
and dword [esi + 0x5e8], 0
and dword [esi + 0x5ec], 0
mov ecx, esi
pop esi
jmp fcn.004025a7
Function at 0x4029b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4029cd
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4029df
xor eax, eax
jmp 0x402a11
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402a03
cmp esi, eax
jae 0x4029db
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4029f5
cmp esi, eax
jae 0x4029db
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x406306
Capabilities:
Delete file

Disassembly:
mov eax, 0x43a2ab
call fcn.00413db0
sub esp, 0x154
mov eax, dword [0x44c360]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.00405fdb
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.00414280
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x160]
xor bl, bl
call fcn.00425fa0
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x160]
call fcn.00427260
test al, al
je 0x406457
push edi
lea ecx, [ebp - 0x160]
call fcn.00425660
mov edi, eax
lea ecx, [edi + 0x2c]
mov edx, dword [ecx + 0x20]
mov eax, edx
sub eax, ecx
neg eax
sbb eax, eax
and eax, edx
mov eax, dword [eax + 0x18]
add eax, 8
push eax
lea eax, [esi + 0x108]
push eax
call fcn.00414280
pop ecx
pop ecx
push str.Version
mov ecx, edi
call fcn.00426c60
push eax
lea eax, [esi + 4]
push eax
call fcn.00414280
pop ecx
pop ecx
mov ebx, str.File
push ebx
mov ecx, edi
call fcn.00425690
jmp 0x406446
push 0x358
call fcn.0043019f
pop ecx
mov dword [ebp - 0x118], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x4063eb
push 0x43cdd4
mov ecx, eax
call fcn.00405b94
mov edi, eax
jmp 0x4063ed
xor edi, edi
push dword [ebp - 0x114]
lea eax, [esi + 0x310]
push eax
mov ecx, edi
mov byte [ebp - 4], 0
mov dword [ebp - 0x118], edi
call fcn.00405c13
mov ecx, edi
call fcn.00405dcd
test al, al
je 0x40642e
lea ecx, [esi + 0x61c]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x118]
push edx
push eax
call fcn.004062d7
jmp 0x40643a
test edi, edi
je 0x40643a
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x114]
push ebx
call fcn.004256d0
test eax, eax
mov dword [ebp - 0x114], eax
jne 0x4063c2
mov bl, 1
pop edi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.00405eb3
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov al, bl
pop ebx
call fcn.004137fe
leave
ret 4
Function at 0x4078c6
Capabilities:
Hash data with md5

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

Function at 0x409997
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44c360]
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
mov edi, ecx
mov byte [ebp - 0xd], bl
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x409acd
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x409acd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 0x14], ebx
mov dword [ebp + 8], eax
je 0x409acd
cmp eax, ebx
jbe 0x409acd
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
je 0x409acd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 8]
mov esi, eax
push dword [ebp - 0x14]
push esi
call fcn.00414380
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
mov eax, dword [esi + 8]
mov dword [ebp + 0xc], eax
mov ecx, dword [esi + 0xc]
inc eax
push eax
mov dword [ebp + 0x10], ecx
call fcn.004301ca
add esp, 0x10
push 5
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp + 0x10]
push ecx
add esi, 0x10
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xc], 0x5d
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], 1
call fcn.00423970
push ebx
push ebx
push ebx
push 0x20
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.004096d2
cmp dword [edi + 4], ebx
je 0x409ac4
mov esi, dword [edi + 0x14]
mov ebx, dword [edi + 8]
mov byte [edi + 0x34], 1
mov dword [edi + 0x30], 1
mov byte [edi + 0x35], 1
mov edi, dword [edi + 0x10]
push esi
call fcn.00415ebf
imul eax, edi
dec edi
imul edi, esi
push eax
push dword [ebp - 0x14]
add edi, ebx
push edi
call fcn.00414380
add esp, 0x10
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call fcn.004301cf
pop ecx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
call fcn.004137fe
leave
ret 0x10