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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1028dc74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x4a8]
mov ebx, dword [eax]
lea esi, [edi + 0x15c]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x100aaf83
push dword [ebp - 0x90]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.101a6860
mov eax, dword [ebp - 0x90]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, 4
jge 0x100aafb6
push str.Received_too_short_packet
push ebx
call fcn.100870d0
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018ea37
mov esp, ebp
pop ebp
ret
push esi
call fcn.100aaaf0
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x100aafd1
jmp dword [eax*4 + 0x100ab128]
cmp edx, 4
jle case.0x100aafd1.4
push esi
call fcn.100aaad0
movzx ecx, word [edi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x100aafd1.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
mov esi, dword [ebp - 0x88]
add eax, 4
push eax
push 1
push esi
call fcn.10087020
add esp, 0x10
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x100ab03f
push 5
push edi
call fcn.100ab8c0
mov eax, dword [ebp - 0x8c]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018ea37
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.10092a40
add esp, 0xc
jmp 0x100ab0f6
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x15c]
push eax
call fcn.100aaad0
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.100aaaa0
add esp, 0xc
cmp eax, esi
jae case.0x100aafd1.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.100871b0
jmp 0x100ab0ed
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.100aaca0
add esp, 0xc
test eax, eax
je case.0x100aafd1.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018ea37
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x10209830
push ebx
call fcn.100870d0
add esp, 0xc
mov esi, dword [ebp - 0x88]
push esi
call fcn.10092cf0
add esp, 4
test eax, eax
je 0x100aafa3
push 5
push edi
call fcn.100ab8c0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.1018ea37
mov esp, ebp
pop ebp
ret
Function at 0x100ab8c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x100ab8d2
jmp dword [edx*4 + 0x100ab928]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.100ab390
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.100ab140
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.100abad0
push str.TFTP_finished
push 0x10204eb8
push eax
call fcn.100871b0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x10209830
push eax
call fcn.100870d0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x100afce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x1020d5cc
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100afd00
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x1020d5e8
push esi
mov dword [ebp - 8], ebx
call fcn.101bd226
add esp, 8
test eax, eax
je 0x100afd4c
test ebx, ebx
je 0x100afd3c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100afd75
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100afd75
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x100afe20
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100afd91
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x102884a4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100afe16
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100afe16
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100afdc2
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100afde0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x100afdf0
mov eax, dword [ebp - 8]
test eax, eax
je 0x100afe0d
push 8
push 0
push ebx
call eax
jmp 0x100afe14
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x102884a8]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100b3780
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x100b37b3
push 0x2e
push edi
call fcn.101a85a0
add esp, 8
test eax, eax
je 0x100b37b1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x100b5e50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x102884a4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100b5e7d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x100b5ec7
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x100b5ecd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x100b5f2b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x100b5ef0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x100b5f57
mov eax, dword [esi + 4]
push 1
push str.6Stack_part_of_OpenSSL_1.0.2q__20_Nov_2018
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x1020ddf7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x100b5f30
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100b6db0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.100b6ed0
mov edi, eax
add esp, 8
test edi, edi
jne 0x100b6e41
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100c4710
push 0x1020de80
push esi
push 0x1020de84
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.100c3ad0
add esp, 0x2c
call fcn.101adbbd
cmp dword [eax], 2
je 0x100b6e1f
call fcn.101adbbd
cmp dword [eax], 6
je 0x100b6e1f
lea eax, [edi + 2]
mov ecx, 0xb8
jmp 0x100b6e29
mov eax, 0x80
mov ecx, 0xb6
push ecx
push str..crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.100c4710
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x10288540
call fcn.100b74c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100b6e62
push edi
call fcn.101b712c
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.100b70e0
push edi
push 1
push 0x6a
push esi
call fcn.100b7110
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret
Function at 0x100c1a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.1018f810
mov eax, dword [0x1028dc74]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], ebx
test edi, edi
je 0x100c1b8a
lea eax, [esp + 0x48]
push eax
push edi
call fcn.101bc130
add esp, 8
test eax, eax
js 0x100c1b8a
lea eax, [ebx + 8]
call fcn.1018f810
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.100c1760
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x100c1b8a
push 0x101f6c74
push edi
call fcn.101b8c6f
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x100c1b73
test dword [esp + 0x4e], 0x2000
je 0x100c1af2
push ebx
push 4
mov ecx, 0x800
cmp esi, 0xffffffff
push ebx
push eax
cmove esi, ecx
call fcn.101bcbbd
mov eax, dword [esp + 0x50]
add esp, 0x10
mov edi, 0x400
test esi, esi
jle 0x100c1b00
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.101b8ec4
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x100c1b54
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.1018f810
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.100c1760
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x100c1af2
sub esi, edi
test esi, esi
jg 0x100c1af2
push dword [esp + 0x40]
call fcn.101b712c
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.100cc950
mov ebx, dword [esp + 0x50]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.1018ea37
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x47c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1018ea37
mov esp, ebp
pop ebp
ret
Function at 0x100cdcd0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.1018f810
mov eax, dword [0x1028dc74]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x100cdd6f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x100cdd6f
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.100014f0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.101ad8cb
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1018ea37
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.100014f0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.101ad8cb
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.100cdb90
test eax, eax
jle 0x100cde03
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x100cde17
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1018ea37
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.1018ea37
add esp, 0x108
ret
Function at 0x101122c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x10112389
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x101122e1
cmp al, 0x6b
jne 0x10112389
inc ecx
cmp al, 0x6b
jne 0x1011234b
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x10112302
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x10112302
cmp dl, 0xbb
jne 0x1011232b
inc eax
cmp eax, esi
jl 0x101122f0
sub esi, eax
test eax, eax
jne 0x1011234e
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.100c4710
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.100c4710
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x10112377
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.100c4710
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.101a6860
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.100c4710
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x1011a690
Capabilities:
Encode data using base64

Disassembly:
mov edx, dword [esp + 0xc]
push ebp
xor ebp, ebp
test edx, edx
jle 0x1011a772
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
inc edi
nop dword [eax + eax]
movzx eax, byte [edi - 1]
cmp edx, 3
jl 0x1011a703
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, eax
shr ecx, 0xc
inc esi
and ecx, 0x3f
mov ebx, esi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, eax
and ecx, 0x3f
shr eax, 6
and eax, 0x3f
mov ch, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x1011a74c
shl eax, 0x10
cmp edx, 2
jne 0x1011a713
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
lea ebx, [esi + 1]
shr ecx, 0x12
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, eax
shr ecx, 0xc
mov esi, ebx
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], cl
cmp edx, 1
jne 0x1011a73e
mov cl, 0x3d
jmp 0x1011a74a
shr eax, 6
and eax, 0x3f
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ch, 0x3d
lea eax, [esi + 2]
mov byte [ebx + 1], cl
sub edx, 3
mov byte [eax], ch
add ebp, 4
lea esi, [eax + 1]
add edi, 3
test edx, edx
jg 0x1011a6b0
pop edi
mov byte [esi], 0
mov eax, ebp
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esp + 8]
mov byte [eax], 0
mov eax, ebp
pop ebp
ret
Function at 0x1011ddf0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x90
call fcn.1018f810
mov eax, dword [0x1028dc74]
xor eax, esp
mov dword [esp + 0x8c], eax
mov edx, dword [esp + 0xa4]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 4], edx
push ebp
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x10], ebp
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xac]
mov eax, dword [esi]
test ebx, ebx
je 0x1011de5c
cmp ebx, eax
je 0x1011de53
test ebp, ebp
je 0x1011dfd9
test edi, edi
js 0x1011dfd9
mov ecx, 1
mov dword [esi], ebx
jmp 0x1011de66
test eax, eax
je 0x1011dfd9
mov ebx, eax
test ebp, ebp
je 0x1011dfd0
push ebx
call fcn.100d2010
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x1011de9a
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.100cde30
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
jge 0x1011deeb
push dword [esp + 0x10]
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.100bd710
add esp, 0xc
test eax, eax
je 0x1011dfd9
push edi
push dword [esp + 0x1c]
push ebp
call fcn.100bd8b0
add esp, 0xc
test eax, eax
je 0x1011dfd9
lea eax, [esi + 0x4c]
push eax
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.100bd670
add esp, 0xc
test eax, eax
je 0x1011dfd9
mov edi, dword [esi + 0x4c]
jmp 0x1011df08
cmp edi, 0x80
ja 0x1011dfd9
push edi
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.101a6860
add esp, 0xc
mov dword [esi + 0x4c], edi
cmp edi, 0x80
je 0x1011df28
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x50]
add eax, edi
push 0
push eax
call fcn.101a8300
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
nop
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x1011df30
push edx
lea edi, [esi + 0x1c]
push ebx
push edi
call fcn.100bd710
add esp, 0xc
test eax, eax
je 0x1011dfd9
push ebx
call fcn.100d2010
push eax
lea eax, [esp + 0x24]
push eax
push edi
call fcn.100bd8b0
add esp, 0x10
test eax, eax
je 0x1011dfd9
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x1011df74
push dword [esp + 0x10]
lea edi, [esi + 0x34]
push ebx
push edi
call fcn.100bd710
add esp, 0xc
test eax, eax
je 0x1011dfd9
push ebx
call fcn.100d2010
push eax
lea eax, [esp + 0x24]
push eax
push edi
call fcn.100bd8b0
add esp, 0x10
test eax, eax
je 0x1011dfd9
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.100bdac0
add esp, 8
test eax, eax
je 0x1011dfd9
mov eax, 1
jmp 0x1011dfdb
test ecx, ecx
je 0x1011dfb5
jmp 0x1011df2c
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1018ea37
add esp, 0x90
ret
Function at 0x1011f270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.1018f810
mov eax, dword [0x1028dc74]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.100bdc60
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.100bdac0
add esp, 0xc
test eax, eax
je 0x1011f372
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.100bd670
add esp, 0xc
test eax, eax
je 0x1011f372
lea eax, [esp + 0x20]
push eax
call fcn.100bd8c0
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x1011f390
push edi
call fcn.100be4e0
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.100d22b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1011f372
push esi
call fcn.101258b0
add esp, 4
test eax, eax
jle 0x1011f372
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.100d2050
add esp, 0x18
test eax, eax
jle 0x1011f372
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.101257c0
add esp, 0x14
test eax, eax
jle 0x1011f372
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.100d2250
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1018ea37
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x1011f3a8
cmp dword [edi], edx
je 0x1011f3d2
inc eax
add ecx, 4
cmp eax, 4
jl 0x1011f395
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.100c4710
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1018ea37
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x1011f406
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.100c4710
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1018ea37
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1018ea37
add esp, 0x6c
ret
Function at 0x101209b0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x10132310
push ebp
mov ebp, dword [esp + 0x10]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10132520
add esp, 0xc
test eax, eax
js 0x10132519
mov eax, dword [ebp + 0xf0]
push ebx
push esi
push edi
lea edi, [eax*4]
xor ebx, ebx
test edi, edi
jle 0x10132396
lea esi, [ebp + 8]
lea esi, [esi + edi*4]
lea eax, [ebp + 8]
nop dword [eax]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x10132350
mov eax, dword [ebp + 0xf0]
mov edi, 1
cmp eax, edi
jle 0x10132514
lea esi, [ebp + 4]
movzx eax, byte [esi + 0xd]
lea esi, [esi + 0x10]
mov edx, dword [esi - 4]
inc edi
movzx ecx, byte [eax*4 + 0x10237b90]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x10238f90]
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10238790]
movzx eax, byte [esi - 2]
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10238b90]
movzx eax, dl
mov edx, dword [esi]
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10239390]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi - 4], ecx
movzx ecx, byte [eax*4 + 0x10237b90]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x10238b90]
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10238f90]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10238790]
movzx eax, dl
mov edx, dword [esi + 4]
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10239390]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi], ecx
movzx ecx, byte [eax*4 + 0x10237b90]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x10238b90]
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10238f90]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10238790]
movzx eax, dl
mov edx, dword [esi + 8]
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10239390]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi + 4], ecx
movzx ecx, byte [eax*4 + 0x10237b90]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x10238b90]
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10238f90]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10238790]
movzx eax, dl
movzx eax, byte [eax*4 + 0x10237b90]
xor ecx, dword [eax*4 + 0x10239390]
mov dword [esi + 8], ecx
cmp edi, dword [ebp + 0xf0]
jl 0x101323a6
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret