joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e252
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45e2bc
call esi
cmp eax, 0x3f0
jne 0x45e2ac
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x45e2b8
mov al, 1
jmp 0x45e381
cmp eax, ebx
je 0x45e335
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x45e335
call esi
cmp eax, 0x7a
jne 0x45e335
push dword [ebp - 4]
call fcn.004662c5
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x45e329
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x45e339
cmp byte [ebp - 0x20], bl
je 0x45e335
push esi
call fcn.0045e012
pop ecx
xor al, al
jmp 0x45e381
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp + 0xb], bl
jbe 0x45e369
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x45e365
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x45e348
jmp 0x45e369
mov byte [ebp + 0xb], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x20], bl
je 0x45e37e
push esi
call fcn.0045e012
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45e67d
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x47a14b
call fcn.00465b54
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.0045e82d
test al, 0x10
pop ecx
je 0x45e7f8
push 1
lea eax, [ebp + 8]
pop edi
push 0x4922d4
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00407747
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00407f77
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x45e7a3
test edi, edi
je 0x45e79c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x4922d0
push eax
call edi
test eax, eax
je 0x45e787
lea eax, [ebp - 0x1bc]
push 0x4922cc
push eax
call edi
test eax, eax
je 0x45e787
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47b4b8
mov dword [ebp - 0x20], 0x47b4b0
call fcn.004059b3
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.00407579
add esp, 0xc
call fcn.0045e67d
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00407f77
lea eax, [ebp - 0x1e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x45e701
push esi
call ebx
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x45e7d2
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.00408b81
lea eax, [ebp - 0x60]
push 0x47fc68
push eax
call fcn.00465b73
cmp dword [ebp - 0x10], 0xffffffff
je 0x45e7dd
push dword [ebp - 0x10]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x45e7dd
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.00408b81
lea eax, [ebp - 0xa8]
push 0x47fc68
push eax
call fcn.00465b73

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45e862
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.00408b81
lea eax, [ebp - 0x48]
push 0x47fc68
push eax
call fcn.00465b73
leave
ret
Function at 0x45f21a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47a284
call fcn.00465b54
sub esp, 0x14c
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp - 0x10]
push dword [ebp + 0x14]
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
call fcn.004282aa
test eax, eax
je 0x45f25a
push ebx
push dword [ebp + 8]
call fcn.0045ff77
pop ecx
pop ecx
jmp 0x45f376
lea eax, [ebp + 0x14]
push esi
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
push 0x497b50
mov esi, 0x104
push dword [ebp - 0x10]
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x45f364
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x47bd74
mov dword [ebp - 0x18], 0x47bd6c
call fcn.00419ef2
mov dword [ebp - 0x2c], 0x47bd68
cmp byte [ebp + 0x18], bl
mov byte [ebp - 4], 1
je 0x45f2d5
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0045f3b1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0041a294
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
jmp 0x45f324
lea eax, [ebp - 0x3c]
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.0045f391
push esi
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00460706
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004606df
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004188ec
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0041a294
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0041a168
lea ecx, [ebp - 0x2c]
call fcn.0041a79e
mov esi, dword [ebp - 0x28]
push 0x497b4c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x158]
push dword [ebp + 0xc]
push esi
push 0x497b40
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0041a168
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 8]
call fcn.0045ff77
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0x10], ebx
je 0x45f384
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45f86f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47a385
call fcn.00465b54
sub esp, 0x140
and byte [ebp - 0x14c], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x14b]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14c]
push 0x104
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x14c], 0
je 0x45f8f7
lea eax, [ebp - 0x14c]
mov edi, 0x47bd6c
push esi
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], 0x47bd74
mov dword [ebp - 0x34], edi
call fcn.0041a02a
push 1
mov esi, 0x47bd68
pop eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x10], eax
push 0x491d34
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
call fcn.0045fa07
jmp 0x45f92a
lea eax, [ebp - 0x14c]
mov edi, 0x47bd6c
push esi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x47bd74
mov dword [ebp - 0x18], edi
call fcn.0041a02a
push 2
mov esi, 0x47bd68
pop ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x47bd74
mov dword [ecx + 0x14], edi
call fcn.0041a0ba
mov edi, dword [ebp + 8]
or dword [ebp - 0x10], 4
mov dword [edi], esi
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 1
je 0x45f961
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x2c]
call fcn.0041a168
and dword [ebp - 4], 0
test byte [ebp - 0x10], 1
je 0x45f977
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x48]
call fcn.0041a168
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x45fb1a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47a3f1
call fcn.00465b54
sub esp, 0x164
and byte [ebp - 0x170], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x16f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push 0x492800
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45fc0c
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x18], 0x104
mov eax, 0x4927f0
je 0x45fb7c
mov eax, 0x4927e0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x170]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x170]
mov ebx, 0x47bd74
mov edi, 0x47bd6c
push esi
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], edi
call fcn.0041a02a
mov esi, 0x47bd68
mov dword [ebp - 0x34], esi
push 0x491d34
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.0045fa07
lea ecx, [ebp - 0x34]
call fcn.0045fce3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.0041a0ba
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov dword [edi], esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
jmp 0x45fccd
cmp byte [ebp - 0x170], 0
mov ebx, 0x47bd74
je 0x45fc55
lea eax, [ebp - 0x170]
mov edi, 0x47bd6c
push esi
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], edi
call fcn.0041a02a
push 2
mov esi, 0x47bd68
pop eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x10], eax
push 0x491d34
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], eax
call fcn.0045fa07
jmp 0x45fc89
lea eax, [ebp - 0x170]
mov edi, 0x47bd6c
push esi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], edi
call fcn.0041a02a
mov esi, 0x47bd68
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x6c], esi
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.0041a0ba
mov edi, dword [ebp + 8]
or dword [ebp - 0x10], 1
test byte [ebp - 0x10], 4
mov dword [edi], esi
mov dword [ebp - 4], 2
je 0x45fcbc
and dword [ebp - 0x10], 0xfffffffb
lea ecx, [ebp - 0x6c]
call fcn.0041a168
and dword [ebp - 4], 0
test byte [ebp - 0x10], 2
je 0x45fcd2
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x50]
call fcn.0041a168
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4610a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0046123d
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x461155
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x497ec0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x461147
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push 0x497eb4
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x46110b
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push 0x497ea4
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x461134
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x461141
cmp byte [ebp - 0x838], bl
je 0x461147
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x461155
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00460d4d
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x46117a
cmp dword [ebp + 0xc], 4
jne 0x4611a6
cmp dword [ebp - 0x14], ebx
jne 0x4611a6
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x461192
mov ecx, edi
call fcn.004616a0
jmp 0x4611a6
cmp ax, 4
mov ecx, edi
jne 0x4611a1
call fcn.00461881
jmp 0x4611a6
call fcn.00461c55
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x4616a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.00465ce0
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x497fdc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46186e
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x497fd0
push dword [ebp - 4]
mov dword [ebp - 0x48], 0x497fc8
mov dword [ebp - 0x44], 0x497fbc
mov dword [ebp - 0x40], 0x497fac
mov dword [ebp - 0x3c], 0x497fa4
mov dword [ebp - 0x38], 0x497f98
mov dword [ebp - 0x34], 0x497f88
mov dword [ebp - 0x30], 0x497f80
mov dword [ebp - 0x2c], 0x497f74
mov dword [ebp - 0x28], 0x497f64
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x46186e
cmp dword [ebp - 0x14], 1
jne 0x46186e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x461831
cmp byte [ebp - 0x148], al
je 0x461831
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x461823
lea eax, [ebp - 0x96c]
push 0x497f60
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x496f18
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x4978e8
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x461787
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.00460f26
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x46187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4627f5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x462858
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x46286a
mov eax, dword [esi + 0xdc]
jmp 0x4628c2
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x4628c0
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x462898
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x462873
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x462ef3
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4638f3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x463945
push eax
call fcn.004662c5
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x463945
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x491f90
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x463949
xor al, al
jmp 0x4639aa
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x498290
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x4639a8
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.004662c5
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x4639a8
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x463996
mov al, 1
pop ebx
leave
ret 4
Function at 0x46d683
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x49ace8
cmp edx, dword [eax]
je 0x46d6a5
add eax, 8
inc ecx
cmp eax, 0x49ad78
jl 0x46d696
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x49ace8]
jne 0x46d7d3
mov eax, dword [0x4af7a0]
cmp eax, 1
je 0x46d7ad
test eax, eax
jne 0x46d6d6
cmp dword [0x4982e4], 1
je 0x46d7ad
cmp edx, 0xfc
je 0x46d7d3
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46d70d
lea eax, [ebp - 0x1a4]
push 0x47e75c
push eax
call fcn.00466b80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00465dd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x46d750
lea eax, [ebp - 0x1a4]
push eax
call fcn.00465dd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47e758
push edi
call fcn.0046cf00
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x47e73c
push eax
call fcn.00466b80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00466b90
lea eax, [ebp - 0xa0]
push 0x47e738
push eax
call fcn.00466b90
push dword [esi + 0x49acec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00466b90
push 0x12010
lea eax, [ebp - 0xa0]
push 0x47e710
push eax
call fcn.0046f0a0
add esp, 0x2c
pop edi
jmp 0x46d7d3
lea eax, [ebp + 8]
lea esi, [esi + 0x49acec]
push 0
push eax
push dword [esi]
call fcn.00465dd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406c40
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x406c78
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x406c6e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x406c7a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x406c60
xor eax, eax
pop ebx
pop esi
ret
Function at 0x403320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403339
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403374
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403370
lea ebx, [ebx]
cmp esi, eax
jae 0x403374
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403360
cmp esi, eax
jb 0x40337a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4045c0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x432280
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4499cc]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, 1
cmp dword [0x449a90], ebx
ja 0x4046f9
mov eax, dword [0x449ae8]
mov edx, dword [eax + 0xc]
mov ecx, 0x449ae8
mov dword [ebp - 4], 0
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x80c]
lea eax, [ebp + 0x810]
push eax
push ecx
push 0x400
lea edx, [ebp]
push 0x400
push edx
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCR90.dll__vsnwprintf_s]
add esp, 0x14
test eax, eax
jle 0x4046d9
lea eax, [ebp]
push eax
push str.DENG
lea ecx, [ebp - 0x14]
push str.__s__s
push ecx
call fcn.004043c0
add esp, 0x10
push ebx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00403eb0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x4046a2
test ecx, ecx
jge 0x404697
push 0x80070057
call fcn.00401000
movzx eax, word [eax]
cmp ax, 0xa
jne 0x4046a2
xor bl, bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4046cf
push 0xa
lea ecx, [ebp - 0x14]
call fcn.00404360
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004313ee
add ebp, 0x804
mov esp, ebp
pop ebp
ret