joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10220a70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x10220a8b
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.101fa2d0
push edx
push eax
call fcn.101fa300
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x10220ad8
mov eax, dword [ebx + 0x144]
mov ecx, dword [ebx + 0x140]
push eax
push ecx
call fcn.101fa2d0
push edx
push eax
call fcn.101fa300
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x10220ada
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x102219d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x10221a03
push 0x2e
push esi
call fcn.10236220
add esp, 8
test eax, eax
je 0x10221a01
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x10221ad0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10221b06
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10221b10
sub eax, edx
push eax
call fcn.10200820
add esp, 4
push 0
push eax
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 2
push edx
call esi
cmp dword [ebp - 4], 0x10
jne 0x10221b5e
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
push 0
lea eax, [ebp - 4]
push eax
push ecx
push 2
push edx
call esi
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x10221b6d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10221b7d
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
Function at 0x10222aa0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push esi
push edi
push 0x40
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.10230cc0
push 0x40
lea ecx, [ebp - 0x98]
push 0
push ecx
call fcn.10230cc0
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push esi
lea edx, [ebp - 0xd8]
push edi
push edx
call fcn.10230070
push esi
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.10230070
add esp, 0x30
xor eax, eax
jmp 0x10222b00
xor byte [ebp + eax - 0xd8], 0x36
xor byte [ebp + eax - 0x98], 0x5c
inc eax
cmp eax, 0x40
jl 0x10222b00
lea ecx, [ebp - 0x58]
push ecx
call sym.lime.ndll__MD5_Init_4
push 0x40
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0x58]
push eax
call sym.lime.ndll__MD5_Update_12
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [ebp - 0x58]
push eax
call sym.lime.ndll__MD5_Update_12
mov esi, dword [ebp + 0x18]
lea ecx, [ebp - 0x58]
push ecx
push esi
call sym.lime.ndll__MD5_Final_8
lea edx, [ebp - 0x58]
push edx
call sym.lime.ndll__MD5_Init_4
push 0x40
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x58]
push ecx
call sym.lime.ndll__MD5_Update_12
push 0x10
push esi
lea edx, [ebp - 0x58]
push edx
call sym.lime.ndll__MD5_Update_12
lea eax, [ebp - 0x58]
push eax
push esi
call sym.lime.ndll__MD5_Final_8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10222b90
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push esi
push edi
push 0x40
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.10230cc0
push 0x40
lea ecx, [ebp - 0xa0]
push 0
push ecx
call fcn.10230cc0
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push esi
lea edx, [ebp - 0xe0]
push edi
push edx
call fcn.10230070
push esi
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10230070
add esp, 0x30
xor eax, eax
jmp 0x10222bf0
xor byte [ebp + eax - 0xe0], 0x36
xor byte [ebp + eax - 0xa0], 0x5c
inc eax
cmp eax, 0x40
jl 0x10222bf0
lea ecx, [ebp - 0x60]
push ecx
call fcn.10224d40
push 0x40
lea edx, [ebp - 0xe0]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.102253c0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.102253c0
mov esi, dword [ebp + 0x18]
lea ecx, [ebp - 0x60]
push ecx
push esi
call fcn.10225410
lea edx, [ebp - 0x60]
push edx
call fcn.10224d40
push 0x40
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.102253c0
push 0x14
lea edx, [ebp - 0x60]
push esi
push edx
call fcn.102253c0
add esp, 0x40
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.10225410
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10222cf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi]
mov bl, byte [esi + 1]
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jle 0x10222d55
push edi
jmp 0x10222d0b
mov bl, byte [ebp - 1]
inc al
mov byte [ebp + 0xb], al
movzx eax, al
mov dl, byte [eax + esi + 2]
lea edi, [eax + esi + 2]
add bl, dl
movzx eax, bl
mov byte [ebp - 1], bl
lea ebx, [eax + esi + 2]
mov al, byte [ebx]
mov byte [edi], al
add al, dl
mov byte [ebx], dl
movzx edx, al
movzx edx, byte [edx + esi + 2]
mov eax, dword [ebp + 0x10]
xor byte [ecx + eax], dl
mov al, byte [ebp + 0xb]
inc ecx
cmp ecx, dword [ebp + 0x14]
jl 0x10222d08
mov cl, byte [ebp - 1]
pop edi
mov byte [esi + 1], cl
mov byte [esi], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 1], bl
mov byte [esi], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10222d60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
sub eax, 0
push esi
je 0x10222d7e
dec eax
jne 0x10222f29
lea ecx, [eax + 0xe]
lea esi, [eax + 8]
jmp 0x10222d88
mov ecx, 0xa
mov esi, 4
mov eax, dword [ebp + 8]
push ebx
mov word [eax], cx
xor ecx, ecx
push edi
mov dword [ebp + 0x14], esi
mov word [eax + 2], si
lea edi, [eax + 4]
test esi, esi
jle 0x10222e01
mov eax, dword [ebp + 0xc]
add eax, 2
jmp 0x10222db0
movzx edx, byte [eax - 2]
movzx ebx, byte [eax - 1]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 1]
shl edx, 8
or edx, ebx
mov dword [edi + ecx*4], edx
movzx edx, byte [eax + 2]
movzx ebx, byte [eax + 3]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 4]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 5]
shl edx, 8
or edx, ebx
mov dword [edi + ecx*4 + 4], edx
add ecx, 2
add eax, 8
cmp ecx, esi
jl 0x10222db0
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
lea ecx, [ecx*4 + 4]
mov dword [ebp - 4], 0x102ad760
mov dword [ebp - 8], ecx
cmp esi, ecx
jge 0x10222f01
mov ebx, edi
nop
mov eax, esi
cdq
idiv dword [ebp + 0x14]
mov ecx, dword [edi + esi*4 - 4]
test edx, edx
jne 0x10222e86
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
shl edx, 8
or edx, eax
mov eax, ecx
and eax, 0xff
movzx eax, byte [eax + str.cw]
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl edx, 8
or edx, eax
mov eax, dword [ebp - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax]
shl ecx, 0x18
xor ecx, edx
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 8
jne 0x10222eea
mov edx, esi
and edx, reloc.WS2_32.dll_getsockopt
jns 0x10222e9b
dec edx
or edx, 0xfffffff8
inc edx
cmp edx, 4
jne 0x10222eea
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
shl edx, 8
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
or edx, eax
shl edx, 8
or ecx, edx
mov edx, dword [ebx]
xor edx, ecx
mov dword [edi + esi*4], edx
inc esi
add ebx, 4
cmp esi, dword [ebp - 8]
jl 0x10222e20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [eax + 0x1e4], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x1e8], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x1ec], edx
mov ecx, dword [ecx + 0xc]
pop edi
mov dword [eax + 0x1f0], ecx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10222f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
lea ebx, [eax + 0x14]
movzx eax, word [eax]
add eax, eax
add eax, eax
cmp eax, 4
jle 0x10222fe7
add eax, 0xfffffffc
push esi
mov dword [ebp + 8], eax
push edi
mov edi, dword [ebx]
mov eax, edi
and eax, 0x80808080
mov ecx, eax
shr ecx, 7
sub eax, ecx
lea edx, [edi + edi]
and edx, 0xfefefefe
and eax, 0x1b1b1b1b
xor eax, edx
mov ecx, eax
and ecx, 0x80808080
mov edx, ecx
shr edx, 7
sub ecx, edx
and ecx, 0x1b1b1b1b
lea edx, [eax + eax]
and edx, 0xfefefefe
xor ecx, edx
mov edx, ecx
and edx, 0x80808080
mov esi, edx
shr esi, 7
sub edx, esi
and edx, 0x1b1b1b1b
lea esi, [ecx + ecx]
and esi, 0xfefefefe
xor edx, esi
mov esi, edx
mov dword [ebp - 4], edx
xor esi, edi
mov edx, esi
xor edx, ecx
rol edx, 0x10
mov edi, esi
xor edi, eax
rol edi, 8
xor edx, edi
ror esi, 8
xor edx, esi
xor edx, dword [ebp - 4]
add ebx, 4
xor edx, ecx
xor edx, eax
dec dword [ebp + 8]
mov dword [ebx - 4], edx
jne 0x10222f53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10222ff0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [eax + 4]
push ebx
movzx ebx, word [eax]
xor dword [esi], ecx
mov edx, dword [eax + 8]
xor dword [esi + 4], edx
mov ecx, dword [eax + 0xc]
xor dword [esi + 8], ecx
mov edx, dword [eax + 0x10]
xor dword [esi + 0xc], edx
add eax, 0x14
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
test ebx, ebx
jle 0x10223176
push edi
lea ebx, [ebx]
lea eax, [ebp - 0x34]
mov ecx, 0xfffffffe
mov dword [ebp - 0x10], eax
jmp 0x10223040
lea edx, [ecx - 2]
and edx, 3
movzx eax, byte [esi + edx*4 + 3]
lea edx, [ecx - 1]
and edx, 3
movzx edx, byte [esi + edx*4 + 2]
movzx edi, byte [edx + str.cw]
movzx eax, byte [eax + str.cw]
mov edx, ecx
and edx, 3
movzx edx, byte [esi + edx*4 + 1]
movzx edx, byte [edx + str.cw]
mov dword [ebp - 4], edx
inc ecx
mov edx, ecx
and edx, 3
mov edx, dword [esi + edx*4]
and edx, 0xff
movzx edx, byte [edx + str.cw]
dec ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
cmp dword [ebp - 0xc], ebx
jge 0x10223111
xor edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebp - 0x1c], edx
xor edx, edi
xor ecx, eax
xor edx, eax
mov dword [ebp - 0x20], eax
test cl, cl
jns 0x102230b6
add ecx, ecx
xor ecx, 0x1b
jmp 0x102230b8
add ecx, ecx
movzx ecx, cl
xor ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, edi
test cl, cl
jns 0x102230cf
add ecx, ecx
xor ecx, 0x1b
jmp 0x102230d1
add ecx, ecx
movzx ecx, cl
xor ecx, edx
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
test cl, cl
jns 0x102230e6
add ecx, ecx
xor ecx, 0x1b
jmp 0x102230e8
add ecx, ecx
movzx ecx, cl
xor ecx, edx
xor dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 8]
test cl, cl
jns 0x10223101
add ecx, ecx
xor ecx, 0x1b
jmp 0x10223103
add ecx, ecx
movzx ecx, cl
xor ecx, edx
xor dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x18]
shl eax, 8
or eax, edi
shl eax, 8
or eax, dword [ebp - 4]
shl eax, 8
or eax, edx
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
add edx, 4
mov dword [ebp - 0x10], edx
lea edx, [ecx + 2]
cmp edx, 4
jb 0x10223040
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
xor ecx, dword [ebp - 0x34]
add eax, 0x10
mov dword [esi], ecx
mov edx, dword [eax - 0xc]
xor edx, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov dword [esi + 4], edx
mov ecx, dword [eax - 8]
xor ecx, dword [ebp - 0x2c]
mov dword [esi + 8], ecx
mov edx, dword [eax - 4]
mov eax, dword [ebp - 0xc]
xor edx, dword [ebp - 0x28]
inc eax
mov dword [esi + 0xc], edx
mov dword [ebp - 0xc], eax
cmp eax, ebx
jl 0x10223030
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x102234d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x1e4]
mov ecx, dword [edi + 0x1e8]
mov edx, dword [edi + 0x1ec]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x1f0]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov ecx, dword [ebp + esi - 0x10]
push ecx
call sub.WS2_32.dll_ntohl
mov dword [ebp + esi - 0x40], eax
add esi, 4
cmp esi, 0x10
jl 0x10223501
mov eax, dword [ebp + 0x14]
sub eax, 0x10
js 0x102235c9
mov edi, dword [ebp + 0x10]
add eax, 0x10
shr eax, 4
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x20], edx
mov edx, dword [ebx + 0xc]
add ebx, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
xor esi, esi
nop
mov eax, dword [ebp + esi - 0x20]
push eax
call sub.WS2_32.dll_ntohl
mov dword [ebp + esi - 0x60], eax
mov dword [ebp + esi - 0x50], eax
add esi, 4
cmp esi, 0x10
jl 0x10223550
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
push ecx
call fcn.10223180
add esp, 4
xor esi, esi
jmp 0x10223580
mov edx, dword [ebp + esi - 0x50]
xor edx, dword [ebp + esi - 0x40]
mov eax, dword [ebp + esi - 0x60]
push edx
mov dword [ebp + esi - 0x40], eax
call sub.WS2_32.dll_htonl
mov dword [ebp + esi - 0x30], eax
add esi, 4
cmp esi, 0x10
jl 0x10223580
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [edi], edx
mov edx, dword [ebp - 0x24]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
add edi, 0x10
dec dword [ebp + 0x14]
jne 0x10223533
mov edi, dword [ebp + 8]
pop ebx
xor esi, esi
jmp 0x102235d0
mov eax, dword [ebp + esi - 0x40]
push eax
call sub.WS2_32.dll_htonl
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x102235d0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [edi + 0x1e4], ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 0x1e8], edx
mov dword [edi + 0x1ec], eax
mov dword [edi + 0x1f0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x102236b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push 1
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x102236e1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.Domain
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10224d40
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov word [eax + 0x1c], cx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret
Function at 0x10225470
Capabilities:
Hash data with md5

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

Function at 0x10225de0
Capabilities:
Encrypt data using rsa via embedded library

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x20]
mov dword [ebp + 8], edi
sub edi, eax
sub edi, 3
cmp dword [ebp + 0x18], 0
mov byte [ebx], 0
je 0x10225e1c
push edi
lea eax, [ebx + 2]
push 0xff
push eax
mov byte [ebx + 1], 1
call fcn.10230cc0
add esp, 0xc
jmp 0x10225e2d
lea ecx, [ebx + 2]
push ecx
push edi
mov byte [ebx + 1], 2
call fcn.10226350
add esp, 8
movzx eax, word [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
push edx
lea eax, [edi + ebx + 3]
push eax
mov byte [edi + ebx + 2], 0
call fcn.10230070
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x24]
push edi
push ebx
push ecx
call fcn.10228cd0
add esp, 0x18
cmp dword [ebp + 0x18], 0
je 0x10225e7f
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push ecx
push edx
push eax
mov eax, dword [esi + 0x24]
push eax
call fcn.10229e30
add esp, 0x1c
jmp 0x10225e97
mov ecx, dword [esi + 0x24]
mov byte [ecx + 0x40], 0
mov edx, dword [esi + 4]
push edx
push eax
mov eax, dword [esi + 0x24]
push eax
call fcn.102299c0
add esp, 0xc
mov ecx, dword [esi + 0x24]
push edi
push ebx
push eax
push ecx
call fcn.10228370
mov edx, dword [esi + 0x24]
push edx
call fcn.102281f0
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x102260f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x10256a58
push edi
xor esi, esi
call fcn.102327c7
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10226169
mov eax, dword [0x102de5e0]
test eax, eax
je 0x1022612a
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call eax
add esp, 8
test eax, eax
jns 0x102261c3
push edi
push str.file__s_does_not_exist_n
call fcn.10231b66
call fcn.102311d7
add eax, 0x20
push eax
call fcn.1023929c
push eax
call fcn.10239246
add esp, 0x10
test eax, eax
jne 0x10226161
call fcn.102311d7
add eax, 0x20
push eax
call fcn.10235a9f
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
push 2
push 0
push ebx
call fcn.10232917
push ebx
call fcn.1023220a
add esp, 0x10
mov edi, eax
push edi
call sym.lime.ndll__ax_malloc_4
mov edx, dword [ebp + 0xc]
push 0
push 0
push ebx
mov dword [edx], eax
call fcn.10232917
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push ebx
mov eax, edi
sub eax, esi
push eax
add edx, esi
push 1
push edx
call fcn.1023259a
add esi, eax
add esp, 0x10
cmp esi, edi
jge 0x102261b8
test eax, eax
jg 0x10226196
push ebx
call fcn.102322dc
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10227700
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x102d99b4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1022772b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x10227772
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x10227775
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x102277d6
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x102277a0
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x1022780f
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x102adcbf
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x102adcc0
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x102277e0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10229570
Capabilities:
Use bigint function

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
movsx eax, word [esi + 4]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + eax*4 - 4]
push edi
push 0
inc edx
push edx
push 1
push 0
mov dword [ebp - 4], eax
call fcn.10234e40
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebx + edi*4 + 0xc], esi
cmp dword [esi + 8], 1
mov dword [ebp + 0xc], eax
je 0x102295ba
push str.bi_permanent:_refs_was_not_1_n
call fcn.10231b66
add esp, 4
call fcn.10235661
mov eax, dword [ebp + 0xc]
push eax
push esi
push ebx
mov dword [esi + 8], 0x7fff55aa
call fcn.10228b10
mov esi, eax
add esp, 0xc
mov dword [ebx + edi*4 + 0x24], esi
cmp dword [esi + 8], 1
je 0x102295ed
push str.bi_permanent:_refs_was_not_1_n
call fcn.10231b66
add esp, 4
call fcn.10235661
mov dword [esi + 8], 0x7fff55aa
mov esi, dword [ebx + 8]
movsx eax, word [esi + 4]
call fcn.10228610
movsx ecx, word [esi + 4]
mov edx, dword [esi + 0xc]
add ecx, ecx
add ecx, ecx
push ecx
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 0xc]
push edx
push eax
call fcn.10230070
mov ecx, dword [ebx + edi*4 + 0xc]
mov edx, dword [ebp - 4]
add esp, 0xc
push 0
lea eax, [edx + edx - 1]
push ecx
push eax
mov eax, dword [ebp + 0xc]
call fcn.10228c70
add esp, 4
push eax
push ebx
call fcn.10229100
mov esi, eax
add esp, 0x10
mov dword [ebx + edi*4 + 0x18], esi
cmp dword [esi + 8], 1
je 0x1022965e
push str.bi_permanent:_refs_was_not_1_n
call fcn.10231b66
add esp, 4
call fcn.10235661
pop edi
mov dword [esi + 8], 0x7fff55aa
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10229f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor cl, cl
lea esi, [ebx + 0x40]
mov edi, 0x10
mov al, byte [esi]
mov dl, byte [esi - 0x30]
xor dl, al
mov byte [esi - 0x20], al
mov byte [esi - 0x10], dl
inc esi
dec edi
jne 0x10229f10
mov dword [ebp - 4], edi
lea eax, [ebx + 0x11]
mov edx, 8
lea esp, [esp]
movzx edi, byte [eax - 1]
movzx ecx, cl
movzx ecx, byte [ecx + str._.C]
xor ecx, edi
movzx edi, byte [eax]
mov byte [eax - 1], cl
movzx ecx, cl
movzx ecx, byte [ecx + str._.C]
xor ecx, edi
movzx edi, byte [eax + 1]
mov byte [eax], cl
movzx ecx, cl
movzx ecx, byte [ecx + str._.C]
xor ecx, edi
movzx edi, byte [eax + 2]
mov byte [eax + 1], cl
movzx ecx, cl
movzx ecx, byte [ecx + str._.C]
xor ecx, edi
movzx edi, byte [eax + 3]
mov byte [eax + 2], cl
movzx ecx, cl
movzx ecx, byte [ecx + str._.C]
xor ecx, edi
movzx edi, byte [eax + 4]
mov byte [eax + 3], cl
movzx ecx, cl
movzx ecx, byte [ecx + str._.C]
xor ecx, edi
mov byte [eax + 4], cl
add eax, 6
dec edx
jne 0x10229f30
mov eax, dword [ebp - 4]
add cl, al
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x12
jl 0x10229f24
mov cl, byte [ebx + 0xf]
pop edi
xor eax, eax
pop esi
nop
movzx edx, byte [ebx + eax + 0x40]
movzx ecx, cl
xor edx, ecx
movzx ecx, byte [edx + str._.C]
movzx edx, byte [eax + ebx]
xor ecx, edx
mov byte [eax + ebx], cl
inc eax
cmp eax, 0x10
jl 0x10229fc0
mov esp, ebp
pop ebp
ret