joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x10], edx
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
movzx edx, byte [esi + 1]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [esi + 2]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [esi + 3]
xor edx, eax
imul edi, edx, 0x1000193
and edi, dword [ecx + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + edi*8]
add edi, edi
inc edi
mov dword [ebp - 0x14], edi
mov edi, dword [esi]
mov ebx, eax
cmp edx, eax
je 0x40df80
mov esi, dword [ebp - 0x14]
mov esi, dword [ecx + esi*4]
mov esi, dword [esi]
cmp ebx, esi
je 0x40df86
cmp dword [ebx + 8], edi
je 0x40df84
mov ebx, dword [ebx]
jmp 0x40df67
mov esi, eax
jmp 0x40df73
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40dfa0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
cmp dword [edx + 0x14], 7
jbe 0x40dfbc
mov edx, dword [edx]
mov edi, dword [ebp - 0x10]
add edi, edi
mov dword [ebp - 0x14], esi
mov eax, 0x811c9dc5
je 0x40dfde
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
imul eax, esi, 0x1000193
inc ebx
cmp edi, ebx
jne 0x40dfcd
mov esi, ecx
and eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 4]
mov esi, dword [esi + 0xc]
mov dword [ebp - 0x1c], esi
mov edi, dword [esi + eax*8]
add eax, eax
inc eax
mov dword [ebp - 0x18], eax
mov esi, edi
mov dword [ebp - 0x20], edi
cmp ecx, edi
je 0x40e020
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
cmp esi, eax
je 0x40e05c
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x18], eax
jne 0x40e041
cmp dword [esi + 0x1c], 7
jbe 0x40e024
mov eax, dword [esi + 8]
jmp 0x40e027
mov eax, edi
jmp 0x40e009
lea eax, [esi + 8]
cmp dword [ebp - 0x10], 0
je 0x40e05a
xor edi, edi
movzx ebx, word [eax + edi*2]
cmp bx, word [edx + edi*2]
jne 0x40e041
inc edi
cmp dword [ebp - 0x10], edi
jne 0x40e02f
jmp 0x40e048
mov esi, dword [esi]
mov edi, dword [ebp - 0x20]
jmp 0x40dffa
xor edi, edi
movzx ebx, word [edx + edi*2]
cmp bx, word [eax + edi*2]
jne 0x40e05c
inc edi
cmp dword [ebp - 0x10], edi
jne 0x40e04a
mov ecx, esi
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40e0f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
xor edx, 0x811c9dc5
imul edx, edx, 0x1000193
movzx esi, byte [eax + 1]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [eax + 2]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [eax + 3]
xor esi, edx
imul edi, esi, 0x1000193
and edi, dword [ecx + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
mov esi, dword [ecx + edi*8]
add edi, edi
inc edi
mov dword [ebp - 0x18], edi
mov edi, edx
mov edx, ecx
mov ebx, dword [eax]
mov ecx, esi
cmp edi, esi
je 0x40e165
mov eax, dword [ebp - 0x18]
mov eax, dword [edx + eax*4]
mov eax, dword [eax]
cmp ecx, eax
je 0x40e1a9
cmp dword [ecx + 8], ebx
je 0x40e169
mov ecx, dword [ecx]
jmp 0x40e14c
mov eax, esi
jmp 0x40e158
mov dword [ebp - 0x1c], edx
mov edx, ecx
mov dword [ebp - 0x14], edi
cmp edi, esi
je 0x40e194
mov edi, dword [ebp - 0x1c]
mov eax, ebx
mov ebx, dword [ebp - 0x18]
mov edi, dword [edi + ebx*4]
mov ebx, eax
mov edi, dword [edi]
cmp edx, edi
je 0x40e198
cmp ebx, dword [edx + 8]
jne 0x40e198
mov edx, dword [edx]
mov edi, dword [ebp - 0x14]
jmp 0x40e171
mov edi, esi
jmp 0x40e184
cmp ecx, edx
mov edi, dword [ebp - 0x14]
je 0x40e1a9
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x40e1b1
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
mov dword [eax + 4], edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x413450
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [0x438160]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x413493
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.0040a740
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x438160
call fcn.00409e46
add esp, 4
cmp dword [0x438160], 0xffffffff
jne 0x413482
xorps xmm0, xmm0
mov esi, esp
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
mov eax, dword [esi + 0x20]
mov dword [0x43815c], eax
movaps xmm0, xmmword [esi]
movaps xmm1, xmmword [esi + 0x10]
movups xmmword [0x43814c], xmm1
movups xmmword [0x43813c], xmm0
push 0x438160
call fcn.00409e46
add esp, 4
jmp 0x413482
Function at 0x42e380
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x438438]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42e3fc
mov eax, dword [esi + 8]
test eax, eax
jne 0x42e3d2
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x438434]
mov dword [ebp - 0x38], ecx
mov ebx, dword [esi + 4]
lea edi, [ebx + eax*8]
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
push dword [ebp - 0x38]
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
add ebx, 8
cmp ebx, edi
je 0x42e3b9
jmp 0x42e3e1
push 0x438438
call fcn.00409e46
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x42e3b2
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.00409e46
add esp, 4
jmp 0x42e3b2
Function at 0x402c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c4
call fcn.00404400
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
mov ecx, ebx
mov edx, ebx
shr edx, 0xa
xor dl, 1
shr ecx, 5
and dl, 3
mov al, cl
add dl, 3
and al, 2
add al, 4
movsx edx, dl
movsx eax, al
and cl, 4
imul edx, eax
movsx eax, bl
movsx edx, dl
imul edx, eax
sar dl, cl
mov byte [ebp + ebx - 0x3a988], dl
inc ebx
cmp ebx, 0x3a980
jb 0x402ca4
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403754
mov esp, ebp
pop ebp
ret
Function at 0x403f84
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403fc3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403fc3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403fc3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403fc3
cmp dword [ecx + 0x74], 0xe
jbe 0x403fc3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401e2e
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0xa3e07c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401e6e
cmp dword [ebp - 0x364], 6
jne 0x401e6e
cmp dword [ebp - 0x360], 0
je 0x401e98
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401e98
push 0xc00
call eax
test eax, eax
jne 0x401f2d
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401f2d
cmp eax, 0x104
ja 0x401f2d
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x401ed8
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x401f2c
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x401ef3
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x401ef1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0099319a
leave
ret
Function at 0x4055b9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x405663
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x405644
push edi
call fcn.0040558e
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x405637
cmp dword [esi + 0x5c], ebx
je 0x40565e
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00405a92
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.00405550
mov edi, eax
test edi, edi
jne 0x4056df
lea eax, [ebx + 0x20]
push eax
call fcn.004065d7
mov edi, eax
test edi, edi
jne 0x4056df
lea eax, [ebx + 0x1c]
push eax
call fcn.004065d7
mov edi, eax
test edi, edi
jne 0x4056df
push ebx
call fcn.00406490
mov edi, eax
test edi, edi
je 0x4056df
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.004054d2
add ebx, 0x28
sub esi, 1
jne 0x4056ce
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x4056f3
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x405707
cmp dword [esi + 0x40], edx
jne 0x405707
cmp dword [esi + 0x3c], edx
jne 0x405707
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x4066e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.009e4e36
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x406710
call fcn.004065f6
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x407f6b
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0xa05c43
call fcn.0099343a
cmp byte [0xa3fad0], 0
mov edi, dword [ebp + 8]
jne 0x407fa7
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00407564
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.009933f5
pop ecx
test esi, esi
jmp 0x407fb3
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407fb9
mov al, 1
jmp 0x407fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407fca
xor al, al
jmp 0x407fff
lea ecx, [ebp - 0x50]
call fcn.0040862d
lea ecx, [ebp - 0x28]
call fcn.00406bce
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004087f5
test al, al
je 0x407ff4
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.009933f5
pop ecx
mov al, bl
call fcn.00993408
ret 4

Function at 0x408007
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa3fad0], 0
jne 0x40803d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009933f5
pop ecx
test esi, esi
pop esi
jmp 0x40804a
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408050
mov al, 1
jmp 0x408052
xor al, al
leave
ret 4

Function at 0x40819d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00408e2b
cmp eax, 0xffffffff
je 0x4081ca
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x4081ca
and eax, 0xfffffffe
push eax
push esi
call fcn.0040859f
test al, al
je 0x408202
cmp byte [0xa3fad0], 0
push esi
jne 0x4081f4
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009933f5
pop ecx
test esi, esi
jmp 0x4081fc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408202
mov al, 1
jmp 0x408204
xor al, al
pop esi
leave
ret 4

Function at 0x40832e
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa3fad0], 0
jne 0x408362
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009933f5
pop ecx
test esi, esi
pop esi
jmp 0x40836d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x408373
mov al, 1
jmp 0x408375
xor al, al
leave
ret 4
Function at 0x40859f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa3fad0], 0
jne 0x4085d6
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009933f5
pop ecx
test esi, esi
pop esi
jmp 0x4085e4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4085ea
mov al, 1
jmp 0x4085ec
xor al, al
leave
ret 8

Function at 0x408e2b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa3fad0], 0
jne 0x408e5f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009933f5
pop ecx
mov eax, esi
pop esi
jmp 0x408e72
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4

Function at 0x409068
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409092
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409092
xor al, al
jmp 0x4090a6
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x414795
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa05e7b
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0xa3e07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
mov dword [esi], vtable.CInFileStreamVol.0
mov dword [esi + 4], vtable.CInFileStreamVol.1.0
mov dword [esi + 8], vtable.CInFileStreamVol.2.0
mov dword [esi + 0xc], vtable.CInFileStreamVol.3.0
cmp dword [esi + 0x30], edx
je 0x4147e8
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x74]
mov eax, dword [esi + 0x28]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x30]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x4147f8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, esi
call fcn.00410c35
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x4187b6
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0xa05aab
call fcn.0099343a
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.00418329
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.00409de5
push dword [ebp - 0x18]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040a0f6
push dword [ebp - 0x18]
call fcn.009933f5
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00993408
ret 8
Function at 0x418f49
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x418f64
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 8

Function at 0x4194ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.00993b60
mov eax, dword [0xa3e07c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1800
xor esi, esi
lea eax, [ebp - 0x1804]
push esi
push eax
call fcn.009e1150
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1804]
add esp, 0xc
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x419526
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1004]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x419540
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x804]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x41955a
push esi
push esi
lea eax, [ebp - 0x1804]
push eax
push 0x41959a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
cmp eax, 0xffffffff
je 0x41958e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0099319a
leave
ret

Function at 0x4197e2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0xa3e07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 8]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0
push edx
push eax
push ecx
call fcn.004196d8
add esp, 0x10
test al, al
je 0x41982f
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x1c]
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0099319a
leave
ret
Function at 0x41983d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0xa3e07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 8
pop ecx
mov ebx, dword [ebp + 0x10]
lea edi, [ebp - 0x28]
mov esi, str.SoftwareClasses
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x2001f
movsw word es:[edi], word [esi]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
movzx eax, byte [ebp + 8]
sub eax, 0x7fffffff
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4198cc
push dword [ebp + 0x20]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call fcn.004196d8
add esp, 0x10
test al, al
je 0x4198cc
push dword [ebp + 0x18]
push dword [ebp - 0x38]
push dword [ebp + 0x1c]
push 0
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0099319a
leave
ret
Function at 0x490556
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xa3e07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
or esi, 0xffffffff
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 3
push ecx
push eax
call dword [ebx + 0x18]
mov edi, eax
cmp edi, esi
je 0x4905aa
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push 0x2d1080
push edi
call dword [ebx + 8]
test eax, eax
push edi
cmovne esi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0099319a
leave
ret 4
Function at 0x952afd
Capabilities:
Hash data with md5

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

Function at 0x97518b
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
push eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], eax
add ecx, 0x14
push 0xa0af1a
call fcn.00439cde
ret