joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433f00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x433f2c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x6c], 0
je 0x433f46
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
push ebx
push 0x3a
push dword [esi + 0x58]
call fcn.00581060
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x433f6a
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x58]
push edi
mov edi, ebx
sub edi, eax
push edi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00580540
add esp, 0xc
cmp edi, 0x100
jae 0x43403c
lea eax, [ebp - 0x108]
mov byte [ebp + edi - 0x104], 0
push eax
lea eax, [ebp - 0x128]
xorps xmm0, xmm0
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x104]
movdqu xmmword [ebp - 0x128], xmm0
push eax
movdqu xmmword [ebp - 0x118], xmm0
mov dword [ebp - 0x124], 2
mov dword [ebp - 0x120], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x433ff6
mov edi, dword [ebp - 0x108]
mov eax, dword [edi + 0x10]
cmp eax, 0x10
jbe 0x434009
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
push eax
push dword [edi + 0x18]
lea eax, [esi + 0x5c]
push eax
call fcn.00580540
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esi + 0x6c], eax
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.005802ce
mov esp, ebp
pop ebp
ret
call fcn.0058497e
int3

Function at 0x437940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x5b5f5c
push dword [ebp + 8]
mov edi, 1
call fcn.00582816
mov esi, eax
add esp, 8
test esi, esi
jne 0x437964
pop edi
pop esi
pop ebp
ret
push esi
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0058317c
xor ecx, ecx
cmp eax, 1
push esi
cmovne edi, ecx
call fcn.005826db
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4379c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x100
call fcn.0058023c
mov edi, eax
add esp, 4
test edi, edi
jne 0x4379da
pop edi
pop ebp
ret
push ebx
push str.wlog
push 2
call fcn.00437c80
add esp, 8
mov ebx, eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x437a1a
push eax
push ebx
call fcn.00437ea0
add esp, 8
test eax, eax
jne 0x437a1a
push edi
call fcn.00580204
push ebx
call fcn.00580204
add esp, 8
xor eax, eax
pop ebx
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
test ecx, ecx
js 0x437a41
push ecx
push eax
push str._I32u__d._s
push 0x100
push edi
call fcn.00580ea1
add esp, 0x18
jmp 0x437a55
push eax
push str._I32u._s
push 0x100
push edi
call fcn.00580ea1
add esp, 0x14
push esi
push edi
push ebx
call fcn.00437b30
push edi
mov esi, eax
call fcn.00580204
push ebx
call fcn.00580204
add esp, 0x10
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x437c20
Capabilities:
Check if file exists
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
dec eax
cmp eax, 5
ja case.default.0x437c2c
jmp dword [eax*4 + 0x437c5c]
pop ebp
jmp fcn.00437d00
pop ebp
jmp fcn.00437d50
pop ebp
jmp fcn.00437e20
pop ebp
jmp fcn.00437e20
pop ebp
jmp fcn.00437da0
pop ebp
jmp fcn.00437e60
xor eax, eax
pop ebp
ret

Function at 0x437d00
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
xor esi, esi
push esi
push esi
push str.UserProfile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x437d48
push edi
call fcn.0058023c
mov esi, eax
add esp, 4
test esi, esi
je 0x437d43
push edi
push esi
push str.UserProfile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [edi - 1]
cmp eax, ecx
je 0x437d48
push esi
call fcn.00580204
add esp, 4
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, esi
pop esi
ret

Function at 0x437d50
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
xor esi, esi
push esi
push esi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x437d98
push edi
call fcn.0058023c
mov esi, eax
add esp, 4
test esi, esi
je 0x437d93
push edi
push esi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [edi - 1]
cmp eax, ecx
je 0x437d98
push esi
call fcn.00580204
add esp, 4
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, esi
pop esi
ret
Function at 0x437da0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push esi
push edi
push 1
push 0x104
xor edi, edi
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x437dd2
push esi
push edi
push edi
push 0x1c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x437de2
push esi
call fcn.00580204
add esp, 4
xor esi, esi
push esi
call fcn.00580204
add esp, 4
mov eax, edi
pop edi
pop esi
ret
push str.cache
push esi
call fcn.00437b30
add esp, 8
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x437e0b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
and edi, eax
push esi
call fcn.00580204
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x437e20
Capabilities:
Get common file path

Disassembly:
push esi
push 1
push 0x104
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x437e52
push esi
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x437e56
push esi
call fcn.00580204
add esp, 4
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x437e60
Capabilities:
Get common file path

Disassembly:
push esi
push 1
push 0x104
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x437e92
push esi
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x437e96
push esi
call fcn.00580204
add esp, 4
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x437f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x437fe7
cmp dword [esi], 0
je 0x437fe7
cmp dword [esi + 0x34], 0
push edi
je 0x437fdc
mov eax, dword [esi]
mov edi, dword [esi + 0x34]
test eax, eax
je 0x437fe6
push eax
push 1
push 0x10
push edi
call fcn.0058317c
add esp, 0x10
cmp eax, 1
jne 0x437fe6
mov eax, dword [esi]
test eax, eax
je 0x437fe6
push eax
push 1
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.0058317c
add esp, 0x10
cmp eax, 1
jne 0x437fe6
mov eax, dword [esi + 0x34]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x34], eax
test eax, eax
jne 0x437f97
push dword [esi]
call fcn.00581780
add esp, 4
pop edi
pop esi
pop ebp
ret
Function at 0x438000
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x5b781c
test ebx, ebx
mov eax, 0x5b5f5c
push edi
cmove eax, ecx
push eax
push dword [ebp + 8]
call fcn.00582816
mov edi, eax
add esp, 8
test edi, edi
jne 0x438078
push 4
push str.com.winpr.utils.wlog
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x438072
push str.opening_pcap_file
push str.Pcap_Open
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPwinprlibwinprutilswlogPacketMessage.c
push 0xc4
push 4
push edi
push str.com.winpr.utils.wlog
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x1c
pop edi
xor eax, eax
pop ebx
pop ebp
ret
push esi
push 0x38
push 1
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x438139
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x10], 0
mov dword [esi], edi
test ebx, ebx
je 0x4380de
push edi
push 1
lea eax, [esi + 0x14]
mov dword [esi + 0x18], 0x40002
mov dword [eax], 0xa1b2c3d4
push 0x18
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 1
call fcn.0058317c
jmp 0x43812a
push 2
push 0
push 0
push edi
call fcn.00582a9c
add esp, 0x10
test eax, eax
js 0x438139
push dword [esi]
call fcn.00582bd3
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
js 0x438139
push 0
push 0
push 0
push dword [esi]
call fcn.00582a9c
add esp, 0x10
test eax, eax
js 0x438139
mov eax, dword [esi]
test eax, eax
je 0x438139
push eax
push 1
lea eax, [esi + 0x14]
push 0x18
push eax
call fcn.005829f0
add esp, 0x10
cmp eax, 1
jne 0x438139
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.005826db
push esi
call fcn.00580204
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x438150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x43817b
mov eax, dword [eax]
test eax, eax
je 0x43817b
push eax
mov eax, dword [ebp + 0xc]
push 1
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0058317c
add esp, 0x10
cmp eax, 1
jne 0x43817b
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x438180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x800
mov word [ebp - 0x34], ax
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x438334
cmp dword [esi], 0
je 0x438334
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x3a], 0x15d1500
mov dword [ebp - 0x40], 0x15d1500
and ecx, 2
je 0x4381d6
mov word [ebp - 0x36], 0x464
mov word [ebp - 0x3c], 0x164
jmp 0x4381e2
mov word [ebp - 0x36], 0x164
mov word [ebp - 0x3c], 0x464
mov edx, dword [ebp + 0x10]
mov word [ebp - 0x58], 0x504
mov byte [ebp - 0x56], 0
mov byte [ebp - 0x50], 2
lea eax, [edx + 0x28]
mov dword [ebp - 0x4c], 0x680
mov word [ebp - 0x54], ax
xor eax, eax
mov word [ebp - 0x52], ax
mov word [ebp - 0x4e], ax
test ecx, ecx
je 0x43821f
mov dword [ebp - 0x48], 0xc0a80196
mov dword [ebp - 0x44], 0x4a7d64c8
jmp 0x43822d
mov dword [ebp - 0x48], 0x4a7d64c8
mov dword [ebp - 0x44], 0xc0a80196
mov dword [ebp - 0x70], 0xd3d0d3d
test ecx, ecx
je 0x438250
mov ecx, dword [0x65565c]
mov eax, dword [0x655658]
mov dword [ebp - 0x6c], ecx
add ecx, edx
mov dword [0x65565c], ecx
jmp 0x438266
mov ecx, dword [0x655658]
mov eax, dword [0x65565c]
mov dword [ebp - 0x6c], ecx
add ecx, edx
mov dword [0x655658], ecx
mov dword [ebp - 0x68], eax
xor eax, eax
mov word [ebp - 0x5c], ax
lea eax, [edx + 0x36]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
mov word [ebp - 0x64], 5
mov byte [ebp - 0x62], 0x18
mov dword [ebp - 0x60], 0x7fff
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
call fcn.00586926
movzx eax, word [ebp - 0xc]
add esp, 4
imul ecx, eax, 0x3e8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x438334
push eax
push 1
lea eax, [ebp - 0x30]
push 0x10
push eax
call fcn.0058317c
add esp, 0x10
cmp eax, 1
jne 0x438334
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.00438350
add esp, 8
test eax, eax
je 0x438334
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.00438440
add esp, 8
test eax, eax
je 0x438334
lea eax, [ebp - 0x70]
push eax
push esi
call fcn.004385c0
add esp, 8
test eax, eax
je 0x438334
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.00438150
add esp, 8
test eax, eax
je 0x438334
push dword [esi]
call fcn.00581780
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.005802ce
mov esp, ebp
pop ebp
ret
Function at 0x438350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x438420
cmp dword [edi], 0
je 0x438420
test ebx, ebx
je 0x438420
push esi
lea eax, [ebp - 0x14]
push 0xe
push eax
call fcn.00438820
mov esi, eax
add esp, 8
test esi, esi
jne 0x4383a7
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
mov eax, dword [ebx]
mov dword [ecx], eax
movzx eax, word [ebx + 4]
mov word [ecx + 4], ax
add dword [esi + 4], 6
mov ecx, dword [esi + 4]
mov eax, dword [ebx + 6]
mov dword [ecx], eax
movzx eax, word [ebx + 0xa]
mov word [ecx + 4], ax
add dword [esi + 4], 6
movzx edx, word [ebx + 0xc]
mov ecx, dword [esi + 4]
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], dl
lea eax, [ebp - 0x14]
inc dword [esi + 4]
push dword [edi]
push 1
push 0xe
push eax
call fcn.0058317c
xor ecx, ecx
mov ebx, 1
cmp eax, 1
push ecx
push esi
cmovne ebx, ecx
call fcn.004387e0
add esp, 0x18
mov eax, ebx
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.005802ce
mov esp, ebp
pop ebp
ret
Function at 0x438440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4385ae
cmp dword [ebx], 0
je 0x4385ae
test edi, edi
je 0x4385ae
push esi
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.00438820
mov esi, eax
add esp, 8
test esi, esi
jne 0x438497
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov cl, byte [edi]
mov eax, dword [esi + 4]
shl cl, 4
or cl, byte [edi + 1]
mov byte [eax], cl
inc dword [esi + 4]
mov ecx, dword [esi + 4]
movzx eax, byte [edi + 2]
mov byte [ecx], al
inc dword [esi + 4]
movzx edx, word [edi + 4]
mov ecx, dword [esi + 4]
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], dl
inc dword [esi + 4]
movzx edx, word [edi + 6]
mov ecx, dword [esi + 4]
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], dl
inc dword [esi + 4]
movzx eax, byte [edi + 8]
mov edx, dword [esi + 4]
shl ax, 0xd
or ax, word [edi + 0xa]
movzx ecx, ax
mov eax, ecx
shr eax, 8
mov byte [edx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], cl
inc dword [esi + 4]
mov ecx, dword [esi + 4]
movzx eax, byte [edi + 0xc]
mov byte [ecx], al
inc dword [esi + 4]
mov ecx, dword [esi + 4]
movzx eax, byte [edi + 0xd]
mov byte [ecx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
movzx ecx, word [edi + 0xe]
mov byte [eax], cl
inc dword [esi + 4]
mov eax, dword [esi + 4]
shr ecx, 8
mov byte [eax], cl
inc dword [esi + 4]
push dword [edi + 0x10]
push esi
call fcn.0049a840
push dword [edi + 0x14]
push esi
call fcn.0049a840
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.00437ec0
mov word [edi + 0xe], ax
add dword [esi + 4], 0xfffffff6
mov eax, dword [esi + 4]
movzx ecx, word [edi + 0xe]
mov byte [eax], cl
inc dword [esi + 4]
mov eax, dword [esi + 4]
shr ecx, 8
mov byte [eax], cl
lea eax, [ebp - 0x18]
add dword [esi + 4], 9
push dword [ebx]
push 1
push 0x14
push eax
call fcn.0058317c
xor ecx, ecx
mov ebx, 1
cmp eax, 1
push ecx
push esi
cmovne ebx, ecx
call fcn.004387e0
add esp, 0x30
mov eax, ebx
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.005802ce
mov esp, ebp
pop ebp
ret
Function at 0x4385c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push ebx
push edi
mov edi, 1
test eax, eax
je 0x43870c
cmp dword [eax], 0
je 0x43870c
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x43870c
push esi
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.00438820
mov esi, eax
add esp, 8
test esi, esi
jne 0x43861f
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx]
mov eax, dword [esi + 4]
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], dl
inc dword [esi + 4]
movzx edx, word [ebx + 2]
mov ecx, dword [esi + 4]
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], dl
inc dword [esi + 4]
push dword [ebx + 4]
push esi
call fcn.0049a840
push dword [ebx + 8]
push esi
call fcn.0049a840
mov cl, byte [ebx + 0xc]
add esp, 0x10
mov eax, dword [esi + 4]
shl cl, 4
or cl, byte [ebx + 0xd]
mov byte [eax], cl
inc dword [esi + 4]
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0xe]
mov byte [ecx], al
inc dword [esi + 4]
movzx edx, word [ebx + 0x10]
mov ecx, dword [esi + 4]
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], dl
inc dword [esi + 4]
movzx edx, word [ebx + 0x12]
mov ecx, dword [esi + 4]
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], dl
inc dword [esi + 4]
movzx edx, word [ebx + 0x14]
mov ecx, dword [esi + 4]
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [eax], dl
mov eax, dword [ebp - 0x1c]
inc dword [esi + 4]
mov eax, dword [eax]
test eax, eax
je 0x4386ee
push eax
push 1
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0058317c
xor ecx, ecx
add esp, 0x10
cmp eax, 1
cmovne edi, ecx
push 0
push esi
call fcn.004387e0
add esp, 8
mov eax, edi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.005802ce
mov esp, ebp
pop ebp
ret
Function at 0x438cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x5b5f5c
push esi
or edi, 0xffffffff
call fcn.00582816
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x438d44
push 4
push str.com.winpr.utils.image
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x438d3a
push esi
push str.failed_to_open_file__s
push str.winpr_bitmap_write
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPwinprlibwinprutilsimage.c
push 0x76
push 4
push ebx
push str.com.winpr.utils.image
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x20
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x18]
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xe], eax
mov eax, esi
cdq
and edx, 7
mov word [ebp - 0x14], 0x4d42
add eax, edx
mov dword [ebp - 0xa], 0x36
mov edx, dword [ebp + 0x10]
sar eax, 3
imul eax, edx
push 0x36
push 0
mov dword [ebp - 0x38], edx
mov word [ebp - 0x2e], si
imul eax, ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
add eax, 0x36
mov dword [ebp - 0x12], eax
mov eax, ecx
neg eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], eax
mov eax, 1
mov word [ebp - 0x30], ax
mov dword [ebp - 0x3c], 0x28
call fcn.00438820
mov esi, eax
add esp, 8
test esi, esi
je 0x438e20
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00438e40
add esp, 8
test eax, eax
je 0x438e20
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.00438f10
add esp, 8
test eax, eax
je 0x438e20
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ebx
sub eax, ecx
push 1
push eax
push ecx
mov dword [esi + 8], eax
call fcn.0058317c
add esp, 0x10
cmp eax, 1
jne 0x438e20
push ebx
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0058317c
add esp, 0x10
cmp eax, 1
mov eax, 1
cmove edi, eax
push ebx
call fcn.005826db
push 1
push esi
call fcn.004387e0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446930
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x40
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x84]
push 0x36
push eax
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], 0
call fcn.00580b90
push 0x40
lea eax, [ebp - 0x44]
push 0x5c
push eax
call fcn.00580b90
add esp, 0x18
xor ecx, ecx
test esi, esi
je 0x446a2a
mov edi, dword [ebp + 8]
push ebx
cmp esi, 0x10
jb 0x4469f1
mov eax, esi
lea ebx, [ebp - 0x84]
mov edx, esi
and eax, 0xf
sub edx, eax
lea esi, [ebp - 0x44]
sub ebx, edi
mov eax, edi
sub esi, edi
mov dword [ebp - 0x88], esi
mov esi, dword [ebp - 0x90]
mov edi, dword [ebp - 0x88]
mov edi, edi
movdqu xmm1, xmmword [eax]
add ecx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [ebx + eax - 0x10]
pxor xmm0, xmm1
movdqu xmmword [ebx + eax - 0x10], xmm0
movdqu xmm0, xmmword [edi + eax - 0x10]
pxor xmm0, xmm1
movdqu xmmword [edi + eax - 0x10], xmm0
cmp ecx, edx
jb 0x4469c0
mov edi, dword [ebp + 8]
cmp ecx, esi
jae 0x446a29
lea ebx, [ebp - 0x84]
lea edx, [ebp - 0x44]
sub ebx, edi
sub edx, edi
lea eax, [ecx + edi]
mov edi, esi
mov dword [ebp - 0x88], edx
sub edi, ecx
mov esi, edx
mov dl, byte [eax]
lea ecx, [eax + ebx]
xor byte [ecx], dl
lea ecx, [eax + esi]
xor byte [ecx], dl
lea eax, [eax + 1]
dec edi
jne 0x446a11
mov esi, dword [ebp - 0x90]
pop ebx
push 2
push esi
call fcn.00580d1f
mov edi, eax
add esp, 8
test edi, edi
je 0x446a89
push esi
push edi
push 0x40
lea eax, [ebp - 0x84]
push eax
push 4
call fcn.0059c350
add esp, 0x14
test eax, eax
je 0x446a89
push esi
lea eax, [esi + edi]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push 4
call fcn.0059c350
add esp, 0x14
test eax, eax
je 0x446a89
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x94]
call fcn.00580540
add esp, 0xc
mov dword [ebp - 0x8c], 1
push edi
call fcn.00580204
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x8c]
xor ecx, ebp
pop edi
pop esi
call fcn.005802ce
mov esp, ebp
pop ebp
ret
Function at 0x4505e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 0x55555556
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebx*4 + 0xc]
imul ecx
mov eax, edx
shr eax, 0x1f
inc eax
add eax, edx
push eax
call fcn.0058023c
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
mov ecx, esi
test esi, esi
jne 0x45061b
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
mov dword [ebp + 8], eax
test eax, eax
jle 0x4506a6
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
movzx esi, byte [edi]
movzx eax, byte [edi + 1]
shl esi, 8
add esi, eax
movzx eax, byte [edi + 2]
shl esi, 8
add edi, 3
add esi, eax
mov eax, esi
sar eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x5bbb98]
mov byte [ecx], al
mov eax, esi
sar eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5bbb98]
mov byte [ecx + 1], al
mov eax, esi
sar eax, 6
and esi, 0x3f
and eax, 0x3f
movzx eax, byte [eax + 0x5bbb98]
mov byte [ecx + 2], al
movzx eax, byte [esi + 0x5bbb98]
mov byte [ecx + 3], al
add ecx, 4
dec edx
jne 0x450640
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
sub ebx, eax
dec ebx
je 0x450704
dec ebx
jne 0x450734
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
shl edx, 8
add edx, eax
shl edx, 8
mov eax, edx
sar eax, 0x12
and eax, 0x3f
pop edi
movzx eax, byte [eax + 0x5bbb98]
mov byte [ecx], al
mov eax, edx
sar eax, 0xc
and eax, 0x3f
sar edx, 6
and edx, 0x3f
movzx eax, byte [eax + 0x5bbb98]
mov byte [ecx + 1], al
movzx eax, byte [edx + 0x5bbb98]
mov byte [ecx + 2], al
mov eax, esi
mov byte [ecx + 3], 0x3d
add ecx, 4
pop esi
mov byte [ecx], bl
pop ebx
pop ebp
ret
movzx edx, byte [edi]
shl edx, 0x10
mov eax, edx
sar edx, 0xc
sar eax, 0x12
and edx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + 0x5bbb98]
mov byte [ecx], al
movzx eax, byte [edx + 0x5bbb98]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
pop edi
mov eax, esi
mov byte [ecx], 0
pop esi
pop ebx
pop ebp
ret