joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5ea
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.0040aefe
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x40a6f8
cmp ebx, edx
jge 0x40a63f
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x40a641
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, dword [ebp - 4]
add dword [ebp - 4], edx
inc ebx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x40a624
cmp ecx, edx
jne 0x40a649
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x40a610
cmp eax, 0xa
jg 0x40a6f8
mov dword [ebp - 4], 0x41ceb0
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x41cfd0]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x41cfd0]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x41cfd0]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x41cfd0]
mov esi, dword [ebp - 4]
xor al, byte [esi]
xor byte [ebp - 0x25], bl
inc dword [ebp - 4]
push 3
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, edx
jl 0x40a6a4
add eax, edx
dec edi
jne 0x40a6a2
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x40a6f8
cmp ebx, edx
jge 0x40a6e1
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x40a6e3
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
lea esi, [ecx + esi*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, edx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x40a6c5
cmp ecx, edx
jne 0x40a6ea
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x40a6b7
cmp dword [ebp + 8], 0xa
jle 0x40a65d
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a6ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
add ecx, 0x24
push 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 9
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 8], edi
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x419eb0]
xor dl, byte [eax + ebx*4 + 0x41a6b0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x41aab0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x41a2b0]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x40a727
inc eax
cmp eax, edi
jl 0x40a71a
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040aefe
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x40a718
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b74c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4150b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40b797
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x429a50], ax
xor eax, eax
mov word [0x429a52], ax
mov dword [0x4150b0], 0x429a50
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ed9e
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4150a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40bb16
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x423a00]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x424b14], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40bb78
mov ecx, dword [0x41d0d4]
call fcn.00406bcb
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x413744
push 0
push 0xc2
push edi
call esi
mov byte [0x424b14], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40bbc8
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40bc12
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x413768
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c4c7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40c4e2
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c4ec
mov byte [eax], 0
test edi, edi
je 0x40c595
movzx eax, word [edi]
test ax, ax
je 0x40c595
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c525
cmp dword [ebp + 0xc], 0
je 0x40c531
test esi, esi
jne 0x40c531
test ebx, ebx
je 0x40c521
mov byte [ebx], 1
mov esi, edx
jmp 0x40c540
cmp ax, 0xd
je 0x40c553
cmp ax, 0xa
je 0x40c555
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c54b
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c505
jmp 0x40c555
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c555
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c590
mov word [ebx], ax
test esi, esi
je 0x40c590
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040ed1e
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c597
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c5dc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00412b6b
cmp byte [0x424b15], 0
jne 0x40c66a
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407d04
push eax
call fcn.0040f6f6
test eax, eax
jne 0x40c66a
push 0x4137fc
call fcn.00412b58
lea eax, [ebp - 0x820]
push eax
call fcn.0040b257
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040aed1
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40c735
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x4239f1], 1
cmp dword [0x423a00], ebx
je 0x40c75d
push 0x7d
call fcn.0040a53c
push eax
push 2
push dword [0x423a00]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x423a00]
mov dword [0x4239f4], ebx
mov byte [0x4239f0], 1
cmp eax, ebx
je 0x40c7be
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x424b24], ebx
jne 0x40c78c
cmp byte [0x424b14], bl
je 0x40c794
cmp dword [0x4239f8], ebx
jne 0x40c7b6
push ebx
push 1
push 0x111
push dword [0x423a00]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c7b6
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b70d
cmp dword [0x423a00], ebx
jne 0x40c7aa
cmp byte [0x423a08], bl
pop ebx
je 0x40c7cc
jmp fcn.0040c5dc
ret
Function at 0x40c808
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x423a10], bl
je 0x40c888
cmp word [0x41d0d8], bx
je 0x40c888
push esi
push 0x41d0d8
lea esi, [ebp - 0x808]
call fcn.0040c7cd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40c888
push dword [ebp + 8]
call fcn.0040b257
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40c88d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x423a10], 0
je 0x40c934
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040c7cd
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40c934
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c92b
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c90f
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040ed1e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40ca5c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x4238e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x4238e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x4238ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4238e0], eax
je 0x40ca8c
xor eax, eax
inc eax
jmp 0x40cab5
cmp byte [0x4238e7], 0
je 0x40ca9a
push 2
pop eax
jmp 0x40cab5
push dword [ebp + 8]
push 0x40bce6
push dword [0x423a00]
push str.REPLACEFILEDLG
push dword [0x417e74]
call esi
dec eax
je 0x40cb07
dec eax
je 0x40cb19
dec eax
je 0x40cb00
dec eax
jne 0x40cae4
push dword [ebp + 8]
push 0x40c032
push dword [0x423a00]
push str.RENAMEDLG
push dword [0x417e74]
call esi
test eax, eax
je 0x40ca66
mov al, 0x52
jmp 0x40cb14
dec eax
je 0x40caf5
dec eax
mov al, 0x4e
jne 0x40cb14
mov byte [0x4238e7], 1
jmp 0x40cb14
mov byte [0x4239f2], 1
mov al, 0x43
jmp 0x40cb14
mov byte [0x4238e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40cb14
Function at 0x40e4b6
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040f0cd
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42c4c8
call fcn.0040f7f3
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41e0e0
push edi
call fcn.0040aed1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e564
push eax
call fcn.0040c3a2
cmp byte [0x423a11], bl
je 0x40e556
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e54b
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e542
push esi
push eax
push edi
call fcn.0040aefe
push edi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e564
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x41d8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x417e74], edi
mov dword [0x417e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x417e78]
mov dword [0x41d8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x41d8d8], eax
call fcn.00412bdb
push esi
mov ecx, 0x417e88
call fcn.0040a525
lea ecx, [ebp - 0x5c]
call fcn.00406b7a
lea ecx, [ebp - 0x34]
call fcn.00406b7a
push 0x64
call fcn.0040ba16
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040ba16
push ebx
push 0x40dc9a
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41d0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x41d0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x41d0d0], ebx
mov dword [0x41d0d4], ebx
call fcn.00406b9c
lea ecx, [ebp - 0x5c]
call fcn.00406b9c
lea ecx, [ebp - 0xc]
call fcn.00412c35
cmp byte [0x423a08], bl
je 0x40e643
call fcn.0040c5dc
push 0x100
push ebx
push 0x4238f0
call fcn.0040aed1
cmp dword [0x424b24], ebx
jbe 0x40e666
push dword [0x424b18]
call fcn.0040ae4d
push dword [0x41d8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41d8d8]
cmp eax, ebx
je 0x40e680
push eax
call esi
cmp dword [0x417e7c], ebx
jne 0x40e69f
cmp byte [0x4239f2], bl
je 0x40e69f
push 0xff
mov ecx, 0x417e7c
call fcn.004034dd
mov eax, dword [0x424b30]
mov byte [0x4239f2], 1
cmp eax, ebx
je 0x40e6b5
push eax
call fcn.0040c59d
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x424b2c]
cmp eax, ebx
ja 0x40e6c9
mov eax, dword [0x417e7c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40ea2e
Capabilities:
Hash data using sha1

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

Function at 0x412a80
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x413b9c
push 1
xor ebx, ebx
push ebx
push 0x413c4c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x412b51
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413c3c
push eax
call dword [ecx]
test eax, eax
jl 0x412b48
cmp byte [ebp + 8], bl
je 0x412ad3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x412af0
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x412b02
push 0x413744
jmp 0x412b05
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x412b1a
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x412b2b
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x412b3f
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x412b6b
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x4066d9
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x406707
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4066fe
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4066f6
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x406728
mov esp, ebp
pop ebp
ret

Function at 0x40672c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x406798
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x4067c5
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4067b4
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4067a5
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x4067eb
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x40678c
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x406817
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406e0d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x406e1d
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x406e72
push dword [ebp + 8]
call fcn.0040701e
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x406e72
xor eax, eax
jmp 0x406e77
mov eax, 1
test eax, eax
je 0x406e89
mov eax, 0
jmp 0x407018
push 0x3c
push dword [ebp + 8]
call fcn.00407060
push eax
call fcn.0040703a
push eax
push dword [ebp + 8]
call fcn.00407060
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0040703a
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x406ee4
push 0x7c
push dword [ebp - 4]
call fcn.00407060
push eax
call fcn.0040703a
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x406ee4
xor eax, eax
jmp 0x406ee9
mov eax, 1
test eax, eax
je 0x406efb
mov eax, 0
jmp 0x407018
push 0x78
push dword [ebp - 4]
call fcn.00407060
push eax
call fcn.0040703a
push eax
push dword [ebp + 8]
call fcn.00407060
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.00407060
push eax
call fcn.0040703a
push eax
push dword [ebp + 8]
call fcn.00407060
push eax
call fcn.0040703a
push eax
push dword [ebp + 8]
call fcn.00407060
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.00407060
push eax
call fcn.0040703a
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.00407087
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x40700b
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.00407060
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.004070ae
test eax, eax
je 0x406fee
push 0x1c
push dword [ebp - 8]
call fcn.00407060
push eax
call fcn.0040703a
push eax
push dword [ebp + 8]
call fcn.00407060
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.004070e2
push eax
push dword [ebp - 0x24]
call fcn.00407060
push eax
call fcn.0040703a
push eax
push dword [ebp + 8]
call fcn.00407060
jmp 0x407018
push dword [ebp - 0x14]
call fcn.0040710a
push eax
push dword [ebp - 0x18]
call fcn.00407060
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x406f77
add esp, 0xc
mov eax, 0
jmp 0x407018
mov esp, ebp
pop ebp
ret 8
Function at 0x426880
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a431b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00498bc4
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x426902
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004964e0
mov eax, dword [eax]
push 0x5bace8
push eax
call fcn.00488804
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00498e4f
test bl, bl
je 0x426902
push 0x5bace8
lea ecx, [esp + 0xc]
call fcn.004991df
push 0x5bacf4
lea ecx, [esp + 0xc]
call fcn.004991df
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42693e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00498e4f
jmp 0x426a09
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4269c2
lea edx, [esp + 0x7c]
push 0x5bacf0
push edx
call fcn.00488804
add esp, 8
test eax, eax
je 0x4269c2
lea eax, [esp + 0x7c]
push 0x5bacec
push eax
call fcn.00488804
add esp, 8
test eax, eax
je 0x4269c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x426952
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00498e4f
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x427200
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x427262
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc