joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44dc40
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
mov eax, 0x55555556
imul dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
push ebx
push ebp
sar edx, 5
push esi
mov ebp, edx
shr ebp, 0x1f
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
add ebp, edx
test edi, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
lea eax, [ebx + 0x13]
je 0x44de1d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x44de1d
cmp dword [esp + 0x2c], ebx
je 0x44de1d
test ebp, ebp
mov dword [esp + 0x20], ebx
jl 0x44dd86
mov edx, dword [esp + 0x30]
and edx, 2
mov dword [esp + 0x14], edx
cmp dword [esp + 0x20], ebp
jne 0x44dcd2
mov edx, ebp
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x44dd41
mov edx, eax
movzx ebx, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
add edi, 3
add esi, 4
mov cl, byte [edi - 2]
shl ecx, 8
or ecx, ebx
shl ecx, 8
mov ebx, ecx
shr ebx, 0x1a
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_P]
mov byte [esi - 4], bl
shl ecx, 6
mov ebx, ecx
shr ebx, 0x1a
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_P]
shl ecx, 6
mov byte [esi - 3], bl
mov ebx, ecx
shr ebx, 0x1a
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_P]
shr ecx, 0x14
and ecx, 0x3f
sub edx, 1
mov byte [esi - 2], bl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_P]
mov byte [esi - 1], cl
jne 0x44dcd8
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x14], 0
lea ebx, [ebx + eax*4]
mov dword [esp + 0x10], ebx
jne 0x44dd62
mov byte [esi], 0xd
add esi, 1
mov byte [esi], 0xa
add esi, 1
add ebx, 2
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x20]
add edx, 1
cmp edx, ebp
mov dword [esp + 0x20], edx
jle 0x44dcb5
test ebx, ebx
je 0x44dd86
cmp dword [esp + 0x14], 0
jne 0x44dd86
sub esi, 2
sub ebx, 2
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x24]
sub ecx, edx
je 0x44de0a
lea ebp, [ecx + 1]
test ebp, ebp
je 0x44de0a
xor eax, eax
test ecx, ecx
jle 0x44dda4
movzx eax, byte [edi]
add edi, 1
shl eax, 8
cmp ecx, 1
jle 0x44ddb4
movzx edx, byte [edi]
or eax, edx
add edi, 1
shl eax, 8
cmp ecx, 2
jle 0x44ddc1
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x44dde8
mov ecx, ebp
lea ebx, [ebx]
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_P]
mov byte [esi], dl
add esi, 1
shl eax, 6
sub ecx, 1
jne 0x44ddd0
add ebx, ebp
test byte [esp + 0x30], 1
jne 0x44de0a
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x44de08
push edi
push 0x3d
push esi
call fcn.00479220
add esp, 0xc
add ebx, edi
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax], ebx
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x44e750
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
push edi
mov ebp, ecx
jne 0x44e768
xor edi, edi
jmp 0x44e76d
mov edi, dword [esi + 8]
sub edi, eax
push 0
lea eax, [edi + 0x4000]
push eax
mov ecx, esi
call fcn.0040e610
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44e78d
mov eax, dword [esi + 8]
sub eax, ecx
cmp edi, eax
jb 0x44e792
call fcn.00479177
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
add eax, edi
cmp ecx, 0xffffffff
je 0x44e82c
push 0
push 0x4000
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x44e825
cmp ebx, 0x4000
je 0x44e823
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x20], eax
jbe 0x44e7d1
call fcn.00479177
mov ebp, dword [esi + 4]
cmp ebp, dword [esi + 8]
jbe 0x44e7de
call fcn.00479177
add edi, ebp
cmp edi, dword [esi + 8]
mov dword [esp + 0x14], ebp
ja 0x44e7ee
cmp edi, dword [esi + 4]
jae 0x44e7f3
call fcn.00479177
mov dword [esp + 0x14], edi
add edi, ebx
cmp edi, dword [esi + 8]
mov ebp, esi
ja 0x44e805
cmp edi, dword [esi + 4]
jae 0x44e80a
call fcn.00479177
mov ecx, dword [esp + 0x20]
push ecx
push esi
push edi
push ebp
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0040e270
jmp 0x44e8a4
test ebx, ebx
je 0x44e880
cmp ebx, 0xffffffff
jne 0x44e8a4
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x1c], eax
jbe 0x44e83d
call fcn.00479177
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x44e84a
call fcn.00479177
add edi, ebx
cmp edi, dword [esi + 8]
mov dword [esp + 0x14], ebx
ja 0x44e85a
cmp edi, dword [esi + 4]
jae 0x44e85f
call fcn.00479177
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push edi
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0040e270
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x44e8a4
cmp dword [ebp + 0x10], 2
jne 0x44e89a
xor eax, eax
cmp byte [esp + 0x20], al
push eax
setne al
mov ecx, ebp
push eax
push 2
call fcn.0044e630
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x44e8b7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 8
ret 8
Function at 0x44e8d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x3c4]
mov edx, dword [eax + 0x3c0]
mov ebp, dword [edx + ecx*4]
add eax, 0x3b4
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x4090]
lea ebx, [ebx]
mov eax, dword [esi + 0x4034]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x4048]
push ecx
push 0
push 0x400b
push edi
push eax
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xa
jbe 0x44e9d4
cmp byte [edi], 0
jne 0x44e9d4
cmp byte [edi + 1], 0
jne 0x44e9d4
cmp byte [edi + 2], 0
jne 0x44e9d4
cmp byte [edi + 3], 1
jne 0x44e9d4
lea esi, [edi + 0xa]
test esi, esi
lea eax, [ebx - 0xa]
je 0x44e9d0
cmp eax, 0x34
jbe 0x44e9d0
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x34
jbe 0x44e9d0
lea ecx, [ebx - 0xa]
cmp eax, ecx
ja 0x44e9d0
cmp eax, 0x4000
jae 0x44e9d0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x12dd668
jne 0x44e9d0
mov ecx, esi
call fcn.0044a900
mov edx, dword [edi + 4]
push 0x4000
mov dword [ebp + 9], edx
mov ax, word [edi + 8]
lea ecx, [ebp + 0xf]
push esi
push ecx
mov word [ebp + 0xd], ax
mov dword [ebp], 3
mov byte [ebp + 8], 0
call fcn.004795e0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebp
call fcn.0044e6b0
mov esi, dword [esp + 0x10]
cmp ebx, 0x400b
je 0x44e900
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x44e8d5
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x3c4]
mov edx, dword [eax + 0x3c0]
mov ebp, dword [edx + ecx*4]
add eax, 0x3b4
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x4090]
lea ebx, [ebx]
mov eax, dword [esi + 0x4034]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x4048]
push ecx
push 0
push 0x400b
push edi
push eax
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xa
jbe 0x44e9d4
cmp byte [edi], 0
jne 0x44e9d4
cmp byte [edi + 1], 0
jne 0x44e9d4
cmp byte [edi + 2], 0
jne 0x44e9d4
cmp byte [edi + 3], 1
jne 0x44e9d4
lea esi, [edi + 0xa]
test esi, esi
lea eax, [ebx - 0xa]
je 0x44e9d0
cmp eax, 0x34
jbe 0x44e9d0
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x34
jbe 0x44e9d0
lea ecx, [ebx - 0xa]
cmp eax, ecx
ja 0x44e9d0
cmp eax, 0x4000
jae 0x44e9d0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x12dd668
jne 0x44e9d0
mov ecx, esi
call fcn.0044a900
mov edx, dword [edi + 4]
push 0x4000
mov dword [ebp + 9], edx
mov ax, word [edi + 8]
lea ecx, [ebp + 0xf]
push esi
push ecx
mov word [ebp + 0xd], ax
mov dword [ebp], 3
mov byte [ebp + 8], 0
call fcn.004795e0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebp
call fcn.0044e6b0
mov esi, dword [esp + 0x10]
cmp ebx, 0x400b
je 0x44e900
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x44f2d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x20
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
cmp eax, 2
jne 0x44f3df
mov eax, dword [edi + 0x4018]
test eax, eax
push esi
lea esi, [edi + 0x4014]
je 0x44f3ca
mov ecx, dword [esi + 8]
sub ecx, eax
je 0x44f3ca
test eax, eax
push ebx
jne 0x44f30b
xor ebx, ebx
jmp 0x44f310
mov ebx, dword [esi + 8]
sub ebx, eax
test eax, eax
je 0x44f31b
mov edx, dword [esi + 8]
sub edx, eax
jne 0x44f320
call fcn.00479177
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
mov ecx, dword [esi + 4]
je 0x44f338
push 0
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x44f33b
or eax, 0xffffffff
mov edx, dword [esi + 4]
test edx, edx
pop ebx
jne 0x44f347
xor ecx, ecx
jmp 0x44f34c
mov ecx, dword [esi + 8]
sub ecx, edx
cmp eax, ecx
jne 0x44f370
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
push edi
push eax
call fcn.0044c500
push 0
push 0
mov ecx, esi
call fcn.0040e610
pop esi
pop edi
add esp, 0x20
ret 4
test eax, eax
jle 0x44f368
test edx, edx
je 0x44f368
mov ecx, dword [esi + 8]
sub ecx, edx
cmp eax, ecx
jae 0x44f368
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00417060
mov ecx, eax
call fcn.0040e1d0
mov edi, eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00417060
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0040e270
pop esi
pop edi
add esp, 0x20
ret 4
mov ecx, dword [edi + 0xc]
push edi
push ecx
mov ecx, dword [edi + 4]
call fcn.0044c500
pop esi
pop edi
add esp, 0x20
ret 4
cmp eax, 1
jne 0x44f369
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
push edi
push edx
mov dword [edi + 0x10], 2
call fcn.0044c500
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
push edi
push eax
call fcn.0044ce20
push 0
push 1
push 1
mov ecx, edi
call fcn.0044e630
pop edi
add esp, 0x20
ret 4
Function at 0x450830
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4adc3f
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4cf640]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cf640]
xor eax, esp
push eax
lea eax, [esp + 0x1ac]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, ecx
lea eax, [esi + 8]
mov dword [esi], 0x4b7a1c
push eax
mov dword [esp + 0x18], esi
mov dword [esi + 4], 0x4b7814
call ebp
lea edi, [esi + 0x20]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x1b4], ebx
call fcn.00416fe0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x2c]
mov ecx, edi
mov byte [esp + 0x1b4], 1
call fcn.00416fe0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x38]
mov ecx, edi
mov byte [esp + 0x1b4], 2
call fcn.00416fe0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x350], ebx
mov byte [esi + 0x354], bl
mov dword [esi + 0x35c], ebx
mov dword [esi + 0x360], ebx
mov dword [esi + 0x364], ebx
mov dword [esi + 0x36c], ebx
mov dword [esi + 0x370], ebx
mov dword [esi + 0x374], ebx
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], ebx
mov dword [esi + 0x384], ebx
lea ecx, [esi + 0x38c]
push ecx
mov dword [esi + 0x388], 0x4b7814
call ebp
lea edi, [esi + 0x3a4]
mov ecx, edi
mov byte [esp + 0x1b4], 7
call fcn.0044adc0
mov dword [edi + 4], eax
mov byte [eax + 0x21], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov eax, dword [esp + 0x1bc]
mov dword [esi + 0x3b0], eax
mov eax, dword [eax + 0x10]
add eax, 2
push eax
lea ecx, [esi + 0x3b4]
mov byte [esp + 0x1b8], 8
call fcn.0044ace0
lea edi, [esi + 0x3cc]
mov byte [esi + 0x3c8], bl
mov eax, 0x4506f0
mov dword [edi], 0x4b781c
mov dword [edi + 4], ebx
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
mov byte [edi + 0x18], 1
mov dword [esi + 0x3e8], ebx
lea edx, [esi + 0x400]
mov dword [esi + 0x3f0], ebx
mov dword [esi + 0x3f4], ebx
mov dword [esi + 0x3f8], ebx
push edx
mov dword [esi + 0x3fc], 0x4b7814
call ebp
lea eax, [esp + 0x18]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
mov ecx, edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x24c], ebx
call fcn.0043de50
mov eax, esi
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00478cd0
add esp, 0x1a4
ret 4
Function at 0x451810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ade48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4cf640]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 3
push 0x4b7a58
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.0040229b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x34], 0
call fcn.00451430
add esp, 0xc
cmp dword [esp + 0x1c], 0x10
jb 0x45188b
mov eax, dword [esp + 8]
push eax
call fcn.00478d09
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret

Function at 0x4518a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ade48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4cf640]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 3
push 0x4b7a58
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.0040229b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x34], 0
call fcn.00451340
add esp, 0xc
cmp dword [esp + 0x1c], 0x10
jb 0x45191b
mov eax, dword [esp + 8]
push eax
call fcn.00478d09
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret
Function at 0x452040
Capabilities:
Hash data with md5

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

Function at 0x452880
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4cf640]
xor eax, esp
mov dword [esp + 0x228], eax
mov ecx, dword [esp + 0x234]
mov edx, dword [esp + 0x238]
mov eax, dword [esp + 0x230]
push esi
mov esi, dword [esp + 0x244]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x240]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x452904
mov eax, dword [esp + 8]
push eax
push str.CLSID_sLocalServer32
lea ecx, [esp + 0x2c]
push 0x103
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov edx, dword [esp + 0x18]
add esp, 0x10
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x452956
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x452970
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00478cd0
add esp, 0x22c
ret 0x14
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
pop esi
xor ecx, esp
mov al, 1
call fcn.00478cd0
add esp, 0x22c
ret 0x14
Function at 0x459b70
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4aec9c
mov eax, dword fs:[0]
push eax
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cf640]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov edi, ecx
push 1
xor ebx, ebx
push 3
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1f], bl
call fcn.0043a050
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x174], ebx
call fcn.00459590
push str.Global.db
push eax
lea ecx, [esp + 0xec]
push ecx
mov byte [esp + 0x178], 1
call fcn.00439860
add esp, 8
push eax
call fcn.00439af0
mov ebp, 8
add esp, 8
cmp dword [esp + 0x34], ebp
mov byte [esp + 0x16c], bl
jb 0x459c0f
mov edx, dword [esp + 0x20]
push edx
call fcn.00478d09
add esp, 4
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xe0]
call fcn.00435260
cmp dword [eax + 0x18], ebp
jb 0x459c2a
mov eax, dword [eax + 4]
jmp 0x459c2d
add eax, 4
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esp + 0x50], ebp
mov esi, eax
jb 0x459c55
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00478d09
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jne 0x459d58
push 1
push 3
lea ecx, [esp + 0x5c]
call fcn.0043a050
push 1
lea edx, [esp + 0x20]
push edx
mov ecx, edi
mov byte [esp + 0x174], 2
call fcn.00459590
push str.Global.db
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x178], 3
call fcn.00439860
add esp, 8
push eax
call fcn.00439af0
add esp, 8
cmp dword [esp + 0x34], ebp
mov byte [esp + 0x16c], 2
jb 0x459cd1
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00478d09
add esp, 4
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
call fcn.00435260
cmp dword [eax + 0x18], ebp
jb 0x459ce9
mov eax, dword [eax + 4]
jmp 0x459cec
add eax, 4
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esp + 0x34], ebp
mov esi, eax
jb 0x459d14
mov eax, dword [esp + 0x20]
push eax
call fcn.00478d09
add esp, 4
lea ecx, [esp + 0xa8]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
mov byte [esp + 0x16c], bl
call fcn.004339a0
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xac], 0x4b6aec
call fcn.00496530
add esp, 4
cmp esi, 0xffffffff
je 0x459d86
mov eax, dword [esp + 0x174]
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x459d7f
cmp dword [esp + 0x18], 0x10
jne 0x459d7f
mov byte [esp + 0x17], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x130]
mov dword [esp + 0x16c], 0xffffffff
call fcn.004339a0
lea ecx, [esp + 0x130]
push ecx
mov dword [esp + 0x134], 0x4b6aec
call fcn.00496530
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret 4
Function at 0x45b030
Capabilities:
Hash data using sha1

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

Function at 0x45b130
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x10], eax
mov eax, ebx
shr eax, 3
and eax, 0x3f
mov byte [eax + esi + 0x1c], 0x80
add eax, 1
cmp eax, 0x38
lea edx, [eax + esi + 0x1c]
jle 0x45b182
mov ecx, 0x40
sub ecx, eax
push ecx
push 0
push edx
call fcn.00479220
mov eax, esi
call fcn.0045a250
push 0x38
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.00479220
add esp, 0x18
jmp 0x45b195
mov ecx, 0x38
sub ecx, eax
push ecx
push 0
push edx
call fcn.00479220
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 0x54], cl
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi + 0x57], al
mov byte [esi + 0x55], dl
mov byte [esi + 0x56], cl
mov eax, ebx
shr eax, 0x10
mov edx, ebx
mov ecx, ebx
shr edx, 0x18
mov byte [esi + 0x59], al
shr ecx, 8
mov eax, esi
mov byte [esi + 0x58], dl
mov byte [esi + 0x5a], cl
mov byte [esi + 0x5b], bl
call fcn.0045a250
movzx edx, byte [esi + 3]
mov eax, dword [esp + 0xc]
mov byte [eax], dl
movzx ecx, byte [esi + 2]
mov byte [eax + 1], cl
movzx edx, byte [esi + 1]
mov byte [eax + 2], dl
movzx ecx, byte [esi]
mov byte [eax + 3], cl
movzx edx, byte [esi + 7]
mov byte [eax + 4], dl
movzx ecx, byte [esi + 6]
mov byte [eax + 5], cl
movzx edx, byte [esi + 5]
mov byte [eax + 6], dl
movzx ecx, byte [esi + 4]
mov byte [eax + 7], cl
movzx edx, byte [esi + 0xb]
mov byte [eax + 8], dl
movzx ecx, byte [esi + 0xa]
mov byte [eax + 9], cl
movzx edx, byte [esi + 9]
mov byte [eax + 0xa], dl
movzx ecx, byte [esi + 8]
mov byte [eax + 0xb], cl
movzx edx, byte [esi + 0xf]
mov byte [eax + 0xc], dl
movzx ecx, byte [esi + 0xe]
mov byte [eax + 0xd], cl
movzx edx, byte [esi + 0xd]
mov byte [eax + 0xe], dl
movzx ecx, byte [esi + 0xc]
mov byte [eax + 0xf], cl
movzx edx, byte [esi + 0x13]
mov byte [eax + 0x10], dl
movzx ecx, byte [esi + 0x12]
mov byte [eax + 0x11], cl
movzx edx, byte [esi + 0x11]
mov byte [eax + 0x12], dl
movzx ecx, byte [esi + 0x10]
pop esi
mov byte [eax + 0x13], cl
pop ebx
ret