joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b950
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x661374]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 0x398]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x13c]
push ebx
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x134], eax
cmp dword [edi + 0x130], ebx
jne 0x45b9d6
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.00594dc0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x45ba11
push 0x5d08e4
push ebp
call fcn.00434fc0
add esp, 8
mov dword [edi + 0xc], 7
mov eax, ebx
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00593bac
add esp, 0x8c
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x45ba30.1
jmp dword [ecx*4 + 0x45bb1c]
cmp esi, 4
jle case.0x45ba30.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x45ba30.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebp
call fcn.00435570
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x45ba30.4
push 5
push edi
call fcn.0045c430
add esp, 8
jmp 0x45b9f6
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [esp + 0x14], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 4]
push esi
push eax
mov dword [edi + 8], ecx
call fcn.0045c4a0
add esp, 8
cmp eax, esi
jae case.0x45ba30.4
push dword [esp + 0x14]
push 0x5d0900
push ebp
call fcn.00435090
jmp 0x45baf1
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0045b700
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x45ba30.4
jmp 0x45b9f6
push 0x5d0910
push 0x5c897c
push ebp
call fcn.00434fc0
add esp, 0xc
push ebp
call fcn.00445cd0
add esp, 4
test eax, eax
je 0x45b9f6
push 5
push edi
call fcn.0045c430
add esp, 8
mov eax, 0x2a
jmp 0x45b9f8
Function at 0x462c90
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x664d1c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x462ce1
push 3
push 2
push eax
push eax
push 6
call fcn.00468350
add esp, 0x14
test al, al
je 0x462cd5
mov dword [0x664d1c], 2
add esp, 0xc
ret
mov dword [0x664d1c], 1
jmp 0x462ce6
cmp eax, 2
je 0x462d2c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x462d11
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x462d2c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x463830
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x661374]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x120]
mov eax, dword [ebx]
push 0
push dword [esp + 0x120]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4638cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46389c
mov dword [edi], 0x51
jmp 0x4638cc
push 0x100
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00420cc0
push eax
push 0x5d1140
push dword [ebx + 4]
call fcn.00434fc0
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x934], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [esp + 0x124]
push 0x5d1154
push dword [ebx]
push dword [ebx + 4]
call fcn.00435120
mov ecx, dword [esp + 0x124]
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00593bac
add esp, 0x104
ret

Function at 0x463910
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x661374]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x200]
test dword [eax + 0x44], 0x800
jne 0x463a3d
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.00594c60
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4639ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.00420cc0
push eax
push esi
push 0x5d1098
push ebx
call fcn.00434fc0
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00593bac
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.004363d0
add esp, 0x10
test al, al
jne 0x463a3d
push edi
call fcn.00596e90
mov esi, dword [eax]
call fcn.00596e90
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00420cc0
push eax
push dword [edi]
push 0x5d118c
push ebx
call fcn.00434fc0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00593bac
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.00593bac
add esp, 0x188
ret
Function at 0x464ab0
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push 0x11
push 0x5cbd60
push esi
call fcn.0043abd0
add esp, 0xc
test eax, eax
je 0x464ade
mov ebp, dword [edi + 0xd8]
cmp ebp, 0x191
je 0x464b00
push 0x13
push 0x5cbd74
push esi
call fcn.0043abd0
add esp, 0xc
test eax, eax
je 0x464b56
mov ebp, dword [edi + 0xd8]
cmp ebp, 0x197
jne 0x464b56
push esi
call fcn.004406e0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x464b17
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
ret
push esi
push 0x5d171c
push dword [esp + 0x1c]
push edi
call fcn.00435120
cmp ebp, 0x197
push ebx
sete al
movzx eax, al
push eax
push edi
call fcn.004424d0
push ebx
mov esi, eax
call dword [0x65403c]
add esp, 0x20
test esi, esi
je 0x464cf3
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
push 0xf
push 0x5cb6c4
push esi
call fcn.0043abd0
add esp, 0xc
test eax, eax
je 0x464bb0
mov ecx, dword [edi + 0xd8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x464b91
push ecx
push 0x5d173c
push edi
call fcn.00435090
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
sub eax, 0xffffff80
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.004472b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push 0x5ca3bc
push 0xb
push 0x5cb6d4
push esi
call fcn.00440630
add esp, 0x14
test al, al
jne 0x464ce8
push 0x12
push 0x5cb6e0
push esi
call fcn.0043abd0
add esp, 0xc
test eax, eax
je 0x464c4f
mov ecx, dword [edi + 0xd8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x464c0a
push ecx
push 0x5d1770
push edi
call fcn.00435090
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 7
push 0x5caab0
push 0x12
push 0x5cb6e0
push esi
call fcn.00440630
add esp, 0x14
test al, al
je 0x464cf3
push 0x5d17a4
push edi
call fcn.00435090
mov eax, dword [esp + 0x24]
push edi
mov byte [eax + 0x8c], 1
call fcn.00468800
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push 0x5ca3bc
push 0x11
push 0x5cbc90
push esi
call fcn.00440630
add esp, 0x14
test al, al
jne 0x464ce8
push 7
push 0x5d17c0
push esi
call fcn.0059dfb0
add esp, 0xc
test eax, eax
jne 0x464cf3
mov al, byte [esi + 7]
cmp al, 0x30
je 0x464c89
cmp al, 0x31
jne 0x464cf3
cmp byte [esi + 8], 0x20
jne 0x464cf3
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x464cf3
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x464cf3
mov bl, byte [esi + 0xb]
mov al, bl
sub al, 0x30
cmp al, 9
ja 0x464cf3
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0x464cbb
cmp al, 0x39
jle 0x464cf3
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, bl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xd8], eax
mov dword [edi + 0xd7c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x8d], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x46d850
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x661374]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.005a75b2
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x46d8cf
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420db0
push eax
push edi
push 0x5d2db0
push ebp
call fcn.00434fc0
push esi
call dword [0x65403c]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x46da2f
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x46d929
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420db0
push eax
push edi
push 0x5d2de4
push ebp
call fcn.00434fc0
push 0
mov esi, 0x4d
call dword [0x65403c]
add esp, 0x20
jmp 0x46da21
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x46d969
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420db0
push eax
push edi
push 0x5d2e10
push ebp
call fcn.00434fc0
add esp, 0x1c
mov esi, 0x4d
jmp 0x46da0d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x46d997
jg 0x46d97d
cmp edi, 0x100000
jbe 0x46d997
push 0x100000
push 0x5d2e48
push ebp
call fcn.00434fc0
add esp, 0xc
mov esi, 0x4d
jmp 0x46da0d
lea eax, [edi + 1]
push eax
call dword [0x654038]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x46d9af
lea esi, [eax + 0x1b]
jmp 0x46da0d
test edi, edi
je 0x46d9f4
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46da4c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46da48
add esi, eax
cmp esi, edi
jb 0x46d9c0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0046d650
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x65403c]
add esp, 4
push dword [esp + 0x20]
call fcn.00596eae
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00593bac
add esp, 0x120
ret
mov edi, esi
jmp 0x46d9f4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420db0
push eax
push dword [esp + 0x24]
push 0x5d2e78
push ebp
call fcn.00434fc0
add esp, 0x1c
mov esi, 0x4d
jmp 0x46da0d
Function at 0x474590
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x654038]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4745bb
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x47460a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x474612
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x474686
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x474640
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x4746b5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x5d444d
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x5d444e
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x474690
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4746e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.004374e0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x654038]
mov esi, eax
add esp, 8
test esi, esi
je 0x474862
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x474762
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4747d6
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x474790
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x474805
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x5d444d
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x5d444e
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4747e0
push dword [esp + 0x30]
call fcn.004374e0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x474830
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x65403c]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x474950
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x474976
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4749ae
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.004374e0
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x474a05
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x474a14
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x474a25
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x475690
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x4756dc
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4756a1
pop ebx
pop edi
pop esi
ret

Function at 0x475df0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00477160
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x475e45
push dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.00477a40
add esp, 8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 8]
push eax
call fcn.00477a10
add esp, 4
push 2
call fcn.005975bc
push eax
push dword [ebp - 4]
call fcn.0059e1e5
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x475e68
push eax
call fcn.00596eae
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4786f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, 0x40
push edi
xor edi, edi
cmp esi, eax
cmovle esi, eax
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x478720
call fcn.00596e90
mov eax, dword [eax]
mov ebx, dword [ebp + 8]
push esi
push ebx
mov dword [ebp + 0x14], eax
call fcn.00477260
push dword [ebp + 0xc]
lea eax, [esi + 1]
push eax
push 1
push dword [ebx]
call fcn.0059781a
add esp, 0x18
test eax, eax
jle 0x47877b
add edi, eax
cmp eax, esi
jle 0x47877b
add esi, esi
lea eax, [esi + edi]
cmp eax, 0x40000000
jge 0x4787aa
inc eax
push eax
push dword [ebx]
call fcn.0059d341
push dword [ebp + 0xc]
lea ecx, [esi + 1]
mov dword [ebx], eax
push ecx
add eax, edi
push 1
push eax
call fcn.0059781a
add esp, 0x18
test eax, eax
jg 0x478746
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x47878d
mov dword [eax], edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x47879f
call fcn.00596e90
pop edi
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x1b
jmp 0x47877e
Function at 0x478a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
push esi
call fcn.004794e0
push eax
push dword [ebp + 8]
call fcn.00478e10
mov ecx, eax
add esp, 0xc
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x478a3b
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
jne 0x478a59
mov edi, edx
lea ebx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x478a50
sub edi, ebx
push ecx
push edi
push 1
push edx
call fcn.0059dc18
mov ebx, eax
add esp, 0x10
cmp ebx, edi
je 0x478b02
push esi
call fcn.004792a0
add esp, 4
test eax, 0x1000
jne 0x478ae1
push esi
call fcn.004792a0
and eax, 0xf
add esp, 4
cmp al, 6
ja 0x478b02
push esi
call fcn.004792a0
and eax, 0xf
add esp, 4
cmp al, 5
jbe 0x478ae1
push esi
call fcn.004792a0
add esp, 4
test eax, 0x1300
jne 0x478ae1
push esi
call fcn.004792a0
push dword [ebp + 0x14]
mov esi, eax
and esi, 0xc90000
or esi, 0x360000
shr esi, 0x10
call fcn.004792a0
and eax, 0xf
add esp, 8
cmp dword [esi*4 + 0x669020], eax
jl 0x478b02
mov esi, dword [ebp + 0x14]
push ebx
push edi
push dword [ebp + 8]
push str.failed_fwrite__s__sz__d__returned__d
push esi
call fcn.004792a0
add esp, 4
or eax, 0x360000
push eax
call fcn.00479a10
add esp, 0x14
push dword [ebp - 4]
call fcn.0059e09e
add esp, 4
sub ebx, edi
neg ebx
sbb ebx, ebx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x478ba0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x10000
call fcn.00596eb3
mov esi, dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
push esi
or edi, 0xffffffff
call fcn.00591d70
add esp, 0xc
test eax, eax
jne 0x478c83
push 0x5d47f4
push esi
call fcn.00591610
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x478c83
push 0x5d4968
push dword [ebp + 0xc]
call fcn.00591610
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x478c68
mov edi, dword [ebp - 0x2c]
mov ecx, edi
mov ebx, dword [ebp - 0x28]
or ecx, ebx
je 0x478c5e
nop
test ebx, ebx
jl 0x478c25
jg 0x478c1e
cmp edi, 0x10000
jbe 0x478c25
mov esi, 0x10000
jmp 0x478c27
mov esi, edi
push dword [ebp - 8]
push esi
push 1
push dword [ebp - 4]
call fcn.0059781a
add esp, 0x10
cmp eax, esi
jne 0x478c62
push dword [ebp - 0xc]
push esi
push 1
push dword [ebp - 4]
call fcn.0059dc18
add esp, 0x10
cmp eax, esi
jne 0x478c62
mov eax, esi
cdq
sub edi, eax
mov eax, edi
sbb ebx, edx
or eax, ebx
jne 0x478c10
xor edi, edi
jmp 0x478c65
or edi, 0xffffffff
mov ebx, dword [ebp - 4]
push dword [ebp - 8]
call fcn.0059e09e
mov eax, dword [ebp - 0xc]
add esp, 4
test eax, eax
je 0x478c83
push eax
call fcn.0059e09e
add esp, 4
push ebx
call fcn.00596eae
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret