joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52c240
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x52c33b
test edi, edi
je 0x52c33b
push esi
lea eax, [ebp - 0x1a4]
xor esi, esi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x52c28b
push str.Error_at_WSAStartup___n
jmp 0x52c2f4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x52c2bd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error_at_socket__:__ld_n
call fcn.00535bdb
add eax, 0x40
push eax
call fcn.00535cb7
add esp, 0xc
jmp 0x52c30c
mov eax, 2
push ebx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x52c326
push str.Failed_to_connect._n
call fcn.00535bdb
add eax, 0x40
push eax
call fcn.00535cb7
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
mov dword [edi], esi
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
push str.PLCreateConnectedSocket
push str.invalid_args_to__s
call fcn.00535bdb
add eax, 0x40
push eax
call fcn.00535cb7
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop ebx
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
Function at 0x549865
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005399e3
mov dword [ebp - 0x14], eax
cmp dword [0x708ed4], esi
jne 0x549958
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5498e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x549a38
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x549a38
push 0x65d78c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x549a38
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x708ed4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x708ed8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x708edc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x708ee4], eax
test eax, eax
je 0x549955
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x708ee0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x54997d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x549970
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x549992
push 4
pop eax
jmp 0x549a3a
cmp dword [ebp - 0x14], esi
je 0x549992
push dword [0x708ed4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x549977
mov eax, dword [0x708ee0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5499f0
cmp dword [0x708ee4], edi
je 0x5499f0
push eax
call ebx
push dword [0x708ee4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5499f0
test eax, eax
je 0x5499f0
call ecx
test eax, eax
je 0x5499e5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5499e5
test byte [ebp - 8], 1
jne 0x5499f0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x549a20
mov eax, dword [0x708ed8]
cmp eax, edi
je 0x549a1d
push eax
call ebx
test eax, eax
je 0x549a1d
call eax
mov esi, eax
test esi, esi
je 0x549a1d
mov eax, dword [0x708edc]
cmp eax, edi
je 0x549a1d
push eax
call ebx
test eax, eax
je 0x549a1d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x708ed4]
call ebx
test eax, eax
je 0x549a38
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x549a3a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
Function at 0x551e30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00553120

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635f48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00470350
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push 0x24
push eax
call fcn.00552ab0
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x551f80
test al, 0x10
je 0x551f80
mov bl, 1
jmp 0x551f82
xor bl, bl
cmp dword [ebp - 0x14], 8
jb 0x551f93
push dword [ebp - 0x28]
call fcn.0052d900
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635f48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00470350
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push 0x24
push eax
call fcn.00552ab0
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 0x14], 8
jb 0x55203a
push dword [ebp - 0x28]
call fcn.0052d900
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
Function at 0x553120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x553148
mov eax, dword [esi]
jmp 0x55314a
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0x410
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0052f1e0
add esp, 0xc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x55318c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
cmp eax, 0x208
jae 0x55317b
lea eax, [ebp - 0x418]
push eax
push 0x209
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x55317b
cmp eax, 0x208
jae 0x55317b
xor eax, eax
mov ecx, esi
mov word [ebp - 8], ax
lea eax, [ebp - 0x418]
push eax
call fcn.0046e820
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
Function at 0x5597b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636688
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebx + 8]
mov dword [ebx + 0x28], ecx
lea eax, [ebx + 0x30]
mov dword [ebx + 0x2c], eax
mov dword [eax + 4], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx], 0x42ff0000
mov dword [ebx + 0xc], 0
mov dword [ecx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x24], 0
test esi, esi
je 0x559944
cmp byte [ebp + 0xc], 0
jne 0x5598c6
mov eax, dword [esi]
and eax, 0x4fff
mov dword [ebx + 4], 2
add eax, 0x42ff0000
mov dword [ebx], eax
mov eax, dword [esi + 0x14]
mov dword [ecx], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov edx, dword [ebx + 0xc]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x10], eax
mov eax, 0xba50
mov edi, dword [esi]
mov ecx, edi
mov esi, dword [esi + 4]
and ecx, 7
add ecx, ecx
sar edi, 3
shr eax, cl
and edi, 0x1ff
and eax, 3
inc edi
mov ecx, eax
shl edi, cl
mov ecx, dword [ebx + 8]
imul edx, edi
test esi, esi
cmove esi, edx
imul ecx, esi
add ecx, dword [ebx + 0x18]
mov dword [ebx + 0x20], ecx
sub ecx, esi
add ecx, edx
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebx + 0x2c]
mov dword [ecx], esi
mov ecx, dword [ebx + 0x2c]
mov dword [ecx + 4], edi
jmp 0x559944
mov dword [ebx + 0x1c], 0
lea ecx, [ebp - 0x48]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], 0
push dword [esi + 4]
mov dword [ebp - 0x58], 0x10000
push dword [esi + 0x10]
mov dword [ebp - 0x54], ebx
push dword [esi]
mov dword [ebp - 0x50], 0
push dword [esi + 0x18]
mov dword [ebp - 0x4c], 0
push dword [esi + 0x14]
mov dword [ebp - 0x5c], vtable.cv::_OutputArray.0
call fcn.005595c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.00568e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004a0ef0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
cmp eax, ecx
je 0x559944
push eax
call fcn.005534a0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 8
Function at 0x559970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6366bb
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [esi + 8]
mov dword [esi + 0x28], ecx
lea eax, [esi + 0x30]
mov dword [esi + 0x2c], eax
mov dword [eax + 4], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi], 0x42ff0000
mov dword [esi + 0xc], 0
mov dword [ecx], 0
mov dword [esi + 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x24], 0
test ebx, ebx
je 0x559af4
mov eax, dword [ebx + 0x10]
xor edx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
and eax, 0xfff
or eax, 0x42ff0000
mov dword [esi], eax
mov edi, dword [ebx + 4]
test edi, edi
jle 0x559a4c
lea ecx, [ebx + 0x18]
mov edi, edi
mov eax, dword [ecx - 4]
lea ecx, [ecx + 8]
mov dword [ebp + edx*4 - 0x90], eax
mov eax, dword [ecx - 8]
mov dword [ebp + edx*4 - 0x110], eax
inc edx
cmp edx, edi
jl 0x559a30
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
push esi
call fcn.00565660
push esi
call fcn.005602c0
add esp, 0x18
cmp byte [ebp + 0xc], 0
je 0x559af4
push esi
lea ecx, [ebp - 0x148]
call fcn.00558a60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x158], 0x10000
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - method.cv::_InputArray.virtual_0], vtable.cv::_OutputArray.0
call fcn.00568e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.004a0ef0
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x118]
cmp eax, ecx
je 0x559af4
push eax
call fcn.005534a0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 8
Function at 0x59c530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x24]
sub esp, 0x10
test ecx, ecx
je 0x59c70f
mov eax, dword [ebp + 0x20]
movdqa xmm3, xmmword [0x66b1e0]
add eax, 0xfffffffc
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov dword [ebp - 8], eax
lea ebx, [ebx]
dec ecx
xor eax, eax
cmp byte [0x708fa1], al
mov edi, dword [ebp + 0x20]
mov dword [ebp + 0x24], ecx
mov dword [ebp - 0x10], edi
je 0x59c604
lea ecx, [edi - 0x20]
mov dword [ebp - 0xc], ecx
test ecx, ecx
js 0x59c5c8
movdqa xmm2, xmmword [0x66b1e0]
mov ecx, edx
mov dword [ebp - 4], esi
sub dword [ebp - 4], edx
mov edx, dword [ebp - 4]
jmp 0x59c5a0
movdqu xmm0, xmmword [ecx]
lea ecx, [ecx + 0x20]
movdqu xmm1, xmmword [ecx - 0x10]
pxor xmm0, xmm2
pxor xmm1, xmm2
movdqu xmmword [edx + ecx - 0x20], xmm0
movdqu xmmword [eax + esi + 0x10], xmm1
add eax, 0x20
cmp eax, dword [ebp - 0xc]
jle 0x59c5a0
lea edx, [edi - 8]
cmp eax, edx
jg 0x59c604
mov ecx, dword [ebp + 8]
sub edx, eax
sub esi, dword [ebp + 8]
add ecx, eax
movdqa xmm1, xmmword [0x66b1e0]
shr edx, 3
inc edx
lea eax, [eax + edx*8]
jmp 0x59c5f0
movq xmm0, qword [ecx]
lea ecx, [ecx + 8]
pxor xmm0, xmm1
movq qword [ecx + esi - 8], xmm0
dec edx
jne 0x59c5f0
cmp eax, dword [ebp - 8]
jg 0x59c650
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
sub edx, ecx
mov dword [ebp - 0xc], edx
lea esi, [eax + ecx]
movzx ecx, byte [esi]
lea esi, [esi + 4]
mov dl, byte [esi - 3]
not cl
mov edi, dword [ebp - 0xc]
not dl
mov byte [esi + edi - 4], cl
mov edi, dword [ebp + 0x18]
mov byte [edi + eax + 1], dl
mov dl, byte [esi - 1]
movzx ecx, byte [esi - 2]
not dl
not cl
mov byte [edi + eax + 3], dl
mov byte [edi + eax + 2], cl
add eax, 4
cmp eax, dword [ebp - 8]
jle 0x59c617
mov edi, dword [ebp - 0x10]
mov ecx, edi
sub ecx, eax
mov dword [ebp - 0xc], ecx
cmp eax, edi
jge 0x59c6f0
cmp ecx, 0x10
jb 0x59c6c8
mov ecx, dword [ebp + 0x18]
lea edx, [ecx - 1]
add ecx, eax
add edx, edi
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
lea esi, [eax + edx]
dec edx
add edx, edi
cmp ecx, edx
ja 0x59c683
cmp dword [ebp - 0x10], esi
jae 0x59c6c8
mov ecx, dword [ebp - 0xc]
and ecx, reloc.WS2_32.dll_ntohs
jns 0x59c693
dec ecx
or ecx, 0xfffffff0
inc ecx
mov edx, edi
sub edx, ecx
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov ecx, edx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0xc]
jmp 0x59c6b0
movdqu xmm0, xmmword [esi]
add eax, 0x10
lea esi, [esi + 0x10]
pandn xmm0, xmm3
movdqu xmmword [esi + edx - 0x10], xmm0
cmp eax, ecx
jl 0x59c6b0
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
cmp eax, edi
jge 0x59c6f3
sub edx, esi
lea ecx, [eax + esi]
sub edi, eax
lea esp, [esp]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
not al
mov byte [ecx - 1], al
dec edi
jne 0x59c6e0
jmp 0x59c6f3
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0xc]
add esi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x24]
mov dword [ebp + 8], edx
mov dword [ebp + 0x18], esi
test ecx, ecx
jne 0x59c560
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x60dda6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x61f050
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x61f05c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0061f070
Function at 0x402b26
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 8]
push ebx
push eax
movzx eax, byte [ebp + 8]
mov ebx, ecx
lea eax, [eax*2 + 1]
push eax
push 0
push 0x401238
push reloc.prntvpt.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x402b6b
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x402bd6
push esi
mov esi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push edi
lea edi, [ebx + 8]
cmp edi, eax
je 0x402b98
mov eax, esi
xor esi, esi
mov dword [ebp - 0xc], eax
cmp eax, dword [edi]
je 0x402ba3
cmp dword [edi], esi
je 0x402b96
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
test esi, esi
je 0x402ba3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push esi
push 0x4012f4
push dword [edi]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop edi
pop esi
test eax, eax
jne 0x402bd1
mov eax, dword [ebp - 4]
mov dword [ebx], eax
pop ebx
leave
ret 4
push 0x2c
push 0x401288
push 0x4012cc
push eax
lea ecx, [ebp - 0x20]
call fcn.00402c60
push 0x407ba8
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x4045a1
Capabilities:
Copy file

Disassembly:
push 0x254
mov eax, 0x407607
call fcn.0040736c
mov edi, edx
mov esi, ecx
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00404bf3
test eax, eax
js 0x40475b
push 0x401f10
call dword [sym.imp.msvcrt.dll_printf]
push 7
pop esi
xor eax, eax
mov dword [ebp - 0x23c], esi
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
mov dword [esp], 0x401f44
call fcn.004040c8
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x404621
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.00404781
lea ecx, [ebp - 0x250]
call fcn.004048c0
push 0x401f5c
call dword [sym.imp.msvcrt.dll_printf]
xor eax, eax
mov dword [ebp - 0x220], esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
mov dword [esp], 0x401f98
call fcn.004040c8
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40468d
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00404781
push 0x18
push 0x401fa8
lea ecx, [ebp - 0x234]
call fcn.00404781
lea ecx, [ebp - 0x234]
call fcn.004048c0
push 0x401fdc
call dword [sym.imp.msvcrt.dll_printf]
cmp dword [edi + 0x14], 8
pop ecx
jb 0x4046e0
mov edi, dword [edi]
push 0x1000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x40471e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40470e
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x40472a
push 0x36
push 0x401e9c
push 0x402018
jmp 0x404767
push 0x402030
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.0040454b
push ebx
push 1
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 3
call fcn.0040454b
or dword [ebp - 4], 0xffffffff
call fcn.0040732a
ret
push 0x19
push 0x401e9c
push 0x401edc
push eax
lea ecx, [ebp - 0x260]
call fcn.00402c60
push 0x407ba8
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x4048c0
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
lea eax, [ebp - 0x64]
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [esi + 0x14], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x4048ef
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0xc000008
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x404926
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404924
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x404945
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
push 0x59
push 0x401e40
push 0x402054
push eax
lea ecx, [ebp - 0x20]
call fcn.00402c60
push 0x407ba8
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x404a80
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4081f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov ebx, edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], edi
mov esi, edi
test ebx, ebx
je 0x404ad3
push 0x402070
push 0x402080
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x404ad8
mov esi, 0x80070057
mov dword [ebx], edi
test esi, esi
js 0x404b89
lea eax, [ebp - 0x210]
mov edx, 0x103
push eax
mov ecx, 0x402080
call fcn.004049eb
mov esi, eax
test esi, esi
js 0x404b89
mov edi, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x404b30
mov edx, 0x103
cmp ecx, edx
jae 0x404b30
lea eax, [edi + ecx]
cmp eax, edx
jb 0x404b35
mov esi, 0x80004005
test esi, esi
js 0x404b89
push 0x5c
pop eax
mov word [ebp + ecx*2 - 0x20c], ax
mov edx, 0x104
push 0x402080
lea ecx, [ebp - 0x20c]
call fcn.0040499d
mov esi, eax
test esi, esi
js 0x404b89
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x404b87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404b89
movzx esi, si
or esi, 0x80070000
jmp 0x404b89
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406d40
leave
ret